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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.