Q

How to restart Oracle 9i database automatically on OS reboot

On restart of the OS (Solaris 5.10), I need the Oracle 9i database to be restarted automatically.

On restart of the OS (Solaris 5.10), I need the Oracle 9i database to be restarted automatically when the OS is...

rebooted. What script should run or where does it have to be saved so as not to do a manual startup of the DB? You have advised:

In Solaris, you should have a /var/opt/oracle/oratab file. That file should have an entry for each instance on your server that looks like the following:

orcl:/home/oracle/10.2.0:N

The "N" at the end tells the dbstart script to not start this instance. Change the "N" to a "Y." Next, have your SysAdmin run the $ORACLE_HOME/bin/dbstart script on server reboot. The SysAdmin should also run the $ORACLE_HEOM/bin/dbshut script on server shutdown.

How can this task of running dbstart and dbshut by SysAdmin be done automatically?
The SysAdmin will need to put a softlink from /etc/rc2.d to the dbshut and dbstart scripts. This should be pretty easy for a Unix SysAdmin.
This was last published in April 2007

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close