ADD_SDATA_COLUMN
Use this procedure to map the FILTER BY or ORDER BY column (named in column_name) to the SDATA section (named in section_name). By default, all FILTER BY columns are mapped as SDATA.
Syntax
The syntax is as follows:
CTX_DDL.ADD_SDATA_COLUMN(
group_name IN VARCHAR2,
section_name IN VARCHAR2,
column_name IN VARCHAR2,
);
group_name
Name of the group that contains the section.
section_name
Name of the SDATA section.
column_name
Name of the FILTER BY column to add to the SDATA section.
Usage Notes
-
Mapping
FILTERBYcolumns to sections is optional. If no section mapping exists for aFILTERBYcolumn, then it is mapped to anSDATAsection, and the section name will be the name of theFILTERBYcolumn. -
If a section group is not specified during
CREATEINDEXof a composite domain index, then system default section group settings is used, and aSDATAsection is created for each of theFILTERBYandORDERBYcolumns.Note: Because section name does not allow certain special characters and is case insensitive, if the column name is case sensitive or contains special characters, then an error is raised. To work around this problem, you need to map the column to an
MDATAorSDATAsection before creating the index. -
An error will be raised if a column mapped to
MDATAalso appears in theORDERBYcolumn clause. -
Column section names are unique to their section group. That is, you cannot have an
MDATAcolumn section namedFOOif you already have anMDATAcolumn section namedFOO. Furthermore, you cannot have a field section namedFOOif you already have anSDATAcolumn section namedFOO. This is true whether it is implicitly created (byCREATEINDEXforFILTERBYorORDERBYclauses) or explicitly created (byCTX_DDL.ADD_SDATA_COLUMN). -
One section name can only be mapped to one
FILTERBYcolumn, and vice versa. For example, mapping a section to more than one column or mapping a column to more than one section is not allowed. -
Column sections can be added to any type of section group, including the
NULLsection group. -
99 is the maximum number for
SDATAsections and columns. -
If the datatype of a
FILTER BYorORDER BYcolumn isDATE, then theDATEdatatype values must conform to theYYYY-MM-DDorYYYY-MM-DD HH24:MI:SSformat. For example, to store aDATEvalue of “Nov. 24, 2006 10:32 PM 36 sec”, the document appears as<TAG>2006-11-24 22:32:36</TAG>.
Related Topics