Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: ? regarding lock on rows

Re: ? regarding lock on rows

From: carlos_lotero <member33668_at_dbforums.com>
Date: Fri, 18 Jul 2003 20:24:06 +0000
Message-ID: <3127899.1058559846@dbforums.com>

Originally posted by Sricharan Saripalli
> 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
Received on Fri Jul 18 2003 - 15:24:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US