本文转自:Public IP Endpoint is not registered for Listener in 11.2 RAC (文档 ID 1597716.1)
Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.
This is two node RAC, ONS fails to start, listener starts successful, but Public IP ENDPOINT is not dynamically registered to the Listener.
- lsnrctl status shows only VIP Endpoint registered, Public IP Endpoint not registered.
$ lsnrctl status
...
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.182.21.13)(PORT=1521))) <<<<< only VIP Endpoint
- oraagent_grid.log shows ONS fails to start.
- oraagent_grid.log shows VIP is registered, but public IP is Null.
- Normally both Public IP and VIP should register to the listener dynamically. For Example:
$ lsnrctl status
...
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.182.21.11)(PORT=1521))) <<<<<<< Public IP Endpoint registered
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.182.21.13)(PORT=1521))) <<<<<<< VIP Endpoint registered
New Installation.
Start from 11.2 GRID Agent dynamically registers endpoints (VIP and Public IP) with the listener. Agent gets Public IP from /etc/hosts (if no DNS). If Agent fails to get Public IP, then the listener end point will not be created.
In this case, the root cause is incorrect permission of /etc/nsswitch.conf, which prevent Agent to get correct Public IP:
-rw-r----- 1 root sys 23 Oct 30 2012 /etc/nsswitch.conf
Please contact OS Admin to check and correct the permission of /etc/nsswitch.conf. It should be like:
-rw-rw-rw- 1 root sys 23 Oct 30 2012 /etc/nsswitch.conf
The correct permission allows ora.ons to start and the end point of Public IP created for the listener.
NOTE:1107295.1 - Linux: How to Configure the DNS Server for 11gR2 SCAN