dbTalk Databases Forums  

detecting long-running transactions?

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


Discuss detecting long-running transactions? in the comp.databases.oracle.misc forum.



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

Default detecting long-running transactions? - 05-15-2009 , 06:23 PM






Is it possible to detect long-running transactions?

We would like to automatically catch the cases where some
(for example) makes a change with Sql Developer, forgets
to commit, and then leaves for the evening.

tia!
Mark

--
Mark Harrison
Pixar Animation Studios

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

Default Re: detecting long-running transactions? - 05-16-2009 , 01:40 AM







<mh (AT) pixar (DOT) com> a écrit dans le message de news: UPmPl.16668$pr6.3562 (AT) flpi149 (DOT) ffdc.sbc.com...
Quote:
Is it possible to detect long-running transactions?

We would like to automatically catch the cases where some
(for example) makes a change with Sql Developer, forgets
to commit, and then leaves for the evening.

tia!
Mark

--
Mark Harrison
Pixar Animation Studios
v$transaction.start_time

Regards
Michel




Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: detecting long-running transactions? - 05-18-2009 , 08:27 AM



On May 16, 2:40*am, "Michel Cadot" <micadot{at}altern{dot}org> wrote:
Quote:
m... (AT) pixar (DOT) com> a écrit dans le message de news: UPmPl.16668$pr6.3... (AT) flpi149 (DOT) ffdc.sbc.com...
| Is it possible to detect long-running transactions?
|
| We would like to automatically catch the cases where some
| (for example) makes a change with Sql Developer, forgets
| to commit, and then leaves for the evening.
|
| tia!
| Mark
|
| --
| Mark Harrison
| Pixar Animation Studios

v$transaction.start_time

Regards
Michel
Besides sessions holding locks visible in v$transaction you may also
want to consider killing sessions that are inactive for too long a
period of time. See v$session.last_call_et > n and status =
'INACTIVE'.

HTH -- Mark D Powell --



Reply With Quote
  #4  
Old   
joel garry
 
Posts: n/a

Default Re: detecting long-running transactions? - 05-18-2009 , 12:22 PM



On May 15, 4:23*pm, m... (AT) pixar (DOT) com wrote:
Quote:
Is it possible to detect long-running transactions?

We would like to automatically catch the cases where some
(for example) makes a change with Sql Developer, forgets
to commit, and then leaves for the evening.

tia!
Mark

--
Mark Harrison
Pixar Animation Studios
Actually, I've seen fairly common situations where they don't forget
anything, but simply remaining connected results in ORA-1555 errors
for other people. So I just keep a log of who's on when no one should
be (OS based, since there are non-Oracle things), and kill 'em all.
Of course, I actually have a time when no one should be, and I have to
have an exception procedure for some things that actually do take way
too long, so I consider this kind of thing site-dependent, with Mark
Powell's answer perhaps the better. Maybe combined with Michel's,
since I do see a few runaways. Generalizing is difficult enough, I've
left it at "you die unless you tell me why I shouldn't kill you." My
own stuff excepted, of course :-)

jg
--
@home.com is bogus.
http://www.techflash.com/microsoft/J... gic_wand.html


Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: detecting long-running transactions? - 05-22-2009 , 03:50 AM



mh (AT) pixar (DOT) com wrote:
Quote:
Is it possible to detect long-running transactions?

We would like to automatically catch the cases where some
(for example) makes a change with Sql Developer, forgets
to commit, and then leaves for the evening.

tia!
Mark

"forgets to commit" would not be a long running transaction.
That would be an inactive session (possibly with outstanding locks)
--

Regards,
Frank van Bortel


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.