查看长事务
GGSCI > send extract <抽取进程名> , showtrans [thread n] [count n]
eg: 查看ext_1进程中节点1上最长的10个交易
ggsci > send extract ext_1, showtrans thread 1 count 10
数据库中查看该事物
<XID> 54.15.8694450
select e.sql_text, d.osuser,d.username,d.SID,d.SERIAL#
from gv$transaction c, gv$session d, gv$sqlarea e
where d.taddr = c.addr and e.address = d.prev_sql_addr
and c.xidusn = 63
and c.xidslot =45
and c.xidsqn = 9359156;
alter system kill session '5138,24';
跳过长事务
GGSCI > send extract <抽取进程名>, skiptrans <XID> thread <2>
强制认为该事物已提交
GGSCI > send extract <抽取进程名>, forcetrans <XID> thread <1>
SEND EXTRACT EXT_GDFW, FORCESTOP 强制停止进程
配置长事务告警
在抽取进程中添加 warnlongtrans 12h, checkintervals 10m
--每10分钟检查一次长事务,如果有超过12小时的长事务,则会在根目录下的ggserr.log里面加入一条告警信息
查看ggserr.log 命令行使用 VIEW GGSEVT
用通配符的情况下,排除复制的表
源端ext进程 tableexclude <schema>.<tablename>;
目标端rep进程 mapexclude schema.table
强制停止进程
SEND <进程名> FORCESTOP
info <进程名> showch --查看详细的关于checkpoint的信息
THREADOPTIONS PROCESSTHREADS EXCEPT 2 ---排除REDO 中thread 2的日志
THREADOPTIONS PROCESSTHREADS SELECT 1 ---选择REDO 中thread 1的日志
GGSCI > send extract <抽取进程名> , showtrans [thread n] [count n]
eg: 查看ext_1进程中节点1上最长的10个交易
ggsci > send extract ext_1, showtrans thread 1 count 10
数据库中查看该事物
<XID> 54.15.8694450
select e.sql_text, d.osuser,d.username,d.SID,d.SERIAL#
from gv$transaction c, gv$session d, gv$sqlarea e
where d.taddr = c.addr and e.address = d.prev_sql_addr
and c.xidusn = 63
and c.xidslot =45
and c.xidsqn = 9359156;
alter system kill session '5138,24';
跳过长事务
GGSCI > send extract <抽取进程名>, skiptrans <XID> thread <2>
强制认为该事物已提交
GGSCI > send extract <抽取进程名>, forcetrans <XID> thread <1>
SEND EXTRACT EXT_GDFW, FORCESTOP 强制停止进程
配置长事务告警
在抽取进程中添加 warnlongtrans 12h, checkintervals 10m
--每10分钟检查一次长事务,如果有超过12小时的长事务,则会在根目录下的ggserr.log里面加入一条告警信息
查看ggserr.log 命令行使用 VIEW GGSEVT
用通配符的情况下,排除复制的表
源端ext进程 tableexclude <schema>.<tablename>;
目标端rep进程 mapexclude schema.table
强制停止进程
SEND <进程名> FORCESTOP
info <进程名> showch --查看详细的关于checkpoint的信息
THREADOPTIONS PROCESSTHREADS EXCEPT 2 ---排除REDO 中thread 2的日志
THREADOPTIONS PROCESSTHREADS SELECT 1 ---选择REDO 中thread 1的日志
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28275505/viewspace-2148366/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28275505/viewspace-2148366/