ITPub博客

首页 > 数据库 > Oracle > ogg长交易查询及增加复制表

ogg长交易查询及增加复制表

原创 Oracle 作者:jelephant 时间:2014-04-17 10:59:57 0 删除 编辑

长交易查询

 

GGSCI (IBM_P740-3) 6> send ext_cen,showtrans

 

Sending SHOWTRANS request to EXTRACT EXT_CEN ...

 

 

Oldest redo log file necessary to restart Extract is:

 

Redo Log Sequence Number 18276, RBA 5046800

 

------------------------------------------------------------

XID:                  11.1.4682698

Items:                0        

Extract:              EXT_CEN   

Redo Thread:          1      

Start Time:           2014-04-17:10:14:15  

SCN:                  3200.2636817977 (13746532165177)  

Redo Seq:             18276

Redo RBA:             5054992             

Status:               Running

 

GGSCI (IBM_P740-3) 9> send ext_cen,showtrans

 

Sending SHOWTRANS request to EXTRACT EXT_CEN ...

No transactions found

 

Oldest redo log file necessary to restart Extract is:

 

Redo Log Sequence Number 18276, RBA 6169616.

 

虽然ogg可以使用命令跳过长交易,但强烈建议使用数据库中提交或回滚的办法处理长交易。

 

 

源端和目标端增加复制表

 

1、停止抽取进程,停止前需要验证日志是否完全应用

GGSCI (IBM_P740-3) 10> lag ext_cen

 

Sending GETLAG request to EXTRACT EXT_CEN ...

Last record lag: 2 seconds.

At EOF, no more records to process.

 

GGSCI (IBM_P740-3) 10>stop ext_cen

2、停止投递进程

GGSCI (IBM_P740-3) 12> lag PUMP_ACT

 

Sending GETLAG request to EXTRACT PUMP_ACT ...

Last record lag: 3 seconds.

At EOF, no more records to process.

 

GGSCI (IBM_P740-3) 10>stop PUMP_ACT

 

3、停止复制进程

GGSCI (IBM_P740-3) 3> lag REP_ACT

 

Sending GETLAG request to REPLICAT REP_ACT ...

Last record lag: 5 seconds.

At EOF, no more records to process.

 

GGSCI (IBM_P740-3) 3>stop REP_ACT

 

4、分别在源库及目标库中添加新的复制表scott.test

5、分别在抽取、投递、复制进程的参数文件中添加复制表scott.test

6、在抽取进程端添加表的附加日志

dblogin userid scott,password passwd

add trandata scott.test

(delete trandata scott.test)

 

7、启动抽取进程

8、启动投递进程

9、启动复制进程

 

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29337971/viewspace-1143829/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: ogg监控脚本
下一篇: ogg简单维护命令
请登录后发表评论 登录
全部评论

注册时间:2013-12-07

  • 博文量
    143
  • 访问量
    681873