Integrated capture supports more data types as well as compressed data and as it is fully integrated with the database there is no additional setup steps required when we are configuring GoldenGate with things like RAC, ASM and TDE
配置环境:
Source: OS:Redhat 6.3 DB:11.2.0.4 IP:192.168.56.60 Target: OS:Redhat 6.3 DB:11.2.0.4 IP:192.168.56.61
Prepare(Source And Target DB):
useradd ogg -g oinstall Add Environment Varible vi /home/oracle/.bash_profile export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/ogg Configure Database alter database archivelog; alter database force logging; alter database add supplemental log data (primary key ,unique index) columns; select SUPPLEMENTAL_LOG_DATA_MIN, SUPPLEMENTAL_LOG_DATA_PK, SUPPLEMENTAL_LOG_DATA_UI from v$database; Create OGG User: sqlplus / as sysdba create user ogg identified by ogg; grant dba to ogg; GGSCI (zbdba1) 1> edit params ./GLOBAL GGSCHEMA ogg CHECKPOINTTABLE ogg.checkpoint SQL> show parameter goldengate NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ enable_goldengate_replication boolean TRUE Installing the DDL objects: 1、Run the @marker_setup.sql script. This script installs support for the Oracle GoldenGate marker system, which is required for DDL support. You will be prompted for the name of the Oracle GoldenGate schema. drop trigger ggs_ddl_trigger_before; grant create table,create view,create sequence to ogg; 2、Run the @ddl_setup.sql script Script that installs the Oracle GoldenGate DDL extraction and replication objects. (Oracle installations) 3、Run the @role_setup.sql script. This script drops and creates the role needed for DDL synchronization. It grants DML permissions on the Oracle GoldenGate DDL objects 4、Grant the role to all Oracle GoldenGate Extract users. You may need to make multiple grants if the processes have different user names. Run the @ddl_enable.sql script to enable the DDL trigger. 5、To improve the performance of the DDL trigger, make the ddl_pin script part of the database startup. It must be invoked with the Oracle GoldenGate DDL user name, as in: @?/rdbms/admin/dbmspool.sql SQL> @ddl_pin ogg To improve the performance of the DDL trigger This script pins the PL/SQL package that is used by the trigger into memory. If executing this script from SQL*Plus, connect as SYSDBA from the Oracle GoldenGate home directory. This script relies on the Oracle dmbs_shared_pool system package, so install that package before using ddl_pin.
Source DB:
MANAGER GGSCI (zbdba1) 1> create subdirs GGSCI (zbdba1) 22> view param mgr Source: port 7839 DYNAMICPORTLIST 7840-7914 USERID ogg,PASSWORD ogg AUTORESTART EXTRACT *,RETRIES 5,WAITMINUTES 3 PURGEOLDEXTRACTS ./DIRDAT/*,MINKEEPDAYS 3 PURGEDDLHISTORY MINKEEPDAYS 7,MAXKEEPDAYS 10,FREQUENCYMINUTES 30 PURGEMARKERHISTORY MINKEEPDAYS 7,MAXKEEPDAYS 10 LAGREPORTHOURS 1 LAGINFOMINUTES 30 LAGCRITICALMINUTES 45Target:
port 7839 DYNAMICPORTLIST 7840-7914 USERID ogg,PASSWORD ogg AUTORESTART REPLICAT *,RETRIES 5,WAITMINUTES 3 PURGEOLDEXTRACTS ./DIRDAT/*,MINKEEPDAYS 3 PURGEDDLHISTORY MINKEEPDAYS 7,MAXKEEPDAYS 10,FREQUENCYMINUTES 30 PURGEMARKERHISTORY MINKEEPDAYS 7,MAXKEEPDAYS 10 LAGREPORTHOURS 1 LAGINFOMINUTE