11.2 : ORA-12518 Listener Hangs and Reports "Too Many Open Files" (Doc ID 1527483.1)

APPLIES TO:

Oracle Net Services - Version 11.2.0.2 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

SYMPTOMS

In a RAC environment VIP listener report:
    WARNING: Subscription for node down event still pending
in listener.log even so ONS service is running:

 crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
...............

ora.ons
               ONLINE  ONLINE       rorac1
               ONLINE  ONLINE       rorac2

These WARNINGS appear every minute or so, showing that the listener cannot connect to ONS server.

Additionally incoming connections start to fail and the following messages would be reported in the listener.log:

 


    TNS-12518: TNS:listener could not hand off client connection
      TNS-12560: TNS:protocol adapter error
       TNS-00530: Protocol adapter error
        Linux Error: 24: Too many open files


or    


    TNS-12518: TNS:listener could not hand off client connection
   
   TNS-12560: TNS:protocol adapter error
       TNS-00530: Protocol adapter error
        Solaris Error: 24: Too many open files

 

 


The  Lsnrctl utility will no longer be able to connect to the listener. It may hang OR report the following messages:


Lsnrctl status or services might yield:

 

      Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
       TNS-12547: TNS:lost contact
        TNS-12560: TNS:protocol adapter error
          TNS-00517: Lost contact
           Linux Error: 32: Broken pipe
     Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dadbeh08.us.oracle.com)(PORT=1521)))
        TNS-12537: TNS:connection closed
          TNS-12560: TNS:protocol adapter error
           TNS-00507: Connection closed

 

When the problems with the listener begin, as a result of this issue, the listener may either hang or crash.

 

Investigations show that the OS limit for open files is high enough

      /etc/security/llimits.conf

    oracle   soft   nofile    131072 
    oracle   hard   nofile    131072

   $ulimit -n

      131072

An increase in file descriptors will delay the onset of the this problem but eventually, it will occur again.

 

Running the LSOF utility against the listener process shows huge number of used TCP file descriptors.

 

 

ps -ef | grep tnslsnr

lsof -p <tnslsnr OSPID>


Solaris

      COMMAND       PID     USER            FD      TYPE        DEVICE               SIZE/OFF      NODE NAME

      tnslsnr       12945   oracle          39u     IPv4        0x601713ca780        0t104         TCP *:* (IDLE)

      tnslsnr       12945   oracle          39u     IPv4        0x601713ca780        0t104         TCP *:* (IDLE)

      ..........

Linux

     COMMAND      PID      USER      FD    TYPE     DEVICE     SIZE              NODE NAME

     tnslsnr      20977    oracle    16u   sock     0,4        266915036         can't identify protocol

     tnslsnr      20977    oracle    16u   sock     0,4        266915036         can't identify protocol

     ..........

 

The number of sockets opened by listener process is increasing in time.

Listener is leaking sockets and these file descriptors will increase in number exhausting the server resource.

CHANGES

No changes to the system.

CAUSE

This was investigated in unpublished bug:

    

BUG 14067245 - STBH: LISTENER REACHED FD MAX LIMIT : 131072

 

Bug 14067245 was closed as duplicate of unpublished bug:

    

BUG 13078786 - LISTENER GOES DOWN SUDDENLY W/ LINUX ERROR: 32: BROKEN PIPE


Bug 13078786 affects 11.2.0.1, 11.2.0.2 and 11.2.0.3

The fix will be included in 11.2.0.4


SOLUTION

Several backports exist for 11.2.0.2 and 11.2.0.3 so Patch 13078786 can be applied.

As a workaround, if the application doesn't use FCF or FAN, the listener subscription to the the ONS can be disabled using either of the following:

 

1) Add  SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF in listener.ora

2) Change the 'localport' value in $GI_HOME/opmn/conf/ons.config  to a value differnet then 6100

 

Bug 13078786 affects 11.2.0.1, 11.2.0.2 and 11.2.0.3

The fix will be included in 11.2.0.4

Both require a reload/restart of the listener.

REFERENCES

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值