How to disable the scheduler using SCHEDULER_DISABLED attribute in 10g (文档 ID 1491941.1)
2016-10-20 14:31
555 查看
10g中如何使用scheduler_disabled的属性禁用调度器
用于:
Oracle Server - Enterprise Edition - Version 10.1.0.2 以及以后版本,该文档适合任何的版本
目的
是否有可能禁用调度程序,用于维护工作,通过执行以下语句:
DBMS_SCHEDULER.set_scheduler_attribute('SCHEDULER_DISABLED', 'TRUE');
正如,运行完以上的命令,工作仍在计划的时间上运行。
解决方法:
在10.2版本里禁用这个调程序是不可能的
在11R2上增加了新的特点
Oracle文件允许我们使用的dbms_scheduler.set_scheduler_attribute程序仅用于以下属性:default_timezone,max_job_slave_processes, and log_history.
scheduler_disabled是不支持此包的。这并不能保证工作,所以我们不能预测预期的行为。
在一些情况下它可以工作,假如你让协调进程(主进程)和从进程退出之后,再使用SCHEDULER_DISABLED。
假如dbms_scheduler.run_job被执行,那么这个工作将会持续运行(不受SCHEDULER_DISABLED影响)
在11gR2及以上版本:
从这个版本开始,设置job_queue_processes为0时,所有的进程都将被终止,不能再运行,这意味着DBMS_SCHEDULER,自动任务和DBMS_JOB都不会运行
在先前版本中,只有结束DBMS_JOB 进程之后再设置job_queue_processes为0
理所当然的,为了停止在11gR2及以上版本的scheduler 工作,设置变量job_queue_processes为0就足够了
用于:
Oracle Server - Enterprise Edition - Version 10.1.0.2 以及以后版本,该文档适合任何的版本
目的
是否有可能禁用调度程序,用于维护工作,通过执行以下语句:
DBMS_SCHEDULER.set_scheduler_attribute('SCHEDULER_DISABLED', 'TRUE');
正如,运行完以上的命令,工作仍在计划的时间上运行。
解决方法:
在10.2版本里禁用这个调程序是不可能的
在11R2上增加了新的特点
Oracle文件允许我们使用的dbms_scheduler.set_scheduler_attribute程序仅用于以下属性:default_timezone,max_job_slave_processes, and log_history.
scheduler_disabled是不支持此包的。这并不能保证工作,所以我们不能预测预期的行为。
在一些情况下它可以工作,假如你让协调进程(主进程)和从进程退出之后,再使用SCHEDULER_DISABLED。
假如dbms_scheduler.run_job被执行,那么这个工作将会持续运行(不受SCHEDULER_DISABLED影响)
在11gR2及以上版本:
从这个版本开始,设置job_queue_processes为0时,所有的进程都将被终止,不能再运行,这意味着DBMS_SCHEDULER,自动任务和DBMS_JOB都不会运行
在先前版本中,只有结束DBMS_JOB 进程之后再设置job_queue_processes为0
理所当然的,为了停止在11gR2及以上版本的scheduler 工作,设置变量job_queue_processes为0就足够了
相关文章推荐
- How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1)
- How to Convert 10g Single-Instance database to 10g RAC using Manual Conversion procedure (文档 ID 7474
- How to Pin a Cursor in the Shared Pool using DBMS_SHARED_POOL.KEEP (文档 ID 726780.1)
- How To Change the Partition Column Of A Partitioned Table Using DBMS_Redefinition [ID 846405.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Determine the Blocking Session for Event: 'cursor: pin S wait on X' (文档 ID 786507.1)
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server. (文档 ID 885522.1)
- How to generate the short unique id using C#
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Find the Offending SQL from a ORA-600 or ORA-7445 Trace File (文档 ID 154170.1) 转到底部 In this
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- CodeSnip: How to Get Id of the Record Using ASP.NET and SQL Server 2000
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How To Reload the SYS.DBMS_STATS Package (文档 ID 1310365.1)
- How to Convert 10g Single-Instance database to 10g RAC using Manual Conversion procedure [ID 747457.
- How To Download The Latest Updates And Patches Using 11.2.0.2 OUI [ID 1295074.1]
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How to Restore the Database Using AMDU after Diskgroup Corruption (Doc ID 1597581.1)
- How To Add/Increase The Size Of Redo Log Files In Rac Environment? (文档 ID 779306.1)