add tenant event history
This commit is contained in:
@ -530,6 +530,7 @@ public:
|
||||
static int all_task_opt_stat_gather_history_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_table_opt_stat_gather_history_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_balance_task_helper_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_tenant_event_history_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int tenant_virtual_all_table_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int tenant_virtual_table_column_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int tenant_virtual_table_index_schema(share::schema::ObTableSchema &table_schema);
|
||||
@ -909,6 +910,7 @@ public:
|
||||
static int all_virtual_ls_log_restore_status_schema(share::schema::ObTableSchema &table_schema);
|
||||
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_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);
|
||||
@ -1139,6 +1141,7 @@ public:
|
||||
static int all_virtual_timestamp_service_ora_schema(share::schema::ObTableSchema &table_schema);
|
||||
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 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);
|
||||
@ -1469,6 +1472,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_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);
|
||||
static int dba_objects_ora_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_objects_schema(share::schema::ObTableSchema &table_schema);
|
||||
@ -1707,6 +1712,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_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);
|
||||
static int gv_instance_schema(share::schema::ObTableSchema &table_schema);
|
||||
@ -2117,6 +2123,7 @@ public:
|
||||
static int all_task_opt_stat_gather_history_aux_lob_meta_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_table_opt_stat_gather_history_aux_lob_meta_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_balance_task_helper_aux_lob_meta_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_tenant_event_history_aux_lob_meta_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_table_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_column_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_ddl_operation_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
@ -2361,6 +2368,7 @@ public:
|
||||
static int all_task_opt_stat_gather_history_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_table_opt_stat_gather_history_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_balance_task_helper_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_tenant_event_history_aux_lob_piece_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_virtual_sql_plan_monitor_all_virtual_sql_plan_monitor_i1_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_virtual_sql_audit_all_virtual_sql_audit_i1_schema(share::schema::ObTableSchema &table_schema);
|
||||
static int all_virtual_sysstat_all_virtual_sysstat_i1_schema(share::schema::ObTableSchema &table_schema);
|
||||
@ -2801,6 +2809,7 @@ const schema_create_func sys_table_schema_creators [] = {
|
||||
ObInnerTableSchema::all_task_opt_stat_gather_history_schema,
|
||||
ObInnerTableSchema::all_table_opt_stat_gather_history_schema,
|
||||
ObInnerTableSchema::all_balance_task_helper_schema,
|
||||
ObInnerTableSchema::all_tenant_event_history_schema,
|
||||
NULL,};
|
||||
|
||||
const schema_create_func virtual_table_schema_creators [] = {
|
||||
@ -3183,6 +3192,7 @@ const schema_create_func virtual_table_schema_creators [] = {
|
||||
ObInnerTableSchema::all_virtual_ls_log_restore_status_schema,
|
||||
ObInnerTableSchema::all_virtual_tenant_parameter_schema,
|
||||
ObInnerTableSchema::all_virtual_tablet_buffer_info_schema,
|
||||
ObInnerTableSchema::all_virtual_tenant_event_history_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,
|
||||
@ -3422,6 +3432,7 @@ const schema_create_func virtual_table_schema_creators [] = {
|
||||
ObInnerTableSchema::all_virtual_timestamp_service_ora_schema,
|
||||
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_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,
|
||||
@ -3833,6 +3844,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_tenant_event_history_schema,
|
||||
ObInnerTableSchema::cdb_ob_tenant_event_history_schema,
|
||||
ObInnerTableSchema::dba_synonyms_schema,
|
||||
ObInnerTableSchema::dba_objects_ora_schema,
|
||||
ObInnerTableSchema::all_objects_schema,
|
||||
@ -4071,6 +4084,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_tenant_event_history_ora_schema,
|
||||
ObInnerTableSchema::gv_ob_sql_audit_ora_schema,
|
||||
ObInnerTableSchema::v_ob_sql_audit_ora_schema,
|
||||
ObInnerTableSchema::gv_instance_schema,
|
||||
@ -4570,6 +4584,7 @@ const uint64_t tenant_space_tables [] = {
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_TID,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_TID,
|
||||
OB_ALL_BALANCE_TASK_HELPER_TID,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_TID,
|
||||
OB_TENANT_VIRTUAL_ALL_TABLE_TID,
|
||||
OB_TENANT_VIRTUAL_TABLE_COLUMN_TID,
|
||||
OB_TENANT_VIRTUAL_TABLE_INDEX_TID,
|
||||
@ -4749,6 +4764,7 @@ const uint64_t tenant_space_tables [] = {
|
||||
OB_ALL_VIRTUAL_PX_P2P_DATAHUB_TID,
|
||||
OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_TID,
|
||||
OB_ALL_VIRTUAL_TENANT_PARAMETER_TID,
|
||||
OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_TID,
|
||||
OB_ALL_VIRTUAL_SQL_AUDIT_ORA_TID,
|
||||
OB_ALL_VIRTUAL_SQL_AUDIT_ORA_ALL_VIRTUAL_SQL_AUDIT_I1_TID,
|
||||
OB_ALL_VIRTUAL_PLAN_STAT_ORA_TID,
|
||||
@ -4987,6 +5003,7 @@ const uint64_t tenant_space_tables [] = {
|
||||
OB_ALL_VIRTUAL_TIMESTAMP_SERVICE_ORA_TID,
|
||||
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_GV_OB_PLAN_CACHE_STAT_TID,
|
||||
OB_GV_OB_PLAN_CACHE_PLAN_STAT_TID,
|
||||
OB_SCHEMATA_TID,
|
||||
@ -5230,6 +5247,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_TENANT_EVENT_HISTORY_TID,
|
||||
OB_DBA_SYNONYMS_TID,
|
||||
OB_DBA_OBJECTS_ORA_TID,
|
||||
OB_ALL_OBJECTS_TID,
|
||||
@ -5468,6 +5486,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_TENANT_EVENT_HISTORY_ORA_TID,
|
||||
OB_GV_OB_SQL_AUDIT_ORA_TID,
|
||||
OB_V_OB_SQL_AUDIT_ORA_TID,
|
||||
OB_GV_INSTANCE_TID,
|
||||
@ -6015,6 +6034,7 @@ const uint64_t tenant_space_tables [] = {
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_AUX_LOB_META_TID,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_AUX_LOB_META_TID,
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_META_TID,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_META_TID,
|
||||
OB_ALL_TABLE_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_COLUMN_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_DDL_OPERATION_AUX_LOB_PIECE_TID,
|
||||
@ -6237,7 +6257,8 @@ const uint64_t tenant_space_tables [] = {
|
||||
OB_ALL_EXTERNAL_TABLE_FILE_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_PIECE_TID, };
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_PIECE_TID,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_PIECE_TID, };
|
||||
|
||||
const uint64_t all_ora_mapping_virtual_table_org_tables [] = {
|
||||
OB_ALL_VIRTUAL_SQL_AUDIT_TID,
|
||||
@ -6362,7 +6383,8 @@ const uint64_t all_ora_mapping_virtual_table_org_tables [] = {
|
||||
OB_ALL_VIRTUAL_PX_P2P_DATAHUB_TID,
|
||||
OB_ALL_VIRTUAL_TIMESTAMP_SERVICE_TID,
|
||||
OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_TID,
|
||||
OB_ALL_VIRTUAL_TENANT_PARAMETER_TID, };
|
||||
OB_ALL_VIRTUAL_TENANT_PARAMETER_TID,
|
||||
OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_TID, };
|
||||
|
||||
const uint64_t all_ora_mapping_virtual_tables [] = { OB_ALL_VIRTUAL_SQL_AUDIT_ORA_TID
|
||||
, OB_ALL_VIRTUAL_PLAN_STAT_ORA_TID
|
||||
@ -6487,6 +6509,7 @@ const uint64_t all_ora_mapping_virtual_tables [] = { OB_ALL_VIRTUAL_SQL_AUDIT_O
|
||||
, OB_ALL_VIRTUAL_TIMESTAMP_SERVICE_ORA_TID
|
||||
, OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_ORA_TID
|
||||
, OB_ALL_VIRTUAL_TENANT_PARAMETER_ORA_TID
|
||||
, OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_ORA_TID
|
||||
, };
|
||||
|
||||
/* start/end_pos is start/end postition for column with tenant id */
|
||||
@ -6725,6 +6748,7 @@ const char* const tenant_space_table_names [] = {
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_TNAME,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_TNAME,
|
||||
OB_ALL_BALANCE_TASK_HELPER_TNAME,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_TNAME,
|
||||
OB_TENANT_VIRTUAL_ALL_TABLE_TNAME,
|
||||
OB_TENANT_VIRTUAL_TABLE_COLUMN_TNAME,
|
||||
OB_TENANT_VIRTUAL_TABLE_INDEX_TNAME,
|
||||
@ -6904,6 +6928,7 @@ const char* const tenant_space_table_names [] = {
|
||||
OB_ALL_VIRTUAL_PX_P2P_DATAHUB_TNAME,
|
||||
OB_ALL_VIRTUAL_LS_LOG_RESTORE_STATUS_TNAME,
|
||||
OB_ALL_VIRTUAL_TENANT_PARAMETER_TNAME,
|
||||
OB_ALL_VIRTUAL_TENANT_EVENT_HISTORY_TNAME,
|
||||
OB_ALL_VIRTUAL_SQL_AUDIT_ORA_TNAME,
|
||||
OB_ALL_VIRTUAL_SQL_AUDIT_ORA_ALL_VIRTUAL_SQL_AUDIT_I1_TNAME,
|
||||
OB_ALL_VIRTUAL_PLAN_STAT_ORA_TNAME,
|
||||
@ -7142,6 +7167,7 @@ const char* const tenant_space_table_names [] = {
|
||||
OB_ALL_VIRTUAL_TIMESTAMP_SERVICE_ORA_TNAME,
|
||||
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_GV_OB_PLAN_CACHE_STAT_TNAME,
|
||||
OB_GV_OB_PLAN_CACHE_PLAN_STAT_TNAME,
|
||||
OB_SCHEMATA_TNAME,
|
||||
@ -7385,6 +7411,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_TENANT_EVENT_HISTORY_TNAME,
|
||||
OB_DBA_SYNONYMS_TNAME,
|
||||
OB_DBA_OBJECTS_ORA_TNAME,
|
||||
OB_ALL_OBJECTS_TNAME,
|
||||
@ -7623,6 +7650,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_TENANT_EVENT_HISTORY_ORA_TNAME,
|
||||
OB_GV_OB_SQL_AUDIT_ORA_TNAME,
|
||||
OB_V_OB_SQL_AUDIT_ORA_TNAME,
|
||||
OB_GV_INSTANCE_TNAME,
|
||||
@ -8170,6 +8198,7 @@ const char* const tenant_space_table_names [] = {
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_AUX_LOB_META_TNAME,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_AUX_LOB_META_TNAME,
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_META_TNAME,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_META_TNAME,
|
||||
OB_ALL_TABLE_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_COLUMN_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_DDL_OPERATION_AUX_LOB_PIECE_TNAME,
|
||||
@ -8392,7 +8421,8 @@ const char* const tenant_space_table_names [] = {
|
||||
OB_ALL_EXTERNAL_TABLE_FILE_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_TASK_OPT_STAT_GATHER_HISTORY_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_TABLE_OPT_STAT_GATHER_HISTORY_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_PIECE_TNAME, };
|
||||
OB_ALL_BALANCE_TASK_HELPER_AUX_LOB_PIECE_TNAME,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_PIECE_TNAME, };
|
||||
|
||||
const uint64_t only_rs_vtables [] = {
|
||||
OB_ALL_VIRTUAL_CORE_META_TABLE_TID,
|
||||
@ -10802,6 +10832,14 @@ LOBMapping const lob_aux_table_mappings [] = {
|
||||
ObInnerTableSchema::all_balance_task_helper_aux_lob_piece_schema
|
||||
},
|
||||
|
||||
{
|
||||
OB_ALL_TENANT_EVENT_HISTORY_TID,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_META_TID,
|
||||
OB_ALL_TENANT_EVENT_HISTORY_AUX_LOB_PIECE_TID,
|
||||
ObInnerTableSchema::all_tenant_event_history_aux_lob_meta_schema,
|
||||
ObInnerTableSchema::all_tenant_event_history_aux_lob_piece_schema
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
static inline bool get_sys_table_lob_aux_table_id(const uint64_t tid, uint64_t& meta_tid, uint64_t& piece_tid)
|
||||
@ -10839,12 +10877,12 @@ 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 = 241;
|
||||
const int64_t OB_VIRTUAL_TABLE_COUNT = 696;
|
||||
const int64_t OB_SYS_VIEW_COUNT = 734;
|
||||
const int64_t OB_SYS_TENANT_TABLE_COUNT = 1676;
|
||||
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_CORE_SCHEMA_VERSION = 1;
|
||||
const int64_t OB_BOOTSTRAP_SCHEMA_VERSION = 1679;
|
||||
const int64_t OB_BOOTSTRAP_SCHEMA_VERSION = 1685;
|
||||
|
||||
} // end namespace share
|
||||
} // end namespace oceanbase
|
||||
|
||||
Reference in New Issue
Block a user