您的位置:首页 > 大数据 > 人工智能

[翻译自MOS文章]在OGG的trail文件中始终包括lob类型记录的方法

2016-12-25 15:37 676 查看
翻译自:

Always Include LOBS In Trail File (Doc ID 1639717.1)

适用于:

Oracle GoldenGate - Version 11.1.1.0.0 and later

Information in this document applies to any platform.

目标:

当lob字段没有update时,怎么强制抽取进程把lob数据放在trail文件中?

解决方案:
在抽取进程的参数文件中使用 NOCOMPRESSUPDATES and FETCHCOLS 选项即可,例如:

NOCOMPRESSUPDATES
TABLE schema.mytable, fetchcols (mylobs1, mylob2);


正常情况下,对于其他受到支持的数据类型来说,可以使用如下的命令来包括supplemental logging

(译者注:这样能使带了supplemental logging的column的值能体现在trail文件中,即使该column没有被更新):
ggsci > add trandata, cols (<columns>)
sqlplus > alter table tbap_item add supplemental log group <group name> (<column>) always;


但是对于lob类型,这样做会导致 ORA-30569: data type of given column is not supported in a log group.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