Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Linux Listener
Mark Jablonski wrote:
>
> Has anyone set up the Oracle 8 listener to auto start from an rc.d
> script as root on a Linux box? If so can I take a peek at your
> script...
>
> I seem to be missing an env variable which causes the lsnrctl program
> to spit out the following message:
>
> Message 1070 not found; No message file for product=NETWORK,
> facility=TNSTNS-125
> ssage 12545 not found; No message file for product=NETWORK,
> facility=TNS
> TNS-12560: Message 12560 not found; No message file for
> product=NETWORK, facili
> TNS-00515: Message 515 not found; No message file for
> product=NETWORK, facilit
> Linux Error: 2: No such file or directory
/sbin/init.d/oracle:
(Note that the oracle user's environment is set up by "su -").
#! /bin/sh
# The echo return value for success (defined in /etc/rc.config). case "$1" in
start)
echo "Starting Oracle server" su -c dbstart - oracle || exit 1 echo "Starting Oracle listener" su -c "lsnrctl start tcp_listener" - oracle || exit 1 ;; stop) echo "Shutting down Oracle listener" su -c "lsnrctl stop tcp_listener" - oracle echo "Shutting down Oracle server" su -c dbshut - oracle || exit 1 ;; *) echo "Usage: $0 {start|stop}" exit 1
--
uwe.schneider_at_xlink.net
Received on Wed Aug 11 1999 - 03:07:57 CDT