欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ORA-27468: ""."" is locked by another process

程序员文章站 2023-11-09 17:52:34
You have a scheduler job that generated an error. When the error occurred, you attempted to disable the job to investigate the error, but received an ......

you have a scheduler job that generated an error. when the error occurred, you attempted to disable the job to investigate the error, but received an ora-27468 error message.

27468, 00000, "\"%s.%s\" is locked by another process"
// *cause: an attempt was made to read or modify the state of the named
//         scheduler object when another process was also updating the same
//         object and held the lock.
// *action: retry the operation. scheduler locks are held for a very
//          short duration. if the error persists, contact oracle support.

since the documentation for this message said to try again later, you waited, but have continued to receive the same error message.

 

 

to implement the solution, please execute the following steps:

1.  check the value for the job_queue_processes:

sql> show parameter job

name                                 type        value
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     1000
sql>



2. stop the cjq0 process.

sql> show parameter job

name                                 type        value
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     1000
sql> alter system set job_queue_processes=0;

system altered.

sql> show parameter job

name                                 type        value
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     0
sql>

    this may require a kill -9 if on unix or linux.

3. drop the problematic job.

4. restart the cjq0 process.

    reset the job_queue_processes back to the original setting (from show parameter command) using

         sql> alter system set job_queue_processes=<old value>;

摘自:文档 id 330725.1