Does it mean Explain plan? [message #343104] |
Tue, 26 August 2008 05:10 |
Olivia
Messages: 519 Registered: June 2008
|
Senior Member |
|
|
When someone ask for show plan for a query does it mean Explain plan?
How can I see the CPU time, Memory usage etc for the queru?
What is the basic difference between EXPLAIN PLAN FOR SELECT..
Vs.
Set autotrace traceonly or Set autotrace on.
Would be thankful to you if you write a few words in reply rather than goingproviding link.
Does someone requires priviledge to execute the plan for a SQL query.
Regards,
Oli
|
|
|
|
|
|
Re: Does it mean Explain plan? [message #343125 is a reply to message #343122] |
Tue, 26 August 2008 06:16 |
Olivia
Messages: 519 Registered: June 2008
|
Senior Member |
|
|
Quote: |
explain plan for + call dbms_xplan to display
|
Like below:
SQL> SET TIMING ON
SQL> EXPLAIN PLAN FOR SELECT DUMMY FROM DUAL;
SQL> Explained
SQL> SELECT * FROM TABLE(dbms_xplan.display);
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------
---------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
..
Thanks Michel.
Regards,
Oli
[Updated on: Tue, 26 August 2008 06:26] Report message to a moderator
|
|
|
|
Re: Does it mean Explain plan? [message #343379 is a reply to message #343185] |
Wed, 27 August 2008 02:11 |
Olivia
Messages: 519 Registered: June 2008
|
Senior Member |
|
|
Thanks Michel for providing more information.
Something of concern:
Quote: |
Take care to create the plan table with ?/rdbms/admin/utlxplan.sql script of your current version otherwise you will not have the latest information that explain plan can give.
|
What would be the impact if PLAN_TABLE is not updated?
Regards,
Oli
[Updated on: Wed, 27 August 2008 03:36] Report message to a moderator
|
|
|
|