Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

28

积分

0

好友

2

主题
1#
发表于 2013-5-27 15:56:57 | 查看: 3050| 回复: 1
目前有个需求,是希望把gg的复制延时控制在20s之内。也就是说,同一条记录在目标端提交的时间减去这条记录在源端提交的时间,要小于20秒。
观察了几天,大概会有零星的几条记录,复制延时在30秒左右。
因为源端的db压力比较小,每天不超过10个归档(每个512M)。
这种情况下,不知道源端是否有相关的参数,可以调整抓取进程的频率或是每次抓取日志的大小呢?
请教各位了,谢谢。

ggs.txt

3.06 KB, 下载次数: 342

2#
发表于 2013-5-29 10:13:21
另外关于GROUPTRANSOPS和MAXTRANSOPS这两个参数,文档里有这么一段

if end of transaction OR num of operations >= maxtransops then

if num of operations >= grouptransops then

COMMIT transaction.

Let us look at several examples:

1、Grouptransops = 100, maxtransops = 1

Using the above example, replicat commits the transaction at the same point (ie 25+50+60).

2、Grouptransops = 1, maxtransops = 1

Using the above example, replicat commits the transaction at every operation.

3、Grouptransops = 10, maxtransops = 10

Using the above example, replicat commits the transaction at every 10th operation.


我的理解是,当源端的操作如下时:
25 operations for transaction 1

50 operations for transaction 2

60 operations for transaction 3

对应上面三种配置:目标端应该是
1、25提交一次,50提交一次,60提交一次。
2、每条提交一次。
3、每10条提交一次。
不知道这个理解是否正确,请指教。

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-5-7 00:23 , Processed in 0.048560 second(s), 23 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569