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.
Printable View
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.
There's no difference, both will throw a syntax error.
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 asQuote:
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 &"
"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.
You will of course need to fix the syntax error.