DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: dbora for oracle startup automation

  1. #1
    Join Date
    Jan 2001
    Location
    Ottawa
    Posts
    12

    Question dbora for oracle startup automation

    Who could explain the difference between the two lines:
    (i.e. the second end with &)

    su - $ORA_OWNER -c "ORA_HOME/bin/dbstart"

    su - $ORA_OWNER -c "ORA_HOME/bin/dbstart" &

    Confused.
    Last edited by ca152220; 09-09-2004 at 09:03 AM.
    OCP DBA

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    There's no difference, both will throw a syntax error.
    Jeff Hunter

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166

    Re: dbora for oracle startup automation

    Originally posted by ca152220
    Who could explain the difference between the two lines:
    (i.e. the second end with &)

    su - $ORA_OWNER -c "ORA_HOME/bin/dbstart"

    su - $ORA_OWNER -c "ORA_HOME/bin/dbstart &"
    The both run a shell script as the environment variable $ORA_OWNER, however "su - $ORA_OWNER -c "ORA_HOME/bin/dbstart &" runs it in a different process. You could also do this as

    "nohup su - $ORA_OWNER -c "ORA_HOME/bin/dbstart &"

    For ho hangup, the process would not be tied to its parent process. So if it takes time for the database to start, i.e. the database is doing recovery, and you log out the process starting the database will continue.

  4. #4
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    You will of course need to fix the syntax error.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width