[FEAT MERGE][CP]SQL Query Interface enhancements 423

Co-authored-by: yaojing624 <jingfeng.jf@oceanbase.com>
Co-authored-by: GongYusen <986957406@qq.com>
This commit is contained in:
obdev
2024-07-23 13:01:52 +00:00
committed by ob-robot
parent c82c2fbef7
commit 90894fc6ba
52 changed files with 3025 additions and 164 deletions

View File

@ -419,6 +419,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | GV$OB_RPC_OUTGOING | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SERVER_SCHEMA_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SESSION | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SESSION_PS_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_AUDIT | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_PLAN | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_WORKAREA_MEMORY_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -490,6 +491,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | V$OB_RPC_OUTGOING | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SERVER_SCHEMA_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SESSION | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SESSION_PS_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_AUDIT | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_PLAN | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_WORKAREA_MEMORY_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -845,6 +847,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_virtual_server_schema_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_event | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_ps_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_wait | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_wait_history | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_sesstat | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -1922,6 +1925,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | GV$OB_RPC_OUTGOING | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SERVER_SCHEMA_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SESSION | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SESSION_PS_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_AUDIT | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_PLAN | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | GV$OB_SQL_WORKAREA_MEMORY_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -1993,6 +1997,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | V$OB_RPC_OUTGOING | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SERVER_SCHEMA_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SESSION | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SESSION_PS_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_AUDIT | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_PLAN | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | V$OB_SQL_WORKAREA_MEMORY_INFO | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -2348,6 +2353,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_virtual_server_schema_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_event | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_ps_info | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_wait | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_session_wait_history | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_virtual_sesstat | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |

View File

@ -426,6 +426,7 @@ _px_max_message_pool_pct
_px_max_pipeline_depth
_px_message_compression
_px_object_sampling
_query_record_size_limit
_rebuild_replica_log_lag_threshold
_recyclebin_object_purge_frequency
_resource_limit_max_session_num

View File

@ -668,6 +668,7 @@ TX_STATE_VERSION bigint(20) unsigned NO NULL
FLT_TRACE_ID varchar(1024) NO NULL
PL_TRACE_ID varchar(128) YES NULL
PLSQL_EXEC_TIME bigint(20) NO NULL
STMT_TYPE varchar(128) YES NULL
TOTAL_MEMSTORE_READ_ROW_COUNT bigint(20) NO NULL
TOTAL_SSSTORE_READ_ROW_COUNT bigint(20) NO NULL
PROXY_USER varchar(128) YES NULL
@ -986,6 +987,7 @@ TX_STATE_VERSION bigint(20) unsigned NO
FLT_TRACE_ID varchar(1024) NO
PL_TRACE_ID varchar(128) NO
PLSQL_EXEC_TIME bigint(20) NO
STMT_TYPE varchar(128) NO
TOTAL_MEMSTORE_READ_ROW_COUNT bigint(20) NO
TOTAL_SSSTORE_READ_ROW_COUNT bigint(20) NO
PROXY_USER varchar(128) NO
@ -6169,6 +6171,40 @@ EXECUTION_PLAN longtext YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_MVREF_STMT_STATS limit 1);
cnt
1
desc oceanbase.GV$OB_SESSION_PS_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL
SVR_PORT bigint(20) NO NULL
TENANT_ID bigint(20) NO NULL
PROXY_SESSION_ID bigint(20) unsigned NO NULL
SESSION_ID bigint(20) unsigned NO NULL
PS_CLIENT_STMT_ID bigint(20) NO NULL
PS_INNER_STMT_ID bigint(20) NO NULL
STMT_TYPE varchar(256) NO NULL
PARAM_COUNT bigint(20) NO NULL
PARAM_TYPES longtext NO NULL
REF_COUNT bigint(20) NO NULL
CHECKSUM bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_SESSION_PS_INFO limit 1);
cnt
1
desc oceanbase.V$OB_SESSION_PS_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO
SVR_PORT bigint(20) NO
TENANT_ID bigint(20) NO
PROXY_SESSION_ID bigint(20) unsigned NO
SESSION_ID bigint(20) unsigned NO
PS_CLIENT_STMT_ID bigint(20) NO
PS_INNER_STMT_ID bigint(20) NO
STMT_TYPE varchar(256) NO
PARAM_COUNT bigint(20) NO
PARAM_TYPES longtext NO
REF_COUNT bigint(20) NO
CHECKSUM bigint(20) NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_SESSION_PS_INFO limit 1);
cnt
1
desc oceanbase.GV$OB_TRACEPOINT_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL

View File

