Note
This view is available starting with V2.2.30.
Purpose
This view displays information about all function-based indexes in the current tenant.
Applicability
This view is available only in Oracle-compatible mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| INDEX_OWNER | VARCHAR2(128) | NO | The owner of the index. |
| INDEX_NAME | VARCHAR2(128) | NO | The name of the index. |
| TABLE_OWNER | VARCHAR2(128) | NO | The owner of the table that contains the index. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the table that contains the index. |
| COLUMN_EXPRESSION | VARCHAR2(1000) | NO | The expression of the function-based index. |
| COLUMN_POSITION | NUMBER(38) | NO | The position of the column in the index. |
Sample query
Query the information about all function-based indexes in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_IND_EXPRESSIONS;
The query result is as follows:
+-------------+----------------+-------------+------------+-------------------+-----------------+
| INDEX_OWNER | INDEX_NAME | TABLE_OWNER | TABLE_NAME | COLUMN_EXPRESSION | COLUMN_POSITION |
+-------------+----------------+-------------+------------+-------------------+-----------------+
| SYS | TBL2_FUNC_IDX1 | SYS | TBL2_FUNC | ("C1" + 1) | 1 |
+-------------+----------------+-------------+------------+-------------------+-----------------+
1 row in set
References
Query the information about all function-based indexes accessible to the current user: ALL_IND_EXPRESSIONS
Query the information about all function-based indexes owned by the current user: USER_IND_EXPRESSIONS
For information about how to create and use a function-based index, see Create an index.