Page 1 of 1

Check Connection loss ...

Posted: Mon 17 Dec 2007 10:49
by uhillig
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

Posted: Mon 17 Dec 2007 11:21
by Paul
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.