dbTalk Databases Forums  

Re: ? regarding lock on rows

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


Discuss Re: ? regarding lock on rows in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
carlos_lotero
 
Posts: n/a

Default Re: ? regarding lock on rows - 07-18-2003 , 03:24 PM







Originally posted by Sricharan Saripalli
Quote:
Hi,

Is it possible to find out what rows of a table are locked by the
current session. I can get the object_id , from v$locked_objects
for the current user. but i am not sure how to check if a
particular row
is locked or not.

Thanks,
Charan.

Hello Charan,

When there is a session locked, you can check the view v$session for
the database session that is locked.
The field ROW_WAIT_FILE#, shows the identifier for the datafile
containing the row ID specified in ROW_WAIT_ROW#.
The field ROW_WAIT_BLOCK#, shows the Identifier for the block
containing the row ID specified in ROW_WAIT_ROW#.
The field ROW_WAIT_ROW#, show the row ID that is locked.
Those values must be turned to hexadecimal.
The string:
BBBBBBBB.RRRR.FFFF (Block.row.File) corresponds to rowid for the
particular row locked.

Bye,

Carlos
--
Posted via http://dbforums.com


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.