ORA-12422: max policies exceeded
Cause: You tried to create a new policy, but the maximum number of policies for the instance had already been created.
Action: Increase the size of the MAX_LABEL_POLICIES initialization parameter and restart the server.
ORA-12422: max policies exceeded 错误指的是当应用程序尝试分配第N+1个策略时,由于系统不支持存储更多策略而发生的错误。
ORA-12422: max policies exceeded
Cause: The application attempted to allocate policy #N+1, but the system does not support storage of more policies.
Action: Reduce the number of policies and retry the operation.
当计划任务的数量超过系统最大限度时,服务器将引发ORA-12422错误。
1、查询服务器上的最大策略数
在PL/SQL终端上查询以下信息:
SELECT policies.name, policies.type , policies.max FROM dba_policies;
2、调整最大策略数
在PL/SQL终端上运行以下命令:
ALTER SYSTEM SET job_queue_processes = ;
3、重新执行计划任务
如果服务器不允许分配更多策略,请确保您没有定义太多计划任务,并可以重新执行计划任务。