OGG 暂告停止
通过两个月对OGG的学习,对其安装搭建和大概的架构有了初步的了解。并且完成了OTO 的实验内容。现总结如下:1、完成安装配置2、完成相同表复制3、完成不同表定义复制4、完成replicat拆分5、完成对基本常用参数的理解6、学习完Administrator's Guide,Reference Guide,installation guide。OGG 暂告停止 下一步 &n...
OGG 使用defgen 同步不同定义表实验
实验环境 linux red hat OTO 11g在源端创建表:CREATE TABLE DEFG1( OB1 NUMBER, OB2 VARCHAR2(5 BYTE), OB3 DATE, OB4 CHAR(1 BYTE), SUPPLEMENTAL LOG GROUP GGS_77320 (OB1) ALWAYS);CREATE UNIQUE INDEX GG.PK_OB1_DEF ON GG.DEFG1(OB1);在...
PASSTHRU 参数
PASSTHRU 如果你在配置OGG 的时候 既没有 过滤行也没有 选择列,并且你的源和目标数据结构都是一摸一样, 那么你可以在pump 进程中指定passthru 参数You can specify the PASSTHRUparameter on the data pump if you aren’t doing any filtering or column mapping and your source and target data structur...
OGG 故障处理一例
今天查看想要关闭一个OGG 进程报出:There are open, long-running transactions. Before you stop Extract, make the archives containing data for those transactions available for when Extract restarts. To force Extract to stop, use the SEND EXTRACT GGEX, FORCESTOP command.Oldest redo log file necessary ...
OGG 中replicat 和extract 关系图
OGG 复制进程拆分
需求:OGG 原来将很多表放到一个复制进程的参数文件里面了需要进行细分把一部分表 划分出来用另外一个进程管理。原来的复制进程参数文件如下:黑色框出部门为我们需要拆分出来的表:步骤:1、停止replicat 进程stop replicat_name2、查看检查点记录下Sequence 和RBA 留做后用GGSCI (og2) 23> info replgg,sho...
OGG 配置 DDL 复制
1、给你的OGG 管理用户赋予执行utl_file 权限-------源端SQL> GRANT EXECUTE ON utl_file TO gg;2、编辑全局文件-------源端EDIT PARAMS ./GLOBALS在里面加入GGSCHEMA gg --gg 是管理用户-------源端3、sysdba 用户登入系统运行下列脚本-------源端注意要切换到OGG 的安装目录@marker_setup.sql@ddl_setup.s...
OGG Installing support for Oracle sequences
Installing support for Oracle sequences设置OGG 支持sequencesTo support Oracle sequences, you must install some database procedures. 你必须安装一些过程来支持ORACLE 的sequences.These procedures support the Oracle GoldenGate FLUSH SEQUENCE command which you issue immediately after you st...
OGG COLS 参数实验
实验:源端 pump推送进程:加入table gg.col,cols(id1,id2,id4);目标端复制进程:map gg.col,target regg.col在源端插入数据:insert into col values (61,62,63,64);----------------------------------------------成功复制-------------------------------------------------有一个问题 当在源端cols 后在目标...
OGG COLMAP 参数实验
OGG colmap 参数实验:源,目标端简历表OG1:create table colmap(id1number,id2 number,id3 number);OG2:create table colmap(id1number,id2 number,id3 varchar2(2));注意两个id3 数据类型不同源端:GGSCI (OGG1) 26> add trandata gg.colmapLogging of supplemental redo data enabled for table GG.COLM...
OGG where 参数实验
extrace 抽取进程:TABLE <table spec>, WHERE (<where clause>);gg.tab ,where (sex="m");replicat 复制进程:MAP <table spec>, TARGET <table spec>, WHERE (<where clause>);map gg.tab,target regg.tab ,where (sex="m");复制进程实验:加入参数后在源表 插入两条数据insert into ...
OGG -FILTER 参数过滤
Using FILTERUse FILTER to select or exclude records based on a numeric value. A filter expression can use conditional operators, Oracle GoldenGatecolumn-conversion functions, or bothfilter 参数基于数值来选择或者提出数据!!!-----最重要Separate all FILTERcomponents with commas. A FILTERclau...
OGG 行过滤filter 参数
Using FILTERUse FILTER to select or exclude records based on a numeric value. A filter expression can use conditional operators, Oracle GoldenGatecolumn-conversion functions, or bothfilter 参数基于数值来选择或者提出数据!!!-----最重要Separate all FILTERcomponents with commas. A FILTERclau...
OGG:ALLOWNOOPUPDATES,NOALLOWNOOPUPDATES 参数概念
ALLOWNOOPUPDATES | NOALLOWNOOPUPDATESValid for Replicat复制进程参数Use ALLOWNOOPUPDATES and NOALLOWNOOPUPDATES to control how Replicat responds to a “noop” operation. A no-op operation is one in which there is no effect on the target table. The ALLOWNOOPUPDATES 和 NOALLOWNOOPUPDATES&...
OGG参数NUMFILES
NUMFILESValid for Extract and ReplicatUse the NUMFILES parameter to control the initial number of memory structures allocated to contain information about tables specified in TABLE or MAP statements. NUMFILES must occur before any TABLE or MAP entries, and before the SOURCEDEFS or TARG...
WARNING OGG-00959 (MINKEEPFILES option not used.).
在mgr.rpt 里面找到这个警告WARNING OGG-00959 (MINKEEPFILES option not used.).-- Purge old trail-files删除老文件PURGEOLDEXTRACTS /ggs/tdmInput/m1/g3*, USECHECKPOINTS, MINKEEPHOURS 122012-10-30 15:15:09 WARNING OGG-00959 PURGEOLDEXTRACTS /ggs/tdmInput/m1/g3*, USECHECKPOINTS, MINKEEPHOURS 12 (MINKEE...
OGG stats EXTRACT 概念要清晰
GGSCI (OGG1) 48> help stats extractSTATS EXTRACT Use STATS EXTRACT to display statistics for one or more Extract groups. The output includes DML and DDL operations that are included in the Oracle GoldenGate configuration. 使用STATS EXTRACT 查询一个或者一组Extract 的统...
OGG 获取truncate 操作
默认情况下OGG 是不捕获truncate 操作的但是我们要捕获 truncate 操作需要加参数GETTRUNCATES 在extract进程和replicat进程都需要添加。
sqlldr 加载数据 OGG 是否会同步
今天做一个实验使用sqlldr 加载一张表OGG 是否会同步源表:MB_JSBJZS目标表:MB_JSBJZS准备好CSV 文件,ctl 文件在源表sqlldr userid=username/password control=xxx.ctl log=f.log加载完成 查看源端和目标端是否同步select count(*) from MB_JSBJZS两边数据相同 同步成功。---------------------------...
OGG 修改trail 文件的大小
实验-修改trail文件的大小先看原文档:Changing the size of trail files更改trail 文件的大小You can change the size of trail files with the MEGABYTES option of either the ALTER EXTTRAILor ALTER RMTTRAIL command, depending on whether the trail is local or remote. To change the file size, follo...