Bootstrap

oracle 更新不了行数据解决方法

  1. 登陆oracle服务器
  2. su - oracle
  3. sqlplus / as sysdba
  4. select l.session_id,o.owner,o.object_name from v$locked_object l,dba_objects o where l.object_id=o.object_id and o.owner = '数据库名' and o.OBJECT_NAME = '表名';
  5. SELECT sid, serial#, username, osuser FROM v$session where sid in(5187,6156);
  6. ALTER SYSTEM KILL SESSION '5187,63609';
  7. ALTER SYSTEM KILL SESSION '6156,46506';
    `
;