LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-21-2010, 05:50 AM   #1
Ahmad Gurchani
LQ Newbie
 
Registered: Sep 2004
Location: Pakistan
Posts: 7

Rep: Reputation: 0
system hangs at Enabling swap space


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
 
Old 09-21-2010, 02:14 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,797

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by Ahmad Gurchani View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 3 hangs on "Enabling swap space" tewald Fedora - Installation 16 04-14-2010 08:56 AM
RHEL AS4 hangs on (enabling swap space) after installing openmpi ferminselvin Linux - Desktop 0 07-30-2008 05:15 AM
Fedora 3 boot hangs after "Enabling swap space: [OK]" Voroojack Fedora 2 11-29-2005 09:21 AM
FC2 1.521 hangs after "enabling swap space" Oxxide Fedora - Installation 2 10-30-2004 05:19 PM
after Enabling swap space Fedora hangs on boot ejbest Linux - Newbie 11 10-07-2004 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration