Note
This view is available starting with V2.2.30.
Purpose
This view displays information about function-based indexes that the current user can access.
Applicability
This view applies only to OceanBase Database in Oracle 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 where the index resides. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the table where the index resides. |
| 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 that are accessible to the current user.
obclient [SYS]> SELECT * FROM SYS.ALL_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
DBA_IND_EXPRESSIONS: information about all function-based indexes in the current tenant.
USER_IND_EXPRESSIONS: information about the function-based indexes that belong to the current user.
For more information about how to create and use function-based indexes, see Create an index.