ENGINE_TOTAL , ENGINE两个表的数据量各有多少?用full outer join 会成生大量中间记录。

解决方案 »

  1.   

    查查有没有锁:column sess format a15
    select decode(request,0,'Holder:','Waiter:')||sid sess,id1,id2,lmode,request,type from v$lock
    where (id1,id2,type) in(select id1,id2,type from v$lock where request>0) order by id1,request;
    查出有holder的话,就可以找到锁的session的sid了
      

  2.   

    select * from v$mystatselect * from v$session_wait=sid;
      

  3.   

    select * from v$session_longops
    看看程序是否正在运行,
    另外看看 v$session_wait