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 applicable only to OceanBase Database in Oracle mode.
Columns
| Column | Type | Can it be NULL | 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 on which the index is created. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the table on which the index is created. |
| 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 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
ALL_IND_EXPRESSIONS: This view displays information about all function-based indexes that the current user can access.
USER_IND_EXPRESSIONS: This view displays information about the function-based indexes owned by the current user.
For more information about how to create and use function-based indexes, see Create an index.