Disconnect detection
Posted: Mon 18 Feb 2013 23:32
What is the best way to detect when an oracle connection is disconnected and reconnect? I have the following scenario:
1) connect to database with direct option
2) preform query and get results
3) connection is lost to the server
4) preform another query that is unsuccessful. However, when I check the connected property of the connection before running, it says true. I have also tried to put code in the onsessionerror method but that does not get called every time the query->execute gets called.
What is the best way to deal with a connection that can go down?
1) connect to database with direct option
2) preform query and get results
3) connection is lost to the server
4) preform another query that is unsuccessful. However, when I check the connected property of the connection before running, it says true. I have also tried to put code in the onsessionerror method but that does not get called every time the query->execute gets called.
What is the best way to deal with a connection that can go down?