Como referencia, los Archivos de uso para configurar listener y de acceso a base de datos se encuentran:
Archivo $ORACLE_HOME/network/admin
Logs según versión de sw Oracle en:
$ORACLE_HOME/network/log para versión Oracle10g o inferiores
$ORACLE_BASE/diag/tnslsnr/ nombre_host/nombre_listener/ alert
Comprobar cantidad de TNS ejecutandose en el server.
/home/oracle: ps -ef|grep tns
oracle 2238 1 0 07:44 ? 00:00:00 /home/oracle/app/oracle/product/11.2.0/dbhome_2/bin/tnslsnr LISTENER -inherit
oracle 3242 3152 0 07:57 pts/1 00:00:00 grep tns
Es posible tener el servicio listenner ejecutandose sin tener un archivo de configuración de listenner asociado.
En el siguiente ejercicio emularemos la pérdida del archivo de configuración listener.ora
Mover el archivo listener.ora a otro archivo. Así se emula la pérdida del archivo.
/home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin: mv listener.ora listener.sav
Se detiene el listener
/home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin: lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-JUL-2014 08:01:56
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
Comprobar si existe otro listener
/home/oracle: ps -ef|grep tns
oracle 3444 3358 0 08:05 pts/2 00:00:00 grep tns
Subir el servicio listener. Con esta acción se está creando un servicio.
/home/oracle: lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-JUL-2014 08:02:16
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting /home/oracle/app/oracle/product/11.2.0/dbhome_2/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Log messages written to /home/oracle/app/oracle/product/11.2.0/dbhome_2/log/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 11-JUL-2014 08:02:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /home/oracle/app/oracle/product/11.2.0/dbhome_2/log/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
Verificar si tiene servicios asociados
/home/oracle: lsnrctl serv
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-JUL-2014 08:05:18
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The listener supports no services
The command completed successfully
Registrar dinámicamente en base d datos: Con esta acción se inscribe la BD con el Listener
SQL> alter system register;
System altered.
SQL> exit
Verificamos si registro la base de datos. OK
/home/oracle: lsnrctl serv
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-JUL-2014 08:05:46
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 2 handler(s) for this service...
Handler(s):
"N000" established:0 refused:0 current:0 max:20000 state:ready
CMON
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=11437))
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=43495))
The command completed successfully
No hay comentarios:
Publicar un comentario