- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Dbshut and dbstart
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
Discussions
Discussions
Forums
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
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
тАО05-22-2006 07:03 AM
тАО05-22-2006 07:03 AM
I am unixadmin and dba's gave the scripts to start the oracle when server reboots and stop the database gracefully when the server is going to reboot/shutdown.
Now the problem is it doesn't stop the database and hangs there...
What I did was, created the following files:
/sbin/init.d/dbshut
/sbin/init.d/dbstart
And linked as follows:
/sbin/rc0.d/K01dshut -> /sbin/init.d/dbshut
/sbin/rc3.d/S824dbstart -> /sbin/init.d/dbstart
And when rebooted the server, oracle didn't come up.
Any ideas, how to put startup and shutdown scripts in HPUX.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:16 AM
тАО05-22-2006 07:16 AM
Re: Dbshut and dbstart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:18 AM
тАО05-22-2006 07:18 AM
Re: Dbshut and dbstart
Thanks for the response but where should I include 'shutdown immediate'?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:19 AM
тАО05-22-2006 07:19 AM
Solutiondbshut ships with a bug.
It should say shutdown immediate but says shutdown.
shutdown waits for the users to terminate their sessions, which means pretty much forever.
change dbshut and you should be fine.
There are however not bugs that I know of in dbstart.
Put a set -x in the top of that script and/or redirect the output to a file and restart your server for further diagnostics.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:28 AM
тАО05-22-2006 07:28 AM
Re: Dbshut and dbstart
Still I didn't get.
Instaed of /sbin/init.d/dbshut are you saying to put /sbin/init.d/shutdown?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:29 AM
тАО05-22-2006 07:29 AM
Re: Dbshut and dbstart
directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:29 AM
тАО05-22-2006 07:29 AM
Re: Dbshut and dbstart
This would hang the shutdown because the database is waiting for all connections to be closed. If users are working, or do not logout, connections will never close and the shutdown will not complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:36 AM
тАО05-22-2006 07:36 AM
Re: Dbshut and dbstart
#!/usr/bin/sh
/usr/bin/su oracle -c '
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:48 AM
тАО05-22-2006 07:48 AM
Re: Dbshut and dbstart
You need to modify the dbshut script.
vi the file and look the for the line containing shutdown
change the line to shutdown immediate
HTH DCE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:55 AM
тАО05-22-2006 07:55 AM
Re: Dbshut and dbstart
su - oracle -c "/opt/oracle/product/9.2.0/bin/dbstart"
etc.
you can make one script that does the dbshut in response to the "stop" parameter and dbstart in response to the "start" parameter. then create the links as you have above, but to the new script.