- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Autostart Oracle on Reboot
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
тАО03-14-2001 06:45 PM
тАО03-14-2001 06:45 PM
I've installed Oracle 8i on HP-UX. I would like to make it autostart after reboot.
I've just created a start/stop (oracle) under /sbin/init.d with start & stop parameters.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
case $1 in
start)
. /home/vismgr/start.sh
;;
stop)
. /home/vismgr/stop.sh
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Script works fine from #prompt. To make it work automatic during reboot, what else I need to do? Please advice.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 07:26 PM
тАО03-14-2001 07:26 PM
Re: Autostart Oracle on Reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 08:08 PM
тАО03-14-2001 08:08 PM
Re: Autostart Oracle on Reboot
The problem is not with the Oracle, since the scripts (start.sh&stop.sh) were written by me and works very well from # prompt. No issues on it. Only thing about the auto-startup the script after reboot.
From some of the questions posted to this site, I found that /sbin/init.d/oracle must link to /sbin/rcn.d....
My Question is, do we need to do any extra steps other than creating a script file under /sbin/init.d dircetory?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2001 09:23 PM
тАО03-14-2001 09:23 PM
Re: Autostart Oracle on Reboot
One common mistake in writing the startup/shutdown script is that the environmental settings are not set correctly in the script itself. When you test at the command line, the PATH settings and environment variables eg. ORACLE_SID that you specified in your .profile have already been set. However, if you are running the startup/shutdown script, your profile is not loaded, thus it is important that the necessary ENV eg. PATH settings are set correctly.
If you follow the HP-UX conventional way of writing a startup/shutdown script, you should also include the configuration file /etc/rc.config.d/oracle. This file should contain environment settings as well as the script startup flag eg. ORACLE=1. In your /sbin/init.d/oracle, source this file /etc/rc.config.d/oracle and add the condition that if ORACLE=1, then start/stop oracle else don't start/stop oracle during system startup or shutdown.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2001 02:13 AM
тАО03-15-2001 02:13 AM
Solutionfor automatic start/stop you have to make symbolic links ie:
Start:
ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle
Stop:
ln -s /sbin/init.d/oracle /sbin/rc2.d/K900oracle
Also add two additional case statements in your /sbin/init.d/oracle to have a message on the console at boot time:
start_msg)
echo "Starting ORACLE"
;;
stop_msg)
echo "Stopping ORACLE"
;;
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2001 04:37 AM
тАО03-15-2001 04:37 AM
Re: Autostart Oracle on Reboot
Might add that I use to edit the Oracle-supplied script dbshut so that it does "shutdown immediate" instead of shutdown normal.
Prevents you from having a system shutdown that hangs waiting for Oracle users to log out.
rgds
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2001 04:35 AM
тАО03-19-2001 04:35 AM
Re: Autostart Oracle on Reboot
And my Special Thanks to Andreas Voss for your info.
Regards,
Hari