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: LSNRCTL won't start as init (RC3) script

Re: LSNRCTL won't start as init (RC3) script

From: Stephen Harris <sweh_at_mpn.com>
Date: 16 May 1999 15:13:59 GMT
Message-ID: <7hmnbn$4tc$1@nebula.mpn.com>


Todd Freeman (todd_at_coolgeeks.com) wrote:
: RC3.d as well as inittab. In both cases a error is returned that a file
: can not be found.

Yup!

: #SqlNet6 listener startup script
: #!/bin/sh

: $ORACLE_HOME/bin/lsnrctl start

The difference is that when you login as a user, ORACLE_HOME is set, whereas at the bootup stage the variable is NOT set. So... before the lsnrctl line add the following
  ORACLE_HOME=/path/to/oracle/home
  export ORACLE_HOME

On some systems, you may also need to add:   PATH=$ORACLE_HOME/bin:$PATH
  export PATH
and even maybe
  LD_LIBRARY_PATH=$ORACLE_HOME/lib
  export LD_LIBRARY_PATH

A clever person would automate all this from the oratab entry :-)

--

rgds
Stephen Received on Sun May 16 1999 - 10:13:59 CDT

Original text of this message

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