Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: who locked table??
I created this statement to get all important details - use SID and Serial#
to kill.
Kumanan
SELECT dbo.OWNER||'.'||dbo.OBJECT_NAME Object, dbo.OBJECT_TYPE, vs.SID,
vs.SERIAL#, p.SPID OS_PROCESS, lo.PROCESS, lo.ORACLE_USERNAME,
lo.OS_USER_NAME, vs.MACHINE, vs.PROGRAM, vs.SQL_ADDRESS
FROM v$locked_object lo, dba_objects dbo, v$session vs, v$process p
where lo.object_id = dbo.object_id
and lo.SESSION_ID = vs.sid
and vs.PADDR = p.ADDR
order by sid
> -----Original Message-----
> From: Raghu Kota [SMTP:raghukota_at_hotmail.com]
> Sent: 01 June 2001 15:55
> To: Multiple recipients of list ORACLE-L
> Subject: who locked table??
>
> Hi Friends
>
> Does any body have script to see who locked the table and subsequently If
> needy to kill the user?? I had it but I want to update mine.
>
> TIA
> Raghu.
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Raghu Kota
> INET: raghukota_at_hotmail.com
>
> 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).
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Kumanan Balasundaram INET: kumanan.balasundaram_at_qxl.com 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 Fri Jun 01 2001 - 11:44:50 CDT
![]() |
![]() |