DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2001


    Dear Members
    I have successfully installed and created an Oracle 8.1.7 database on linux. However, I am still having problems automating startup of the database when my linux system boots up or automatic shutdown when the system is switched off. The dbstart/dbshut scripts works just fine when run at the command prompt after the system has been started.

    Please explain to me how I can automatically have these scripts ran when I boot or shut down my linux systems in order to start or shutdown my databases.

  2. #2
    Join Date
    Jun 2001
    this might be helpful.


    with installation guide and startup/shutdown scripts and more.
    You think I'm going to have an affair with you? --Stanley Kowalski

  3. #3
    Join Date
    Jun 2001

    automating startup/shutdown on 8.1.7 (linux)

    Thanks a lot "TheSlob" for your reply and useful link.
    The dbstart and dbshut scripts in 8.1.7 does run correctly when invoked from the shell though. Can the moderator PLEASE outline the steps for me to use the dbstart and dbshut scripts that came with my 8.1.7 Oracle for Linux to automate the startup and shutdown??
    Thanks in advace

  4. #4
    Join Date
    Jun 2000
    Madrid, Spain
    I dont know if you have read the installation guide but it comes with the steps to use these 2 scripts.

    Cut from the installation.pdf obtained from otn.racle.com

    Automate Database Startup and Shutdown (Optional)
    You can configure your system to automatically start Oracle databases when your
    system starts up and to shut down Oracle databases when your system shuts down.
    Automating database startup is optional, but automatic shutdown is recommended
    because it guards against improper shutdown of the database.
    The dbstart and dbshut scripts are located in the $ORACLE_HOME/bin directory
    and can be used to automate database startup and shutdown.
    The dbstart and dbshut scripts reference the same entries in the oratab file, so
    the scripts must apply to the same set of databases. For example, you cannot have
    dbstart automatically start up databases sid1, sid2, and sid3, and dbshut
    shut down only databases sid1 and sid2. You can, however, specify that dbshut
    shut down a set of databases while dbstart is not used at all. To do this, include
    the dbshut entry in the shutdown file but omit the dbstart entry from the system
    startup files.
    This process must be completed for every new database that you want to configure
    for automated startup and shutdown. Perform the following tasks to set up the
    dbstart and dbshut scripts so that they are called at system startup:
    1. Edit the etc/oratab file.
    Database entries in the oratab file appear in the following format:
    where Y or N specifies whether you want the dbstart and dbshut scripts to
    start up and shut down the database. Find the entries for all the databases that
    you want to start up. They are identified by the sid in the first field. Change
    the last field for each to Y.
    2. Create a file named dbora in the /etc/init.d directory (if it does not already
    3. Create entries similar to the following at the end of the dbora file (if they do
    not already exist). Be sure to give the full path of the dbstart utility.
    # Set ORA_HOME to be equivalent to the ORACLE_HOME
    # from which you wish to execute dbstart and
    # dbshut
    # set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME
    if [! -f $ORA_HOME/bin/dbstart]
    echo "Oracle startup: cannot start"
    See Also: For a description of system startup and shutdown
    procedures, check the init command in your Linux Intel
    case "$1" in
    # Start the Oracle databases:
    # The following command assumes that the oracle login will not prompt the
    # user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
    # Stop the Oracle databases:
    # The following command assumes that the oracle login will not prompt the
    # user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
    4. Link dbora by entering:
    # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
    # ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora

    If you dont have this download it from Technet

  5. #5
    Join Date
    Jun 2001

    Thank you very much

    Pando and "theslob" thank you both very much for all the help, not forgetting all the other members and moderators of this outstanding forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.