create_index
Create an index on an Oracle table to speed up queries, with options for unique indexes and specific columns. Fails without CREATE ANY INDEX or table ownership.
Instructions
Create an index on a table. Requires CREATE ANY INDEX (if the table is in another schema) or table ownership; Oracle returns ORA-01031 otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name. | |
| table | Yes | Target table name. | |
| schema | No | Schema where the index will live. Optional — defaults to the server's current schema; omit rather than guess. | |
| unique | No | Whether to create a UNIQUE index (default false). | |
| columns | Yes | Column names to index (JSON array, ordered). | |
| tableSchema | Yes | Schema of the target table. |