How would you go about generating an EXPLAIN plan?

Answers were Sorted based on User's Feedback



How would you go about generating an EXPLAIN plan?..

Answer / daid kumar

The EXPLAIN PLAN statement displays execution plans chosen
by the Oracle optimizer for SELECT, UPDATE, INSERT, and
DELETE statements.
Run This Script To create Plan Table
$ORACLE_HOME/rdbms/admin/UTLXPLAN.SQL
Then Write like this
SQL> EXPLAIN PLAN FOR
SELECT name FROM emp;

Now to see O/P u can select * from "plan_table"

Is This Answer Correct ?    9 Yes 1 No

How would you go about generating an EXPLAIN plan?..

Answer / bharath

explain plan for select * from t1 where num_col = '1';
select * from table(dbms_xplan.display);

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More DB Administration Interview Questions

Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

0 Answers  


You're getting high "busy buffer waits" - how can you find what's causing it?

1 Answers  


Can we take incremental backups in datapump?

1 Answers  


I have kept recovery catalog on same target database and taken backup of target DB to disk. deleted the target DB & tried to restore and revoer DB using the backup on disk but it is not possible, how do we restore & recover DB

0 Answers  


What view(s) do you use to associate a user's SQLPLUS session with his o/s process?

0 Answers  






What are the ways tablespaces can be managed and how do they differ?

2 Answers   IBM,


What are the differences in clustering in sql server 2005 and 2008 or 2008 r2? : sql server DBA

0 Answers  


What are statistics, under what circumstances they go out of date, how do you update them?

0 Answers  


An automatic job running via DBMS_JOB has failed. Knowing only that "it's failed", how do you approach troubleshooting this issue?

1 Answers  


What are the different ways you can create databases in sql server? : sql server DBA

0 Answers  


What is the difference between Datapump & export/import?

2 Answers  


What's the benefit of "dbms_stats" over "analyze"?

1 Answers  


Categories