Recently formal system encountered many baffling questions timer suddenly do not run, nowhere to run business processes. Made people very collapse, today finally found the reason, there are a lot of pieces in the database deadlock. There are probably more than 100. (Devil knows what happened) and then quickly kill next. Here is the sql, record it. (Dba need permission)
----- query table lock process the SELECT sess.sid, sess.serial #, lo.oracle_username, lo.os_user_name, ao.object_name, lo.locked_mode from v $ locked_object LO, dba_objects AO, v $ sess the session the WHERE AO. = object_id lo.object_id and lo.session_id = sess.sid; ------ View lock table statement the SELECT b.sid oracleID, b.username Oracle user login name, b.serial #, SPID operating system ID, PADDR, SQL sql_text being executed, b.machine computer name of FROM v $ process a, v $ session b, v $ sqlarea c the WHERE a.addr = b.paddr AND b.sql_hash_value = c.hash_value -- and b.username = 'SMS' ----杀锁 alter system kill session 'sid,serial#';