Note
This view is available starting with V4.0.0.
Overview
Displays the execution plan and throttling rule outline history 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) | YES | Database ID |
| OUTLINE_ID | bigint(20) | NO | Outline ID |
| OUTLINE_NAME | varchar(128) | YES | Outline Name |
| SQL_TEXT | longtext | YES | SQL specified in the ON clause when creating the outline |
| OUTLINE_PARAMS | varbinary(65536) | YES | When creating an outline, the related rate-limiting rule parameters |
| OUTLINE_TARGET | longtext | YES | SQL specified in the to clause when creating an outline |
| SQL_ID | varchar(32) | YES | SQL identifiers |
| OUTLINE_CONTENT | longtext | YES | Complete Outline Information |
| IS_DELETED | varchar(3) | NO | Whether to delete |
| ENABLED | varchar(3) | NO | Validity |
Sample query
View the execution plans and throttling rule outlines of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_OUTLINE_CONCURRENT_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 2025-03-14 14:11:55.043164
MODIFY_TIME: 2025-03-14 14:11:55.043164
TENANT_ID: 1
DATABASE_ID: 201001
OUTLINE_ID: 500041
OUTLINE_NAME: ol_1
SQL_TEXT: SELECT /*+max_concurrent(0)*/ * FROM t1 WHERE c1 = 1 AND c2 = ?
OUTLINE_PARAMS: ??SELECT /*+max_concurrent(0)*/ * FROM t1 WHERE c1 = 1 AND c2 = ?
OUTLINE_TARGET:
SQL_ID:
OUTLINE_CONTENT: /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "oceanbase"."t1"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.2.5.1') END_OUTLINE_DATA*/
IS_DELETED: NO
ENABLED: YES
1 row in set
