This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
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
 
I once met a man from Nantucket. He had a tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic