问题概述
在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
标签:log,SQL,报错,00730,OGG,extract,alter,supplemental
From: https://blog.51cto.com/u_13482808/8256094