SpiritOfLennon
IS-IT--Management
Hi,
I am having problems with an Oracle 8.1.7 database running on HP-UX 11.00. We have a script ( below ) that is designed to shut the database down every night to back it up. However on occasion ( probably once every month ) when we return in the morning the database has failed to shutdown with the message "immediate shutdown in progress". We have to use shutdown abort to stop Oracle but then cannot get the listener to restart without carrying out a full server reboot. I have written a script to log all processes from v$session prior to the attempted shutdown immediate process however nothing stands out as being the cause of the problem. Can anybody provide any suggestions or advise as to how to resolve the issue?
su oracle -c /oracle/script/check_process.sh
su oracle -c /oracle/8.1.7/bin/svrmgrl < /oracle/script/stopdb
./oracle/script/backupdb
su oracle -c /oracle/8.1.7/bin/svrmgrl < /oracle/script/startdb
check_process.sh consists of
ORACLE_HOME=/oracle/8.1.7;export ORACLE_HOME
ORACLE_SID=vwsuk;export ORACLE_SID
ORACLE_BASE=/oracle;export ORACLE
PATH=$PATH:$ORACLE_HOME/bin
DATE=`date +%A`
{
echo "truncate table vsession_"$DATE";"
echo "insert into vsession_"$DATE" select * from vsession_view;"
echo "commit;"
} | sqlplus -S user/pass
stopdb consists of
connect internal
shutdown immediate
exit
backupdb is an fbackup command to back up the relevant database files
startdb consists of
connect internal
startup open
exit
Thanks
SOL
I'm only guessing but my guess work generally works for me.
I am having problems with an Oracle 8.1.7 database running on HP-UX 11.00. We have a script ( below ) that is designed to shut the database down every night to back it up. However on occasion ( probably once every month ) when we return in the morning the database has failed to shutdown with the message "immediate shutdown in progress". We have to use shutdown abort to stop Oracle but then cannot get the listener to restart without carrying out a full server reboot. I have written a script to log all processes from v$session prior to the attempted shutdown immediate process however nothing stands out as being the cause of the problem. Can anybody provide any suggestions or advise as to how to resolve the issue?
su oracle -c /oracle/script/check_process.sh
su oracle -c /oracle/8.1.7/bin/svrmgrl < /oracle/script/stopdb
./oracle/script/backupdb
su oracle -c /oracle/8.1.7/bin/svrmgrl < /oracle/script/startdb
check_process.sh consists of
ORACLE_HOME=/oracle/8.1.7;export ORACLE_HOME
ORACLE_SID=vwsuk;export ORACLE_SID
ORACLE_BASE=/oracle;export ORACLE
PATH=$PATH:$ORACLE_HOME/bin
DATE=`date +%A`
{
echo "truncate table vsession_"$DATE";"
echo "insert into vsession_"$DATE" select * from vsession_view;"
echo "commit;"
} | sqlplus -S user/pass
stopdb consists of
connect internal
shutdown immediate
exit
backupdb is an fbackup command to back up the relevant database files
startdb consists of
connect internal
startup open
exit
Thanks
SOL
I'm only guessing but my guess work generally works for me.