Note
This view is available starting with V4.0.0.
Overview
Displays the execution plan outline information for the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | Creation Timestamp |
| MODIFY_TIME | timestamp(6) | YES | Modified Timestamp |
| TENANT_ID | bigint(20) | NO | Tenant ID |
| DATABASE_ID | bigint(20) | NO | Database ID |
| OUTLINE_ID | bigint(20) | NO | Execution Plan Outline ID |
| DATABASE_NAME | varchar(128) | NO | Database Name |
| OUTLINE_NAME | varchar(128) | NO | Execution Plan Outline Name |
| VISIBLE_SIGNATURE | longtext | NO | Deserialized Signature Result |
| SQL_TEXT | longtext | NO | SQL specified in the ON clause when creating an execution plan outline |
| OUTLINE_TARGET | longtext | NO | SQL specified in the to clause when creating an execution plan outline |
| OUTLINE_SQL | longtext | NO | SQL with Complete Execution Plan Outline Information |
| SQL_ID | varchar(32) | NO | SQL identifiers |
| OUTLINE_CONTENT | longtext | NO | Complete execution plan outline information |
Sample query
View the execution plan outline information for 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
