问题概述

在ogg的迁移过程中,启动抽取进程后,出现如下报错:

ERROR   OGG-00730  No minimum supplemental logging is enabled. This may cause extract process to handle key update incorrectly if key column is not in first row piece.

问题原因

根据报错提示,当前数据库不是最细log模式,可使用如下语句检查确认:

SQL> select supplemental_log_data_min from v$database;
SUPPLEME
--------
NO

解决方案

开启数据库最细log模式。

SQL> alter database add supplemental log data;
Database altered.
SQL> alter system switch logfile;
System altered.

如果重启extract又出现类似如下报错:

ERROR   OGG-00717  Found unsupported in-memory undo record in sequence 20, at RBA 1137168,
 with SCN 0.1181993 (1181993) ... Minimum supplemental logging must be enabled to prevent data loss.

可通过以下步骤重置进程,然后再启动:

alter extract extb1, tranlog, begin now
阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6