Oci Client Sockets Remain Open On Solaris
Last updated on AUGUST 30, 2011
Applies to:Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 220.127.116.11 - Release: 10.2 to 11.2
Information in this document applies to any platform.
A TCP Socket descriptor is leaked for OCISessionBegin even though OCISessionEnd or OCIServerDetach is called. In 10.2, one is leaked for every call to OCISessionBegin whereas only one is leaked per program in 11g. The OCIHandleFree call is supposed to free up this handle but it doesn't either.
If you encounter this issue, lsof command from another window will show output like the following as long as the program has not ended.:
cdemo82 1033 oracle 6u IPv4 TCP no TCP/UDP/IP information available
Note: In this case cdemo82 was the program and this socket will be leaked even if you add the necessary OCIHandleFree calls
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms