Quote:
Originally Posted by Ahmad Gurchani
if I dont use the oracle script written below, then system start fine,
but if I use the following script, then system hangs up at startup at message 'Enabling swap space'. how to solve??????????????????????????
I am using Redhat ES 4, with Oracle 10g R2.
vi /etc/init.d/oracle
#!/bin/bash
#
# Run-level Startup script for the Oracle Instance and Listener
#
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle listener and instance
ORA_HOME="/home/oracle/product/10.2.0/db_1"
ORA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
case "$1" in
start)
echo -n "Starting Oracle: "
su - $ORA_OWNR -c $ORA_HOME/bin/dbstart
touch /var/lock/subsys/oracle
echo "OK"
;;
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
su - $ORA_OWNR -c $ORA_HOME/bin/dbshut
rm -f /var/lock/subsys/oracle
echo "OK"
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart|reload"
exit 1
esac
exit 0
|
Well, since you're using both RHEL and Oracle, you're paying for support from both of them. Have you called them, to see what's up??
What do your system logs say? How about the Oracle logs? And do you mean the system won't BOOT with that script enabled, or does it boot, but you can't run Oracle without locking up?? Either way, call RHEL or Oracle, since you're in a paid-for, supported environment...they can help you more quickly than we can