Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

best way to simulate a lost connection?

 
   Database Help (Home) -> Oracle RSS
Next:  question about testing jobs  
Author Message
mh

External


Since: Jan 09, 2008
Posts: 131



(Msg. 1) Posted: Mon Dec 22, 2008 8:26 pm
Post subject: best way to simulate a lost connection?
Archived from groups: comp>databases>oracle>misc (more info?)

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

 >> Stay informed about: best way to simulate a lost connection? 
Back to top
Login to vote
Michel Cadot1

External


Since: Dec 10, 2003
Posts: 57



(Msg. 2) Posted: Tue Dec 23, 2008 3:26 am
Post subject: Re: best way to simulate a lost connection? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

a écrit dans le message de bOW3l.7251$pr6.220@flpi149.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

 >> Stay informed about: best way to simulate a lost connection? 
Back to top
Login to vote
DA Morgan

External


Since: Dec 14, 2007
Posts: 757



(Msg. 3) Posted: Tue Dec 23, 2008 9:39 am
Post subject: Re: best way to simulate a lost connection? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michel Cadot wrote:
> a écrit dans le message de bOW3l.7251$pr6.220@flpi149.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.RemoveThis@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
 >> Stay informed about: best way to simulate a lost connection? 
Back to top
Login to vote
S R

External


Since: Jan 15, 2009
Posts: 2



(Msg. 4) Posted: Thu Jan 15, 2009 6:25 pm
Post subject: Re: best way to simulate a lost connection? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

mh.DeleteThis@pixar.com wrote:
> 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.
 >> Stay informed about: best way to simulate a lost connection? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
it happened, lost database and recovery catalog. starting .. - 10.2.0.2 EE, aix5L had a storm this weekend and power went out to the disk cabinet on our development machine. I was just informed by our sys admin that we might be having to recover from disk to get everything back. Luckily it is just our development....

oracle plsql and http post connection - Hi, Is there anyway to make an http connection to url from an stored procedure?. I need a oracle job, who have send xml information to a http web services. any idea? Thanks

Replacing a subselect with Collections - Hi all oracle users, I have a cursor which fetches a few thousand records. Inside it I have a subselect which is used for decoding one field. CURSOR snap_crs IS SELECT decode (snap.id, 1, (select code_ptr from anag_ptr where desc_ptr =..

how to refresh a sequence - How could I refresh a sequence in Oracle using an SQL statement? I've got the problem, that the current number of a sequence is less the highest index in a table, where I want to use the sequence. Regards, Robert

Using NonUnique Index to Enforce Uniqueness - Oracle manual describes using non unique index to enforce unique constraint so that the index will not be dropped with constraint is diabled. But I dont understand why non unique index can enforce uniqueness?
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]