EXTTRAIL
Valid For
Extract
Description
Use the EXTTRAIL
parameter to specify a trail on the local system
that was created with the ADD EXTTRAIL
command. The trail is read
by an Extract Pump group, or by a Replicat group on the local system.
EXTTRAIL
must precede all associated TABLE
statements. Multiple EXTTRAIL
statements can be used to define different trails.
Do not use EXTTRAIL
for an Extract that is configured in
PASSIVE
mode. See the Administering Oracle GoldenGate guide for more
information about PASSIVE
mode, an Oracle GoldenGate security
feature.
From Oracle
GoldenGate 19c (19.1.0) onward, the primary Extract writes trail file in the same
format as existing trail file format when you upgrade, unless you explicitly specify
the trail file format version using the FORMAT RELEASE
option. This
prevents subsequent Replicats from abending if they are not upgraded.
You can encrypt the data in this trail by using the ENCRYPTTRAIL
parameter. See "ENCRYPTTRAIL | NOENCRYPTTRAIL
" for more information.
Default
None
Syntax
EXTTRAIL file_name [, FORMAT RELEASE major.minor] [, TRAILBYTEORDER {BIGENDIAN | LITTLEENDIAN | NATIVEENDIAN}]
-
trail_name
-
The relative or fully qualified path name of the trail. The trail name can contain only two characters.
Note:
In Microservices Architecture, the trail file name two-character prefix must start with an alphabet only./tr
would have files named/tr000000001
,/tr000000002
. -
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. -
TRAILBYTEORDER
{BIGENDIAN | LITTLEENDIAN | NATIVEENDIAN}
-
Not valid for an Extract Pump. Sets the byte format of the metadata in the trail records. This parameter does not affect the column data. Valid only for trails that have a
FORMAT RELEASE
version of at least 12.1. Valid values areBIGENDIAN
(big endian),LITTLEENDIAN
(little endian), andNATIVEENDIAN
(default of the local system). The default isBIGENDIAN
. See theGLOBALS
version of TRAILBYTEORDER for additional usage instructions.