what is explain plan?, given an example...

Answer Posted / rajesh venati

this will also work.

An Explain Plan is a tool that you can use to have Oracle
explain to you how it plans on executing your query.

ex:-
SQL> set autotrace on explain
SQL> select * from emp;

Execution Plan
----------------------------------------------------------
Plan hash value: 3956160932

--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 14 | 518 | 3
(0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 518 | 3
(0)| 00:00:01 |
--------------------------------------------------------------------------

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the select statement in sql?

608


Explain the significance of the & and && operators in pl sql.

565


What can sql server reporting services do?

576


Explain lock escalation? : Transact sql

696


Explain clause in sql?

552






Is a table valued function object?

570


Explain ddl statements in pl/sql?

570


Can a varchar be a primary key?

532


what are aggregate and scalar functions? : Sql dba

545


how can you create an empty table from an existing table? : Sql dba

652


What is the command used to fetch first 5 characters of the string?

876


How do I restart sql?

515


What are schema-level triggers?

571


Can triggers stop a dml statement from executing on a table?

606


What are all types of user defined functions?

520