Fix for TOAD error ORA-02404: specified plan table not found
TOAD can report error “ORA-02404: specified plan table not found” when trying to display execution plans:

Two options to fix:
- Run script toadprep.sql. This creates the table toad_plan_table, among other things, and is meant to be run by a user with DBA privileges.
or - Change TOAD to use the same plan table (= plan_table) that other applications use. Do this in TOAD through the View -> Options -> Oracle -> General window, then change the Explain Plan Table name to “plan_table”, removing the “TOAD_” from the beginning:

Plan_table itself ought to be in every database, although in versions 9i and earlier that required DBA intervention, was not created by default. See next post for details on that.
TOAD error fix from:
Thursday 31 May 2007 at 12:58 pm
Its absolutely good!!!!!!!
Thanks alot for giving me a described solution for this error …
Monday 4 June 2007 at 6:19 am
Abolutely true good work!!!!!! keep posting
Tuesday 12 June 2007 at 1:42 pm
I can confirm that the option 2 fix works for Toad 7.5 against a 10g database.
I’ve been wondering about this for some time. I’ve been using Toad for ages on a 8.1.7 Oracle database, and since the beginning of this year I’ve been using it on a 10g database as well.
The “Explain Plan” didn’t work in 10g and while I knew I should fix it I hadn’t had the need. This afternoon I finally needed to evaluate which of two selects was more efficient. Hence a web search that brought me to this page.
In the process, the Explain Plan view helped me realise that I had forgotten a join between two tables which caused one of the statements to do a full table scan instead of an index scan. Yay!
Monday 25 June 2007 at 1:07 pm
Thanks , It worked
Thursday 26 July 2007 at 10:24 pm
Excelente!!! funcionó a la primera, muchas gracias.
Saludos.
Santiago, Chile.
Wednesday 15 August 2007 at 11:18 am
it was required n i got it here, tks a lot
Thursday 13 September 2007 at 1:50 am
thanks, it works :D
Friday 5 October 2007 at 12:53 pm
This was just what I was looking for — thanks!
Wednesday 5 December 2007 at 11:52 pm
Thanks for the info.
Monday 24 December 2007 at 11:11 am
thank you for the working tip!
Wednesday 26 December 2007 at 8:21 am
This one really works man. thanks a lot.
Thursday 14 February 2008 at 11:17 am
Hi
I tried the second option and it worked..
now i can see explain plans.
I didnt have a clue where to look for toadprep.sql…does anyone has a clue?
Wednesday 20 February 2008 at 10:59 am
To Load and Execute TOADPREP.SQL
1. Connect as System or a DBA.
2. Go to File > Open File.
3. Open your TOAD > TEMPS folder.
4. Double-click TOADPREP.SQL.
5. The TOADPREP.SQL loads into your SQL Editor.
6. Execute each statement in the script by clicking on the statement and pressing .
If this is your first time running the TOADPREP.SQL script and you execute a Drop statement, you receive an error message. This is because there is nothing to drop. You can click OK and continue. However, you can just skip all the drop statements (don’t execute the drop statements), since TOAD has nothing to drop.
7. For the Connect statement, you need to modify the statement for your connection.
8. When you exit, TOAD will ask you if you want to save changes. Click Yes.
Quest Software
Friday 29 February 2008 at 8:38 pm
Thanks a lot for the solution, i really had good time.
Wednesday 12 March 2008 at 2:07 pm
I tried to fix my problem with the second option but it thrown me the following error message.
The following files specified on the Executables tab could not be found:
SQL*Loader
Ping
I appreciate your help. Thanks in advance.
Friday 14 March 2008 at 6:11 am
It Works !!! Thanks i appreciate your help
Friday 23 May 2008 at 2:37 am
Great! Thanks a lot for sharing the tip.
Tuesday 27 May 2008 at 7:24 am
thanks!!!
i stumbled upon this link when googling. tried your suggestion, and it works great!
thank you. this really helps.
Thursday 29 May 2008 at 8:56 am
Great!! It’s working thanks for the help
Tuesday 10 June 2008 at 1:46 pm
Bulls eye
Tuesday 10 June 2008 at 8:18 pm
Thanks… helped in the right time…
Wednesday 2 July 2008 at 8:42 pm
thanks alottt…
Thursday 10 July 2008 at 6:24 am
Thanks a lot!!!!….Option 2 has worked out with out any errors….
Wednesday 23 July 2008 at 2:11 pm
Thanks ! Why does Toad use its own plan table anyway..