Auto start on Solaris
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Auto start on Solaris

  1. #1
    Join Date
    May 2000
    Posts
    50

    Question

    I have an Oracle database 8.1.6 running on Solaris 5.7. Earlier when it was installed it was not configured to startup automatically whenever the box was booted. So I edited the oratab file so that the instance (there is only one on the box) will come up everytime the box is booted. But seems like it is not working.

    Did I miss something here?? Can somebody point me in the right direction?

  2. #2
    Join Date
    Jun 2000
    Posts
    295
    Did you add scripts in /etc/init.d?

    Refer Oracle installation Guide please.

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    In your /etc/init.d directory, you can have a script that controls the startup and shutdown of the db. For example, in /etc/init.d/oracle:
    #!/bin/sh
    case "$1" in
    'start')
    su - oracle -c dbstart
    su - oracle -c lsnrctl start
    ;;
    'stop')
    su - oracle -c dbshut
    ;;
    esac

    --
    Then, in your /etc/rc2.d directory, you have to create links that will run the oracle script on startup and shutdown of the system. (The K script is run when the system is going down and the S script runs when the system is coming up. Case is very important)
    ln -s /etc/init.d/oracle S88oracle
    ln -s /etc/init.d/oracle K88oracle
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  4. #4
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    The steps on installing the auto start script are well explained in the oracle 8.1.6 installation guide, page 4-4
    under post installation options. Check that out.

    Sam

  5. #5
    Join Date
    May 2000
    Posts
    50
    Thank you all....it works now...

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