Execution plan [message #56763] |
Tue, 22 April 2003 23:46 |
Manish tiwari
Messages: 6 Registered: April 2003
|
Junior Member |
|
|
Hello ever body
How can i see only the exectution plan of my query .....i do not want to see the result only the execution pln .....
i mean which alter session commnad can help me
Thx
|
|
|
|
Re: Execution plan [message #56773 is a reply to message #56763] |
Wed, 23 April 2003 08:26 |
Sanjay
Messages: 236 Registered: July 2000
|
Senior Member |
|
|
SQL> explain plan for select * from dept;
SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
This will JUST show the execution plan for query with out actually running the query. The key is 'EXPLAIN PLAN FOR' before the SELECT statement.
If it complains that PLAN_TABLE is not created, then run this sql to create one.
SQL> @$ORACLE_HOME/rdbms/admin/utlxplan.sql
will create the PLAN_TABLE in the schema you are logged in.
Good luck.
One of the reasons I like is the Execution plan is shown with out actually running the query, saving time to actually tune the query for optimal use before you get your data.
|
|
|
Re: Execution plan [message #56775 is a reply to message #56763] |
Wed, 23 April 2003 08:47 |
Michel Bartov
Messages: 35 Registered: February 2003
|
Member |
|
|
I just posted an integrated set of GUI tools to administer and tune the Oracle database.
One of the many functions is to analyze SQL statements. This function generates an execution plan for the statement and also allows you to set different hints to generate different execution plans. You can also run the different scenarios and compare the execution time as well as various query statistics.
Feel free to contact me (michelbartov@yahoo.com). The link is http://www.barsoft.net/
|
|
|