Contents
- 1 What does alter system register do?
- 2 What is dynamic service registration in Oracle?
- 3 What is difference between static and dynamic listener?
- 4 How do we use listeners?
- 5 Where does the PMON process Register service information?
- 6 How to trace dynamic registration from PMON or lreg?
- 7 How does PMON and lreg work in Oracle 12c?
What does alter system register do?
ALTER SYSTEM REGISTER; This command forces the registration of database information to the listener.
What is dynamic service registration in Oracle?
In Dynamic registration , registration is performed by PMON process using default port 1521. Once a Database instance starts, its PMON process registers instance details with associated listener. Dynamic registration does not require any manual conguration in the listener.
What is event listener registration?
Event Listeners Registration Event Registration is the process by which an Event Handler gets registered with an Event Listener so that the handler is called when the Event Listener fires the event.
What is difference between static and dynamic listener?
You can explicitly state the instance information (called static registration) by updating the listener. Or, the instance’s PMON process can contact the Listener and pass on the information automatically. When PMON performs this activity, it is called dynamic registration.
How do we use listeners?
These listeners can be implemented in TestNG in the following ways:
- Using tag listener() in a testNG.xml file.
- Using the listener annotation(@Listeners) in a testNG class as below: @Listeners(com.Example.Listener.class)
Which function is used to register a listener?
By convention, member function setListenerName is used for the registration of single listener and addListenerName is used for the registration of multiple listeners. For single-listener registration function, if called multiple times, only the last one is effective.
Where does the PMON process Register service information?
By default, the PMON process registers service information with its local listener on the default local address of TCP/IP, port 1521. If the listener configuration is synchronized with the database configuration, then PMON can register service information with a nondefault local listener or a remote listener on another node.
How to trace dynamic registration from PMON or lreg?
The post describes how to capture tracing for the PMON or LREG process. It is intended to help troubleshoot issues where dynamic service registration is failing or where the LSNRCTL services summary is not displaying services properly. From 11.1.0.7 onwards, tracing can be enabled using the following command:
How long does it take PMON to register with the listener?
However, if there is no listener at startup, PMON can obviously not register those information. Therefore, PMON tries then periodically to register with the listener, which might take up to 60 seconds. It is possible to force this registration with alter system register. Thanks
How does PMON and lreg work in Oracle 12c?
In 12c and higher, there is a new background process called ora_lreg_sid-name. In previous releases, PMON always handled instance registration logic. In 12c, LREG (Listener REGistration) now takes over with the instance registration logic. registers instance information with the listener.