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: Vaughan <shanks_at_yallara.cs.rmit.edu.au>
Date: 17 May 1999 01:24:55 GMT
Message-ID: <7hnr57$t8m$1@emu.cs.rmit.edu.au>


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.

  1. Create a script /etc/init.d/dbora and link it as specified in the installer guide. This script did not work for me, so I made my own version.
  2. Enter this instead:

#!/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" &
		;;

esac

  Hope this helps!

Cheers,

        Vaughan :-) Received on Sun May 16 1999 - 20:24:55 CDT

Original text of this message

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