- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: auto start the database during 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
тАО06-14-2001 10:26 AM
тАО06-14-2001 10:26 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2001 10:54 AM
тАО06-14-2001 10:54 AM
SolutionThen create a start/stop link in the appropriate /etc/rc2.d (or whatever run level you are using) directory where the database is started in sequence after things like disks and networking are running (typicall level 900 link names).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2001 10:57 AM
тАО06-14-2001 10:57 AM
Re: auto start the database during reboot
su - oracle -c "/u01/app/oracle/product/8.1.5/bin/startup".
Use the sample script in /sbin/init.d (/sbin/init.d/template. Follow the instructions.
You'll also need a link in the appropriate run-level directory (i.e. /sbin/rc3.d).
Don't forget to load the script variable in /etc/rc.config.d
The database (kill) should end early and start late.
All of that said, I'm paranoid. I prefer to start the database by hand, just in case. Operationally, we have the kill script active, but require admins to hand shutdown the database before dropping the database server. The kill script is there just in case.
-C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2001 11:03 AM
тАО06-14-2001 11:03 AM
Re: auto start the database during reboot
You've been given good advice here (as always). The only thing I could add is a general reference. It is /usr/share/doc/start_up.txt. I have attached a copy to this reply for your convenience.
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2001 05:11 AM
тАО06-17-2001 05:11 AM
Re: auto start the database during reboot
Just a tip:
I tied to be smart and in order to get the bootprocess to continue without waiting for all the Oracle bases to start, I did something like this:
su - oracle -c "/u01/app/oracle/product/8.1.5/bin/startup &"
where using the & to run the startupscript in the background.
What I ended up with was that the script only started the first database listed in /etc/oratab and then quitting (I dont know why?
so.. don't run this script in the background.
rgds
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2001 01:02 PM
тАО06-19-2001 01:02 PM
Re: auto start the database during reboot
see the attached file (a copy of template modified, in /sbin/init.d).
We have also modified dbshut ($ORACLE_BASE/product/../bin/dbshut), we have replaced the shutdown (normal) by :
shutdown immediate
startup
alter system switch logfile;
shutdown
When we start the database(s) by hand, we use :
su - oracle -c "dbstart"
and
su - oracle -c "lsnrctl start listener" if it is not running.
Nora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2001 01:30 PM
тАО06-19-2001 01:30 PM
Re: auto start the database during reboot
A few points for folks' efforts here would be nice. It would also ensure timely replies to your future questions ;-)
Cheers,
Jim