Monitor static registration and dynamic registration

Registered listeners usually contains the following information

Database service name, instance name, available service handler for scheduling (shared mode), and the derived subprograms (dedicated mode) port number.

There are two common ways of registered listeners

Static registration and dynamic registration

Static Registration: listener.ora configuration file is read when the instance starts, the instance and registration services to the listener. Whenever you start a database, by default, we have two pieces of information registered with the listener in: database server instances and corresponding service.

Static registration: used when registering dynamic instability, characterized by: a stable, dynamic process than registration process is slow

Dynamic registration: The preferred method of registering an instance of the listener. Because he will ensure that only instance running and the services available to registered listeners, while instances and services out there is no error. And, in the closed instance, is automatically logged out from the listeners.

 

Taking static listener registration methods, content listener.ora file as follows

Single-instance:

= SID_LIST_LISTENER 
(SID_LIST = 
(SID_DESC = 
(GLOBAL_DBNAME = DB01) 
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0) 
(SID_NAME = DB01) 
) 
) 
LISTENER = -> Listener name, a database can a plurality of listeners 
(the DESCRIPTION = 
(ADDRESS = (the TCP the PROTOCOL =) (= the HOST XXX) (PORT = 1521)) 
)

  

Multi-instance:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0) (PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME =db01)
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0) (SID_NAME =db01)
)
(SID_DESC =
(GLOBAL_DBNAME =db02)
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0) (SID_NAME =db02)
)
)

  

Dynamic registration:

Examples of use PMON process will be registered automatically at startup and instance_name service_names information has started to default listener listener.ora, after 9i, does not require any configuration to dynamically register. Will automatically find the listener on the local host default port number after the instance starts, and after finding the register.

Any time you can execute the following command to achieve re-register after instance startup;

alter system register;

or

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521))';

  

Taking dynamic registration method, the content of the following listener.ora

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0) (PROGRAM = extproc)
) )
 
Since there are dynamic listeners why it still listening? For the following reasons:
1, the listener is not the first start, Oracle instance first start
2, restart the listener
3, Oracle instance and not open.

A service inquiry is static or dynamic registration Registration
  Note that the service name in some states is UNKNOWN, some are READY.
  For dynamic name registration services, because the listener know the state of the instance, Nutella normal status shows READY.
  For static registration service name, usually displayed as UNKNOWN.
Lsnrctl status can be used to view a dynamic or static registration service is registered.

Dynamic registration database (for a standby) state information to indicate by state or READY state BLOCKED. Regardless of when to close the database, the database will dynamically registered dynamically from listeners canceled and associated information disappears from the list. In this way, regardless of the database is running or has shut down, the listener is always aware of his status.
 

 

Guess you like

Origin www.cnblogs.com/black-start/p/10980754.html