dbTalk Databases Forums  

best way to simulate a lost connection?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss best way to simulate a lost connection? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mh@pixar.com
 
Posts: n/a

Default best way to simulate a lost connection? - 12-22-2008 , 07:04 PM






This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios

Reply With Quote
  #2  
Old   
Michel Cadot
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 01:27 AM







<mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
Quote:
This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Unplug the cable.

Regards
Michel




Reply With Quote
  #3  
Old   
Michel Cadot
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 01:27 AM




<mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
Quote:
This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Unplug the cable.

Regards
Michel




Reply With Quote
  #4  
Old   
Michel Cadot
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 01:27 AM




<mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
Quote:
This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Unplug the cable.

Regards
Michel




Reply With Quote
  #5  
Old   
Michel Cadot
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 01:27 AM




<mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
Quote:
This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Unplug the cable.

Regards
Michel




Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 11:39 AM



Michel Cadot wrote:
Quote:
mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
| This for RAC 10gR2.
|
| I would like to test my client-side application code that deals
| with catching and reporting a lost or broken connection to
| the database.
|
| What's the best way to simulate a connection failure?
| ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
| Is there an equivalent command that doesn't need to know
| the RAC node?
|
| Any pointers to other testing considerations appreciated.
|
| Many TIA!
| Mark
|
| --
| Mark Harrison
| Pixar Animation Studios

Unplug the cable.

Regards
Michel
Or flip the switch to off on a router or hub.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #7  
Old   
DA Morgan
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 11:39 AM



Michel Cadot wrote:
Quote:
mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
| This for RAC 10gR2.
|
| I would like to test my client-side application code that deals
| with catching and reporting a lost or broken connection to
| the database.
|
| What's the best way to simulate a connection failure?
| ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
| Is there an equivalent command that doesn't need to know
| the RAC node?
|
| Any pointers to other testing considerations appreciated.
|
| Many TIA!
| Mark
|
| --
| Mark Harrison
| Pixar Animation Studios

Unplug the cable.

Regards
Michel
Or flip the switch to off on a router or hub.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 11:39 AM



Michel Cadot wrote:
Quote:
mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
| This for RAC 10gR2.
|
| I would like to test my client-side application code that deals
| with catching and reporting a lost or broken connection to
| the database.
|
| What's the best way to simulate a connection failure?
| ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
| Is there an equivalent command that doesn't need to know
| the RAC node?
|
| Any pointers to other testing considerations appreciated.
|
| Many TIA!
| Mark
|
| --
| Mark Harrison
| Pixar Animation Studios

Unplug the cable.

Regards
Michel
Or flip the switch to off on a router or hub.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
DA Morgan
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 12-23-2008 , 11:39 AM



Michel Cadot wrote:
Quote:
mh (AT) pixar (DOT) com> a écrit dans le message de news: bOW3l.7251$pr6.220 (AT) flpi149 (DOT) ffdc.sbc.com...
| This for RAC 10gR2.
|
| I would like to test my client-side application code that deals
| with catching and reporting a lost or broken connection to
| the database.
|
| What's the best way to simulate a connection failure?
| ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
| Is there an equivalent command that doesn't need to know
| the RAC node?
|
| Any pointers to other testing considerations appreciated.
|
| Many TIA!
| Mark
|
| --
| Mark Harrison
| Pixar Animation Studios

Unplug the cable.

Regards
Michel
Or flip the switch to off on a router or hub.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #10  
Old   
S R
 
Posts: n/a

Default Re: best way to simulate a lost connection? - 01-15-2009 , 04:47 PM



mh (AT) pixar (DOT) com wrote:
Quote:
This for RAC 10gR2.

I would like to test my client-side application code that deals
with catching and reporting a lost or broken connection to
the database.

What's the best way to simulate a connection failure?
ALTER SYSTEM KILL SESSION '$SID,$SERIAL#' via another process?
Is there an equivalent command that doesn't need to know
the RAC node?

Any pointers to other testing considerations appreciated.

Many TIA!
Mark

Looking at it from the other side, the worst problems I think to have
land on anyone's desk are to do with investigating connectivity issues.
Somehow there is never an easy answer. So, looking at how you might test
for these you might want to look at Oracle's metaLink site, search for
"connectivity issues" or "Lost contact to oracle" and you should find
your way to some sort of trouble-shooting guide which you might possibly
be able to use to deliberately break your connectivity (without
dismantling your organisation network) so you can do your tests. Besides
whenever I've seen these sort of issues, it seems to be limited to
Oracle/SQL*Net, i.e. there'll be a particular application getting errors
but telnet/ssh sessions are fine, so pulling a cable out or switching
off the router might not be representative of what you might actually
face (one day), and what you appear to want to test.

As an aside, whilst killing the session might test one sort of "lost"
connection scenario, the ones you probably want to test are more
network/TCP/RAC related, which are different I think from a straight
forward killed session. In other words, I think when you actively kill a
session Oracle goes through a certain set of internal procedures to
ensure the kill is clean, whereas a sudden connection loss (as with a
network loss) may be handled differently.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.