Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

script initialization during init 0 and init 6

798423Nov 27 2010 — edited Jan 17 2011
hi

i need to run some script which will stop database and application (single node) when we issue init 0 or init 6.
can anyone help me to do so??

I am explaining here something more:
we have made a script that will stop and application and Database.Now some times lazy system administrator do not bother about all this stuff.they just simplly issue init 0 or shutdown or restart that cost sometimes to the 9i DB specially. so I want to initiate this stop scripts which will be invoked iff init 0 or shutdown or reboot is performed by dummy users.

somebody told me to do on RHEL box eg.
#cd /etc/rc.d/rc0.d/
#touch k01san
#ln -s /root/appsdown.sh k01san
But its not working.

OS: RHEL 4.1 or RHEL 5.5 / OEL 5.5 or HP-UX 11.23 and SOLARIS 10u9
EBS 11i / R12RUP4/ R12 RUP6 / R12.1.1 64 bit

kind regards

[I need to visit different sites so i need it for different os too.]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2011
Added on Nov 27 2010
7 comments
639 views