![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. 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é ![]() |
#3
| |||
| |||
|
|
Some Oracle error messages for example, ORA-03114 not connected to ORACLE, are not root causes but rather the result of something else. A session might be disconnected for hundreds of reasons. |
#4
| |||
| |||
|
|
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. |
|
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é ![]() |
#5
| |||
| |||
|
|
"DA Morgan" <damorgan (AT) psoug (DOT) org> schrieb im Newsbeitrag news:1194616637.115847 (AT) bubbleator (DOT) drizzle.com... Some Oracle error messages for example, ORA-03114 not connected to ORACLE, are not root causes but rather the result of something else. A session might be disconnected for hundreds of reasons. Yes, I know that. I am not aiming at tracking down the reason here, I am aiming at testing the application code, that reacts to the occurrence of the event. For example the reaction could be to establish a new connection to the schema and continue as normal. |
#6
| |||
| |||
|
|
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. 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é ![]() |
#7
| |||
| |||
|
|
We are using MS Dev studio 2005/2003 and the standard OCI library. |
#8
| |||
| |||
|
|
"André Hartmann" <andre.hartmann (AT) hotmail (DOT) de> wrote in message news:47345e78$0$16669$9b4e6d93 (AT) newsspool3 (DOT) arcor-online.net... 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. 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é ![]() Raise application error , kill |
#9
| |||
| |||
|
|
Raise application error , kill You cannot raise that error. B. |
#10
| |||
| |||
|
|
Brian Tkatch wrote: Raise application error , kill You cannot raise that error. B. Actually you can using ORADEBUG but you would need to get Oracle support to tell how. |
![]() |
| Thread Tools | |
| Display Modes | |
| |