Operating System - HP-UX
1847920 Members
3669 Online
104021 Solutions
New Discussion

SAP & Oracle shutdown script.

 
Wei Liang
New Member

SAP & Oracle shutdown script.

Hi, i'm trying to figure out how to include SAP & Oracle into the shutdown sequence if power loss and the ups runs out of battery.

I'm running on HP-UX 11.11 with Oracle 9.2.05 64 bit. Some help please :)

Thanks!
3 REPLIES 3
Charles Holland
Trusted Contributor

Re: SAP & Oracle shutdown script.

Hi Wei,

A little more information might help get a response. What kind of setup do you have? Obviously you have a ups. What is the manufacturer?

Regards
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Geoff Wild
Honored Contributor

Re: SAP & Oracle shutdown script.

Include them the same way they start/stop now...

IE:

su - $SAPADM -c stopsap


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: SAP & Oracle shutdown script.

If your system is set to shutdown when power is lost (/etc/ups_conf). Then if there is enough power in your UPS all shutdown scripts will run.

Set a Kill link in /sbin/rc2.d

ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle


Same thing for SAP.

There needs to be a standard shutdown script in /sbin/init.d

I'm attaching my oracle shutdown script. Its important to shut oracle down with the application binary owner.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com