ORA-02404: specified plan table not found ORACLE 报错 故障修复 远程处理

文档解释

ORA-02404: specified plan table not found

Cause: The specified plan table does cannot be found.

Action: Create the specified plan table or use an existing plan table.

ORA-02404错误发生,是指指定的计划表未找到。

官方解释

该错误表示指定的计划表不存在。执行以下操作以检查是否存在指定的计划表:

1.使用SQL*Plus登录:

SQL> CONNECT / AS sysdba

2.查找指定的计划表:

SQL> SELECT table_name FROM dba_tables WHERE owner in (‘SYS’) AND table_name = ‘PLAN_TABLE’;

3.如果没有找到指定的PLAN_TABLE,可以创建PLAN_TABLE:

SQL> @$ORACLE_HOME/rdbms/admin/utlxplan.sql;

常见案例

ORA-02404常见于执行EXPLAIN PLAN语句时引发,因为缺少PLAN_TABLE表。

正常处理方法及步骤

1.确认数据库的字符集是否支持创建PLAN_TABLE表。

2.确认用户是否拥有CREATE TABLE权限。

3.确保字符集utf8及排序规则是正确的;

4.使用$ORACLE_HOME/rdbms/admin/utlxplan.sql脚本创建PLAN_TABLE表。


数据运维技术 » ORA-02404: specified plan table not found ORACLE 报错 故障修复 远程处理