Oracle9i SQL Reference Release 2 (9.2) Part Number A96540-02 |
|
|
View PDF |
Use the ALTER
INDEXTYPE
statement to add or drop an operator of the indextype or to modify the implementation type or change the properties of the indextype.
To alter an indextype in your own or another schema, you must have the ALTER
ANY
INDEXTYPE
system privilege.
To add a new operator, you must have the EXECUTE
object privilege on the operator.
To change the implementation type, you must have the EXECUTE
object privilege on the new implementation type.
alter_indextype::=
using_type_clause::=
Specify the name of the schema in which the indextype resides. If you omit schema
, Oracle assumes the indextype is in your own schema.
Specify the name of the indextype to be modified.
Use the ADD
or DROP
clause to add or drop an operator.
schema
, specify the schema containing the operator. If you omit schema
, Oracle assumes the operator is in your own schema.operator
, specify the name of the operator supported by the indextype.
All the operators listed in this clause should be valid operators.
parameter_type
, list the types of parameters to the operator.The USING
clause lets you specify a new type to provide the implementation for the indextype.
Use this clause to recompile the indextype explicitly. This clause is required only after some upgrade operations, because Oracle normally recompiles the indextype automatically.
The following example adds another operator binding to the TextIndexType
indextype created in the CREATE
INDEXTYPE
statement. TextIndexType
can now support a new operator lob_contains
with the bindings(CLOB
, CLOB
):
ALTER INDEXTYPE TextIndexType ADD lob_contains(CLOB, CLOB);