My Oracle Support Banner

Effects of ALTER TABLE ... ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS (supplemental_id_key_clause) (Doc ID 2067514.1)

Last updated on NOVEMBER 26, 2019

Applies to:

Oracle GoldenGate - Version 11.1.1.0.0 to 12.1.3.0.0 [Release 11.1.1 to 12.1]
Oracle Database - Enterprise Edition - Version 8.1.7.4 to 12.1.0.2 [Release 8.1.7 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

Purpose

The Oracle documentation for the ALTER TABLE ... ADD SUPPLEMENTAL LOG ...  states the following:

supplemental_id_key_clause

Use this clause to specify that all or a combination of the primary key, unique key, and foreign key columns should be supplementally logged.

and:

where it has the following syntax:

DATA
( { ALL | PRIMARY KEY | UNIQUE | FOREIGN KEY }
    [, { ALL | PRIMARY KEY | UNIQUE | FOREIGN KEY } ]...
)
COLUMNS

However, the DATA (ALL) COLUMNS option may be confusing.  This is because it is included in the "...key_clause", implying it applies to KEY columns only, whereas it actually means all the columns in the table.

So, the purpose of this document is to show the effects of the Supplemental Logging DATA (ALL) COLUMNS option, including the Trail file records extracted by GoldenGate.

Troubleshooting Steps

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Troubleshooting Steps
 PREAMBLE
 SUMMARY OF RESULTS
 Supplemental logging at the Oracle database level only
 With Primary Key columns
 With All Columns
 TEST CASE DETAILS
 SCOTT.EMP create table statement
 SCOTT.EMP Rows
 LogMiner commands
 Preparing the Oracle database
 Test #1: Oracle database level Supplemental logging
 Test #2: Primary Key column
 Test #3: All Columns
 Restore the database
 GoldenGate GGSCI commands
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.