Re: after network drop i get ora-03114 not connected to oracle



ok.. ill try.

odp.net only supports .net 1.0. can i use that with .net 2.0/3.0
application ?


"Miha Markic [MVP C#]" wrote:

Hi Geir,

I guess this is a connection pool feature. Try clearing connection pool and
re-create connection when this happens (you would have to recreate it
anyway).
Both SqlConnection and OracleConnection have static ClearPool method while
OleDbConnection seems missing it (try with ReleaseObjectPool instead).
Why don't you use Oracle managed provider in first place?

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Geir Sanne" <GeirSanne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A9029AAB-7132-46BD-9666-B28981121D08@xxxxxxxxxxxxxxxx
hi!!!

im calling a stored procedure in oracle every time i get a message on a
serialport.

using (OleDbConnection conn = new
OleDbConnection(connectionString))
{
OleDbCommand cmd = new OleDbCommand(".....", conn);
conn.Open();
cmd.CommandTimeout = 10;
cmd.ExecuteNonQuery();
}

this works fine and when network drops/fails i get a timeout.
the problem occurs when the network is back up.
the conn.open() runs fine, but when cmd.ExecuteNonQuery(); i get ora-03114
not connected to oracle. this error i get until i restart my program.

is this a ado.net problem or a oracle problem ?


.



Relevant Pages

  • Re: after network drop i get ora-03114 not connected to oracle
    ... Try clearing connection pool and re-create connection when this happens. ... Why don't you use Oracle managed provider in first place? ... this works fine and when network drops/fails i get a timeout. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: after network drop i get ora-03114 not connected to oracle
    ... At least you have MS' Oracle managed provider for .net 2.0 out of the box. ... I guess this is a connection pool feature. ... > this works fine and when network drops/fails i get a timeout. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection Pooling - tracking users
    ... end-user for connections made through a connection pool where all the ... sessions use the same Oracle username and show as the OS user of the ... Oracle by the application. ...
    (comp.databases.oracle.misc)
  • ODP .Net Connection Pool Problem on Web Application
    ... I am a .Net developer of a Large Online Retailling Company. ... like to have your help on a Connection Pool issue. ... Oracle Database 10g. ... it may hit a long query in the database. ...
    (microsoft.public.dotnet.framework.aspnet)
  • ODP .Net Connection Pool Problem on Web Application
    ... I am a .Net developer of a Large Online Retailling Company. ... like to have your help on a Connection Pool issue. ... Oracle Database 10g. ... it may hit a long query in the database. ...
    (microsoft.public.dotnet.framework.adonet)