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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Locked rows - finding out

Re: Locked rows - finding out

From: Mario J Gonzalez <mjgonzal_at_ta.telecom.com.ar>
Date: Mon, 01 Jul 2002 11:08:48 -0800
Message-ID: <F001.0048D18C.20020701110848@fatcity.com>


Hi, Vladimir

You can made a join between the table in question and v$session:

select a.*
from table_xx a, v$session s
where

         dbms_rowid.ROWID_ROW_NUMBER(a.rowid)=s.ROW_WAIT_ROW# and dbms_rowid.ROWID_BLOCK_NUMBER(a.rowid)=s.ROW_WAIT_BLOCK# and dbms_rowid.ROWID_RELATIVE_FNO(a.rowid)=s.ROW_WAIT_FILE# and s.sid=&sid
;

Mario.

Por favor, responda a ORACLE-L_at_fatcity.com

Enviado por: root_at_fatcity.com

Destinatarios:     Multiple recipients of list ORACLE-L
       <ORACLE-L_at_fatcity.com>

CC:

Asunto: Locked rows - finding out Clasificación:

Hello listers

By quering V$LOCK or V$LOCKED_OBJECT I may find which tables are locked.

How do I see rowids of rows that are locked? And how do I see into what rollback segment is being used by transaction that placed locks on those rows?

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Vladimir Barac - posao
  INET: vladob_at_aster.si

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). http://www.telecom.com.ar -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mario J Gonzalez INET: mjgonzal_at_ta.telecom.com.ar Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Mon Jul 01 2002 - 14:08:48 CDT

Original text of this message

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