Note
This view is available starting with V4.0.0.
Purpose
This view displays information about the concurrent limit rules of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CREATE_TIME | timestamp(6) | YES | The timestamp when the rule was created. |
| MODIFY_TIME | timestamp(6) | YES | The timestamp when the rule was last modified. |
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| DATABASE_ID | bigint(20) | NO | The ID of the database. |
| OUTLINE_ID | bigint(20) | NO | The ID of the concurrent limit rule. |
| DATABASE_NAME | varchar(128) | NO | The name of the database. |
| OUTLINE_NAME | varchar(128) | NO | The name of the concurrent limit rule. |
| OUTLINE_CONTENT | longtext | NO | The content of the concurrent limit rule. This column can be empty. |
| VISIBLE_SIGNATURE | longtext | NO | The result of deserializing the signature. |
| SQL_TEXT | longtext | NO | The SQL statement specified in the ON clause when the concurrent limit rule was created. |
| CONCURRENT_NUM | bigint(20) | NO | The maximum number of concurrent sessions allowed for the SQL statement. |
| LIMIT_TARGET | longtext | NO | The SQL statement that is limited. |
Sample query
Query the information about the concurrent limit rules of the current tenant in the sys tenant.
obclient[oceanbase]> SELECT * FROM oceanbase.DBA_OB_CONCURRENT_LIMIT_SQL\G
The query result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 2025-04-28 10:49:00.863006
MODIFY_TIME: 2025-04-28 10:49:00.863006
TENANT_ID: 1
DATABASE_ID: 201001
OUTLINE_ID: 500007
DATABASE_NAME: oceanbase
OUTLINE_NAME: otl
OUTLINE_CONTENT: /*+max_concurrent(0)*/
VISIBLE_SIGNATURE:
SQL_TEXT:
CONCURRENT_NUM: 0
LIMIT_TARGET:
*************************** 2. row ***************************
CREATE_TIME: 2025-04-28 10:53:24.949263
MODIFY_TIME: 2025-04-28 10:53:24.949263
TENANT_ID: 1
DATABASE_ID: 500001
OUTLINE_ID: 500008
DATABASE_NAME: test
OUTLINE_NAME: ol_1
OUTLINE_CONTENT: /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "test"."infotest"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.2.5.1') END_OUTLINE_DATA*/
VISIBLE_SIGNATURE: SELECT * FROM infotest WHERE c1 = ? AND c2 = ?
SQL_TEXT: SELECT /*+max_concurrent(0)*/ * FROM infotest WHERE c1 = 1 AND c2 = ?
CONCURRENT_NUM: 0
LIMIT_TARGET: SELECT * FROM infotest WHERE c1 = 1 AND c2 = ?
2 rows in set