PARTITION | PARTITIONEXCLUDE
Valid For
Extract, Distribution Service, and Replicat. Oracle only.
Description
These parameters work in conjunction with the TABLE
and
TABLEEXCLUDE
parameters. Only
when a table is included, the partition rules are
evaluated.
TABLE
and
TABLEEXCLUDE
counterparts.
-
Wildcarding will be allowed in all name portions.
-
GLOBALS parameter
EXCLUDEWILDCARDOBJECTSONLY
is supported -
Container portion is only valid in CDB environment in the three-part name.
-
SOURCECATALOG
parameter will take affect when catalog portion is not specified. -
Container portion must be specified when
SOURCECATALOG
is not specified. -
If container portion is specified, then it takes precedence over
SOURCECATALOG
.
If the [container.]schema.table
portion of
any PARTITION
or
PARTITIONEXCLUDE
rule matches the
table, only then additional partition filtering will
be performed.
-
If the partition name does not match any
PARTITION
parameter, it is excluded. -
If included by the
PARTITION
parameter, then exclusion rules are evaluated unless it was included by a non-wildcard inclusion rule andEXCLUDEWILDCARDOBJECTSONLY
was specified.
PARTITION
or EXCLUDEPARTITION
in
Replicat, then the PARTITION
parameter must be used for the Extract
TABLE
parameter to write the partition metadata into the trail file so
that Replicat can process it.
Note:
An error occurs if aPARTITION
or PARTITIONEXCLUDE
parameter has
an invalid number of parts.
Syntax
PARTITION [container.]schema.table.partition;
PARTITIONEXCLUDE [container.]schema.table.partition;
For non-CDB, 3 parts must be specified
(schema.table.partition
).
For CDB, either 4 parts must be specified
(pdb.schema.table.partition
) or 3 parts with a preceding
SOURCECATALOG
parameter.
Examples
-
In the following example with DML operations on partition
P_Q4
of tableSH.SALES
, the partition is included because both table and partition rules include it.TABLE sh.sales; PARTITION sh.sales*.p_q4;
-
In the following example with DML operations on partition
P_Q4
of tableSH.SALES
, all partitions are included on the Extract side using theTABLE
/PARTITION
parameters. The partitionP_Q4
is excluded at the Replicat side using theMAP
/PARTITIONEXCLUDE
parameters. All other changes on partitions are applied by Replicat.TABLE sh.sales; PARTITION sh.sales.p_q*;
MAP sh.sales, TARGET sh.sales; PARTITION sh.sales.p_q4;
-
In the following example with DML operations on partition
P_Q4
of tableSH.SALES
, the partitionP_Q4
is excluded because it is only valid for the partitionP_Q3
ofSH.SALES
:TABLE sh.sales;PARTITION sh.sales*.p_q3;
-
The following example with DML operations on partition
P_Q3
ofSH.SALES
shows how multiple partition rules can be specified. Partition will be included because it is matched by one of the partition inclusion rules.TABLE sh.sales;PARTITION sh.sales.p_q3;PARTITION sh.sales.p_q4;
-
In the following example with DML operations on partition
P_Q4
of tableSH.SALES_HISTORY
, the partitionP_Q4
is excluded because of explicit partition exclude rule.TABLE sh.sales_history PARTITION sh.sales*.p_q4; PARTITIONEXCLUDE sh.sales_history.p_q*;