Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutdown and startup

Status
Not open for further replies.

smitty3501

IS-IT--Management
May 20, 2005
8
0
0
US
Im looking for help determining where to place the call to a script that will shutdown Oracle. The files /etc/shutdown and /etc/rc.shutdown do not exist.

Also where would I place the call to the script to startup Oracle when the machine boots ?

Thanks in advance
 
You can start Oracle after the machine boot in the /etc/inittab.

For Stoping Oracle, check /etc/rc.d ..... I'm not sure.
 
If you create /etc/rc.shutdown, it'll be run at the beginning of shutdown. The script must return zero, or the shutdown will be stopped.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Example from live system

# cat /etc/rc.shutdown
su - oracle -c /u05/app/oracle/product/8.0.5/bin/lsnrctl stop
su - oracle9 -c /u02/oracle9/oracle9/bin/lsnrctl stop
su - oracle9 -c /u02/oracle9/oracle9/bin/dbshut

Alex
 
Take care if your machine is part of a HACMP-cluster, as IPs, vg,... needed for your database might be unavailable while the cluster is not started. In this case may wish to put start/stop scripts in your hacmp-start/stop scripts.

Stefan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top