|
原帖由 jaychu649 于 2010-8-11 14:53 发表 ![]()
FYI:
http://hoopercharles.wordpress.c ... al-logging-enabled/
the table level logging for supplemental log for primary key , unique key , foreign key is not enabled unless you execute
SQL>
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE, FOREIGN KEY) COLUMNS;
or
ggsci>
add trandata username.table_name , COLS (col1)
你的意思是ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE, FOREIGN KEY) COLUMNS;
和add trandata username.table_name , COLS (col1)只需要执行一个就可以了?两个作用是一样的?
这个说法与我贴的reference guide的内容是矛盾的:
One of the following additional steps must be taken when using ADD TRANDATA for Oracle 9i
or later, depending on the logging method that was specified:
● Supplemental logging: Besides table-level logging, minimal supplemental logging
must be enabled at the database level in order for GoldenGate to process updates to
primary keys and chained rows. This is a known Oracle issue and must be done
through the database interface, not through GoldenGate. |
|