ice world

          There is nothing too difficult if you put your heart into it.
          posts - 104, comments - 103, trackbacks - 0, articles - 0
          第一步,查詢鎖表信息
          --查詢被鎖住的數據庫對象
          select object_name, machine, s.sid, s.serial#
           
          from v$locked_object l, dba_objects o, v$session s
          where l.object_id = o.object_id
            
          and l.session_id = s.sid;


          第二步,殺死數據庫會話
          --殺死數據庫會話
          alter system kill session '207,707'; -- 207為SID, 707為SERIAL#


          第三步,如果第二步無法殺死會話,報ORA-00031,那么只能殺死UNIX/LINUX系統進程了
          --查詢當前操作的系統進程ID
          select spid, osuser, s.program
           
          from v$session s, v$process p
          where s.paddr = p.addr
            
          and s.sid = 207; -- 207為SID


          第四步,根據查詢到的系統PID,殺掉進程
          kill -9 24664 // 24664為UNIX/LINUX系統進程ID



          主站蜘蛛池模板: 夹江县| 随州市| 麻城市| 包头市| 年辖:市辖区| 庆元县| 通城县| 清涧县| 青冈县| 嘉荫县| 偃师市| 通许县| 浦县| 新民市| 贵溪市| 隆尧县| 北宁市| 额敏县| 泽库县| 阿荣旗| 璧山县| 望江县| 辽源市| 安西县| 防城港市| 正镶白旗| 大厂| 封丘县| 灵台县| 周宁县| 库车县| 垦利县| 元阳县| 呼伦贝尔市| 鄱阳县| 夏邑县| 西平县| 东港市| 鸡东县| 阳谷县| 紫金县|