源操作系统和目标操作系统:
数据库版本
OGG版本
第一步,配置源端,目标端操作系统环境变量,建立OGG用户
源端
create tablespace ogg_t datafile '/u01/app/oracle/oradata/PROD1/ogg_t01.dbf' size 50m autoextend on;
create user ogg identified by oracle default tablespace ogg_t temporary tablespace temp;
grant connect to ogg;
grant alter any table to ogg;
grant alter session to ogg;
grant create session to ogg;
grant flashback any table to ogg;
grant select any dictionary to ogg;
grant select any table to ogg;
grant resource to ogg;
grant select any transaction to ogg;
打开附加日志,强制数据库写日志,当然归档也打开。(归档在mount状态下开)
alter database add supplemental log data;
alter database force logging;
alter database archivelog;
第二步 进入OGG
解压OGG安装包,进入OGG安装文件
运行ggsci
第三步,配置源端OGG配置信息
执行create subdirs 创建相关OGG程序
编辑MGR源端管理进程配置信息
edit params mgr
--编辑内容如下- edit params mgr------------
po