Closing connection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
krzychu

Closing connection

Post by krzychu » Wed 13 Jul 2005 22:45

I'm testing OraDirect Mobile.
When I kill the session on Oracle server I can't close connection.
Calling Close() method throws exception ORA-01012.
So how I can close broken connection?

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

Post by Paul » Thu 14 Jul 2005 07:32

We cannot reproduce your problem. When we kill session using

Code: Select all

  OracleConnection.Open();
.....
 ALTER SYSTEM KILL SESSION '... , ...'
.....
 OracleConnection.Close();
OracleConnection raises error message and switches to OracleConnection.State=Closed. This is normal behaviour for processing of broken connection

Post Reply