Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Tools > Re: How to simu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 10 Topic 2663 of 2833
Post > Topic >>

Re: How to simulate ORA-03114 "Not connected to Oracle" in a test application?

by Brian Tkatch <N/A> Nov 9, 2007 at 09:12 AM

On Fri, 9 Nov 2007 14:19:51 +0100, André Hartmann
<andre.hartmann@[EMAIL PROTECTED]
> wrote:

>Hi there,
>  I would like to simulate ORA-03114 in a test application and I would
like to get some clues as to how to do this.

According to the do***entation:

ORA-03114 not connected to ORACLE

    Cause: A call to Oracle was attempted when no connection was
established. Usually this happens because a user-written program has
not logged on. It may happen if communication trouble causes a
disconnection. In addition, this message could occur when ALTER SYSTEM
KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the
IMMEDIATE qualifier because, in those cases, the client's connection
to the database is terminated without waiting for the client to issue
a request.

    Action: Try again. If the message recurs and the program is user
written, check the program.

B.




>
>  Since people are probably going to ask why I want to do that, here is
some background. An Oracle client application of ours that 
>connects to Oracle via OCI, sometimes faces loss of connection, for
example when a lap to goes into hibernation or the network is 
>unstable. We are speaking of a Windows 2000, XP, Vista client here. Now
we want to improve the error handling in our application in 
>this specific case. That is no problem because ORA-03114 can be detected
and appropriate measures can be taken (error message, 
>automatic reconnection, ...).
>
>  However for every issue that we fix in our applications we are writing
a test case which will test a particular behaviour or bug 
>fix. We do this in form of unit tests, so the unit test application will
simply run for a short or long span of time without user 
>interaction and protocol what happened, for example how many of the tests
succeeded and how many failed.
>
>  The loss of connection we dont know how to simulate. One way is to use
OEM and manually KILL the session at the appropriate point 
>of time and see what the application will do. But that requires user
interaction, so its not like you can run the tests over night 
>and just scan the protocol the next morning...
>
>  We are using MS Dev studio 2005/2003 and the standard OCI library.
Thanks very much in advance
>
>André
>:)
 




 10 Posts in Topic:
How to simulate ORA-03114 "Not connected to Oracle" in a test ap
=?iso-8859-15?Q?Andr=E9_H  2007-11-09 14:19:51 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
DA Morgan <damorgan@[E  2007-11-09 05:57:21 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
=?iso-8859-15?Q?Andr=E9_H  2007-11-09 15:04:10 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
DA Morgan <damorgan@[E  2007-11-09 06:25:59 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
Brian Tkatch <N/A>   2007-11-09 09:12:57 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
"Paul" <paul  2007-11-09 12:45:34 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
Brian Tkatch <N/A>   2007-11-09 13:50:01 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
DA Morgan <damorgan@[E  2007-11-09 11:49:21 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
Brian Tkatch <N/A>   2007-11-12 09:27:24 
Re: How to simulate ORA-03114 "Not connected to Oracle" in a tes
Frank van Bortel <fran  2007-11-09 19:30:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:08:01 CST 2008.