Auto start database in HP-UX
Hi,
I have wrote a auto startup database script which does work in Sun Solaris server before for Oracle 815. I am using the same script to auto start Oracle 815 on HP-UX and it doesn't work!
-----------------------------------------------------------------------
ORA_HOME=/oracle/app/oracle/product/8.1.5
ORA_OWNER=oracle
echo "Test if dbstart exist"
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
else
echo "dbstart exist"
fi
echo "$1"
case "$1" in
'start')
........login as oracle and exe dbstart......... same codes as oracle manual
---------------------------------------------------------------------------
When I execute the script manually, echo $1 has no parameter, may i know where is this parameter being pass in during the reboot of server? I have manually execute dbstart and it works too.... what could be the problem for this script?
I have soft link the file from /sbin/init.d to /sbin/rc2.d already.
Thanks!
[Edited by mooks on 01-18-2001 at 07:08 AM]