-
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
-
There's no difference, both will throw a syntax error.
Jeff Hunter
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|