locks
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: locks

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Posts
    36

    locks

    I have created a table lock(TM)situation on my DB and ran a script to identify the SID,lock mode, and username. I can easily kill one of the sessions with OEM but need the SQL syntax to do the same from SQL*PLUS linemode.

  2. #2
    Join Date
    May 2002
    Posts
    2,645
    select username, sid, serial# from v$session
    where sid > 6;

    alter system kill session 'sid,serial#';
    (where sid and serial# are from v$session query, and use single quotation marks around sid,serial#)

  3. #3
    Join Date
    Dec 2002
    Posts
    36
    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width