Goldengate BATCHSQL

如果生产环境的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.*;
时间: 2024-10-25 22:52:39

Goldengate BATCHSQL的相关文章

GoldenGate 性能优化方法

从根本上讲,OGG复制性能和要复制的表是否存在主键和唯一索引有很大关系,所以从应用系统开发商对表结构的规范更为有效.OGG调优通常采用拆分进行的方式,拆分方法如下所述. Extract拆分方法 1)        停止extract进程 2)        停止datapump.进程 GGSCI> INFO datapump_name EXTRACT    DPEF      Last Started 2011-01-28 12:34   Status RUNNING Checkpoint La

GOLDENGATE安装配置与复制流搭建_DG端抽取支持DDL版

GOLDENGATE安装配置与复制流搭建_DG端抽取支持DDL版 1.配置场景     OGG版本11.2.1.0.1 2.OGG软件安装 2.1 源端和目标端创建OGG安装目录与授权 #mkdir /u01/ogg #chown –R oracle:oinstall /u01/ogg #chmod –R 777 /u01/ogg 2.2 源端和目标端OS层参数调整与配置环境变量 (1)OS参数调整 #vi /etc/sysctl.conf net.core.rmem_max=8388608 n

GOLDENGATE安装与数据复制流搭建配置_不含DDL抽取版

GOLDENGATE安装与数据复制流搭建配置 (源库为实例,支持ASM,不含DDL抽取版) 1.配置场景 2.OGG软件安装 2.1 源端和目标端创建OGG安装目录与授权 #mkdir /u01/ogg #chown –R oracle:oinstall/u01/ogg #chmod –R 777/u01/ogg 2.2 源端和目标端配置环境变量 #su – oracle [[email protected]~]$ vi.bash_profile 添加以下内容: export OGG=/u01/

Install Goldengate On Oracle Rac 11.2.0.4

安装环境: source: OS:redhat 6.3 DB:11.2.0.4 rac OGG:11.2.1.0.1 target: OS:redhat 6.3 DB:11.2.0.4 OGG:11.2.1.0.1 rac到单机的一个传输配置,这里测试ogg没有放入到共享存储中.建议生产环境将ogg放入共享存储,以免单点故障. Prepare(Source And Target DB): useradd ogg -g oinstall Add Environment Varible vi /ho

GoldenGate Integrated Capture Mode

通常我们配置的Goldengate是读取在线日志文件或者ALO(只读归档日志的).还有另外一种抽取模式Integrated Capture Mode,它是依靠 logmining server读取数据库改变的信息 Integrated capture supports more data types as well as compressed data and as it is fully integrated with the database there is no additional s

Oracle GoldenGate Install For Linux

DownLoad: http://edelivery.oracle.com Prepare(Source And Target DB): Add Environment Varible vi /home/oracle/.bash_profile export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/opt/ogg Configure Database alter database archivelog; alter database for

Oracle Goldengate参数整理

转自:http://blog.csdn.net/lemontree1123/article/details/46603549 manager参数: AUTOSTART:指定在mgr启动时自动启动那些进程. AUTOSTART ER * AUTOSTART extract extsz AUTORESTART:指定在mgr可以定时重启那些进程.可以在网络中断等故障恢复后自动重起,避免人工干预. AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 DYNAMICPOR

goldengate一些參数整理

manager參数: AUTOSTART:指定在mgr启动时自己主动启动那些进程. AUTOSTART ER * AUTOSTART extract extsz AUTORESTART:指定在mgr能够定时重新启动那些进程. 能够在网络中断等故障恢复后自己主动重起.避免人工干预. AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 DYNAMICPORTLIST:指定GoldenGate能够使用那些port接受extract发送过来的数据. DYNAMICPOR

Using GoldenGate EVENTACTIONS to customize processing

EVENTACTIONS 可以指定一些关键字来触发一些事件,关键字有:IGNORE, DISCARD, ABORT, STOP, SHELL, TRACE, LOG For Example: GGSCI (zbdba1) 6> view param ext1 EXTRACT EXT1 setenv ( NLS_LANG = AMERICAN_AMERICA.ZHS16GBK ) USERID ogg,PASSWORD ogg DDL & INCLUDE MAPPED OBJTYPE 'TAB