dba_2pc_pending如何确认这个表的数据是由那个sql或事务生成的? 想定位原因,但不知道从何下手,请大侠帮忙,多谢!

解决方案 »

  1.   

    另如何确认该事务涉及的session或相关操作?多谢!
      

  2.   

    用logmnr和日志文件,网上搜一下使用说明,很简单。
    如果数据库一直没有关闭的话可以看看v$sql试图(PARSING_SCHEMA_NAME、SERVICE等字段)
      

  3.   

    来源于:
    select  local_tran_id,
            nvl(global_oracle_id, global_tran_fmt||'.'||global_foreign_id),
            state, decode(status,'D','yes','no'), heuristic_dflt, tran_comment,
            fail_time, heuristic_time, reco_time,
            top_os_user, top_os_terminal, top_os_host, top_db_user, global_commit#
    from    sys.pending_trans$