LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-11-2007, 11:12 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Database doesn't shutdown during shutting down the server


Dear Friends ,

I have to use the following dcript to use Auto startup and shutdown my Oracle Database in RHEL 4 .

step 1:

#!/bin/bash
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
#
# Set ORACLE_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORACLE_OWNER to the user id of the owner of the
# Oracle database in ORACLE_HOME.

ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle

if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi

case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
;;
esac

step 2:

cat /etc/inittab
*:/u01/app/oracle/product/10.2.0/db_1:N
orcl:/u01/app/oracle/product/10.2.0/db_1:Y

step 3:
Keep "dbora" in following path :
/etc/rc.d/rc3.d/dbora
/etc/rc.d/rc5.d/dbora
/etc/rc.d/init.d/dbora

And also ,

chmod 750 /etc/init.d/dbora
chkconfig --level 345 dbora on


Now ,The script works fine and ORacle Database and Listener service starts automatically during startup the server .But during shutdown the server, I cannot understand or can't recognize that the Oracle Database & listener service are shutdown auto . I think it does not work properly..... So i need to know that Oracle Database & listener service are stop automatically during shutting down the server . Using the above scripts , How can I do it ? Is there any wrong then plz advice me .......Thx ...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutting down the X-Server Gins Linux - General 7 10-14-2005 04:22 PM
shutting down x server in 10.1 reverendm Mandriva 2 11-17-2004 05:33 PM
Shutdown not shutting down completely jrdioko Linux - Newbie 19 10-12-2003 11:47 AM
shutting down X server calble Linux - Software 2 08-05-2003 04:05 PM
Connection not shutting down on shutdown or restart tyrann Linux - Networking 2 07-12-2003 11:46 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:28 PM.

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