[to #55866822] add _enable_dbms_job_package parameter
This commit is contained in:
@ -2008,6 +2008,8 @@ int ObRootService::execute_bootstrap(const obrpc::ObBootstrapArg &arg)
|
|||||||
LOG_WARN("failed to update cpu_quota_concurrency", K(ret));
|
LOG_WARN("failed to update cpu_quota_concurrency", K(ret));
|
||||||
} else if (OB_FAIL(set_enable_trace_log_())) {
|
} else if (OB_FAIL(set_enable_trace_log_())) {
|
||||||
LOG_WARN("fail to set one phase commit config", K(ret));
|
LOG_WARN("fail to set one phase commit config", K(ret));
|
||||||
|
} else if (OB_FAIL(disable_dbms_job())) {
|
||||||
|
LOG_WARN("failed to update _enable_dbms_job_package", K(ret));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OB_SUCC(ret)) {
|
if (OB_SUCC(ret)) {
|
||||||
@ -11263,6 +11265,18 @@ int ObRootService::set_cpu_quota_concurrency_config_()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ObRootService::disable_dbms_job()
|
||||||
|
{
|
||||||
|
int64_t affected_rows = 0;
|
||||||
|
int ret = OB_SUCCESS;
|
||||||
|
if (OB_FAIL(sql_proxy_.write("ALTER SYSTEM SET _enable_dbms_job_package = false;", affected_rows))) {
|
||||||
|
LOG_WARN("update _enable_dbms_job_package to false failed", K(ret));
|
||||||
|
} else if (OB_FAIL(check_config_result("_enable_dbms_job_package", "false"))) {
|
||||||
|
LOG_WARN("failed to check config same", K(ret));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
int ObRootService::handle_recover_table(const obrpc::ObRecoverTableArg &arg)
|
int ObRootService::handle_recover_table(const obrpc::ObRecoverTableArg &arg)
|
||||||
{
|
{
|
||||||
int ret = OB_SUCCESS;
|
int ret = OB_SUCCESS;
|
||||||
|
|||||||
@ -890,6 +890,7 @@ private:
|
|||||||
void update_cpu_quota_concurrency_in_memory_();
|
void update_cpu_quota_concurrency_in_memory_();
|
||||||
int set_cpu_quota_concurrency_config_();
|
int set_cpu_quota_concurrency_config_();
|
||||||
int set_enable_trace_log_();
|
int set_enable_trace_log_();
|
||||||
|
int disable_dbms_job();
|
||||||
int try_notify_switch_leader(const obrpc::ObNotifySwitchLeaderArg::SwitchLeaderComment &comment);
|
int try_notify_switch_leader(const obrpc::ObNotifySwitchLeaderArg::SwitchLeaderComment &comment);
|
||||||
|
|
||||||
int precheck_interval_part(const obrpc::ObAlterTableArg &arg);
|
int precheck_interval_part(const obrpc::ObAlterTableArg &arg);
|
||||||
|
|||||||
@ -1926,3 +1926,6 @@ DEF_BOOL(_enable_memleak_light_backtrace, OB_CLUSTER_PARAMETER, "True",
|
|||||||
DEF_BOOL(_enable_dbms_lob_partial_update, OB_TENANT_PARAMETER, "False",
|
DEF_BOOL(_enable_dbms_lob_partial_update, OB_TENANT_PARAMETER, "False",
|
||||||
"Enable the capability of dbms_lob to perform partial updates on LOB",
|
"Enable the capability of dbms_lob to perform partial updates on LOB",
|
||||||
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||||
|
DEF_BOOL(_enable_dbms_job_package, OB_CLUSTER_PARAMETER, "True",
|
||||||
|
"Control whether can use DBMS_JOB package.",
|
||||||
|
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||||
|
|||||||
@ -287,6 +287,7 @@ _enable_column_store
|
|||||||
_enable_compaction_diagnose
|
_enable_compaction_diagnose
|
||||||
_enable_convert_real_to_decimal
|
_enable_convert_real_to_decimal
|
||||||
_enable_dblink_reuse_connection
|
_enable_dblink_reuse_connection
|
||||||
|
_enable_dbms_job_package
|
||||||
_enable_dbms_lob_partial_update
|
_enable_dbms_lob_partial_update
|
||||||
_enable_decimal_int_type
|
_enable_decimal_int_type
|
||||||
_enable_defensive_check
|
_enable_defensive_check
|
||||||
|
|||||||
Reference in New Issue
Block a user