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

Thread: locks detection and resolving them..

  1. #1
    Join Date
    Oct 2000
    Posts
    449

    hi dbas:
    how do i detect dead locks and how do i resolve it..
    what are the types of locks that are important and need immediate action..
    thanks

  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    a lock is different from a deadlock.
    to see deadlocks, just check your alert.log file, to resolve them it's quite hard since you need to look at your queries to know if you make a SELECT .. FOR UPDATE or a statement that could lead to a deadlock ...

    for a lock, just look in v$lock, and join SID with v$session.sid, and v$session.paddr to v$process.addr(+), and you'll get everything about which object is locked, who locked it, and the lock mode (RS,RX,S,SRX,X)

  3. #3
    Join Date
    Oct 2000
    Posts
    449
    OK.. If the dead locks are hard to find.. and if I can see them in alert.log file, then how can i simulate this and resolve it ..
    Just want to get more hands on, before trying the same on situation.. thanks..

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    everything you ever wanted to know about deadlocks (and some things you didn't ) at:
    http://metalink.oracle.com/metalink/...T&p_id=62365.1
    Jeff Hunter

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