码迷,mamicode.com
首页 > 数据库 > 详细

Goldengate BATCHSQL

时间:2015-03-05 09:15:47      阅读:396      评论:0      收藏:0      [点我收藏+]

标签:batchsql   goldengate   performance   

如果生产环境的Goldengate不需要实时同步的话,那么我们可以使用BATCHSQL这个参数进行批量同步,从而提高goldengate的性能

Valid for Replicat
Use the BATCHSQL parameter to increase the performance of Replicat. BATCHSQL causes
Replicat to organize similar SQL statements into arrays and apply them at an accelerated
rate. In its normal mode, Replicat applies one SQL statement at a time.
BATCHSQL is valid for:
● Oracle
● DB2 LUW
● DB2 on z/OS
● Teradata
● SQL Server


How BATCHSQL works
In BATCHSQL mode, Replicat organizes similar SQL statements into batches within a
memory queue, and then it applies each batch in one database operation. A batch contains
SQL statements that affect the same table, operation type (insert, update, or delete), and
column list. For example, each of the following is a batch:
● Inserts to table A
● Inserts to table B
● Updates to table A
● Updates to table B
● Deletes from table A
● Deletes from table B


For Example:

GGSCI (zbdba2) 4> view param rep1

REPLICAT rep1
ASSUMETARGETDEFS
USERID ogg, PASSWORD ogg
discardfile ./dirdat/rep1_discard.txt,append,megabytes 5
DDL INCLUDE MAPPED
DDLOPTIONS REPORT
BATCHSQL
DBOPTIONS DEFERREFCONST
DBOPTIONS LOBWRITESIZE 102400
HANDLECOLLISIONS
DDLERROR DEFAULT DISCARD RETRYOP MAXRETRIES 5 RETRYDELAY 20
--grouptransops 1
--maxtransops 1
APPLYNOOPUPDATES
MAP zbdba.*,TARGET zbdba.*;


Goldengate BATCHSQL

标签:batchsql   goldengate   performance   

原文地址:http://blog.csdn.net/zbdba/article/details/44077673

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!