ORA-12537: TNS:connection closed

oracle

I'm seeing random TNS connection closed errors when connecting to one of our databases. It's not affecting all users. (Appears to be happening during spikes of user activity) Occasionally I'm also seeing ORA-12518: TNS:listener could not hand off client connection.

The connections are being made from .Net using the ODP driver. (Which generates a lot of connect/disconnect activity)

Best Answer

From here:

Your server is probably running out of memory and need to swap memory to disk.

One cause can be an Oracle process consuming too much memory. A possible workaround is to set following parameter in the listener.ora and restart the listener:

 DIRECT_HANDOFF_TTC_LISTENER=OFF

Should you be working with Multi threaded server connections, you might need to increase the value of large_pool_size.

You could examine the listener log file. By issuing the lsrnctl status command you can see log file. Check listener parameter file and see listener version.

See this blog post for other possible causes and additional help: ORA-12518: TNS:listener could not hand off client connection