zoukankan      html  css  js  c++  java
  • 给表解锁的方法

    select * from table for update 
    select * from all_tables where table_name like 'table'

    select t2.username,
           t2.sid,
           t2.serial#,
           t3.object_name,
           t2.OSUSER,
           t2.MACHINE,
           t2.PROGRAM,
           t2.LOGON_TIME,
           t2.COMMAND,
           t2.LOCKWAIT,
           t2.SADDR,
           t2.PADDR,
           t2.TADDR,
           t2.SQL_ADDRESS,
           t1.LOCKED_MODE
      from v$locked_object t1, v$session t2, dba_objects t3
     where t1.session_id = t2.sid
       and t1.object_id = t3.object_id
     order by t2.logon_time;
     
    alter system kill session 'sid,seial#'; 
    alter system kill session '895,24930';

    SELECT s.USERNAME,s.SID,s.SERIAL#,s.LOGON_TIME FROM V$SESSION S,V$LOCKED_OBJECT L
           WHERE S.SID = L.SESSION_ID ;

  • 相关阅读:
    windows10输入法评价
    找水王
    团队项目第九天
    团队项目第八天
    团队项目第七天
    团队项目第六天
    团队项目第四天
    团队项目第五天
    团队项目第三天
    团队项目第二天
  • 原文地址:https://www.cnblogs.com/lirenhe/p/9774444.html
Copyright © 2011-2022 走看看