Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Starting the lsnrctl on redhat

Re: Starting the lsnrctl on redhat

From: Joerg Eggers <joerg.eggers_at_publishers-market.com>
Date: Mon, 10 Jun 2002 08:23:54 +0200
Message-ID: <3D0445FA.4000209@publishers-market.com>


Why are you not able to read my harddisk!??

The script is nothing special and the call of the binary of lsnrctl results in the same problem.

#!/bin/bash
#
# Startup script for the Oracle database system
#
# chkconfig: 56 20 10
# description: Provides the Oracle database system
#
# Source function library.

. /etc/rc.d/init.d/functions

# setup oracle path
export _oracle_base=/usr/local/oracle

export ORACLE_BASE=${_oracle_base}/app/oracle
export ORACLE_HOME=${_oracle_base}/app/oracle/8.1.7
export ORACLE_DOC=${_oracle_base}/doc

export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH} export ORACLE_SID=puma
export PATH=${ORACLE_HOME}/bin:${PATH}
export
CLASSPATH=$ORACLE_HOME/JRE/lib:$ORACLE_HOME/jlib:$ORACLE_HOME/product/jlib:${CLASSPATH}

# See how we were called.
case "$1" in

   start)

	su - oracle -c "${ORACLE_HOME}/bin/dbstart"
	su - oracle -c "${ORACLE_HOME}/bin/lsnrctl start"
	;;
   stop)
	su - oracle -c "${ORACLE_HOME}/bin/dbshut"
	su - oracle -c "${ORACLE_HOME}/bin/lsnrctl stop"
	;;
   *)
	echo $"Usage: $prog {start|stop}"
	exit 1

esac
exit $RETVAL

Daniel Morgan wrote:

> Joerg Eggers wrote:
> 
> 

>>Hi,
>>I have a problem to start oracle via the script /etc/rc.d/init.d/oracle
>>from remote by ssh. The command is executed successfully, but at the end
>>of the oracle start-script the execution stops and goes into the state
>>do_wait and does not return to the calling script or command-line. Only
>>by Control-C, the script can be interrupted. The same behavior I get, if
>>I start the lsnrctl directly from remote by ssh. If I start the oracle
>>by the above mentioned script or the lsnrctl from the localhost, I have
>>no problem.
>>
>>Who can help me?
>>
>>Thanks in advance
>>--
>>Joerg Eggers
>>Manager Operations
>>Publishers Market AG Tel.: +49 89 729975-0
>>Lindwurmstr. 129a Fax.: +49 89 729975-99
>>D-80337 Muenchen e-Mail: joerg.eggers_at_publishers-market.com
> 
> 
> We can't read your hard disk from here ... so it would be helpful if you
> posted yoru script.
> 
> Daniel Morgan
> 


-- 
Joerg Eggers
Manager Operations
Publishers Market AG	Tel.: 	+49 89 729975-0
Lindwurmstr. 129a	Fax.: 	+49 89 729975-99
D-80337 Muenchen	e-Mail:	joerg.eggers_at_publishers-market.com
Received on Mon Jun 10 2002 - 01:23:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US