erik
erik

Reputation: 11

how to kill unused connections

i have web written in php (4.3.9) which is connected to the oracle DB (10g). user can submit query and see results. Time to time i got error in web application:

ociplogon(): _oci_open_server: ORA-12516: TNS:listener could not find available handler with matching protocol stack

users can not login and perform query. after reset of httpd, web goes to normal.

after googling i found:

is there some way how to clean unused/dead connections? set some timeout?

Upvotes: 1

Views: 1001

Answers (1)

Kracekumar
Kracekumar

Reputation: 20419

This is because of lot of open connection to the DB, after doing specified operation you are suppose to close.

Look into oci_closeDocs to learn how to close an OCI connection and oci_connectDocs for more information about connecting to OCI.

Upvotes: 1

Related Questions