lsnrctl password
El otro día al intentar hacer un lsnrctl status a un LISTENER me pasó:
oracle> lsnrctl status LSNR_BBDD004 LSNRCTL for HPUX: Version 9.2.0.8.0 - Production on 03-OCT-2017 07:34:02 Copyright (c) 1991, 2006, Oracle Corporation. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=BBDD004))) TNS-01169: The listener has not recognized the password
Esto es debido a que el listener está protegido con password. Para hacer el status hacemos
cd $ORACLE_HOME/network/admin cat listener.ora
Mi listener.ora tiene este aspecto:
host001 oracle ( BBDD004 ) > cat listener.ora LSNR_BBDD004 = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = BBDD004)) (ADDRESS = (PROTOCOL = TCP)(HOST = host001)(PORT = 1675)) ) ) #----ADDED BY TNSLSNR 20-MAR-2017 16:40:28--- PASSWORDS_LSNR_BBDD004 = C1EC4CFD39852D66
así hemos localizado la password del listener, luego hacemos:
host001 oracle ( BBDD004 ) > lsnrctl LSNRCTL> set password 'C1EC4CFD39852D66' The command completed successfully LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=BBDD004))) STATUS of the LISTENER ------------------------ Alias LSNR_BBDD004 Version TNSLSNR for HPUX: Version 9.2.0.8.0 - Production Start Date 11-DEC-2016 02:55:37 Uptime 296 days 3 hr. 42 min. 28 sec Trace Level off Security ON SNMP OFF Listener Parameter File /app/oracle/product/9.2.0/network/admin/listener.ora Listener Log File /app/oracle/product/9.2.0/network/log/lsnr_BBDD004.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=BBDD004))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host001)(PORT=1675))) Services Summary... Service "BBDD004" has 1 instance(s). Instance "BBDD004", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
igual que hemos hecho un status para verificar el estado del listener, con este mismo procediemiento podríamos parar o arrancar el listener...
Comentarios
Publicar un comentario