Note
- For V4.2.x, this view is available starting with V4.2.3.
- For V4.3.x, this view is available starting with V4.3.4.
Overview
The DBA_OB_FORMAT_OUTLINES view is used to record the details of the current tenant's format outline.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | Represents the creation timestamp. |
| MODIFY_TIME | timestamp(6) | YES | Represents the modification timestamp. |
| TENANT_ID | bigint(20) | NO | Represents the tenant ID. |
| DATABASE_ID | bigint(20) | NO | The database ID. |
| OUTLINE_ID | bigint(20) | NO | Represents the execution plan outline ID. |
| DATABASE_NAME | varchar(128) | NO | The name of the database. |
| OUTLINE_NAME | varchar(128) | NO | Represents the name of the execution plan outline. |
| VISIBLE_SIGNATURE | longtext | NO | Represents the deserialized result of Signature. |
| FORMAT_SQL_TEXT | longtext | YES | Indicates that when creating the execution plan outline, inONgenerated by the SQL specified in theFORMAT SQL TEXT. |
| OUTLINE_TARGET | longtext | NO | Indicates that when creating the execution plan outline, inTOThe SQL statement specified in the WHERE clause. |
| OUTLINE_SQL | longtext | NO | SQL statements that contain complete execution plan outline information. |
| FORMAT_SQL_ID | varbinary(32) | NO | Indicates that the record has passed.FORMAT SQL TEXTThe generated MD5 value. |
| OUTLINE_CONTENT | longtext | NO | Represents the complete execution plan outline information. |
Sample query
Query the information of the next format outline in the current tenant.
obclient> SELECT * FROM oceanbase.DBA_OB_FORMAT_OUTLINES LIMIT 1\G
The return result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 2025-12-29 16:14:35.026855
MODIFY_TIME: 2025-12-29 16:14:35.026855
TENANT_ID: 1
DATABASE_ID: 500001
OUTLINE_ID: 500007
DATABASE_NAME: test
OUTLINE_NAME: my_outline
VISIBLE_SIGNATURE: SELECT * FROM EMPLOYEES WHERE DEPARTMENT_ID > = ?
FORMAT_SQL_TEXT: SELECT * FROM employees WHERE department_id >= 10
OUTLINE_TARGET:
OUTLINE_SQL:
FORMAT_SQL_ID:
OUTLINE_CONTENT: /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "test"."employees"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.2.5.0') END_OUTLINE_DATA*/
1 row in set
