Extract data files /ogg/product/12.2.0.2/dbhome_1/dirdat: already exists
Temporary files /ogg/product/12.2.0.2/dbhome_1/dirtmp: already exists
Credential store files /ogg/product/12.2.0.2/dbhome_1/dircrd: already exists
Masterkey wallet files /ogg/product/12.2.0.2/dbhome_1/dirwlt: already exists
Dump files /ogg/product/12.2.0.2/dbhome_1/dirdmp: already exists
为保证后面进程启动不会由于目录权限的问题而出错,这里先给各目录赋权
存放Trail文件,也就是Capture进程捕获的日志文件
当事物需要的内存超过已分配内存时,默认存储在这个目录
(2)目标端安装GoldenGate同上(安装步骤一样)
alter system set log_archive_dest='/oradata/arch' scope=spfile; ------修改归档路径
alter system set db_recovery_file_dest='' scope=spfile; --关闭闪回
alter database archivelog;
select flashback_on from v$database;
SQL>select force_logging from v$database;
SQL>alter database force logging;
3.开启最小附加日志(DDL的话好开启数据库级别)
SQL>select supplemental_log_data_min from v$database; ----查看是否开启了最小附加日志模式
SQL>alter database add supplemental log data;
千万不要小看这步日志设置,其实在GoldenGate的配置中,这步是最容易出错的环节。如果开启DDL复制做冗灾备份,最好直接在数据库级别打开补全日志:
SQL>alter database add supplemental log data(primary key,unique,foreign key) columns;
SQL>select supplemental_log_data_min,supplemental_log_data_pk,supplemental_log_data_ui from v$database;
在执行上一步操作有一个温馨提示:‘NOTE: For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled.’ GoldenGate10G DDL不支持Oracle回
收站功能;本文提供的GoldenGate版本是11G;该操作也略;
SQL>show parameter recyclebin
SQL>alter system set recyclebin=off scope=spfile;
SQL>show parameter recyclebin;
SQL>alter system set undo_retention=86400;
UNDO_RETENTION can be adjusted upward in high-volume environments.
For tables that contain
LOBs
, do one of the following:
Set the
LOB
storage clause to
RETENTION
. This is the default for tables that are created when
UNDO_MANAGEMENT
is set to
AUTO
.
If using
PCTVERSION
instead of
RETENTION
, set
PCTVERSION
to an initial value of 25. You can adjust it based on the fetch statistics that are reported with the
STATS EXTRACT
command (see Table 3-2). If
the value of the
STAT_OPER_ROWFETCH CURRENTBYROWID
or
STAT_OPER_ROWFETCH_CURRENTBYKEY
field in these statistics is high, increase
PCTVERSION
in increments of 10 until the statistics show
CREATE TABLESPACE OGG DATAFILE
评论