I'm looking for a script which disables all the jobs. Right now I highlight them all in Toad, click the take offline button and then commit changes. There has to be a way to do this in PL/SQL.
相关问题
- Can I skip certificate verification oracle utl_htt
- Can I skip certificate verification oracle utl_htt
- how to calculate sum time with data type char in o
- keeping one connection to DB or opening closing pe
- System.Data.OracleClient not working with 64 bit O
相关文章
- node连接远程oracle报错
- oracle 11g expdp导出作业调用失败,提示丢包。
- 执行一复杂的SQL语句效率高,还是执行多少简单的语句效率高
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- Difference between FOR UPDATE OF and FOR UPDATE
- Oracle USING clause best practice
- Is there a method in PL/SQL to convert/encode text
- PHP PDO installation on windows (xampp)
If you want to prevent all jobs from running, you can change the initialization parameter
JOB_QUEUE_PROCESSES
. If you set that to 0, Oracle won't run any jobs scheduled usingDBMS_JOB
.You could also mark the jobs broken
which will cause them not to be run (but will allow any jobs created after that point to run normally). To unbreak the jobs
will set all the jobs to run in 1 minute.
== For dbms_job jobs:
For some maintenance may be better/ You may normally want to have some jobs offline and don't want to put them online when you'll be done with maintenance.
== For dbms_scheduler jobs:
and after maintenance is complete:
Please run the below query.
This will disable all the dbms jobs that are enabled.
You can modify the query to enable all the disabled too.