Note
This view is available starting with V4.0.0.
Purpose
This view displays the execution plans and throttling rules of outlines for 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) | YES | The database ID. |
| OUTLINE_ID | bigint(20) | NO | The outline ID. |
| OUTLINE_NAME | varchar(128) | YES | The outline name. |
| SQL_TEXT | longtext | YES | The SQL statement specified in the ON clause when the outline was created. |
| OUTLINE_PARAMS | varbinary(65536) | YES | The throttling rule parameters specified when the outline was created. |
| OUTLINE_TARGET | longtext | YES | The SQL statement specified in the TO clause when the outline was created. |
| SQL_ID | varchar(32) | YES | The SQL identifier. |
| OUTLINE_CONTENT | longtext | YES | The complete outline information. |
| IS_DELETED | varchar(3) | NO | Indicates whether the outline is deleted. |
| ENABLED | varchar(3) | NO | Indicates whether the outline is enabled. |
Sample query
Query the execution plans and throttling rules of outlines for 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