469,626 Members | 883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

SOS! ORA-03114: not connected to ORACLE && MS's Bug??

ORA-03114: not connected to ORACLE && MS's Bug??

DataBase:Oracle 817
using OracleClient,net framework 1.1

I'm using ADO.Net in C# with Oracle 817.

and following is my public data access class.

using System.Data.OracleClient;
public class ComFun
static public IDataReader ComFun_ExeReader(string Sql)
OracleConnection Conn=new
OracleCommand Cmd=new OracleCommand();
Reader=Cmd.ExecuteReader(CommandBehavior.CloseConn ection);
return Reader;

static public DataSet ComFun_ExeDataset(string Sql)
OracleConnection Conn=new
OracleDataAdapter Ad=new OracleDataAdapter(Sql,Conn);
DataSet ds=new DataSet();
return ds;

static public Object ComFun_ExeScalar(string Sql)
OracleConnection Conn=new
OracleCommand Cmd=new OracleCommand();
Object Obj=Cmd.ExecuteScalar();
return Obj;
in other .cs files i always coding like this

string sql="select person_name,person_age from person";
IDataReader Reader=ComFun.ComFun_ExeReader(sql);
but sometimes returning the following exception "ORA-03114: not connected to
ORACLE". sometimes not.


I find a article


And find this one !!!!!!!!!!!!!!
Michael Bachar

I'm using ADO.Net in C# with Oracle9i Release
when loosing the connection with the Oracle database server the connections
doesn't recover and always returning the following exception even when the
connection has been restore:
"ORA-03114: not connected to ORACLE". I'm closing the connection properly in
that it will return to the connection pool. Here is an example code:

using(OracleConnection conn = new OracleConnection(connectionString))
using(OracleCommand cmd = new OracleCommand(sql, conn))
object obj = cmd.ExecuteScalar();

This should close the connection properly. In the MSDN it is mention that if
the connection pooler detect that the connection with the server has been
severed it will remove the connection from the connection pool. It appears
that this is not happening an I always get bad connections from the pool,
even after the connection with the database server has been restore. How can
I solve this? What is the proper way to recover from connection lost with
database server?

Angel Saenz-Badillos[MS] (VIP)!!!!!!!!!!!
I am sorry this one is my fault and it is a very bad
bug.!!!!!!!!!!!!!!!!!!!! The problem here
is that our pooler fails to understand that a 03114 exception means we
should not put the connection back in the pool. We have a QFE that fixes
this problem by discarding the connection in the following Oracle
exceptions. Please let me know if you know of any other exceptions that also
result in a connection no longer being valid.

oracle exceptions checked
case 18: // max sessions exceeded,
case 19: // max session licenses exceeded
case 24: // server is in single process mode
case 28: // session has been killed
case 436: // oracle isn't licensed
case 1012 //not logged on error
case 1033: // startup/shutdown in progress
case 1034: // oracle not available
case 1075: // currently logged on
case 3113: // end-of-file on communication channel
case 3114: // not connected to ORACLE
case 12154: // can't resolve service name
case 12xxx //any error starting with 12 thousand

To get the fix please contact PSS directly and request QFE 830173
???? Does It's MS's BUG?

And What should I Do?

Nov 16 '05 #1
0 5505

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Goofy | last post: by
2 posts views Thread by Jon | last post: by
31 posts views Thread by stéphane bard | last post: by
10 posts views Thread by B. Williams | last post: by
161 posts views Thread by Peter Olcott | last post: by
1 post views Thread by Frank Rizzo | last post: by
9 posts views Thread by deerchao | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.