How to ORA-27492: unable to run job: scheduler unavailable

文章讲述了在Oracle数据库中遇到ORA-27492错误,该错误表示无法运行测试Job,原因可能是scheduler不可用。通过检查job_queue_processes参数并设置为足够的数量,解决了调度器未激活的问题,允许在当前会话中运行Job。
摘要由CSDN通过智能技术生成

ORA-27492
Found error ORA-27492 when executed a tuning job.

SQL > call dbms_scheduler.run_job('TEST_JOB');

Error at line 2
ORA-27492: unable to run job "TEST"."TEST_JOB": scheduler unavailable
ORA-06512: in "SYS.DBMS_ISCHED", line 163
ORA-06512: in "SYS.DBMS_SCHEDULER", line 346
ORA-06512: in line 1

Solutions by Oracle

Description ORA-27492: unable to run job “string”.“string”: scheduler

Cause
A job run with current session set to false can not be issued if the scheduler is not active. Check value of job_queue_processes parameter, issue dbms_ijob.set_enabled(true), database is in upgrade/migrade mode, database is in data guard mode, or scheduler attribute SCHEDULER_DISABLED is set to TRUE
Action
Run the job in the current session or activate the scheduler

Let’s see the number of job_queue_processes that the database can run.

SQL> show parameter job 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     0

there’s none.

Let’s start some job process for the database.

SQL>  alter system set job_queue_processes = 10 ; 

System altered.

SQL> show parameter job_queue_processes 

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     10

Let’s running the job again

SQL> begin 
  2   dbms_scheduler.run_job('TEST_JOB'); 
  3  end ; 
  4  /
PL/SQL procedure successfully completed.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值