adspace


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

Answer Posted / shivainduja

An explain plan is a representation of the access path that
is taken when a query is executed within Oracle.

SQL> explain plan for select * from emp2;

Explained.

SQL> select * from table (DBMS_XPLAN.display);

PLAN_TABLE_OUTPUT
-------------------------------------
Plan hash value: 2941272003

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

8 rows selected.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a cursor is open, how can we find in a pl/sql block?

1238


how many tables will create when we create table, what are they? : Sql dba

1144


what is schema? : Sql dba

1146


Do we need to rebuild index after truncate?

1138


what is dbms? : Sql dba

1061


define sql insert statement ? : Sql dba

1098


what is bcp? When does it used? : Sql dba

1055


how to start mysql server? : Sql dba

1266


how to use regular expression in pattern match conditions? : Sql dba

1113


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2090


what are the advantages of sql ? : Sql dba

1142


what are aggregate and scalar functions? : Sql dba

1129


Does group by remove duplicates?

1112


Can delete statement be rollbacked?

1054


what is collation? : Sql dba

1229