Skip Headers
Oracle® Database SQL Language Reference
11g Release 2 (11.2)

Part Number E26088-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub
SQLRF00806

ALTER INDEXTYPE

Purpose

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.

Prerequisites

The indextype must be in your own schema or 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.

Syntax

SQLRF52822alter_indextype::=

Description of alter_indextype.gif follows
Description of the illustration alter_indextype.gif

(using_type_clause::=, storage_table_clause)

SQLRF52823using_type_clause::=

Description of using_type_clause.gif follows
Description of the illustration using_type_clause.gif

(array_DML_clause ::=)

SQLRF52824array_DML_clause ::=

Description of array_dml_clause.gif follows
Description of the illustration array_dml_clause.gif

SQLRF52825storage_table_clause::=

Description of storage_table_clause.gif follows
Description of the illustration storage_table_clause.gif

Semantics

SQLRF52826schema

Specify the name of the schema in which the indextype resides. If you omit schema, then Oracle Database assumes the indextype is in your own schema.

SQLRF52827indextype

Specify the name of the indextype to be modified.

SQLRF52828ADD | DROP

Use the ADD or DROP clause to add or drop an operator.

No special privilege needed to drop.

SQLRF52829using_type_clause

The USING clause lets you specify a new type to provide the implementation for the indextype.

SQLRF52830array_DML_clause

Use this clause to modify the indextype to support the array interface for the ODCIIndexInsert method.

SQLRF52831type and varray_type If the data type of the column to be indexed is a user-defined object type, then you must specify this clause to identify the varray varray_type that Oracle should use to hold column values of type. If the indextype supports a list of types, then you can specify a corresponding list of varray types. If you omit schema for either type or varray_type, then Oracle assumes the type is in your own schema.

If the data type of the column to be indexed is a built-in system type, then any varray type specified for the indextype takes precedence over the ODCI types defined by the system.

SQLRF52832COMPILE

Use this clause to recompile the indextype explicitly. This clause is required only after some upgrade operations, because Oracle Database normally recompiles the indextype automatically.

SQLRF52833storage_table_clause

This clause has the same behavior when altering an indextype that it has when you are creating an indextype. Refer to the CREATE INDEXTYPE storage_table_clause for more information.

SQLRF52834WITH LOCAL PARTITION

This clause has the same behavior when altering an indextype that it has when you create an indextype. Refer to the CREATE INDEXTYPE clause WITH LOCAL PARTITION for more information.

Example

SQLRF52835Altering an Indextype: Example The following example compiles the position_indextype indextype created in "Creating an Indextype: Example".

ALTER INDEXTYPE position_indextype COMPILE;
Reader Comment

   

Comments, corrections, and suggestions are forwarded to authors every week. By submitting, you confirm you agree to the terms and conditions. Use the OTN forums for product questions. For support or consulting, file a service request through My Oracle Support.

Hide Navigation

Quick Lookup

Database Library · Master Index · Master Glossary · Book List · Data Dictionary · SQL Keywords · Initialization Parameters · Advanced Search · Error Messages

Main Categories

This Document

New and changed documents:
RSS Feed HTML RSS Feed PDF