LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2005, 02:13 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
DB autostart/shutdown


I was doing to some research to shutdown/startup DB automatically when server is reboot and one of the thing we have to do as follow:

You can also use $ORACLE_HOME/bin/dbstart to startup the database, and $ORACLE_HOME/bin/dbshut to shutdown the database. You can place $ORACLE_HOME/bin/dbstart into the /etc/rc.d/rc.local boot script to automatically bring up the database at system boot time.


what do he mean by "place $ORACLE_HOME/bin/dbstart"??? does he mean vi the rc.local file and add the string on dbstart into that file???
 
Old 07-12-2005, 02:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Yes, that's what she means. :) ... However, that's not really
a good idea because it won't solve the shut-down.
Code:
#!/bin/sh
# description: Start Stop Oracle 10g and IAS
# chkconfig: 2345 99 00
        
case "$1" in
'start')
        su - oracle -c /path/to/your/oracle/start/db_start.sh
        touch /var/lock/subsys/oracle
        ;;
'stop')
        su - oracle -c /path/to/your/oracle/start/db_stop.sh
        rm -f /var/lock/subsys/oracle
        ;;
*)
        echo "Usage: $0 { start | stop }"
        ;;
esac
exit 0

If you're using RH you probably want a script "oracle"
in /etc/init.d/ ... and symlinks to that from:
./rc.d/rc0.d/K05oracle
./rc.d/rc3.d/S99oracle
./rc.d/rc4.d/S95oracle
./rc.d/rc5.d/S95oracle
./rc.d/rc6.d/K05oracle


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 07:38 AM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 06:21 PM
unable to 'shutdown' from x... need to shutdown using 'halt' guitarnix Linux - Newbie 5 11-24-2003 01:00 AM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 10:44 AM
shutdown hang during eth0 shutdown kurtisw Linux - Networking 5 10-30-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration