
GoldenGate
zbdba
live in oracle
展开
-
OGG-01224 Bad file number
今天在看OGG的日志时,发现如下OGG-01224 Bad file number错误,查阅资料才知道端口不可用,看了一下mgr的参数,发现是设置的DYNAMICPORTLIST 动态端口,为什么还不可用。看看MOS上面咋说的: OGG GoldenGate Extract | Pump Abends with: "TCP/IP Error 9 (Bad Fil原创 2014-09-19 11:18:26 · 3711 阅读 · 0 评论 -
Use data define file and colmap to map different column
通常我们使用OGG同步一个表的时候,遇见两个表的列不一样,这时候我们就需要使用数据定义文件和colmap将行进行映射下面我们来看看源表的结构:SQL> desc test3;Name Null? Type--------------------------------------原创 2015-03-04 09:44:54 · 1598 阅读 · 0 评论 -
Install Goldengate On Oracle Rac 11.2.0.4
安装环境:source:OS:redhat 6.3DB:11.2.0.4 racOGG:11.2.1.0.1target:OS:redhat 6.3DB:11.2.0.4OGG:11.2.1.0.1rac到单机的一个传输配置,这里测试ogg没有放入到共享存储中。建议生产环境将ogg放入共享存储,以免单点故障。Prepare(Source And Target原创 2015-03-02 09:22:44 · 2517 阅读 · 0 评论 -
Oracle GoldenGate Install For Linux
DownLoad:http://edelivery.oracle.com Prepare(Source And Target DB): Add Environment Variblevi /home/oracle/.bash_profileexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/li原创 2014-08-24 10:38:10 · 1913 阅读 · 0 评论 -
How to add a DELAY in applying transactions in GoldenGate?
有时候生产库可能出现错误操作,那么我们使用Goldengate同步过来的数据也将是错误的,如果目标库不要求实时性,那么我们可以使用延迟参数使目标库延迟应用。这样我们就可以保护错误操作之前的数据APPLIES TO:Oracle GoldenGate - Version 10.4.0.0 and laterInformation in this原创 2015-03-05 08:53:37 · 1514 阅读 · 0 评论 -
Goldengate BATCHSQL
如果生产环境的Goldengate不需要实时同步的话,那么我们可以使用BATCHSQL这个参数进行批量同步,从而提高goldengate的性能Valid for ReplicatUse the BATCHSQL parameter to increase the performance of Replicat. BATCHSQL causesReplicat to organize s原创 2015-03-05 08:55:48 · 3079 阅读 · 0 评论 -
监控Goldengate状态
配置好goldengate之后,我们需要监控它的传输数据量,进程延迟,进程状态等信息,下面是一些具体的命令:GGSCI (zbdba1) 36> info allProgram Status Group Lag at Chkpt Time Since ChkptMANAGER RUNNING原创 2015-03-05 09:04:19 · 3208 阅读 · 1 评论 -
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 full原创 2015-03-05 09:01:39 · 2864 阅读 · 0 评论 -
Goldengate FORMAT RELEASE
有时候我们会遇见 OGG-01389 File header failed to parse tokens.Source:OGG:11.2.1.0.1Name:zbdba1Target:OGG:11.1.1.1.2Name:zbdba2版本不一样,所以造成错误。那么我们只需要在抽取和投递进程中加入format release 11.1 即可具体操作如下:停止所有的e原创 2015-03-06 09:00:23 · 4657 阅读 · 0 评论 -
Upgrade Goldengate 11.1.1.1.2 to 11.2.1.0.1
配置环境:Source:OGG:11.2.1.0.1Name:zbdba1Target:OGG:11.1.1.1.2Name:zbdba2现在将Target升级到与源端一样的版本备份Target ogg安装目录:[root@zbdba2 /]# cp -R ogg/ /database/查看Source端抽取进程是否active:GGSCI (原创 2015-03-09 09:56:54 · 1850 阅读 · 0 评论 -
OGG-01496 OGG-01031
pump进程报如下错误:2015-03-06 01:20:49 ERROR OGG-01496 Oracle GoldenGate Capture for Oracle, ext2.prm: ./dirdat/sa000000, at RBA 2295.目标端不存在该tail文件,可能是目标端trail文件丢失,或者目标已经重建。这时候我们只需要执行:alte原创 2015-03-09 09:59:36 · 3416 阅读 · 0 评论 -
Install Goldengate Veridata
Goldengate Veridata 是oracle一款对比数据一致性的工具,支持Oracle、Terdata、Sql Server等数据库。下面开始安装:整体架构:安装环境:这里我将Veridata Server直接安装到agent1上面的:Agent1:name:zbdba1OS:redhat 6.3IP:192.168.56.60Agent2:n原创 2015-03-10 09:33:12 · 2377 阅读 · 0 评论 -
Using GoldenGate EVENTACTIONS to customize processing
EVENTACTIONS 可以指定一些关键字来触发一些事件,关键字有:IGNORE, DISCARD, ABORT, STOP, SHELL, TRACE, LOGFor Example:GGSCI (zbdba1) 6> view param ext1EXTRACT EXT1setenv ( NLS_LANG = AMERICAN_AMERICA.ZHS16GBK )USERID原创 2015-03-11 09:17:38 · 2139 阅读 · 0 评论 -
Oracle To Mysql (Use Goldengate)
安装环境:Source:OS:redhat 6.3IP:192.168.56.60DB:Oracle 11.2.0.4Target:OS:redhat 6.3IP:192.168.56.13DB:Mysql 5.6.14Goldengate for mysql:https://edelivery.oracle.com/EPD/Download/get_form?egr原创 2015-03-03 10:11:55 · 1810 阅读 · 0 评论 -
OGG-02050 Not enough database memory to honor requested MAX_SGA_SIZE
在测试GoldenGate Integrated Capture Mode的时候,启动抽取进程报 OGG-02050 Not enough database memory to honor requested MAX_SGA_SIZE 错误参数配置如下:GGSCI (zbdba1) 20> view param ext1EXTRACT ext1USERID ogg, PASSWO原创 2015-03-04 09:48:20 · 2564 阅读 · 0 评论 -
Use Goldengate Initial Data Load
我们在搭建ogg的时候,通常需要先ogg进行初始化,那么初始化的方式很多。现在介绍ogg自己的初始化方式。测试环境:Souce DB:OS:redhat 6.3Name:zbdba1DB:11.2.0.4OGG:11.2.1.0.1Target DB:OS:redhat 6.3Name:zbdba2DB:11.2.0.4OGG:11.2.1.0.1这里着重介绍 I原创 2015-03-01 10:05:46 · 1991 阅读 · 0 评论 -
Goldengate Checkpoint Table Is Corrupted
Replicat maintains checkpoints that provide a known position in the trail from which tostart after an expected or unexpected shutdown. By default, a record of these checkpointsis maintained in a f原创 2014-09-21 11:38:22 · 2152 阅读 · 0 评论 -
GoldenGate performance tuning
ogg同步的时候,有时候我们会遇见非常大的表。这时候我们可以使用多个replicat进程通过range参数进行分割分别应用到目标端数据库中例如:replicat rep2:MAP scott.emp, TARGET scott.emp, FILTER (@RANGE (1,3));replicat rep3:MAP scott.emp, TARGET scott原创 2014-09-22 10:58:10 · 1157 阅读 · 0 评论 -
Encrypt Trail and Extract files
在源端,我们需要在 EXTRACT进程中设置ENCRYPTTRAIL 参数,例如:RMTHOST 192.168.1.168, MGRPORT 7809, ENCRYPT BLOWFISH, KEYNAME encryptkey1ENCRYPTTRAIL RMTTRAIL /opt/ogg/dirdat/la在目标端需要在replicat进程中加入DECRYPTTRAIL参数,例如原创 2014-09-22 10:25:42 · 1240 阅读 · 0 评论 -
IGNOREDELETES,IGNOREUPDATES
有时候,我们在ogg目标端应用数据的时候不想应用更新或者删除操作,这时候我们就可以使用IGNOREDELETES, IGNOREUPDATES参数GETDELETES | IGNOREDELETESValid for Extract and ReplicatUse the GETDELETES and IGNOREDELETES parameters to control whet原创 2014-09-23 08:42:04 · 3436 阅读 · 0 评论 -
Logdump
You can use the GoldenGate Logdump utility to view records in the GoldenGate trail files. The Logdumputility is part of the regular GoldenGate software installation. Logdump lets you view the unstru原创 2014-09-23 10:23:42 · 1794 阅读 · 0 评论 -
OGG-01232 Receive TCP Params Error: TCP/IP Error 104 (Connection Reset By Peer).
经常在OGG日志文件中看到如下错误:OGG-01232 Receive TCP Params Error: TCP/IP Error 104 (Connection Reset By Peer).查了metalink,大概说的是extract 和collector 交互的关系,分为STREAMING 和NOSTREAMING 模式,各有各的优势。总的建议如果该错误不是很频繁,建议使用S原创 2014-09-15 11:51:59 · 11532 阅读 · 0 评论 -
TRANLOGOPTIONS RAWDEVICEOFFSET
今天介绍一下ogg中TRANLOGOPTIONS RAWDEVICEOFFSET参数,在ogg的官方文档中是没有这个参数的说明的。这个参数的作用就是,当你使用裸设备的时候需要设置该参数。下面看看mos上咋说:Oracle GoldenGate Supports Reading Redo And Archive Log files Stored On原创 2014-09-16 11:27:52 · 3366 阅读 · 0 评论 -
WARNING OGG-00952 Purging log history from OGG.GGS_DDL_HIST
经常在巡检OGG日志的时候发现如下警告:2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST older than 2013-01-13 15:52:56.084114: Could not原创 2014-09-16 09:58:05 · 4179 阅读 · 0 评论 -
Some Useful GoldenGate Commands
1、History使用History可以查看以前执行的命令GGSCI (ogg1) 5> historyGGSCI Command History 1: infoa 2: inf 3: info all 4: show all 5: history2、!使用!可以再次执行上次执行的命令GGSCI原创 2014-09-26 10:05:57 · 1214 阅读 · 0 评论 -
DYNAMICRESOLUTION | NODYNAMICRESOLUTION
有时候开启OGG进程的时候较慢,可能是因为需要同步的表太多,OGG在开启进程之前会将需要同步的表建立一个记录并且存入到磁盘中,这样就需要耗费大量的时间。OGG同时也提供了DYNAMICRESOLUTION | NODYNAMICRESOLUTION参数来解决这个问题,看官方如何描述的:DYNAMICRESOLUTION | NODYNAMICRESOLUTIONValid fo原创 2014-09-17 09:53:05 · 5758 阅读 · 0 评论 -
Encrypting Goldengate Password
OGG参数文件中需要指定用户密码,这时候我们需要加密该密码:[oracle@ogg1 ogg]$ ls -l keygen-rwxr-x— 1 oracle oinstall 327034 Apr 23 2012 keygen[oracle@ogg1 ogg]$ ./keygen 128 40xD209104B9A93E35D9AD03F7E313C5F56原创 2014-09-17 10:06:59 · 1572 阅读 · 0 评论 -
GoldenGate Lag For Huge Insert
前些天客户的ogg延迟到达8小时左右,于是我当时用logdump追踪了一下:看进程状态:send extsa stausEXTRACT ZBDBA (PID 2269368) Current status: Recovery complete: Processing data with empty data queue Current read positio原创 2014-10-21 11:06:19 · 2659 阅读 · 0 评论 -
Install GoldenGate Director
Oracle GoldenGate Director is a multi-tiered client-server application that enables theconfiguration and management of Oracle GoldenGate instances from a remote client.Oracle GoldenGate Director c原创 2015-03-23 09:10:31 · 1567 阅读 · 1 评论