[FEAT MERGE] 备库优化 + is_standby_cluster调用点替换 + service_name

This commit is contained in:
linqiucen
2024-08-22 16:18:56 +00:00
committed by ob-robot
parent 962667c3bd
commit 2ddad4afc0
142 changed files with 5495 additions and 1231 deletions

View File

@ -331,6 +331,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | DBA_OB_RESTORE_PROGRESS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_RSRC_IO_DIRECTIVES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SEQUENCE_OBJECTS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SERVICES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SYS_VARIABLES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_TABLEGROUPS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_TABLEGROUP_PARTITIONS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -848,6 +849,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_virtual_server_compaction_event_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_server_compaction_progress | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| 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_service | 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 | |
@ -1841,6 +1843,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | DBA_OB_RESTORE_PROGRESS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_RSRC_IO_DIRECTIVES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SEQUENCE_OBJECTS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SERVICES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_SYS_VARIABLES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_TABLEGROUPS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_OB_TABLEGROUP_PARTITIONS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -2358,6 +2361,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_virtual_server_compaction_event_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_server_compaction_progress | SYSTEM TABLE | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| 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_service | 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 | |
@ -3122,6 +3126,8 @@ select * from information_schema.statistics where table_schema in ('oceanbase',
| def | oceanbase | __all_server_event_history | 0 | oceanbase | PRIMARY | 3 | svr_port | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_server_event_history | 1 | oceanbase | idx_server_event | 1 | event | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_server_event_history | 1 | oceanbase | idx_server_module | 1 | module | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_service | 0 | oceanbase | PRIMARY | 1 | tenant_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_service | 0 | oceanbase | PRIMARY | 2 | service_name_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_service_epoch | 0 | oceanbase | PRIMARY | 1 | tenant_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_service_epoch | 0 | oceanbase | PRIMARY | 2 | name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_space_usage | 0 | oceanbase | PRIMARY | 1 | tenant_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |

View File

@ -2657,8 +2657,9 @@ LB_VPORT bigint(20) YES NULL
IN_BYTES bigint(20) NO NULL
OUT_BYTES bigint(20) NO NULL
USER_CLIENT_PORT bigint(20) NO
TOTAL_CPU_TIME bigint(21) NO NULL
PROXY_USER varchar(128) YES NULL
SERVICE_NAME varchar(64) YES NULL
TOTAL_CPU_TIME bigint(21) NO NULL
TOP_INFO varchar(262143) YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_PROCESSLIST limit 1);
cnt
@ -2702,8 +2703,9 @@ LB_VPORT bigint(20) NO
IN_BYTES bigint(20) NO
OUT_BYTES bigint(20) NO
USER_CLIENT_PORT bigint(20) NO
TOTAL_CPU_TIME bigint(21) NO
PROXY_USER varchar(128) NO
SERVICE_NAME varchar(64) NO
TOTAL_CPU_TIME bigint(21) NO
TOP_INFO varchar(262143) NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_PROCESSLIST limit 1);
cnt
@ -6284,6 +6286,16 @@ ENABLE_VERSIONS longtext NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_COMPATIBILITY_CONTROL limit 1);
cnt
1
desc oceanbase.DBA_OB_SERVICES;
Field Type Null Key Default Extra
CREATE_TIME timestamp(6) NO NULL
MODIFIED_TIME timestamp(6) NO NULL
SERVICE_NAME_ID bigint(20) NO NULL
SERVICE_NAME varchar(64) NO NULL
SERVICE_STATUS varchar(64) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_OB_SERVICES limit 1);
cnt
1
desc oceanbase.GV$OB_TENANT_RESOURCE_LIMIT;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL

View File

