• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Oracle auto startup in Solaris

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed Oracle 9i in Solaris 6.5 machine.
But everytime after the Solaris restarts, I have to startup the Oracle service manually.

Could you tell me how to startup Oracle service automatically after the Solaris server is restarted?
 
David Li
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please!

It will be highly appreciated if any response!
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Oracle startup and shutdown scripts

$ORACLE_HOME/bin/dbstart
$ORACLE_HOME/bin/dbshut

1a)./etc/oratab or /var/opt/oracle/oratab Specify a "Y" in this field for the database


2. As root, create the following OS script file dbora.sh in the
/etc/init.d directory:
#!/bin/sh
ORACLE_HOME="Your Oracle Home"
ORACLE_OWNER=oracle
if [ "$1" = "start" ] ; then
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart &
exit 0
fi
if [ "$1" = "stop" ] ; then
su - $ORACLE_HOME -c $ORACLE_HOME/bin/dbshut &
exit 0
fi
echo "Usage: $0 [start|stop]"


3. Link the dbora.sh to /etc/rc directory:
# ln -s /etc/init.d/dbora.sh /etc/rc0.d/K10dbora.sh
# ln -s /etc/init.d/dbora.sh /etc/rc2.d/S99dbora.sh


Hope this helps!
Beksy
 
Hug your destiny! And hug this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic