Using DDL Statements and Options for Filtering
-
INCLUDE(default) means include all objects that fit the rest of the description.EXCLUDEmeans to omit items that fit the description. Exclude rules take precedence over include rules. -
OPTYPEspecifies the types of operations to be included or excluded. You can useCREATEandALTER. MultipleOPTYPEcan be specified using parentheses. For example,OPTYPE (CREATE, ALTER). The asterisk (*) wildcard can be specified to indicate all operation types, and this is the default. -
OBJTYPEspecifies theTABLEoperations to include or exclude. The wildcard can be specified to indicate all object types, and this is the default. -
OBJNAMEspecifies the actual object names to include or exclude. For example,eric.*. Wildcards are specified as in other cases where multiple tables are specified. The default is*. -
STRINGindicates that the rule is true if any of the strings inSTRINGSPECare present (or false ifEXCLUDESTRINGis specified and theSTRINGSPECis present). If multipleSTRINGentries are made, at least one entry in eachSTRINGSPECmust be present to make the rule evaluate true.For example:DDLOPS STRING (“a”, “b”), STRING (“c”) EVALUATES true IF STRING “a” OR “b” IS PRESENT, AND STRING “c” IS PRESENT -
LOCALis specified if you want the rule to apply only to the current Extract trail (the Extract trail to which the rule applies must precede thisDDLOPSspecification). -
The semicolon is required to terminate the parameter entry.
In the following example, DDL is used to capture
CREATEandALTERfor all objects inericexcept for those starting with nametab.DDL & INCLUDE OPTYPE CREATE & INCLUDE OPTYPE ALTER & INCLUDE OBJNAME (eric.*) & EXCLUDE OBJNAME (eric.tab*);In the following example, the DDL captures
CREATEfor all objects injoe,alterfor allindextype objectsDDL & INCLUDE OPTYPE CREATE & INCLUDE OBJNAME (joe.*) & INCLUDE OPTYPE ALTER & INCLUDE OBJTYPE (index);In the following example, the DDL captures
CREATEfor all objects injoe.DDL & INCLUDE OPTYPE CREATE & INCLUDE OBJNAME (joe.*)TheNote:
There can be only one DDL filtering statement. If DDL filter is long, use ampersand (&) sign to continue it on another line.DDLOPS.Cmodule stores all DDL operation parameters and executes related rules.
Additionally, you can use the DDLOPTIONS parameter to configure
aspects of DDL processing other than filtering and string
substitution. You can use multiple DDLOPTIONS
statements and Oracle recommends using one. If you are using
multiple DDLOPTIONS statements, then make each of
them unique so that one does not override the other. Multiple
DDLOPTIONS statements are executed in the
order listed in the parameter file.
See DDL and DDLOPTIONS.