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:
: I have been trying to get a Sun (Solaris 2.7) server to start the
: Listener as part of the server init. I have tried placing the script in
: RC3.d as well as inittab. In both cases a error is returned that a file
: can not be found.
: However, Once I log in as root or other authorized user I can run the
: script and the listener starts fine and I am able to connect from
: clients. It looks something like this:
I had the same problem.
#!/bin/sh
ORACLE_HOME=<enter your value here>
export ORACLE_HOME
ORACLE_OWNER=<enter your value here>
export ORACLE_OWNER
case $1 in
'start') echo "Starting Oracle" su - $ORACLE_OWNER -c "$ORACLE_HOM/bin/lsnrctl start" & su - $ORACLE_OWNER -c "$ORACLE_HOM/bin/dbstart" & ;; 'stop') echo "Stopping Oracle" su - $ORACLE_OWNER -c "$ORACLE_HOM/bin/lsnrctl stop" & su - $ORACLE_OWNER -c "$ORACLE_HOM/bin/dbshut" & ;;
Hope this helps!
Cheers,
Vaughan :-) Received on Sun May 16 1999 - 20:24:55 CDT
![]() |
![]() |