Script to show Active Distributed Transactions
REM distri.sql column origin format a13 column GTXID format a35 column LSESSION format a10 column s format a1 column waiting format a15 Select /*+ ORDERED */substr(s.ksusemnm,1,10)||'-'|| substr(s.ksusepid,1,10) "ORIGIN",substr(g.K2GTITID_ORA,1,35) "GTXID",substr(s.indx,1,4)||'.'|| substr(s.ksuseser,1,5) "LSESSION" ,substr(decode(bitand(ksuseidl,11),1,'ACTIVE',0, decode(bitand(ksuseflg,4096),0,'INACTIVE','CACHED'),2,'SNIPED',3,'SNIPED', 'KILLED'),1,1) "S",substr(event,1,10) "WAITING" from x$k2gte g, x$ktcxb t, x$ksuse s, v$session_wait w -- where g.K2GTeXCB =t.ktcxbxba <= use this if running in Oracle7 where g.K2GTDXCB =t.ktcxbxba -- comment out if running in Oracle8 or laterand g.K2GTDSES=t.ktcxbsesand s.addr=g.K2GTDSESand w.sid=s.indx;REM distri_details.sql set headin off select /*+ ORDERED */ '----------------------------------------'||' Curent Time : '|| substr(to_char(sysdate,'dd-Mon-YYYY HH24.MI.SS'),1,22) ||' '||'GTXID='||substr(g.K2GTITID_EXT,1,10) ||' '||'Ascii GTXID='||g.K2GTITID_ORA ||' '||'Branch= '||g.K2GTIBID ||' Client Process ID is '|| substr(s.ksusepid,1,10)||' running in machine : '||substr(s.ksusemnm,1,80)||'Local TX Id ='||substr(t.KXIDUSN||'.'||t.kXIDSLT||'.'||t.kXIDSQN,1,10) ||'Local Session SID.SERIAL ='||substr(s.indx,1,4)||'.'|| s.ksuseser ||'is : '||decode(bitand(ksuseidl,11),1,'ACTIVE',0,decode(bitand(ksuseflg,4096),0,'INACTIVE','CACHED'),2,'SNIPED',3,'SNIPED', 'KILLED') ||' and '|| substr(STATE,1,9)||' since '|| to_char(SECONDS_IN_WAIT,'9999')||' seconds' ||'Wait Event is :'||''|| substr(event,1,30)||' '||p1text||'='||p1||','||p2text||'='||p2||','||p3text||'='||p3 ||'Waited '||to_char(SEQ#,'99999')||' times '||'Server for this session:' ||decode(s.ksspatyp,1,'Dedicated Server',2,'Shared Server',3,'PSE','None') "Server" from x$k2gte g, x$ktcxb t, x$ksuse s, v$session_wait w -- where g.K2GTeXCB =t.ktcxbxba <= use this if running Oracle7 where g.K2GTDXCB =t.ktcxbxba -- comment out if running Oracle8 or laterand g.K2GTDSES=t.ktcxbsesand s.addr=g.K2GTDSESand w.sid=s.indx; set headin on -- end script
Script to show Active Distributed Transactions相关推荐
- Distributed transactions with multiple databases, Spring Boot, Spring Data JPA and Atomikos
2019独角兽企业重金招聘Python工程师标准>>> A couple of weeks ago I was evaluating the possibility to use S ...
- GRIT: Consistent Distributed Transactions across Polyglot Microservices with Multiple Databases
GRIT 基于多个数据库的聚合微服务的一致性分布式事务 GRIT: Consistent Distributed Transactions across Polyglot Microservices ...
- 分布式事务(Distributed Transactions)概述
分布式事务是分布式领域必须要面对的问题,同时也是衡量一个分布式系统成熟度的重要指标.那么什么是分布式事务,哪些场景会涉及到分布式事务,如何实现分布式事务?本文将重点讨论以上问题. 分布式事务定义 分布 ...
- Oracle数据库实用脚本
以下是Maclean.Liu所编写或收集的Oracle数据库实用脚本的列表,在这里分享一下: Script:收集Enterprise Manager Grid Control/Agent/Databa ...
- Spring JTA multiple resource transactions in Tomcat with Atomikos example--转载
原文地址:http://www.javacodegeeks.com/2013/07/spring-jta-multiple-resource-transactions-in-tomcat-with-a ...
- mit 6.824 Distributed System
文章目录 LEC1 Introduction LEC2 RPC and Threads LEC3 GFS LEC4 Primary-Backup Replication LEC5 Go, Thread ...
- active set method(激活集方法)
在优化问题的求解中,如果待优化(最大最小)的目标函数,其解集受限于一组约束条件, g1(x)≥0,-,gk(x)≥0 g_1(x)\geq 0,\ldots, g_k(x)\geq 0 约束条件定义着 ...
- 分布式系统(Distributed System)资料
分布式系统(Distributed System)资料 <Reconfigurable Distributed Storage for Dynamic Networks> 介绍:这是一篇介 ...
- 2000个软件开发领域的高频特殊词及精选例句
1101.单词 uuids 的匹配文本: For example, when accessing /_uuids, you get a list of UUIDs from the system. G ...
- 【体系结构】有关Oracle SCN知识点的整理--补充内容
[体系结构]有关Oracle SCN知识点的整理--补充内容 小麦苗自己整理的内容参考:[体系结构]有关Oracle SCN知识点的整理 http://blog.itpub.net/26736162 ...
最新文章
- js正则表达式的使用详解
- 算法设计与分析——递归与分治——归并排序
- 改善深层神经网络:超参数调整、正则化以及优化——2.1 Mini-batch梯度下降
- scala基础之泛型详解
- 没在今天以前就此沉沦下去纯属侥幸
- java中读取logback日志文件_java 中使用logback日志,并实现日志按天分类压缩保存。...
- python scheduler cron_Python轻量级定时任务调度框架“APScheduler”
- Windows学习总结(11)——Windows批处理命令编写代码及小程序简介
- FLUSH TABLES WITH READ LOCK有多快
- history指令显示日期时间
- python多任务之——线程简述
- python自动化_Python 接口自动化
- Node.js入门(含NVM、NPM、NVM的安装)-(转载)
- pytorch入门——构建神经网络
- RT-Thread学习笔记|74HC595驱动数码管详解
- re2020 bt2020_2020年最好的4个在线学习平台
- 编写谷歌浏览器插件入门
- 计算机专业硕士在职联考,计算机在职研究生可以选择一月联考的方式吗
- Docker容器化开发
- word如何一键全选_word文档怎么全选所有内容
热门文章
- python将txt读入矩阵_python读入txt数据,并转成矩阵
- android dialog一个按钮,7种形式的Android Dialog使用实例
- 蓝桥杯2019年第十届C/C++省赛C组第一题-求和
- 瑞芯微开发工具怎么刷机
- linux驱动中使用定时器的设置
- js禁止退出当前页面
- D - Send a Table (UVA - 10820)
- 深入理解 RecyclerView 系列之:ItemDecoration
- net.sf.json.JSONException: #39;object#39; is an array. Use JSONArray instead
- Snabbt.js – 极简的 JavaScript 动画库