__all_ls will delete anymore and add ls_event to history

This commit is contained in:
maosy
2023-07-20 04:48:12 +00:00
committed by ob-robot
parent 1e30cd9247
commit 3e4a57c15d
20 changed files with 1154 additions and 194 deletions

View File

@ -911,6 +911,8 @@ public:
static int all_virtual_tenant_parameter_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_tablet_buffer_info_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_tenant_event_history_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_balance_task_helper_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_balance_group_ls_stat_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_sql_audit_ora_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_plan_stat_ora_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_plan_cache_plan_explain_ora_schema(share::schema::ObTableSchema &table_schema);
@ -1142,6 +1144,7 @@ public:
static int all_virtual_ls_log_restore_status_ora_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_tenant_parameter_ora_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_tenant_event_history_ora_schema(share::schema::ObTableSchema &table_schema);
static int all_virtual_ls_real_agent_ora_schema(share::schema::ObTableSchema &table_schema);
static int gv_ob_plan_cache_stat_schema(share::schema::ObTableSchema &table_schema);
static int gv_ob_plan_cache_plan_stat_schema(share::schema::ObTableSchema &table_schema);
static int schemata_schema(share::schema::ObTableSchema &table_schema);
@ -1472,6 +1475,8 @@ public:
static int v_ob_ls_log_restore_status_schema(share::schema::ObTableSchema &table_schema);
static int cdb_ob_external_table_files_schema(share::schema::ObTableSchema &table_schema);
static int dba_db_links_schema(share::schema::ObTableSchema &table_schema);
static int dba_ob_ls_history_schema(share::schema::ObTableSchema &table_schema);
static int cdb_ob_ls_history_schema(share::schema::ObTableSchema &table_schema);
static int dba_ob_tenant_event_history_schema(share::schema::ObTableSchema &table_schema);
static int cdb_ob_tenant_event_history_schema(share::schema::ObTableSchema &table_schema);
static int dba_synonyms_schema(share::schema::ObTableSchema &table_schema);
@ -1712,6 +1717,7 @@ public:
static int gv_sql_join_filter_ora_schema(share::schema::ObTableSchema &table_schema);
static int v_sql_join_filter_ora_schema(share::schema::ObTableSchema &table_schema);
static int dba_ob_table_stat_stale_info_ora_schema(share::schema::ObTableSchema &table_schema);
static int dba_ob_ls_history_ora_schema(share::schema::ObTableSchema &table_schema);
static int dba_ob_tenant_event_history_ora_schema(share::schema::ObTableSchema &table_schema);
static int gv_ob_sql_audit_ora_schema(share::schema::ObTableSchema &table_schema);
static int v_ob_sql_audit_ora_schema(share::schema::ObTableSchema &table_schema);
@ -3193,6 +3199,8 @@ const schema_create_func virtual_table_schema_creators [] = {
ObInnerTableSchema::all_virtual_tenant_parameter_schema,
ObInnerTableSchema::all_virtual_tablet_buffer_info_schema,
ObInnerTableSchema::all_virtual_tenant_event_history_schema,
ObInnerTableSchema::all_virtual_balance_task_helper_schema,
ObInnerTableSchema::all_virtual_balance_group_ls_stat_schema,
ObInnerTableSchema::all_virtual_sql_plan_monitor_all_virtual_sql_plan_monitor_i1_schema,
ObInnerTableSchema::all_virtual_sql_audit_all_virtual_sql_audit_i1_schema,
ObInnerTableSchema::all_virtual_sysstat_all_virtual_sysstat_i1_schema,
@ -3433,6 +3441,7 @@ const schema_create_func virtual_table_schema_creators [] = {
ObInnerTableSchema::all_virtual_ls_log_restore_status_ora_schema,
ObInnerTableSchema::all_virtual_tenant_parameter_ora_schema,
ObInnerTableSchema::all_virtual_tenant_event_history_ora_schema,
ObInnerTableSchema::all_virtual_ls_real_agent_ora_schema,
ObInnerTableSchema::all_virtual_table_real_agent_ora_idx_data_table_id_real_agent_schema,
ObInnerTableSchema::all_virtual_table_real_agent_ora_idx_db_tb_name_real_agent_schema,
ObInnerTableSchema::all_virtual_table_real_agent_ora_idx_tb_name_real_agent_schema,
@ -3844,6 +3853,8 @@ const schema_create_func sys_view_schema_creators [] = {
ObInnerTableSchema::v_ob_ls_log_restore_status_schema,
ObInnerTableSchema::cdb_ob_external_table_files_schema,
ObInnerTableSchema::dba_db_links_schema,
ObInnerTableSchema::dba_ob_ls_history_schema,
ObInnerTableSchema::cdb_ob_ls_history_schema,
ObInnerTableSchema::dba_ob_tenant_event_history_schema,
ObInnerTableSchema::cdb_ob_tenant_event_history_schema,
ObInnerTableSchema::dba_synonyms_schema,
@ -4084,6 +4095,7 @@ const schema_create_func sys_view_schema_creators [] = {
ObInnerTableSchema::gv_sql_join_filter_ora_schema,
ObInnerTableSchema::v_sql_join_filter_ora_schema,
ObInnerTableSchema::dba_ob_table_stat_stale_info_ora_schema,
ObInnerTableSchema::dba_ob_ls_history_ora_schema,
ObInnerTableSchema::dba_ob_tenant_event_history_ora_schema,
ObInnerTableSchema::gv_ob_sql_audit_ora_schema,
ObInnerTableSchema::v_ob_sql_audit_ora_schema,
@ -5004,6 +5016,7 @@ const uint64_t tenant_space_tables [] = {
OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_ORA_TID,
OB_ALL_VIRTUAL_TENANT_PARAMETER_ORA_TID,
OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_ORA_TID,
OB_ALL_VIRTUAL_LS_REAL_AGENT_ORA_TID,
OB_GV_OB_PLAN_CACHE_STAT_TID,
OB_GV_OB_PLAN_CACHE_PLAN_STAT_TID,
OB_SCHEMATA_TID,
@ -5247,6 +5260,7 @@ const uint64_t tenant_space_tables [] = {
OB_DBA_OB_TABLE_STAT_STALE_INFO_TID,
OB_V_OB_LS_LOG_RESTORE_STATUS_TID,
OB_DBA_DB_LINKS_TID,
OB_DBA_OB_LS_HISTORY_TID,
OB_DBA_OB_TENANT_EVENT_HISTORY_TID,
OB_DBA_SYNONYMS_TID,
OB_DBA_OBJECTS_ORA_TID,
@ -5486,6 +5500,7 @@ const uint64_t tenant_space_tables [] = {
OB_GV_SQL_JOIN_FILTER_ORA_TID,
OB_V_SQL_JOIN_FILTER_ORA_TID,
OB_DBA_OB_TABLE_STAT_STALE_INFO_ORA_TID,
OB_DBA_OB_LS_HISTORY_ORA_TID,
OB_DBA_OB_TENANT_EVENT_HISTORY_ORA_TID,
OB_GV_OB_SQL_AUDIT_ORA_TID,
OB_V_OB_SQL_AUDIT_ORA_TID,
@ -7168,6 +7183,7 @@ const char* const tenant_space_table_names [] = {
OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_ORA_TNAME,
OB_ALL_VIRTUAL_TENANT_PARAMETER_ORA_TNAME,
OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_ORA_TNAME,
OB_ALL_VIRTUAL_LS_REAL_AGENT_ORA_TNAME,
OB_GV_OB_PLAN_CACHE_STAT_TNAME,
OB_GV_OB_PLAN_CACHE_PLAN_STAT_TNAME,
OB_SCHEMATA_TNAME,
@ -7411,6 +7427,7 @@ const char* const tenant_space_table_names [] = {
OB_DBA_OB_TABLE_STAT_STALE_INFO_TNAME,
OB_V_OB_LS_LOG_RESTORE_STATUS_TNAME,
OB_DBA_DB_LINKS_TNAME,
OB_DBA_OB_LS_HISTORY_TNAME,
OB_DBA_OB_TENANT_EVENT_HISTORY_TNAME,
OB_DBA_SYNONYMS_TNAME,
OB_DBA_OBJECTS_ORA_TNAME,
@ -7650,6 +7667,7 @@ const char* const tenant_space_table_names [] = {
OB_GV_SQL_JOIN_FILTER_ORA_TNAME,
OB_V_SQL_JOIN_FILTER_ORA_TNAME,
OB_DBA_OB_TABLE_STAT_STALE_INFO_ORA_TNAME,
OB_DBA_OB_LS_HISTORY_ORA_TNAME,
OB_DBA_OB_TENANT_EVENT_HISTORY_ORA_TNAME,
OB_GV_OB_SQL_AUDIT_ORA_TNAME,
OB_V_OB_SQL_AUDIT_ORA_TNAME,
@ -10878,11 +10896,11 @@ static inline int get_sys_table_lob_aux_schema(const uint64_t tid,
const int64_t OB_CORE_TABLE_COUNT = 4;
const int64_t OB_SYS_TABLE_COUNT = 242;
const int64_t OB_VIRTUAL_TABLE_COUNT = 698;
const int64_t OB_SYS_VIEW_COUNT = 737;
const int64_t OB_SYS_TENANT_TABLE_COUNT = 1682;
const int64_t OB_VIRTUAL_TABLE_COUNT = 701;
const int64_t OB_SYS_VIEW_COUNT = 740;
const int64_t OB_SYS_TENANT_TABLE_COUNT = 1688;
const int64_t OB_CORE_SCHEMA_VERSION = 1;
const int64_t OB_BOOTSTRAP_SCHEMA_VERSION = 1685;
const int64_t OB_BOOTSTRAP_SCHEMA_VERSION = 1691;
} // end namespace share
} // end namespace oceanbase