安装前准备工作
Oracle OGG 11g安装用户和组设置 1.创建OGG操作系统用户
这里直接使用ORACLE用户安装GoldenGate,而不创建新用户。 2.创建OGG数据库用户及授权
源端数据库:
sqlplus / as sysdba
create user ggs> ts_ogg temporary tablespace TEMP1 quota unlimited on ts_ogg;
grant CONNECT, RESOURCE to ggs;
grant CREATE SESSION,>
grant SELECT ANY DICTIONARY, SELECT ANY TABLEto ggs;
grant>
grant FLASHBACK ANY TABLE to ggs;
grant EXECUTE on DBMS_FLASHBACK to ggs;
目标端数据库:
sqlplus / as sysdba
create user ggs> ts_ogg temporary tablespace TEMP1 quota unlimited on ts_ogg;
grant CONNECT, RESOURCE to ggs;
grant CREATE SESSION,>
grant SELECT ANY DICTIONARY, SELECT ANY TABLEto ggs;
grant CREATE TABLE to ggs;
GGSCI (grid.cn.oracle.com) 2> ADDCHECKPOINTTABLE
No checkpoint table specified, using GLOBALSspecification (ggs.ggs_checkpoint...
Successfully created checkpoint tableOGG.GGSCHKPT.
? 为表添加附加日志
在源端系统添加:
GGSCI (db.cn.oracle.com) 3> DBLOGIN USERIDogg, PASSWORD Ogg
Successfully logged into database.
添加示例:
GGSCI (db.cn.oracle.com) 5> ADD TRANDATAscott.EMP_OGG
Logging of supplemental redo data enabled fortable SCOTT.EMP_OGG.
GGSCI (db.cn.oracle.com) 6> ADD TRANDATAscott.DEPT_OGG
Logging of supplemental redo data enabled fortable SCOTT.DEPT_OGG.
Verify that supplemental logging has beenturned on for these tables.
GGSCI (cdcjp63vm3.cn.oracle.com) 7> INFOTRANDATA scott.emp*
Logging of supplemental redo log data isenabled for table SCOTT.EMP_OGG
Logging of supplemental redo log data isenabled for table SCOTT.DEPT_OGG