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: who locked table??

RE: who locked table??

From: Raghu Kota <raghukota_at_hotmail.com>
Date: Fri, 01 Jun 2001 10:48:58 -0700
Message-ID: <F001.00318375.20010601103537@fatcity.com>

Thankyou very much Bala!! for your time and help. I will change my script, yeah I want to know in the same script who locked it and get sid and serial# too. Thankyou all who responded.

>From: Kumanan Balasundaram <kumanan.balasundaram_at_qxl.com>
>To: "'ORACLE-L_at_fatcity.com'" <ORACLE-L_at_fatcity.com>
>CC: "'raghukota_at_hotmail.com'" <raghukota_at_hotmail.com>
>Subject: RE: who locked table??
>Date: Fri, 1 Jun 2001 17:41:41 +0100
>
>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 email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>postmaster_at_qxl.com
>
>This footnote also confirms that this email message has been swept by
>MIMEsweeper for the presence of computer viruses.
>
>www.mimesweeper.com
>**********************************************************************



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).
Received on Fri Jun 01 2001 - 12:48:58 CDT

Original text of this message

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