setenv not working
554204May 12 2009 — edited May 13 2009Hi,
I have put the listener.ora in a separate path, and updated the crs with the setenv command.
But when i start the listener from the srvctl, it throws error as below.
However, if i keep the same listener.ora in the $ORACLE_HOME/network/admin, then it works.
Manually starting the listener also works.
Am i missing something ?
[oracle@rac1 admin]$ srvctl setenv instance -d prod -i prod1 -t TNS_ADMIN=/u01/oracle/10.2.0/db/network/admin/prod1_rac1
[oracle@rac1 admin]$ srvctl getenv instance -d prod -i prod1 -t TNS_ADMIN
/u01/oracle/10.2.0/db/network/admin/prod1_rac1
[oracle@rac1 admin]$
[oracle@rac1 admin]$ srvctl start listener -n rac1
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 12-MAY-2009 20:34:22
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:Copyright (c) 1991, 2005, Oracle. All rights reserved.
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:Starting /u01/oracle/10.2.0/db/bin/tnslsnr: please wait...
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:TNSLSNR for Linux: Version 10.2.0.2.0 - Production
rac1:ora.rac1.LISTENER_RAC1.lsnr:Log messages written to /u01/oracle/10.2.0/db/network/log/listener_rac1.log
rac1:ora.rac1.LISTENER_RAC1.lsnr:TNS-01151: Missing listener name, LISTENER_RAC1, in LISTENER.ORA
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:Listener failed to start. See the error message(s) above...
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 12-MAY-2009 20:35:20
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:Copyright (c) 1991, 2005, Oracle. All rights reserved.
rac1:ora.rac1.LISTENER_RAC1.lsnr:
rac1:ora.rac1.LISTENER_RAC1.lsnr:TNS-01101: Could not find service name LISTENER_RAC1
CRS-0215: Could not start resource 'ora.rac1.LISTENER_RAC1.lsnr'.
[oracle@rac1 admin]$