2.5 ADD EXTTRAIL
Use ADD EXTTRAIL
to create a trail for online processing
on the local system and:
-
Associate it with an Extract group.
-
Assign a maximum file size.
See EXTTRAIL
in the Reference for Oracle GoldenGate
Syntax
ADD EXTTRAIL trail_name, EXTRACT group_name
[, MEGABYTES n]
[SEQNO n]
-
FORMAT RELEASE
major.minor
-
Not valid for an Extract Pump. Specifies the metadata format of the data that is sent by Extract to a trail, a file, or (if a remote task) to another process. The metadata tells the reader process whether the data records are of a version that it supports. The metadata format depends on the version of the Oracle GoldenGate process. Older Oracle GoldenGate versions contain different metadata than newer ones.
FORMAT RELEASE
specifies an Oracle GoldenGate release version.major
is the major version number, andminor
is the minor version number. The X.x must reflect a current or earlier, generally available (GA) release of Oracle GoldenGate. Valid values are 12.2 through the current Oracle GoldenGate X.x version number, 19.1.The release version is programmatically mapped back to the appropriate trail format compatibility level. The default is the current version of the process that writes to this trail.
Note:
The lowest supported version is 12.2.Note:
RELEASE
versions earlier than 12.1 do not support three-part object names.Note:
If using multiple trails in a single Extract, onlyRELEASE
versions that are the same can coexist.Note:
The following settings are supported for Oracle Database 12.2 and higher:
-
For Oracle Database 12.2 non-CDB or higher with compatibility set to 12.1,
FORMAT RELEASE
12.2 or above is supported. -
For Oracle Database 12.2 non-CDB or higher with compatibility set to 12.2,
FORMAT RELEASE
12.2 or above is supported. -
For Oracle Database 12.2 CDB/PDB or higher with compatibility set to 12.2, only
FORMAT RELEASE
values 12.3 or higher are supported. This is due to the use of local undo for PDBs, which requires augmenting the transaction ID with the PDB number to ensure uniqueness of trx IDs.
-
-
group_name
-
The name of the Extract group to which the trail is bound. Only one Extract process can write data to a trail.
-
MEGABYTES
n
-
Valid for Extract. The maximum size, in megabytes, of each trail file in the sequence. The default is 2000.
-
SEQNO
n
-
Specifies that the first file in the trail will start with the specified trail sequence number. Do not include any zero padding. For example, to start at sequence 3 of a trail named
tr
, specifySEQNO 3
. The actual file would be named/tr000000003
. This option can be used during troubleshooting when Replicat needs to be repositioned to a certain trail sequence number. It eliminates the need to alter Replicat to read the required sequence number. The default value is 1.
Examples
Parent topic: Common Command Line Interface Commands