Check Connection loss ...

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 6
Joined: Fri 16 Nov 2007 10:00

Check Connection loss ...

Post by uhillig » Mon 17 Dec 2007 10:49


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

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

Best Regards,

Ulf Hillig

Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by 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.

Post Reply