【转载mos文章】11.2RAC中public ip地址没有注册到监听器中

本文转自:Public IP Endpoint is not registered for Listener in 11.2 RAC (文档 ID 1597716.1)

 

APPLIES TO:

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.

SYMPTOMS

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.

2013-08-26 13:14:11.097: [ AGFW][10] {2:27079:629} Agent sending reply for: RESOURCE_START[ora.ons f5prac01b 1] ID 4098:744107
2013-08-26 13:14:11.098: [ora.ons][14] {2:27079:629} [check] OnsAgent::check {
2013-08-26 13:14:11.098: [ora.ons][14] {2:27079:629} [check] getOracleHomeAttrib: oracle_home = /u01/app/11.2.0/grid
2013-08-26 13:14:11.099: [ AGFW][10] {2:27079:629} Agent sending reply for: RESOURCE_START[ora.ons f5prac01b 1] ID 4098:744107
2013-08-26 13:14:11.099: [ora.ons][14] {2:27079:629} [check] Utils:execCmd action = 3 flags = 6 ohome = /u01/app/11.2.0/grid/opmn/ cmdname = onsctli.  
2013-08-26 13:14:11.213: [ora.ons][14] {2:27079:629} [check] (:CLSN00010:)getaddrinfo(localhost, 6100, 1)   failed (host nor service provided, or not known):  
2013-08-26 13:14:11.214: [ora.ons][14] {2:27079:629} [check] (:CLSN00010:) Can not resolve localhost for interface any  
2013-08-26 13:14:11.214: [ora.ons][14] {2:27079:629} [check] (:CLSN00010:)ons is not running ...

 - oraagent_grid.log shows VIP is registered, but public IP is Null.

2013-08-26 13:17:00.537: [ USRTHRD][27] {2:27079:638} Thread:RegEndpointThread:LISTENER start {
2013-08-26 13:17:00.537: [ USRTHRD][27] {2:27079:638} Thread:RegEndpointThread:LISTENER start }
2013-08-26 13:17:00.538: [ USRTHRD][408] {2:27079:638} Thread:RegEndpointThread:LISTENER Registering Endpoint nsgfei_EndpointInit() (ADDRESS=(PROTOCOL=TCP)(HOST=10.182.21.13)(PORT=1521))
2013-08-26 13:17:00.538: [ USRTHRD][408] {2:27079:638} Thread:RegEndpointThread:LISTENER Registering Endpoint nsgfei_EndpointInit() (ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)(IP=FIRST))
2013-08-26 13:17:00.551: [ USRTHRD][408] {2:27079:638} Thread:RegEndpointThread:LISTENER LsnrAgent, registered endpoint (ADDRESS=(PROTOCOL=TCP)(HOST=10.182.21.13)(PORT=1521))
2013-08-26 13:17:00.551: [ USRTHRD][408] {2:27079:638} Thread:RegEndpointThread:LISTENER LsnrAgent, registered endpoint (ADDRESS=(PROTOCOL=TCP) (HOST=)(PORT=1521)(IP=FIRST))

 - 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

 

CHANGES

New Installation.

CAUSE

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

SOLUTION

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.
 

REFERENCES

NOTE:1107295.1 - Linux: How to Configure the DNS Server for 11gR2 SCAN

你可能感兴趣的:(【转载mos文章】11.2RAC中public ip地址没有注册到监听器中)