Home » RDBMS Server » Performance Tuning » ORA-024012: PLAN_TABLE not found
ORA-024012: PLAN_TABLE not found [message #157381] Thu, 02 February 2006 01:40 Go to next message
Brayan
Messages: 315
Registered: June 2002
Senior Member
Hi,

When ever I try to explain the plan, it gives me error

ORA-024012: PLAN_TABLE not found

any tips?

Brian
Re: ORA-024012: PLAN_TABLE not found [message #157399 is a reply to message #157381] Thu, 02 February 2006 03:29 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
>any tips?

Yes, next time paste the error-code.
There is no error ORA-024012.

Google for "ORA-02402 PLAN_TABLE not found"
Re: ORA-024012: PLAN_TABLE not found [message #158071 is a reply to message #157399] Wed, 08 February 2006 07:00 Go to previous messageGo to next message
bhagwan
Messages: 86
Registered: September 2004
Member
If you are using TOAD to access your DB..run the below script and then look for explain plan.

CREATE TABLE TOAD_PLAN_TABLE
(
STATEMENT_ID VARCHAR2(30 BYTE),
TIMESTAMP DATE,
REMARKS VARCHAR2(80 BYTE),
OPERATION VARCHAR2(30 BYTE),
OPTIONS VARCHAR2(30 BYTE),
OBJECT_NODE VARCHAR2(128 BYTE),
OBJECT_OWNER VARCHAR2(30 BYTE),
OBJECT_NAME VARCHAR2(30 BYTE),
OBJECT_INSTANCE INTEGER,
OBJECT_TYPE VARCHAR2(30 BYTE),
OPTIMIZER VARCHAR2(255 BYTE),
SEARCH_COLUMNS NUMBER,
ID INTEGER,
PARENT_ID INTEGER,
POSITION INTEGER,
COST INTEGER,
CARDINALITY INTEGER,
BYTES INTEGER,
OTHER_TAG VARCHAR2(255 BYTE),
PARTITION_START VARCHAR2(255 BYTE),
PARTITION_STOP VARCHAR2(255 BYTE),
PARTITION_ID INTEGER,
OTHER LONG,
DISTRIBUTION VARCHAR2(30 BYTE)
)

Rgds,
Bhagwan
Re: ORA-024012: PLAN_TABLE not found [message #158106 is a reply to message #157381] Wed, 08 February 2006 09:08 Go to previous messageGo to next message
smartin
Messages: 1803
Registered: March 2005
Location: Jacksonville, Florida
Senior Member
Don't use that create table script, automatically, to create your plan table. The table, and information available, changes from version to version. The performance tuning guide walks you through how to configure the plan_table if it isn't already done so. Basically there is a script that each version of oracle provides that you can run. utlxplan.sql I believe in the rdbms/admin folder.
Re: ORA-024012: PLAN_TABLE not found [message #161613 is a reply to message #158106] Mon, 06 March 2006 05:22 Go to previous message
samidc
Messages: 35
Registered: February 2006
Member
There is utlxplan.sql file either in oracle directory or download from google.
Just run that file.
It will solve your problem.

Regards
SaMiR.
Previous Topic: Index not being used in Query
Next Topic: log waits
Goto Forum:
  


Current Time: Sat Nov 23 14:24:59 CST 2024