dbTalk Databases Forums  

looking for blocking sql statement(s)

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


Discuss looking for blocking sql statement(s) in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #31  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-15-2008 , 06:41 AM






Mark D Powell schrieb am 13.02.2008 in
<5a8fb550-638c-4256-abbe-cec2082c84b1 (AT) v17g2000hsa (DOT) googlegroups.com>:

Quote:
You should be able to find a longer version of the SQL or the full sql
by joining v$open_cursor to v$sqlarea (1000 bytes) or v$sqltext (multi-
rows per SQL) or one of the other v$sql% views if it better suits your
purpose.
thank you very much, sometimes it is difficult too find a tree in a wood
...

Quote:
HTH -- Mark D Powell --
Yes, it did
Andreas Mosmann


--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #32  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-15-2008 , 06:41 AM






Mark D Powell schrieb am 13.02.2008 in
<5a8fb550-638c-4256-abbe-cec2082c84b1 (AT) v17g2000hsa (DOT) googlegroups.com>:

Quote:
You should be able to find a longer version of the SQL or the full sql
by joining v$open_cursor to v$sqlarea (1000 bytes) or v$sqltext (multi-
rows per SQL) or one of the other v$sql% views if it better suits your
purpose.
thank you very much, sometimes it is difficult too find a tree in a wood
...

Quote:
HTH -- Mark D Powell --
Yes, it did
Andreas Mosmann


--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #33  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-15-2008 , 06:41 AM



Mark D Powell schrieb am 13.02.2008 in
<5a8fb550-638c-4256-abbe-cec2082c84b1 (AT) v17g2000hsa (DOT) googlegroups.com>:

Quote:
You should be able to find a longer version of the SQL or the full sql
by joining v$open_cursor to v$sqlarea (1000 bytes) or v$sqltext (multi-
rows per SQL) or one of the other v$sql% views if it better suits your
purpose.
thank you very much, sometimes it is difficult too find a tree in a wood
...

Quote:
HTH -- Mark D Powell --
Yes, it did
Andreas Mosmann


--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #34  
Old   
Rainer Klomps
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-17-2008 , 08:58 AM




"Andreas Mosmann" <mosmann (AT) expires-29-02-2008 (DOT) news-group.org> schrieb im
Newsbeitrag news:1202818505.71 (AT) user (DOT) newsoffice.de...
Quote:
Hi ng,

we got a software that often causes any locks/deadlocks.
We look for the reason for this and I found V$LOCK and V$SQL.
The problem is, that I can find out SQL of the waiting sessions, but I can
not find out the SQL statement(s) that caused the problem.
Do you have any idea?

Is it f.e. possible to log all sql statements used at the database (except
of course the logging statement)?

Hope anyone can help

Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
What about ?/rdbms/admin/utllockt ?



Reply With Quote
  #35  
Old   
Rainer Klomps
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-17-2008 , 08:58 AM




"Andreas Mosmann" <mosmann (AT) expires-29-02-2008 (DOT) news-group.org> schrieb im
Newsbeitrag news:1202818505.71 (AT) user (DOT) newsoffice.de...
Quote:
Hi ng,

we got a software that often causes any locks/deadlocks.
We look for the reason for this and I found V$LOCK and V$SQL.
The problem is, that I can find out SQL of the waiting sessions, but I can
not find out the SQL statement(s) that caused the problem.
Do you have any idea?

Is it f.e. possible to log all sql statements used at the database (except
of course the logging statement)?

Hope anyone can help

Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
What about ?/rdbms/admin/utllockt ?



Reply With Quote
  #36  
Old   
Rainer Klomps
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-17-2008 , 08:58 AM




"Andreas Mosmann" <mosmann (AT) expires-29-02-2008 (DOT) news-group.org> schrieb im
Newsbeitrag news:1202818505.71 (AT) user (DOT) newsoffice.de...
Quote:
Hi ng,

we got a software that often causes any locks/deadlocks.
We look for the reason for this and I found V$LOCK and V$SQL.
The problem is, that I can find out SQL of the waiting sessions, but I can
not find out the SQL statement(s) that caused the problem.
Do you have any idea?

Is it f.e. possible to log all sql statements used at the database (except
of course the logging statement)?

Hope anyone can help

Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
What about ?/rdbms/admin/utllockt ?



Reply With Quote
  #37  
Old   
Rainer Klomps
 
Posts: n/a

Default Re: looking for blocking sql statement(s) - 02-17-2008 , 08:58 AM




"Andreas Mosmann" <mosmann (AT) expires-29-02-2008 (DOT) news-group.org> schrieb im
Newsbeitrag news:1202818505.71 (AT) user (DOT) newsoffice.de...
Quote:
Hi ng,

we got a software that often causes any locks/deadlocks.
We look for the reason for this and I found V$LOCK and V$SQL.
The problem is, that I can find out SQL of the waiting sessions, but I can
not find out the SQL statement(s) that caused the problem.
Do you have any idea?

Is it f.e. possible to log all sql statements used at the database (except
of course the logging statement)?

Hope anyone can help

Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
What about ?/rdbms/admin/utllockt ?



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.