Check Connection loss ...

Check Connection loss ...

Postby uhillig » Mon 17 Dec 2007 10:49

Hello,

in my project I should have to detect a database connection error. When this error is tracked, than i'll try to reconnect to the database. Is there a simple way to achieve this with the given set of classes in oradirect.net?

I found the method OracleUtils.IsFatalError(OracleException). What is this function for? Can i use it for tracking connection problems?

Best Regards,

Ulf Hillig
uhillig
 
Posts: 6
Joined: Fri 16 Nov 2007 10:00

Postby Paul » Mon 17 Dec 2007 11:21

Try to use OracleConnection.Error event to obtain the error information.
OracleUtils.IsFatalError is used to determine if you can use the current connection further without reopening after the error.
Paul
 
Posts: 725
Joined: Thu 28 Oct 2004 14:06


Return to dotConnect for Oracle