Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection leak at Oracle server end #53

Closed
rajeshm9 opened this issue Aug 10, 2016 · 1 comment
Closed

Connection leak at Oracle server end #53

rajeshm9 opened this issue Aug 10, 2016 · 1 comment

Comments

@rajeshm9
Copy link

Connection leaks are happening at oracle server end whenever there are timeout happens.
We have configured following parameters at sqlnet.ora for send/recv/connect timeout which is working fine.

SQLNET.SEND_TIMEOUT = 60
SQLNET.RECV_TIMEOUT = 60
TCP.CONNECT_TIMEOUT = 60
SQLNET.INBOUND_CONNECT_TIMEOUT = 60

Our code snippet:

if(!OCI_ExecuteStmt(st,query))
{
err = OCI_GetLastError();
debugLogging(ERRLOG,DEBUG_LEVEL,"SE,%s,%s",OCI_ErrorGetString(err),stCallCDR.msgId);
OCI_StatementFree(st);
OCI_ConnectionFree(cn);

                            continue;
                    }

Application Error Logging:

09-08-2016 15:05:04:077,SE,ORA-12609: TNS: Receive timeout occurred,147073525815394422530

Connection at our end:

    4 active connection (ESTABLISED state)

Connection at server end:

192  connection from our node.

Issue & Resolutions:

    No further insertion or operations are happening on server. Need to kill the server end connections.
@vrogier
Copy link
Owner

vrogier commented Feb 1, 2017

Does not seem to be an OCILIB issue but rather OCI / Network issues (error ORA-12609).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants