背景:
A库交换到B库。
goldengate简称OGG。
版本12.2.0.1
A库是首次安装OGG。
B库已有正常运行的OGG。
需求:
以下2个表从A库交换到B库
源表 目标表
DB_SJ.T_DWJCXX – DB_JH.T_DWJCXX;
DB_SJ.T_DWTSMX – DB_JH.T_DWTSMX;
-----------------------以下为实施过程-----------------
1-为A库部署OGG建立专用用户
GGT和db_sjjhpt。GGT主要用于OGG的数据交换、db_sjjhpt用于外部的监控和稽核。
– Create the user
create user GGT
identified by “****”
default tablespace TBS_SJJH_OGG
temporary tablespace TEMP_SJJH_OGG;
– Grant/Revoke role privileges
grant connect to GGT;
grant resource to GGT;
grant select_catalog_role to GGT;
grant dba to GGT;
– Grant/Revoke system privileges
grant alter any index to GGT;
grant alter any table to GGT;
grant alter session to GGT;
grant comment any table to GGT;
grant create any index to GGT;
grant create any table to GGT;
grant create database link to GGT;
grant create session to GGT;
grant delete any table to GGT;
grant drop any index to GGT;
grant drop any table to GGT;
grant flashback any table to GGT;
grant insert any table to GGT;
grant select any dictionary to GGT;
grant select any table to GGT;
grant select any transaction to GGT;
grant unlimited tablespace to GGT;
grant update any table to GGT;
– Create the user
create user db_sjjhpt
identified by “****”
default tablespace TBS_SJJH_OGG
temporary tablespace TEMP_SJJH_OGG;
– Grant/Revoke object privileges
grant select on GGT.T_OGG_MN_STATUS to DB_SJJHPT;
– Grant/Revoke role privileges
grant connect to DB_SJJHPT;
grant resource to DB_SJJHPT;