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 <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>CC: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>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:[EMAIL PROTECTED]]
> > 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: [EMAIL PROTECTED]
> >
> > 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: [EMAIL PROTECTED] (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
>[EMAIL PROTECTED]
>
>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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to