ALTER DISTPATH
Use ALTER DISTPATH
to change the attributes of a
distribution path.
Syntax
ALTER DISTPATH path-name
( BEGIN ( NOW
| SEQNO trail-sequence-number RBA relative-byte-address
| begin-datetime ),
| SOURCE source-uri),
| TARGET target-uri),
| FORMAT ( CANONICAL | TEXT | SQL | XML
| SIZEMB megabytes-number
| SEQLEN sequence-length
| PROXY URI proxy-uri
TYPE ( SOCKS | HTTP
[ CSALIAS credential-store-alias)
[ CSDOMAIN credential-store-domain ] ]
| COMPRESSION ( ON | OFF | THRESHOLD compression-threshold )
| | RULE ( PASSTHRU
| | FILTER [ CHUNKIDS chunk-ids ]
| [ OBJECTNAMES object-names-wildcard ]
| [ OBJECTTYPES [ DML ] [ DDL ] [ PROCEDURE ] ]
| [ TAGS binary-tags ]
| [ PROCEDUREFEATURENAMES feature-names-wildcard ]
| [ COLUMNVALUES column-values ]
| [ PARTITIONNAMES partition-names-wildcard ] )
| [ RELATION ( AND | OR ) ]
| [ ACTION ( INCLUDE | EXCLUDE ) ]
| | OPTIONS [ AUTORESTART RETRIES retries [ DELAY delay ] ]
| [ CRITICAL ( YES | NO ) ]
| [ EOFDELAY eofdelay ]
| | AUTHENTICATION ( OAUTH
| ( CERTIFICATE certificate-name )
| ( USERIDALIAS alias [DOMAIN domain
| ( ENCRYPTIONPROFILE encryption-profile-name] ) ) )
-
path-name
-
The name of the distribution path you want to change.
-
BEGIN {NOW | SEQNO sequence-number RBA relative-byte-address | begin-datetime}
-
Specifies a timestamp in the data source at which to begin processing.
-
NOW
-
Specifies the time at which the
ADD EXTRACT
command is issued. -
sequence-number relative-byte-address
-
The sequence number of an Oracle redo log and RBA within that log at which to begin capturing data.
-
begin-datetime
-
A date and time (timestamp) in the given form. For Extract, the timestamp value must be greater than the timestamp at which the Extract was registered with the database.
-
-
SOURCE URI source_uri
-
Specifies the source URI after the source keyword to indicate where the data is originated. The format of this URI contains the protocol (only supports trail), hostname, port number of the Distribution Service, and location of the source trail files.
-
TARGET URI target_uri
-
At least one
TARGET
option must be specified. It is treated as a complete object. If you need to specify something complicated, you need to use the REST API. Admin Client only supports a limited set of target settings and doesn't merge target setting with previous call.-
FORMAT
- Specifies the format of the URI of the target distribution path.
-
SIZEMB
- Specifies the size of the trail sequence.
-
SEQLEN
- Specifies the sequence length of the trail file.
-
PROXY URI
- Specifies the proxy URI of the target distribution path.
-
TYPE
- Specifies the type of connection between the source and target distribution path. You can choose a SOCKS PROXY or HTTP PROXY.
-
CSALIAS
- Credential store alias used by the encryption profile for the distribution path.
-
CSDOMAIN
- Domain of the credential store used by the encryption profile for the distribution path.
-
-
COMPRESSION
- Specifies if the trail sequence has to be compressed. If you set
it to
YES
, then you need to specify the threshold for the compression.
-
RULE
-
At least one
RULE
option must be specified. For example:ALTER DISTPATH dpe RULE FILTER CHUNKIDS (1, 2, 3)
-
PASSTHRU
- See
PASSTHRU | NOPASSTHRU
in Reference for Oracle GoldenGate. -
FILTER
-
At least one
FILTER
option must be specified. By default, theRELATION
between the filters isOR
and the action isKEEP
. -
OBJECTNAMES object_names
-
Specify a rule to filter records by their object name. The list of object names must be parenthesized and comma separated. An object name must follow the following grammar:
[cdb_name.]schema_name.table_name
For example:
ALTER DISTPATH dpe RULE FILTER OBJECTNAMES (hr.emp, pdbnorth.hr.department)
-
OBJECTTYPES [ DML | DDL | PROCEDURE]
-
Specify a rule to filter records by their object type. At least one object type must be specified.
-
TAGS binary_tags
-
Specify a rule to filter records by their tag. The list of tags must be parenthesized and comma separated. A tag must be a hexadecimal or binary value string and prefixed by the keywords
HEXVALUE
,HEXMASK
,BINVALUE
, andBINMASK
. In case the tag is aBITMASK
, the filter performs a bitwiseAND
operation between the mask and the tag value of an LCR record. If the result is equal to theMASK
, then the action is applied. For example:ALTER DISTPATH dpe RULE FILTER TAGS (hexvalue A4, hexvalue 18, hexmask F0, hexvalue F8F, binvalue 01001100, binmask 0110)
-
PROCEDUREFEATURENAMES feature_names
-
Specify a rule to filter records by procedure feature name. The list of procedure feature names must be parenthesized and comma separated. For example:
ALTER DISTPATH dpe RULE FILTER PROCEDUREFEATURENAMES (RAS, AUTOCDR, AQ)
-
COLUMNVALUES column_values
-
Specify a rule to filter records by their column value. The filtering rules must follow this grammar and be comma separated:
[cdb_name.]schema_name.table_name.column_name ( EQ | NE | LT | GT | LE | GE ) column_value [ BEFORE | AFTER ]
EQ
= equalNE
= not equalLT
= less thanGT
= greater thanLE
= less or equalGE
= grater or equalFor example:
ALTER DISTPATH dpe RULE FILTER COLUMNVALUES (pdbnorth.ggadmin.hr.emp.emp_id EQ 0 BEFORE, cdbsouth.c##ggadmin.hr.emp.emp_id GT 100)
-
-
OPTIONS
-
At least one option must be specified:
-
AUTORESTART {RETRIES retries | DELAY delay}
- Specifies that the distribution path is automatically restarted, how many times to retry the start, and any delay.
-
CRTICAL [YES | NO]
-
Indicates that the distribution path is critical to the deployment. The default is
NO
. -
EOFDELAY eofdelay
-
Specifies how often Extract, a data pump, or Replicat checks for new data after it has reached the end of the current data in its data source.
-
-
AUTHENTICATION OAUTH
-
Use this option if you are using external Identity Provider (IDCS) authorization profile. This will set up the flow from the Distribution Service to the Receiver Service.
Note:
If your deployment is enabled for IDCS, you can still choose to authentication using other authentication options.-
AUTHENTICATION CERTIFICATE certificate-name
-
Identifier of distribution path-specific client certificate uploaded and managed in Administration Service.
-
Examples
-
ALTER DISTPATH dpe BEGIN NOW
-
ALTER DISTPATH dpe BEGIN SEQNO 1 RBA 10355
-
ALTER DISTPATH dpn OPTIONS AUTORESTART RETRIES 3
-
ALTER DISTPATH dpe RULE FILTER OBJECTNAMES (hr.*, sales.*) ACTION EXCLUDE
-
ALTER DISTPATH dpe RULE FILTER TAGS (AE00, MASK AB00, FF)
-
ALTER DISTPATH dpe RULE FILTER COLUMNVALUES (hr.employess.deptno NE nope, hr.employees.employee_id EQ 3 AFTER, hr.employees.deptno GE 5, hr.employees.employee_id GT 5 BEFORE)
-
ALTER DISTPATH dpe RULE FILTER OBJECTNAMES(hr.*,sales.*) RELATION AND ACTION EXCLUDE