@ -669,6 +669,7 @@ TX_STATE_VERSION bigint(20) unsigned NO NULL
FLT_TRACE_ID varchar(1024) NO NULL
PL_TRACE_ID varchar(128) YES NULL
PLSQL_EXEC_TIME bigint(20) NO NULL
STMT_TYPE varchar(128) YES NULL
TOTAL_MEMSTORE_READ_ROW_COUNT bigint(20) NO NULL
TOTAL_SSSTORE_READ_ROW_COUNT bigint(20) NO NULL
PROXY_USER varchar(128) YES NULL
@ -987,6 +988,7 @@ TX_STATE_VERSION bigint(20) unsigned NO
FLT_TRACE_ID varchar(1024) NO
PL_TRACE_ID varchar(128) NO
PLSQL_EXEC_TIME bigint(20) NO
STMT_TYPE varchar(128) NO
TOTAL_MEMSTORE_READ_ROW_COUNT bigint(20) NO
TOTAL_SSSTORE_READ_ROW_COUNT bigint(20) NO
PROXY_USER varchar(128) NO
@ -8924,6 +8926,40 @@ EXECUTION_PLAN longtext YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_MVREF_STMT_STATS limit 1);
cnt
1
desc oceanbase.GV$OB_SESSION_PS_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL
SVR_PORT bigint(20) NO NULL
TENANT_ID bigint(20) NO NULL
PROXY_SESSION_ID bigint(20) unsigned NO NULL
SESSION_ID bigint(20) unsigned NO NULL
PS_CLIENT_STMT_ID bigint(20) NO NULL
PS_INNER_STMT_ID bigint(20) NO NULL
STMT_TYPE varchar(256) NO NULL
PARAM_COUNT bigint(20) NO NULL
PARAM_TYPES longtext NO NULL
REF_COUNT bigint(20) NO NULL
CHECKSUM bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_SESSION_PS_INFO limit 1);
cnt
1
desc oceanbase.V$OB_SESSION_PS_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO
SVR_PORT bigint(20) NO
TENANT_ID bigint(20) NO
PROXY_SESSION_ID bigint(20) unsigned NO
SESSION_ID bigint(20) unsigned NO
PS_CLIENT_STMT_ID bigint(20) NO
PS_INNER_STMT_ID bigint(20) NO
STMT_TYPE varchar(256) NO
PARAM_COUNT bigint(20) NO
PARAM_TYPES longtext NO
REF_COUNT bigint(20) NO
CHECKSUM bigint(20) NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_SESSION_PS_INFO limit 1);
cnt
1
desc oceanbase.GV$OB_TRACEPOINT_INFO;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL

View File

@ -4889,6 +4889,26 @@ IS_MANDATORY varchar(1024) NO
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from information_schema.ENABLED_ROLES;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_session_ps_info;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL
svr_port bigint(20) NO NULL
tenant_id bigint(20) NO NULL
proxy_session_id bigint(20) unsigned NO NULL
session_id bigint(20) unsigned NO NULL
ps_client_stmt_id bigint(20) NO NULL
ps_inner_stmt_id bigint(20) NO NULL
stmt_type varchar(256) NO NULL
param_count bigint(20) NO NULL
param_types longtext NO NULL
ref_count bigint(20) NO NULL
checksum bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_session_ps_info;
IF(count(*) >= 0, 1, 0)
1
"oceanbase.__all_virtual_session_ps_info runs in single server"
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_tracepoint_info;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL

View File

@ -9469,6 +9469,26 @@ IS_MANDATORY varchar(1024) NO
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from information_schema.ENABLED_ROLES;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_session_ps_info;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL
svr_port bigint(20) NO NULL
tenant_id bigint(20) NO NULL
proxy_session_id bigint(20) unsigned NO NULL
session_id bigint(20) unsigned NO NULL
ps_client_stmt_id bigint(20) NO NULL
ps_inner_stmt_id bigint(20) NO NULL
stmt_type varchar(256) NO NULL
param_count bigint(20) NO NULL
param_types longtext NO NULL
ref_count bigint(20) NO NULL
checksum bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_session_ps_info;
IF(count(*) >= 0, 1, 0)
1
"oceanbase.__all_virtual_session_ps_info runs in single server"
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_tracepoint_info;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL

View File

@ -742,6 +742,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
12463 __all_virtual_column_privilege_history 2 201001 1
12464 __all_virtual_tenant_snapshot_ls_replica_history 2 201001 1
12466 ENABLED_ROLES 2 201002 1
12468 __all_virtual_session_ps_info 2 201001 1
12469 __all_virtual_tracepoint_info 2 201001 1
12473 __all_virtual_compatibility_control 2 201001 1
12474 __all_virtual_user_proxy_info 2 201001 1
@ -1165,6 +1166,8 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
21538 DBA_MVREF_CHANGE_STATS 1 201001 1
21539 CDB_MVREF_STMT_STATS 1 201001 1
21540 DBA_MVREF_STMT_STATS 1 201001 1
21541 GV$OB_SESSION_PS_INFO 1 201001 1
21542 V$OB_SESSION_PS_INFO 1 201001 1
21543 GV$OB_TRACEPOINT_INFO 1 201001 1
21544 V$OB_TRACEPOINT_INFO 1 201001 1
21545 V$OB_COMPATIBILITY_CONTROL 1 201001 1