2.10 ADD RMTTRAIL

Use ADD RMTTRAIL to create a trail for online processing on a remote system and:

  • Assign a maximum file size.

  • Associate the trail with an Extract group.

Syntax

ADD RMTTRAIL trail_name, EXTRACT group_name
[, FORMAT RELEASE major.minor]
[, MEGABYTES n]
[, SEQNO n]
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.
Oracle GoldenGate appends this name with a nine-digit sequence number whenever a new file is created. For example, a trail named /tr would have files named /tr000000001, /tr000000002.
FORMAT RELEASE major.minor

Not valid for 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, and minor 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.2 do not support three-part object names.

Note:

If using multiple trails in a single Extract, only RELEASE versions that are the same can coexist.

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 primary Extract process can write data to a remote trail.

MEGABYTES n

The maximum size, in megabytes, of a file in the trail. The default is 500.

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, specify SEQNO 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.

Example

GGSCI
ADD RMTTRAIL dirdat\aa, EXTRACT finance, MEGABYTES 200
Admin Client
ADD RMTTRAIL aa, EXTRACT finance, MEGABYTES 200