HI,
I wanted to do an automatic shutdown and startup of db in a solaris 7 and from the forums prev discussion and docs i created a file dbora in /etc/init.d
#!/bin/sh
# Set ORA_HOME to be equivalent to the ORACLE_HOME
# from which you wish to execute dbstart and
# dbshut
# set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME
ORA_HOME=/u01/app/oracle/product/8.1.7
ORA_OWNER=oracle
if [! -f $ORA_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 - $ORA_OWNER -c $ORA_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 - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
;;
esac

I have stopped here:

after that the doc says to
4. Link dbora by entering:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
# ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora

i assumed that when u eexec the above a copy of the above file is created in K10dbora and S99dbora (IMO -that the dir are created when u execute the cmds), and a link to the origianl file is maintained and in ls -l the links should be 2(if i am correct).

can i go ahead from step 4- from what i have said - please correct me if i am wrong.

the next Q is how would i know if the db has been shutdown using the above file during a system shutdown.the problem arose bcos of the power outages in California.is there anyway to find if this file is executed and successful.
and does the system pass the shutdown or startup as arguments to the dbora file bcos the case..esac has them.
any help is appreciated.
thanks,
dharma
PS: I am new to UNIX.