automatic startup of oracle9i on solaris 9 [message #138713] |
Fri, 23 September 2005 03:24 |
tarundua
Messages: 1080 Registered: June 2005 Location: India
|
Senior Member |
|
|
Hi all
I am trying to start Oracle9i on Solaris 9 but its not happening.
let me explain first what i did,
Quote: |
1. Created a file named dbora at /etc/init.d location with following contents.
# !/bin/sh
ORA_HOME=/data1/u01/app/oracle/product/9.2.0
ORA_OWNER=oracle
HTTP_OWNER=apache
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start') #start database and listeners
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
;;
'stop') # stop database
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut"
;;
esac
then saved this file.
2. changed its mode
$ chmod 744 dbora
3.created links
ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
4. restarted the server
$ init 6
|
Now when i connect to Oracle , database doesnt starts automatically. I am still connecting to idle instance.
I thought to try the script dbstart and when i ran that script, it is starting the database.
Which means that no problem with dbstart script.
Now can anyone tell me what am i doing wrong?
thanks n regards,
tarun
[Updated on: Fri, 23 September 2005 03:25] Report message to a moderator
|
|
|
Re: automatic startup of oracle9i on solaris 9 [message #138719 is a reply to message #138713] |
Fri, 23 September 2005 03:41 |
tarundua
Messages: 1080 Registered: June 2005 Location: India
|
Senior Member |
|
|
Sorry for bothering everyone , i got my problem.
when i was creating soft link,
Quote: |
ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
|
i named them with small "s99" and small "k10" rather than "S99" and "K10".
Now its working.
thanks & regards,
tarun
|
|
|