mark some file to been opensource for ce-farm
This commit is contained in:
@ -0,0 +1,61 @@
|
||||
use information_schema;
|
||||
select * from collations;
|
||||
COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN
|
||||
utf8mb4_general_ci utf8mb4 45 Yes Yes 1
|
||||
utf8mb4_bin utf8mb4 46 Yes 1
|
||||
binary binary 63 Yes Yes 1
|
||||
gbk_chinese_ci gbk 28 Yes Yes 1
|
||||
gbk_bin gbk 87 Yes 1
|
||||
utf16_general_ci utf16 54 Yes Yes 1
|
||||
utf16_bin utf16 55 Yes 1
|
||||
utf8mb4_unicode_ci utf8mb4 224 Yes 1
|
||||
utf16_unicode_ci utf16 101 Yes 1
|
||||
gb18030_chinese_ci gb18030 248 Yes Yes 1
|
||||
gb18030_bin gb18030 249 Yes 1
|
||||
latin1_swedish_ci latin1 8 Yes Yes 1
|
||||
latin1_bin latin1 47 Yes 1
|
||||
gb18030_2022_bin gb18030_2022 216 Yes 1
|
||||
gb18030_2022_chinese_ci gb18030_2022 217 Yes Yes 1
|
||||
gb18030_2022_chinese_cs gb18030_2022 218 Yes 1
|
||||
gb18030_2022_radical_ci gb18030_2022 219 Yes 1
|
||||
gb18030_2022_radical_cs gb18030_2022 220 Yes 1
|
||||
gb18030_2022_stroke_ci gb18030_2022 221 Yes 1
|
||||
gb18030_2022_stroke_cs gb18030_2022 222 Yes 1
|
||||
select collation_name, character_set_name, id, is_default, is_compiled, sortlen from collations;
|
||||
collation_name character_set_name id is_default is_compiled sortlen
|
||||
utf8mb4_general_ci utf8mb4 45 Yes Yes 1
|
||||
utf8mb4_bin utf8mb4 46 Yes 1
|
||||
binary binary 63 Yes Yes 1
|
||||
gbk_chinese_ci gbk 28 Yes Yes 1
|
||||
gbk_bin gbk 87 Yes 1
|
||||
utf16_general_ci utf16 54 Yes Yes 1
|
||||
utf16_bin utf16 55 Yes 1
|
||||
utf8mb4_unicode_ci utf8mb4 224 Yes 1
|
||||
utf16_unicode_ci utf16 101 Yes 1
|
||||
gb18030_chinese_ci gb18030 248 Yes Yes 1
|
||||
gb18030_bin gb18030 249 Yes 1
|
||||
latin1_swedish_ci latin1 8 Yes Yes 1
|
||||
latin1_bin latin1 47 Yes 1
|
||||
gb18030_2022_bin gb18030_2022 216 Yes 1
|
||||
gb18030_2022_chinese_ci gb18030_2022 217 Yes Yes 1
|
||||
gb18030_2022_chinese_cs gb18030_2022 218 Yes 1
|
||||
gb18030_2022_radical_ci gb18030_2022 219 Yes 1
|
||||
gb18030_2022_radical_cs gb18030_2022 220 Yes 1
|
||||
gb18030_2022_stroke_ci gb18030_2022 221 Yes 1
|
||||
gb18030_2022_stroke_cs gb18030_2022 222 Yes 1
|
||||
select * from collations where collation_name like '%utf8%';
|
||||
COLLATION_NAME CHARACTER_SET_NAME ID IS_DEFAULT IS_COMPILED SORTLEN
|
||||
utf8mb4_general_ci utf8mb4 45 Yes Yes 1
|
||||
utf8mb4_bin utf8mb4 46 Yes 1
|
||||
utf8mb4_unicode_ci utf8mb4 224 Yes 1
|
||||
show create table collations;
|
||||
View Create View character_set_client collation_connection
|
||||
COLLATIONS CREATE VIEW `COLLATIONS` AS select collation as COLLATION_NAME, charset as CHARACTER_SET_NAME, id as ID, `is_default` as IS_DEFAULT, is_compiled as IS_COMPILED, sortlen as SORTLEN from oceanbase.__tenant_virtual_collation utf8mb4 utf8mb4_general_ci
|
||||
desc collations;
|
||||
Field Type Null Key Default Extra
|
||||
COLLATION_NAME varchar(128) NO
|
||||
CHARACTER_SET_NAME varchar(128) NO
|
||||
ID bigint(20) NO
|
||||
IS_DEFAULT varchar(4) NO
|
||||
IS_COMPILED varchar(4) NO
|
||||
SORTLEN bigint(20) NO
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,576 @@
|
||||
=========================== case1: under sys tenant ===========================
|
||||
===================== [1] prevent data_type UNKNOWN ======================
|
||||
show parameters where data_type = 'UNKNOWN';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
select * from __all_sys_parameter where data_type = 'UNKNOWN';
|
||||
gmt_create gmt_modified zone svr_type svr_ip svr_port name data_type value value_strict info need_reboot section visible_level config_version scope source edit_level
|
||||
select * from __tenant_parameter where data_type = 'UNKNOWN';
|
||||
gmt_create gmt_modified tenant_id zone svr_type svr_ip svr_port name data_type value info section scope source edit_level config_version
|
||||
select * from __all_virtual_sys_parameter_stat where data_type = 'UNKNOWN';
|
||||
zone svr_type svr_ip svr_port name data_type value value_strict info need_reboot section visible_level scope source edit_level default_value isdefault
|
||||
select * from __all_virtual_tenant_parameter_stat where data_type = 'UNKNOWN';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level tenant_id default_value isdefault
|
||||
select * from __all_virtual_tenant_parameter_info where data_type = 'UNKNOWN';
|
||||
tenant_id zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
select * from __all_virtual_tenant_parameter where data_type = 'UNKNOWN';
|
||||
tenant_id zone svr_type svr_ip svr_port name gmt_create gmt_modified data_type value info section scope source edit_level config_version
|
||||
select * from GV$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
SVR_IP SVR_PORT ZONE SCOPE TENANT_ID NAME DATA_TYPE VALUE INFO SECTION EDIT_LEVEL
|
||||
select * from V$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
SVR_IP SVR_PORT ZONE SCOPE TENANT_ID NAME DATA_TYPE VALUE INFO SECTION EDIT_LEVEL
|
||||
=============== [2] check data_tpye for __all_sys_parameter ===============
|
||||
select name, data_type from __all_sys_parameter where name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from __all_sys_parameter where name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from __all_sys_parameter where name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from __all_sys_parameter where name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from __all_sys_parameter where name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from __all_sys_parameter where name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from __all_sys_parameter where name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from __all_sys_parameter where name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
=============== [3] check data_tpye for __tenant_parameter ================
|
||||
select name, data_type from __tenant_parameter where name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from __tenant_parameter where name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from __tenant_parameter where name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from __tenant_parameter where name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from __tenant_parameter where name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from __tenant_parameter where name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from __tenant_parameter where name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from __tenant_parameter where name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
======== [4] check data_tpye for __all_virtual_sys_parameter_stat =========
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
======= [5] check data_tpye for __all_virtual_tenant_parameter_stat =======
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
======= [6] check data_tpye for __all_virtual_tenant_parameter_info =======
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
========= [7] check data_tpye for __all_virtual_tenant_parameter ==========
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible';
|
||||
name data_type
|
||||
================ [8] check data_tpye for GV$OB_PARAMETERS ================
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
================ [9] check data_tpye for V$OB_PARAMETERS =================
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from V$OB_PARAMETERS where name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
================ [10] check data_tpye for show parameters =================
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port enable_sql_audit BOOL value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port max_string_print_length INT value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port location_cache_cpu_quota DOUBLE value info TENANT CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port default_row_format STRING value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port log_disk_size CAPACITY value info LOGSERVICE CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port rpc_timeout TIME value info RPC CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port config_additional_dir STR_LIST value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port plsql_debug BOOL value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port open_cursors INT value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port cpu_quota_concurrency DOUBLE value info TENANT TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port plsql_ccflags STRING value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port range_optimizer_max_mem_size CAPACITY value info TENANT TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port merger_check_interval TIME value info DAILY_MERGE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port major_freeze_duty_time MOMENT value info DAILY_MERGE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible' tenant = sys;
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port compatible VERSION value info ROOT_SERVICE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
========================== case2: under mysql tenant ==========================
|
||||
===================== [1] prevent data_type UNKNOWN ======================
|
||||
show parameters where data_type = 'UNKNOWN';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
select * from __all_virtual_tenant_parameter_stat where data_type = 'UNKNOWN';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level tenant_id default_value isdefault
|
||||
select * from __all_virtual_tenant_parameter where data_type = 'UNKNOWN';
|
||||
tenant_id zone svr_type svr_ip svr_port name gmt_create gmt_modified data_type value info section scope source edit_level config_version
|
||||
select * from GV$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
SVR_IP SVR_PORT ZONE SCOPE TENANT_ID NAME DATA_TYPE VALUE INFO SECTION EDIT_LEVEL
|
||||
select * from V$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
SVR_IP SVR_PORT ZONE SCOPE TENANT_ID NAME DATA_TYPE VALUE INFO SECTION EDIT_LEVEL
|
||||
======= [2] check data_tpye for __all_virtual_tenant_parameter_stat =======
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
========= [3] check data_tpye for __all_virtual_tenant_parameter ==========
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible';
|
||||
name data_type
|
||||
================ [4] check data_tpye for GV$OB_PARAMETERS ================
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
================ [5] check data_tpye for V$OB_PARAMETERS =================
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'enable_sql_audit';
|
||||
name data_type
|
||||
enable_sql_audit BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'max_string_print_length';
|
||||
name data_type
|
||||
max_string_print_length INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'location_cache_cpu_quota';
|
||||
name data_type
|
||||
location_cache_cpu_quota DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'default_row_format';
|
||||
name data_type
|
||||
default_row_format STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'log_disk_size';
|
||||
name data_type
|
||||
log_disk_size CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'rpc_timeout';
|
||||
name data_type
|
||||
rpc_timeout TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'config_additional_dir';
|
||||
name data_type
|
||||
config_additional_dir STR_LIST
|
||||
select name, data_type from V$OB_PARAMETERS where name = '_obkv_feature_mode';
|
||||
name data_type
|
||||
_obkv_feature_mode MODE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'plsql_debug';
|
||||
name data_type
|
||||
plsql_debug BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'open_cursors';
|
||||
name data_type
|
||||
open_cursors INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'cpu_quota_concurrency';
|
||||
name data_type
|
||||
cpu_quota_concurrency DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'plsql_ccflags';
|
||||
name data_type
|
||||
plsql_ccflags STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'range_optimizer_max_mem_size';
|
||||
name data_type
|
||||
range_optimizer_max_mem_size CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'merger_check_interval';
|
||||
name data_type
|
||||
merger_check_interval TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'major_freeze_duty_time';
|
||||
name data_type
|
||||
major_freeze_duty_time MOMENT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'compatible';
|
||||
name data_type
|
||||
compatible VERSION
|
||||
================= [6] check data_tpye for show parameters =================
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port enable_sql_audit BOOL value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port max_string_print_length INT value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port location_cache_cpu_quota DOUBLE value info TENANT CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port default_row_format STRING value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port log_disk_size CAPACITY value info LOGSERVICE CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port rpc_timeout TIME value info RPC CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port config_additional_dir STR_LIST value info OBSERVER CLUSTER DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port plsql_debug BOOL value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port open_cursors INT value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port cpu_quota_concurrency DOUBLE value info TENANT TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port plsql_ccflags STRING value info OBSERVER TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port range_optimizer_max_mem_size CAPACITY value info TENANT TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port merger_check_interval TIME value info DAILY_MERGE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port major_freeze_duty_time MOMENT value info DAILY_MERGE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible';
|
||||
zone svr_type svr_ip svr_port name data_type value info section scope source edit_level
|
||||
zone1 observer server_ip server_port compatible VERSION value info ROOT_SERVICE TENANT DEFAULT DYNAMIC_EFFECTIVE
|
||||
@ -0,0 +1,18 @@
|
||||
Note: In this file, existing entries can be deleted, but no new entries are allowed.
|
||||
|
||||
###### case1: under sys tenant ######
|
||||
SELECT a.name as para_name, b.name as var_name
|
||||
FROM __all_sys_variable a, __all_virtual_sys_parameter_stat b
|
||||
WHERE a.name = b.name
|
||||
GROUP BY a.name;
|
||||
para_name var_name
|
||||
plsql_warnings plsql_warnings
|
||||
plsql_ccflags plsql_ccflags
|
||||
|
||||
###### case2: under mysql tenant ######
|
||||
SELECT a.name as para_name, b.name as var_name
|
||||
FROM V$OB_PARAMETERS a, __all_sys_variable b
|
||||
WHERE a.name = b.name;
|
||||
para_name var_name
|
||||
plsql_warnings plsql_warnings
|
||||
plsql_ccflags plsql_ccflags
|
||||
@ -0,0 +1,28 @@
|
||||
use oceanbase;
|
||||
desc __tenant_virtual_event_name;
|
||||
Field Type Null Key Default Extra
|
||||
tenant_id bigint(20) NO NULL
|
||||
event_id bigint(20) NO NULL
|
||||
event# bigint(20) NO NULL
|
||||
name varchar(64) NO NULL
|
||||
display_name varchar(64) NO NULL
|
||||
parameter1 varchar(64) NO NULL
|
||||
parameter2 varchar(64) NO NULL
|
||||
parameter3 varchar(64) NO NULL
|
||||
wait_class_id bigint(20) NO NULL
|
||||
wait_class# bigint(20) NO NULL
|
||||
wait_class varchar(64) NO NULL
|
||||
desc v$event_name;
|
||||
Field Type Null Key Default Extra
|
||||
CON_ID bigint(20) NO NULL
|
||||
EVENT_ID bigint(20) NO NULL
|
||||
EVENT# bigint(20) NO NULL
|
||||
NAME varchar(64) NO NULL
|
||||
DISPLAY_NAME varchar(64) NO NULL
|
||||
PARAMETER1 varchar(64) NO NULL
|
||||
PARAMETER2 varchar(64) NO NULL
|
||||
PARAMETER3 varchar(64) NO NULL
|
||||
WAIT_CLASS_ID bigint(20) NO NULL
|
||||
WAIT_CLASS# bigint(20) NO NULL
|
||||
WAIT_CLASS varchar(64) NO NULL
|
||||
succeed
|
||||
@ -0,0 +1,18 @@
|
||||
--disable_query_log
|
||||
set @@session.explicit_defaults_for_timestamp=off;
|
||||
--enable_query_log
|
||||
#owner : nijia.nj
|
||||
#owner group : sql2
|
||||
#description : test information_schema.collations
|
||||
|
||||
use information_schema;
|
||||
|
||||
#basic
|
||||
select * from collations;
|
||||
select collation_name, character_set_name, id, is_default, is_compiled, sortlen from collations;
|
||||
select * from collations where collation_name like '%utf8%';
|
||||
|
||||
#show
|
||||
--source mysql_test/include/show_create_table_old_version_replica2.inc
|
||||
show create table collations;
|
||||
desc collations;
|
||||
@ -0,0 +1,43 @@
|
||||
#owner: yanmu.ztl
|
||||
#owner group: RS
|
||||
#tags: schema
|
||||
#description: check sys view definition in mysql
|
||||
--disable_abort_on_error
|
||||
connect (sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connect (mysql,$OBMYSQL_MS0,root@mysql,,test,$OBMYSQL_PORT);
|
||||
connection sys;
|
||||
let $tenant_id = query_get_value(select tenant_id from oceanbase.__all_tenant where tenant_name = 'mysql', tenant_id, 1);
|
||||
let $cnt = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 1, cnt, 1);
|
||||
|
||||
##gather some necessary sys table stat.
|
||||
connection mysql;
|
||||
--source mysql_test/test_suite/histogram/include/gather_sys_table_stat.inc
|
||||
|
||||
let $idx = 1;
|
||||
while ($idx <= $cnt)
|
||||
{
|
||||
connection sys;
|
||||
let $database_name = query_get_value(select d.database_name from oceanbase.__all_virtual_table as t join oceanbase.__all_virtual_database as d on t.tenant_id = d.tenant_id and t.database_id = d.database_id where t.tenant_id = $tenant_id and table_type = 1 order by t.table_id, database_name, $idx);
|
||||
let $table_name = query_get_value(select table_name from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 1 order by table_id, table_name, $idx);
|
||||
connection mysql;
|
||||
eval desc $database_name.$table_name;
|
||||
|
||||
let $query_type = 1;
|
||||
if ($table_name == 'KEY_COLUMN_USAGE')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
|
||||
if ($query_type == 1)
|
||||
{
|
||||
--replace_column 1 1
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from $database_name.$table_name limit 1);
|
||||
}
|
||||
|
||||
if ($query_type == 2)
|
||||
{
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name;
|
||||
}
|
||||
|
||||
inc $idx;
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
#owner: yanmu.ztl
|
||||
#owner group: RS
|
||||
#tags: schema
|
||||
#description: check sys view definition in sys tenant
|
||||
--disable_abort_on_error
|
||||
connect (sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connection sys;
|
||||
use test;
|
||||
--source mysql_test/test_suite/histogram/include/gather_sys_table_stat.inc
|
||||
let $tenant_id = 1;
|
||||
let $cnt = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 1, cnt, 1);
|
||||
|
||||
let $idx = 1;
|
||||
while ($idx <= $cnt)
|
||||
{
|
||||
let $database_name = query_get_value(select d.database_name from oceanbase.__all_virtual_table as t join oceanbase.__all_virtual_database as d on t.tenant_id = d.tenant_id and t.database_id = d.database_id where t.tenant_id = $tenant_id and table_type = 1 order by t.table_id, database_name, $idx);
|
||||
let $table_name = query_get_value(select table_name from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 1 order by table_id, table_name, $idx);
|
||||
eval desc $database_name.$table_name;
|
||||
|
||||
let $query_type = 1;
|
||||
if ($table_name == 'CDB_IND_COLUMNS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'CDB_PART_KEY_COLUMNS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'CDB_SUBPART_KEY_COLUMNS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'CDB_TAB_COL_STATISTICS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'CDB_TAB_COLS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'CDB_TAB_COLS_V$')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'KEY_COLUMN_USAGE')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
if ($table_name == 'DBA_TAB_COL_STATISTICS')
|
||||
{
|
||||
let $query_type = 2;
|
||||
}
|
||||
|
||||
if ($query_type == 1)
|
||||
{
|
||||
--replace_column 1 1
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from $database_name.$table_name limit 1);
|
||||
}
|
||||
|
||||
if ($query_type == 2)
|
||||
{
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name;
|
||||
}
|
||||
|
||||
inc $idx;
|
||||
}
|
||||
|
||||
@ -0,0 +1,76 @@
|
||||
#owner: yanmu.ztl
|
||||
#owner group: RS
|
||||
#tags: schema
|
||||
#description: check virtual table in mysql
|
||||
--disable_abort_on_error
|
||||
connect (sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connect (mysql,$OBMYSQL_MS0,root@mysql,,test,$OBMYSQL_PORT);
|
||||
connection sys;
|
||||
let $tenant_id = query_get_value(select tenant_id from oceanbase.__all_tenant where tenant_name = 'mysql', tenant_id, 1);
|
||||
let $cnt = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 2, cnt, 1);
|
||||
let $svr_ip = query_get_value(select svr_ip from oceanbase.__all_virtual_unit order by svr_ip limit 1, svr_ip, 1);
|
||||
let $svr_port = query_get_value(select svr_port from oceanbase.__all_virtual_unit order by svr_ip limit 1, svr_port, 1);
|
||||
|
||||
let $idx = 1;
|
||||
while ($idx <= $cnt)
|
||||
{
|
||||
connection sys;
|
||||
let $database_name = query_get_value(select d.database_name from oceanbase.__all_virtual_table as t join oceanbase.__all_virtual_database as d on t.tenant_id = d.tenant_id and t.database_id = d.database_id where t.tenant_id = $tenant_id and table_type = 2 order by t.table_id, database_name, $idx);
|
||||
let $table_name = query_get_value(select table_name from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 2 order by table_id, table_name, $idx);
|
||||
let $part_level = query_get_value(select part_level from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_name = "$table_name" and table_type = 2, part_level, 1);
|
||||
connection mysql;
|
||||
eval desc $database_name.$table_name;
|
||||
|
||||
let $query_type = `
|
||||
select (
|
||||
case when "$table_name" in (
|
||||
"__tenant_virtual_all_table" ,
|
||||
"__tenant_virtual_table_column" ,
|
||||
"__tenant_virtual_show_create_database" ,
|
||||
"__tenant_virtual_show_create_table" ,
|
||||
"__tenant_virtual_current_tenant" ,
|
||||
"__tenant_virtual_show_tables" ,
|
||||
"__tenant_virtual_show_create_procedure" ,
|
||||
"__tenant_virtual_show_create_tablegroup" ,
|
||||
"__tenant_virtual_object_definition" ,
|
||||
"__tenant_virtual_show_create_trigger") then 2
|
||||
when "$table_name" in (
|
||||
"__all_virtual_proxy_schema" ,
|
||||
"__all_virtual_proxy_partition_info" ,
|
||||
"__all_virtual_proxy_partition" ,
|
||||
"__all_virtual_proxy_sub_partition") then 3
|
||||
when "$table_name" in (
|
||||
"__all_virtual_sysstat",
|
||||
"__all_virtual_sesstat",
|
||||
"__all_virtual_session_event") then 4
|
||||
else 1 end) as query_type from dual`;
|
||||
|
||||
if ($query_type == 1)
|
||||
{
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name;
|
||||
|
||||
# Check distributed execute table runs in single server. To avoid overwrite ret problem in PX.
|
||||
if ($part_level == 1)
|
||||
{
|
||||
--disable_query_log
|
||||
--echo "$database_name.$table_name runs in single server"
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name where svr_ip = "$svr_ip" and svr_port = "$svr_port";
|
||||
--enable_query_log
|
||||
}
|
||||
}
|
||||
|
||||
if ($query_type == 2)
|
||||
{
|
||||
# show stmt, can't directly access
|
||||
}
|
||||
if ($query_type == 3)
|
||||
{
|
||||
# proxy related, need additional query condition
|
||||
}
|
||||
if ($query_type == 4)
|
||||
{
|
||||
# error or core, need fix
|
||||
}
|
||||
|
||||
inc $idx;
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
#owner: yanmu.ztl
|
||||
#owner group: RS
|
||||
#tags: schema
|
||||
#description: check virtual table in sys tenant
|
||||
--disable_abort_on_error
|
||||
connect (sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connection sys;
|
||||
use test;
|
||||
let $tenant_id = 1;
|
||||
let $cnt = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 2, cnt, 1);
|
||||
let $svr_ip = query_get_value(select svr_ip from oceanbase.__all_virtual_unit order by svr_ip limit 1, svr_ip, 1);
|
||||
let $svr_port = query_get_value(select svr_port from oceanbase.__all_virtual_unit order by svr_ip limit 1, svr_port, 1);
|
||||
|
||||
let $idx = 1;
|
||||
while ($idx <= $cnt)
|
||||
{
|
||||
let $database_name = query_get_value(select d.database_name from oceanbase.__all_virtual_table as t join oceanbase.__all_virtual_database as d on t.tenant_id = d.tenant_id and t.database_id = d.database_id where t.tenant_id = $tenant_id and table_type = 2 order by t.table_id, database_name, $idx);
|
||||
let $table_name = query_get_value(select table_name from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_type = 2 order by table_id, table_name, $idx);
|
||||
let $part_level = query_get_value(select part_level from oceanbase.__all_virtual_table where tenant_id = $tenant_id and table_name = "$table_name" and table_type = 2, part_level, 1);
|
||||
eval desc $database_name.$table_name;
|
||||
|
||||
let $query_type = `
|
||||
select (
|
||||
case when "$table_name" in (
|
||||
"__tenant_virtual_all_table" ,
|
||||
"__tenant_virtual_table_column" ,
|
||||
"__tenant_virtual_show_create_database" ,
|
||||
"__tenant_virtual_show_create_table" ,
|
||||
"__tenant_virtual_current_tenant" ,
|
||||
"__tenant_virtual_show_tables" ,
|
||||
"__tenant_virtual_show_create_procedure" ,
|
||||
"__tenant_virtual_show_create_tablegroup" ,
|
||||
"__tenant_virtual_object_definition" ,
|
||||
"__tenant_virtual_show_create_trigger") then 2
|
||||
when "$table_name" in (
|
||||
"__all_virtual_proxy_schema" ,
|
||||
"__all_virtual_proxy_partition_info" ,
|
||||
"__all_virtual_proxy_partition" ,
|
||||
"__all_virtual_proxy_sub_partition" ,
|
||||
"__all_virtual_proxy_routine") then 3
|
||||
when "$table_name" in (
|
||||
"__all_virtual_sysstat",
|
||||
"__all_virtual_sesstat",
|
||||
"__all_virtual_session_event") then 4
|
||||
when "$table_name" in (
|
||||
"__all_virtual_tx_data") then 5
|
||||
else 1 end) as query_type from dual`;
|
||||
|
||||
|
||||
if ($query_type == 1)
|
||||
{
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name;
|
||||
|
||||
# Check distributed execute table runs in single server. To avoid overwrite ret problem in PX.
|
||||
if ($part_level == 1)
|
||||
{
|
||||
--disable_query_log
|
||||
--echo "$database_name.$table_name runs in single server"
|
||||
eval select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from $database_name.$table_name where svr_ip = "$svr_ip" and svr_port = "$svr_port";
|
||||
--enable_query_log
|
||||
}
|
||||
}
|
||||
|
||||
if ($query_type == 2)
|
||||
{
|
||||
# show stmt, can't directly access
|
||||
}
|
||||
if ($query_type == 3)
|
||||
{
|
||||
# proxy related, need additional query condition
|
||||
}
|
||||
if ($query_type == 4)
|
||||
{
|
||||
# error or core, need fix
|
||||
}
|
||||
if ($query_type == 5)
|
||||
{
|
||||
# tx data only support point select
|
||||
}
|
||||
|
||||
|
||||
inc $idx;
|
||||
}
|
||||
|
||||
@ -0,0 +1,409 @@
|
||||
# owner : gengfu.zpc
|
||||
# owner group: VOS
|
||||
# description: test data_type
|
||||
# tags : parameter
|
||||
|
||||
#####################################################################################
|
||||
# If someone adds a new parameter type, then he/she may forget to update the #
|
||||
# data_type related code. The purpose of this case is to prevent this. #
|
||||
# If you fail on this case, then you may need to modify ObConfigItem::data_type(). #
|
||||
# Also, the correctness of data_type will be verified. #
|
||||
# The parameters selected for testing are as follows: #
|
||||
# +-----------+--------------------------+------------------------------+ #
|
||||
# | data_type | cluster-level | tenant-level | #
|
||||
# +-----------+--------------------------+------------------------------+ #
|
||||
# | BOOL | enable_sql_audit | plsql_debug | #
|
||||
# | INT | max_string_print_length | open_cursors | #
|
||||
# | DOUBLE | location_cache_cpu_quota | cpu_quota_concurrency | #
|
||||
# | STRING | default_row_format | plsql_ccflags | #
|
||||
# | CAPACITY | log_disk_size | range_optimizer_max_mem_size | #
|
||||
# | TIME | rpc_timeout | merger_check_interval | #
|
||||
# | STR_LIST | config_additional_dir | -- | #
|
||||
# | MOMENT | -- | major_freeze_duty_time | #
|
||||
# | VERSION | -- | compatible | #
|
||||
# | MODE | _obkv_feature_mode | -- | #
|
||||
# +-----------+--------------------------+------------------------------+ #
|
||||
#####################################################################################
|
||||
|
||||
#============================== case1: under sys tenant ==============================
|
||||
--echo =========================== case1: under sys tenant ===========================
|
||||
connect (my_sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connection my_sys;
|
||||
|
||||
# [step 0] set some parameters, and __all_sys_parameter/__tenant_parameter will save the changes
|
||||
# [step 0.1] set cluster-level parameters
|
||||
let $para_name = enable_sql_audit; # BOOL
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = max_string_print_length; # INT
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = location_cache_cpu_quota; # DOUBLE
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = default_row_format; # STRING
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = log_disk_size; # CAPACITY
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = rpc_timeout; # TIME
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = config_additional_dir; # STR_LIST
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
let $para_name = _obkv_feature_mode; # MODE
|
||||
--source mysql_test/include/parameter_data_type/set_cluster_parameter.inc
|
||||
# [step 0.2] set tenant-level parameters
|
||||
let $mysql_tenant_id = query_get_value(select tenant_id from oceanbase.__all_tenant where tenant_name='mysql', tenant_id, 1);
|
||||
let $para_name = plsql_debug; # BOOL
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = open_cursors; # INT
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = cpu_quota_concurrency; # DOUBLE
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = plsql_ccflags; # STRING
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = range_optimizer_max_mem_size; # CAPACITY
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = merger_check_interval; # TIME
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
let $para_name = major_freeze_duty_time; # MOMENT
|
||||
--source mysql_test/include/parameter_data_type/set_tenant_parameter.inc
|
||||
# There's no need to set compatible (its data_type is VERSION), # VERSION
|
||||
# because the internal logic is already set.
|
||||
# [step 0.3] make sure parameters have been set
|
||||
# [setp 0.3.1] check cluster-level parameters
|
||||
let $para_name = enable_sql_audit;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = max_string_print_length;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = location_cache_cpu_quota;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = default_row_format;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = log_disk_size;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = rpc_timeout;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = config_additional_dir;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
let $para_name = _obkv_feature_mode;
|
||||
--source mysql_test/include/parameter_data_type/check_cluster_parameter_has_set.inc
|
||||
# [setp 0.3.2] check tenant-level parameters
|
||||
let $para_name = plsql_debug;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = open_cursors;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = cpu_quota_concurrency;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = plsql_ccflags;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = range_optimizer_max_mem_size;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = merger_check_interval;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = major_freeze_duty_time;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
let $para_name = compatible;
|
||||
--source mysql_test/include/parameter_data_type/check_tenant_parameter_has_set.inc
|
||||
|
||||
# [step 1] prevent data_type UNKNOWN
|
||||
--echo ===================== [1] prevent data_type UNKNOWN ======================
|
||||
show parameters where data_type = 'UNKNOWN';
|
||||
select * from __all_sys_parameter where data_type = 'UNKNOWN';
|
||||
select * from __tenant_parameter where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_sys_parameter_stat where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_tenant_parameter_stat where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_tenant_parameter_info where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_tenant_parameter where data_type = 'UNKNOWN';
|
||||
select * from GV$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
select * from V$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
|
||||
# [step 2] check data_tpye for __all_sys_parameter
|
||||
--echo =============== [2] check data_tpye for __all_sys_parameter ===============
|
||||
select name, data_type from __all_sys_parameter where name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from __all_sys_parameter where name = 'max_string_print_length'; # INT
|
||||
select name, data_type from __all_sys_parameter where name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from __all_sys_parameter where name = 'default_row_format'; # STRING
|
||||
select name, data_type from __all_sys_parameter where name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from __all_sys_parameter where name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from __all_sys_parameter where name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from __all_sys_parameter where name = '_obkv_feature_mode'; # MODE
|
||||
|
||||
# [step 3] check data_type for __tenant_parameter
|
||||
--echo =============== [3] check data_tpye for __tenant_parameter ================
|
||||
select name, data_type from __tenant_parameter where name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __tenant_parameter where name = 'open_cursors'; # INT
|
||||
select name, data_type from __tenant_parameter where name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __tenant_parameter where name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __tenant_parameter where name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __tenant_parameter where name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __tenant_parameter where name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __tenant_parameter where name = 'compatible'; # VERSION
|
||||
|
||||
# [step 4] check data_tpye for __all_virtual_sys_parameter_stat
|
||||
--echo ======== [4] check data_tpye for __all_virtual_sys_parameter_stat =========
|
||||
# [step 4.1] check cluster-level parameters
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode'; # MODE
|
||||
# [step 4.2] check tenant-level parameters
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_sys_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 5] check data_tpye for __all_virtual_tenant_parameter_stat
|
||||
--echo ======= [5] check data_tpye for __all_virtual_tenant_parameter_stat =======
|
||||
# [step 5.1] check cluster-level parameters
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode'; # MODE
|
||||
# [step 5.2] check tenant-level parameters
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 6] check data_tpye for __all_virtual_tenant_parameter_info
|
||||
--echo ======= [6] check data_tpye for __all_virtual_tenant_parameter_info =======
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_info where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 7] check data_tpye for __all_virtual_tenant_parameter
|
||||
--echo ========= [7] check data_tpye for __all_virtual_tenant_parameter ==========
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 8] check data_tpye for GV$OB_PARAMETERS
|
||||
--echo ================ [8] check data_tpye for GV\$OB_PARAMETERS ================
|
||||
# [step 8.1] check cluster-level parameters
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode'; # MODE
|
||||
# [step 8.2] check tenant-level parameters
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'open_cursors'; # INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and tenant_id = 1 and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 9] check data_tpye for V$OB_PARAMETERS
|
||||
--echo ================ [9] check data_tpye for V\$OB_PARAMETERS =================
|
||||
# [step 9.1] check cluster-level parameters
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'max_string_print_length'; # INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'default_row_format'; # STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from V$OB_PARAMETERS where name = '_obkv_feature_mode'; # MODE
|
||||
# [step 9.2] check tenant-level parameters
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'open_cursors'; # INT
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from V$OB_PARAMETERS where tenant_id = 1 and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 10] check data_tpye for show parameters
|
||||
--echo ================ [10] check data_tpye for show parameters =================
|
||||
# [step 10.1] check cluster-level parameters
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
# cannot query hidden parameters by show parameters # MODE
|
||||
# [step 10.2] check tenant-level parameters
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug' tenant = sys; # BOOL
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors' tenant = sys; # INT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency' tenant = sys; # DOUBLE
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags' tenant = sys; # STRING
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size' tenant = sys; # CAPACITY
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval' tenant = sys; # TIME
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time' tenant = sys; # MOMENT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible' tenant = sys; # VERSION
|
||||
|
||||
disconnect my_sys;
|
||||
|
||||
|
||||
#============================= case2: under mysql tenant =============================
|
||||
--echo ========================== case2: under mysql tenant ==========================
|
||||
connect (my_mysql,$OBMYSQL_MS0,root@mysql,,oceanbase,$OBMYSQL_PORT);
|
||||
connection my_mysql;
|
||||
|
||||
# [step 1] prevent data_type UNKNOWN
|
||||
--echo ===================== [1] prevent data_type UNKNOWN ======================
|
||||
show parameters where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_tenant_parameter_stat where data_type = 'UNKNOWN';
|
||||
select * from __all_virtual_tenant_parameter where data_type = 'UNKNOWN';
|
||||
select * from GV$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
select * from V$OB_PARAMETERS where data_type = 'UNKNOWN';
|
||||
|
||||
# [step 2] check data_tpye for __all_virtual_tenant_parameter_stat
|
||||
--echo ======= [2] check data_tpye for __all_virtual_tenant_parameter_stat =======
|
||||
# [step 2.1] check cluster-level parameters
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode'; # MODE
|
||||
# [step 2.2] check tenant-level parameters
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter_stat where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 3] check data_tpye for __all_virtual_tenant_parameter
|
||||
--echo ========= [3] check data_tpye for __all_virtual_tenant_parameter ==========
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors'; # INT
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from __all_virtual_tenant_parameter where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 4] check data_tpye for GV$OB_PARAMETERS
|
||||
--echo ================ [4] check data_tpye for GV\$OB_PARAMETERS ================
|
||||
# [step 4.1] check cluster-level parameters
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = '_obkv_feature_mode'; # MODE
|
||||
# [step 4.2] check tenant-level parameters
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors'; # INT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from GV$OB_PARAMETERS where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible'; # VERSION
|
||||
|
||||
# [step 5] check data_tpye for V$OB_PARAMETERS
|
||||
--echo ================ [5] check data_tpye for V\$OB_PARAMETERS =================
|
||||
# [step 5.1] check cluster-level parameters
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'enable_sql_audit'; # BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'max_string_print_length'; # INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'default_row_format'; # STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'log_disk_size'; # CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'rpc_timeout'; # TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'config_additional_dir'; # STR_LIST
|
||||
select name, data_type from V$OB_PARAMETERS where name = '_obkv_feature_mode'; # MODE
|
||||
# [step 5.2] check tenant-level parameters
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'plsql_debug'; # BOOL
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'open_cursors'; # INT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'plsql_ccflags'; # STRING
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'merger_check_interval'; # TIME
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'major_freeze_duty_time'; # MOMENT
|
||||
select name, data_type from V$OB_PARAMETERS where name = 'compatible'; # VERSION
|
||||
|
||||
# [step 6] check data_tpye for show parameters
|
||||
--echo ================= [6] check data_tpye for show parameters =================
|
||||
# [step 6.1] check cluster-level parameters
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'enable_sql_audit'; # BOOL
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'max_string_print_length'; # INT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'location_cache_cpu_quota'; # DOUBLE
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'default_row_format'; # STRING
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'log_disk_size'; # CAPACITY
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'rpc_timeout'; # TIME
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'config_additional_dir'; # STR_LIST
|
||||
# cannot query hidden parameters by show parameters # MODE
|
||||
# [step 6.2] check tenant-level parameters
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_debug'; # BOOL
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'open_cursors'; # INT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'cpu_quota_concurrency'; # DOUBLE
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'plsql_ccflags'; # STRING
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'range_optimizer_max_mem_size'; # CAPACITY
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'merger_check_interval'; # TIME
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'major_freeze_duty_time'; # MOMENT
|
||||
--replace_column 1 zone1 3 server_ip 4 server_port 7 value 8 info
|
||||
show parameters where svr_ip = host_ip() and svr_port = rpc_port() and name = 'compatible'; # VERSION
|
||||
|
||||
disconnect my_mysql;
|
||||
|
||||
connection default;
|
||||
@ -0,0 +1,42 @@
|
||||
# owner : gengfu.zpc
|
||||
# owner group: VOS
|
||||
# description: check for naming conflicts of parameters and system variables
|
||||
# tags : parameter
|
||||
|
||||
################################################################################
|
||||
# The purpose of this case is to prevent naming conflicts for parameters and #
|
||||
# system variables. Due to historical reasons, existing conflicting names are #
|
||||
# temporarily allowed. In the future, existing conflicts will be resolved and #
|
||||
# new conflicts will be prevented. #
|
||||
################################################################################
|
||||
|
||||
|
||||
###### print note info ######
|
||||
--echo Note: In this file, existing entries can be deleted, but no new entries are allowed.
|
||||
--echo
|
||||
|
||||
--echo ###### case1: under sys tenant ######
|
||||
connect (my_sys,$OBMYSQL_MS0,root,,oceanbase,$OBMYSQL_PORT);
|
||||
connection my_sys;
|
||||
# sql start
|
||||
SELECT a.name as para_name, b.name as var_name
|
||||
FROM __all_sys_variable a, __all_virtual_sys_parameter_stat b
|
||||
WHERE a.name = b.name
|
||||
GROUP BY a.name;
|
||||
# sql end
|
||||
disconnect my_sys;
|
||||
|
||||
|
||||
--echo
|
||||
--echo ###### case2: under mysql tenant ######
|
||||
connect (my_mysql,$OBMYSQL_MS0,root@mysql,,oceanbase,$OBMYSQL_PORT);
|
||||
connection my_mysql;
|
||||
# sql start
|
||||
SELECT a.name as para_name, b.name as var_name
|
||||
FROM V$OB_PARAMETERS a, __all_sys_variable b
|
||||
WHERE a.name = b.name;
|
||||
# sql end
|
||||
disconnect my_mysql;
|
||||
|
||||
|
||||
connection default;
|
||||
@ -0,0 +1,24 @@
|
||||
--disable_query_log
|
||||
set @@session.explicit_defaults_for_timestamp=off;
|
||||
--enable_query_log
|
||||
#owner: xiaoyi.xy
|
||||
#owner group : storage
|
||||
#description : __tenant_virtual_event_name
|
||||
|
||||
--disable_abort_on_error
|
||||
--disable_warnings
|
||||
|
||||
use oceanbase;
|
||||
desc __tenant_virtual_event_name;
|
||||
desc v$event_name;
|
||||
|
||||
--disable_result_log
|
||||
let $idx1 = query_get_value(select count(*) from oceanbase.__tenant_virtual_event_name,count(*),1);
|
||||
--enable_result_log
|
||||
if($idx1)
|
||||
{
|
||||
--echo succeed
|
||||
}
|
||||
--enable_abort_on_error
|
||||
--enable_warnings
|
||||
|
||||
Reference in New Issue
Block a user