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.
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)) )
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