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.
Bookmarks