Note
This view is available starting with V4.0.0.
Purpose
This view displays the execution plan outline information of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | The timestamp when the outline was created. |
| MODIFY_TIME | timestamp(6) | YES | The timestamp when the outline was last modified. |
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| DATABASE_ID | bigint(20) | NO | The database ID. |
| OUTLINE_ID | bigint(20) | NO | The ID of the execution plan outline. |
| DATABASE_NAME | varchar(128) | NO | The name of the database. |
| OUTLINE_NAME | varchar(128) | NO | The name of the execution plan outline. |
| VISIBLE_SIGNATURE | longtext | NO | The deserialized result of the signature. |
| SQL_TEXT | longtext | NO | The SQL statement specified in the ON clause when the execution plan outline was created. |
| OUTLINE_TARGET | longtext | NO | The SQL statement specified in the TO clause when the execution plan outline was created. |
| OUTLINE_SQL | longtext | NO | The SQL statement that contains the complete execution plan outline information. |
| SQL_ID | varchar(32) | NO | The SQL identifier. |
| OUTLINE_CONTENT | longtext | NO | The complete execution plan outline information. |
Sample query
Query the execution plan outline information of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_OUTLINES\G
The query result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 2025-03-14 14:11:55.039778
MODIFY_TIME: 2025-03-14 14:11:55.039778
TENANT_ID: 1
DATABASE_ID: 201001
OUTLINE_ID: 500041
DATABASE_NAME: oceanbase
OUTLINE_NAME: ol_1
VISIBLE_SIGNATURE: SELECT * FROM t1 WHERE c1 = ? AND c2 = ?
SQL_TEXT: SELECT /*+max_concurrent(0)*/ * FROM t1 WHERE c1 = 1 AND c2 = ?
OUTLINE_TARGET:
OUTLINE_SQL: SELECT /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "oceanbase"."t1"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.2.5.1') END_OUTLINE_DATA*/ * FROM t1 WHERE c1 = 1 AND c2 = ?
SQL_ID:
OUTLINE_CONTENT: /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "oceanbase"."t1"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.2.5.1') END_OUTLINE_DATA*/
1 row in set