Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: LSNRCTL won't start as init (RC3) script
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