Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Developer explain plan broken

Trying to generate an explain plan in SQL Developer, the program puts up a message box with title "failed to query plan_table" complaining "invalid column name". The plan is not generated or displayed. How to fix?

like image 371
Barett Avatar asked Aug 06 '10 17:08

Barett


People also ask

How do I get the explain plan in SQL Developer?

In SQL Developer, you can look at the Explain Plan (or Execution Plan) by going into the Worksheet window (where the SQL query is written). Open your query there, or write the query you want to analyse. Now, click Explain Plan, or press F10. The execution plan is shown in SQL Developer.

How do I analyze an Oracle explain plan?

It is best to use EXPLAIN PLAN to determine an access plan, and then later prove that it is the optimal plan through testing. When evaluating a plan, examine the statement's actual resource consumption. Use Oracle Trace or the SQL trace facility and TKPROF to examine individual SQL statement performance.

How get hash value from explain plan?

If you want to get the full plan from any of these statements, you can either include the sql_id in the query to find all plans for a statement, or you can use the plan hash value to get retrieve it from the v$sql_plan view and use it in the dbms_xplan. display_cursor function.


1 Answers

Execute this sql statement:

drop table plan_table

SQL Developer automatically regenerated the proper table & displayed the correct plan after pressing F6 again.

like image 144
Barett Avatar answered Oct 28 '22 19:10

Barett