oracle数据库执行update操作一直执行(转圈)

1.查看是否锁表

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$SESSION SESS
WHERE AO.OBJECT_ID = LO.OBJECT_ID
  AND LO.SESSION_ID = SESS.SID;


2.杀死锁表的进程

ALTER system KILL session 'SID,serial#';

你可能感兴趣的:(oracle,oracle,数据库,dba)