Operating System - Linux
1831099 Members
2542 Online
110019 Solutions
New Discussion

Re: script to run system shutdown

 
prasanna wijeratna
Occasional Contributor

script to run system shutdown

Hi All,

we have N-class server which is running HP-UX 11.00 we wrote shell scripts to stop oracle database we need to run this when system going down. script is running without any issue as root user
I create a link as follows
ln -s /sbin/init.d/orashut /sbin/rc3.d/K100orashut

I don't want to start databases when system get boots only shutdown

please let me know where is sulog I found one file OLDsulog under /var/adm/sulog is it samething or not

please help me

thanks

prasanna
100
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: script to run system shutdown

Hi,

yes you are right /var/adm/sulog is the right file. OLDsulog is the sulog file before system reboot or shutdown.

If you dont want your database to startup automaticaly on bootup edit /etc/oratab
set autostart option to 'N'.

regards,

U.SivaKumar


Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: script to run system shutdown

Hi,

yes you are right /var/adm/sulog is the right file. OLDsulog is the sulog file before system reboot or shutdown.

If you dont want your database to startup automaticaly on bootup edit /etc/oratab
set autostart option to 'N'.

regards,

U.SivaKumar


Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: script to run system shutdown

Hi,

yes you are right /var/adm/sulog is the right file. OLDsulog is the sulog file before system reboot or shutdown.

If you dont want your database to startup automaticaly on bootup edit /etc/oratab
set autostart option to 'N'.

regards,

U.SivaKumar


Innovations are made when conventions are broken