ITPub博客

首页 > Linux操作系统 > Linux操作系统 > OGG用NOCOMPRESSDELETES记录所有列删除值

OGG用NOCOMPRESSDELETES记录所有列删除值

原创 Linux操作系统 作者:paulyibinyi 时间:2011-08-04 17:39:14 0 删除 编辑
 我们可以用ogg来实现交易事物跟踪,比如记录数据删除前的值,
 有下面两个参数来控制
COMPRESSDELETES和NOCOMPRESSDELETES
COMPRESSDELETES参数是默认值,只记录删除有主键的值
NOCOMPRESSDELETES 参数可以记录所有列删除值
 
以下是详细解释:
COMPRESSDELETES | NOCOMPRESSDELETES
Valid for Extract
Use the COMPRESSDELETES and NOCOMPRESSDELETES parameters for a log-based Extract group
to control the way columns are written to the trail record for delete operations.
COMPRESSDELETES, the default, causes Extract to write only the primary key to the trail for
delete operations. The key provides enough information to delete the correct target record,
while restricting the amount of data that must be processed.
NOCOMPRESSDELETES sends all of the columns to the trail. This becomes the default when a
table definition does not include a primary key or unique index. If a substitute key was
defined with the KEYCOLS option of TABLE, then those columns are written to the trail,
whether or not a real key was defined.
COMPRESSDELETES and NOCOMPRESSDELETES can be used globally for all TABLE statements in the
parameter file, or they can be used as on-off switches for individual TABLE statements.
These parameters do not affect data pumps.
Default COMPRESSDELETES
Syntax COMPRESSDELETES | NOCOMPRESSDELETES

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7199859/viewspace-704133/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
学习数据库

注册时间:2007-12-11

  • 博文量
    907
  • 访问量
    6894207