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
EXCLUDEWILDCARDOBJECTSONLYis supported -
Container portion is only valid in CDB environment in the three-part name.
-
SOURCECATALOGparameter will take affect when catalog portion is not specified. -
Container portion must be specified when
SOURCECATALOGis 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
PARTITIONparameter, it is excluded. -
If included by the
PARTITIONparameter, then exclusion rules are evaluated unless it was included by a non-wildcard inclusion rule andEXCLUDEWILDCARDOBJECTSONLYwas 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_Q4of 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_Q4of tableSH.SALES, all partitions are included on the Extract side using theTABLE/PARTITIONparameters. The partitionP_Q4is excluded at the Replicat side using theMAP/PARTITIONEXCLUDEparameters. 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_Q4of tableSH.SALES, the partitionP_Q4is excluded because it is only valid for the partitionP_Q3ofSH.SALES:TABLE sh.sales;PARTITION sh.sales*.p_q3;
-
The following example with DML operations on partition
P_Q3ofSH.SALESshows 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_Q4of tableSH.SALES_HISTORY, the partitionP_Q4is excluded because of explicit partition exclude rule.TABLE sh.sales_history PARTITION sh.sales*.p_q4; PARTITIONEXCLUDE sh.sales_history.p_q*;