- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shutdown Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 03:07 AM
04-23-2004 03:07 AM
Shutdown Script
I have installed Oracle Database 9.2.0 on HPUX 11.11 and I want Oracle database to be started on a normal system startup(init 3) and shutdown normally on a "shutdown" or "reboot" or a "init 0" command.
For this purpose I created a /etc/rc.config.d/oraconf file and in /sbin/init.d/dbstart I have all the 4 cases ( start_msg,stop_msg,start,stop ).I have linked the dbstart file from rc2.d and rc3.d and rc0.d. I have tested the startup part and it works fine.
I have some doubt about the shutdown part. How to accurately verify that the shutdown script ran viz is there any log file which will display that. I have a link
lrwxr-xr-x 1 root sys 17 Apr 22 18:41 K901dbshutdown -> ../i
nit.d/dbstart. PLease find the dbstart file attached
Thanks,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 03:18 AM
04-23-2004 03:18 AM
Re: Shutdown Script
Still trying to work out if this is a trick question.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 03:19 AM
04-23-2004 03:19 AM
Re: Shutdown Script
Maybe thats the problem here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:13 AM
04-23-2004 04:13 AM
Re: Shutdown Script
I checked the /etc/rc.log.old file and there is no indication of any Kill scripts having been executed.
Also,If not reboot then what is the preferred method of restarting a machine either thru' a script or remotely?
I have tried shutdown, init 0 and reboot on this machine and see that it displays messages like syncing and closing open volumes. So my guess will be that scripts from some rc directory is executed, and it looks more likely from rc1.d.
Do you know if there is any harm in putting the kill script in the rc0,rc1 and rc2 directories?
Thanks,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 05:06 AM
04-23-2004 05:06 AM
Re: Shutdown Script
S-script in rcN.d directory and K-script in RC
Where do you check Oracle's shutdown if you shut it down yourself?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 05:25 AM
04-23-2004 05:25 AM
Re: Shutdown Script
The kill script log would be in /etc/rc.log.old.
The rc.log file gets created when the system is started. It is updated again when the system is going through a normal shutdown and then renamed as rc.log.old when the system is booted again, with a fresh rc.log file created for the new startup logs.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 05:36 AM
04-23-2004 05:36 AM
Re: Shutdown Script
Check your script.
echo ORA_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
Should be
echo ORA_SERVER not set to 1 in /etc/rc.config.d/oraconf, exiting.
And during the startup phase,
first shutdown the oracle database and then shutdown the listener and not in the order you are doing now.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 05:55 AM
04-23-2004 05:55 AM
Re: Shutdown Script
In reply to Sanjay, I modified the script as per your suggestion. Thanks
In reply to Jereon,Thanks for your suggestion, I have put the script in rc0.d,rc1.d and rc2.d directories. I am rebooting the machine at the console, and in my script I have an echo statement which will print a line in the stop case. I am hoping to see that echo getting printed everytime I shutdown,init 0 or reboot the Machine, so I know that Oracle is shutdown.
Please let me know, If what I am doing is incorrect.
Thanks,
Girish