@ -3935,8 +3935,9 @@ LB_VPORT bigint(20) YES NULL
IN_BYTES bigint(20) NO NULL
OUT_BYTES bigint(20) NO NULL
USER_CLIENT_PORT bigint(20) NO
TOTAL_CPU_TIME bigint(21) NO NULL
PROXY_USER varchar(128) YES NULL
SERVICE_NAME varchar(64) YES NULL
TOTAL_CPU_TIME bigint(21) NO NULL
TOP_INFO varchar(262143) YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_PROCESSLIST limit 1);
cnt
@ -3980,8 +3981,9 @@ LB_VPORT bigint(20) NO
IN_BYTES bigint(20) NO
OUT_BYTES bigint(20) NO
USER_CLIENT_PORT bigint(20) NO
TOTAL_CPU_TIME bigint(21) NO
PROXY_USER varchar(128) NO
SERVICE_NAME varchar(64) NO
TOTAL_CPU_TIME bigint(21) NO
TOP_INFO varchar(262143) NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_PROCESSLIST limit 1);
cnt
@ -9080,6 +9082,27 @@ ENABLE_VERSIONS longtext NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_COMPATIBILITY_CONTROL limit 1);
cnt
1
desc oceanbase.DBA_OB_SERVICES;
Field Type Null Key Default Extra
CREATE_TIME timestamp(6) NO NULL
MODIFIED_TIME timestamp(6) NO NULL
SERVICE_NAME_ID bigint(20) NO NULL
SERVICE_NAME varchar(64) NO NULL
SERVICE_STATUS varchar(64) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_OB_SERVICES limit 1);
cnt
1
desc oceanbase.CDB_OB_SERVICES;
Field Type Null Key Default Extra
TENANT_ID bigint(20) NO NULL
CREATE_TIME timestamp(6) NO NULL
MODIFIED_TIME timestamp(6) NO NULL
SERVICE_NAME_ID bigint(20) NO NULL
SERVICE_NAME varchar(64) NO NULL
SERVICE_STATUS varchar(64) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.CDB_OB_SERVICES limit 1);
cnt
1
desc oceanbase.GV$OB_TENANT_RESOURCE_LIMIT;
Field Type Null Key Default Extra
SVR_IP varchar(46) NO NULL

View File

@ -4984,6 +4984,17 @@ enable_versions longtext NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_compatibility_control;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_service;
Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL
service_name_id bigint(20) NO PRI NULL
gmt_create timestamp(6) NO NULL
gmt_modified timestamp(6) NO NULL
service_name varchar(64) NO NULL
service_status varchar(64) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_service;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_tenant_resource_limit;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL

View File

@ -9616,6 +9616,17 @@ is_deleted bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_user_proxy_role_info_history;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_service;
Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL
service_name_id bigint(20) NO PRI NULL
gmt_create timestamp(6) NO NULL
gmt_modified timestamp(6) NO NULL
service_name varchar(64) NO NULL
service_status varchar(64) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_service;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_tenant_resource_limit;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL

View File

@ -298,6 +298,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
513 __all_user_proxy_info_history 0 201001 1
514 __all_user_proxy_role_info 0 201001 1
515 __all_user_proxy_role_info_history 0 201001 1
516 __all_service 0 201001 1
518 __all_mview_dep 0 201001 1
519 __all_scheduler_job_run_detail_v2 0 201001 1
10001 __tenant_virtual_all_table 2 201001 1
@ -751,6 +752,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
12475 __all_virtual_user_proxy_info_history 2 201001 1
12476 __all_virtual_user_proxy_role_info 2 201001 1
12477 __all_virtual_user_proxy_role_info_history 2 201001 1
12480 __all_virtual_service 2 201001 1
12481 __all_virtual_tenant_resource_limit 2 201001 1
12482 __all_virtual_tenant_resource_limit_detail 2 201001 1
12487 __all_virtual_nic_info 2 201001 1
@ -1175,6 +1177,8 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
21543 GV$OB_TRACEPOINT_INFO 1 201001 1
21544 V$OB_TRACEPOINT_INFO 1 201001 1
21545 V$OB_COMPATIBILITY_CONTROL 1 201001 1
21548 DBA_OB_SERVICES 1 201001 1
21549 CDB_OB_SERVICES 1 201001 1
21550 GV$OB_TENANT_RESOURCE_LIMIT 1 201001 1
21551 V$OB_TENANT_RESOURCE_LIMIT 1 201001 1
21552 GV$OB_TENANT_RESOURCE_LIMIT_DETAIL 1 201001 1