oracle 檢視分散式事物
Solving locking problems in a XA environment (文件 ID 1248848.1)
connect / as sysdba
set pagesize 1000
prompt +++ In memory transaction +++
select /*+ ORDERED */
'----------------------------------------'||'
Curent Time : '|| substr(to_char(sysdate,' HH24.MI.SS'),1,22) ||'
'||'TX start_time: '||t.KTCXBSTM||'
'||'FORMATID: '||g.K2GTIFMT ||'
'||'GTXID: '||g.K2GTITID_EXT ||'
'||'Branch: '||g.K2GTIBID ||'
Local_Tran_Id ='||substr(t.KXIDUSN||'.'||t.kXIDSLT||'.'||t.kXIDSQN,1,15)||'
'||'KTUXESTA='|| x.KTUXESTA ||'
'||'KTUXEDFL='|| x.KTUXECFL ||'
Lock_Info: ID1: ' || ((t.kXIDUSN*64*1024)+ t.kXIDSLT)
||' ID2: '|| t.kXIDSQN
XA_transaction_INFO
from x$k2gte g, x$ktcxb t, x$ktuxe x
where g.K2GTDXCB =t.ktcxbxba and
x.KTUXEUSN = t.KXIDUSN(+) and
x.KTUXESLT = t.kXIDSLT(+) and
x.KTUXESQN =t.kXIDSQN(+);
prompt +++ Timed out, prepared XA transactions +++
select global_tran_fmt, global_foreign_id, branch_id,state,
tran.local_tran_id
from sys.pending_trans$ tran, sys.pending_sessions$ sess
where tran.local_tran_id = sess.local_tran_id
and tran.state = 'prepared'
and dbms_utility.is_bit_set(tran.session_vector, sess.session_id)=1;
How to identify a session started by a remote distributed transaction? (文件 ID 332326.1)
The following query can be used to identify the session started by a distributed transaction
select username, osuser, status, sid, serial#, machine, process, terminal, program
from v$sessionwhere saddr in (select k2gtdses from sys.x$k2gte );
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29446986/viewspace-1379029/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 分散式事物分散式
- 分開分表 分散式事物分散式
- 檢視、修改oracle字符集,檢視oracle版本Oracle
- Oracle檢視:常用動態效能檢視Oracle
- oracle效能檢視Oracle
- oracle檢視大全Oracle
- 管理oracle檢視Oracle
- oracle物化檢視Oracle
- oracle分散式事務Oracle分散式
- SQLServer2005分散式分割槽檢視分解資料表SQLServer分散式
- 第五篇 : MySQL 之 檢視、觸發器、儲存過程、函式、事物與資料庫鎖MySql觸發器儲存過程函式資料庫
- Oracle自定義函式檢視2個字串是否匹配Oracle函式字串
- Oracle OCP(24):檢視Oracle
- Oracle EMGC檢視埠OracleGC
- Oracle dba 常用檢視Oracle
- Oracle檢視TOP SQLOracleSQL
- oracle 建立物化檢視Oracle
- oracle檢視基本操作Oracle
- Oracle AWR 配置檢視Oracle
- Oracle檢視引數Oracle
- Oracle日常效能檢視Oracle
- Oracle ASM檢視資訊OracleASM
- oracle檢視詳解Oracle
- Oracle 物化檢視建立Oracle
- oracle常用檢視2Oracle
- oracle--07檢視Oracle
- ORACLE 檢視介紹Oracle
- 簡介oracle檢視Oracle
- Oracle普通檢視和物化檢視的區別Oracle
- 【檢視】oracle 資料字典檢視之 DICT / DICTIONARYOracle
- 【檢視】oracle 資料字典檢視之 “小”檢視 CAT, TAB, SEQ, SYN ...Oracle
- django 的類檢視和函式檢視-雜談Django函式
- Django - 檢視層 - 檢視函式及快捷方式Django函式
- 【6】Django檢視函式Django函式
- Oracle 物化檢視 詳細錯誤描述 檢視方法Oracle
- 持續更新,檢視dump oracle資料塊檢視Oracle
- Oracle物化檢視詳解Oracle
- oracle檢視可以update嗎Oracle