Is there a way I can look at the execution plan for a specific query in Oracle?

I would appreciate if you can point me to any relevant resources.  Thanks.
thomaszhwangAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sdstuberCommented:
explain plan for (your query);

for example..

explain plan for select * from user_tables;


then...

select * from table(dbms_xplan.display);



for more information about the dbms_xplan package and options on the display function,  see the oracle docs

http://docs.oracle.com/cd/E16655_01/appdev.121/e17602/d_xplan.htm#CACFJGHG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thomaszhwangAuthor Commented:
I will test this tomorrow.  It has been too late today...  Thanks though.
0
PortletPaulfreelancerCommented:
Here's an Oracle whitepaper (May 2011) on explain plans I found very useful:
The Oracle Optimizer Explain the Explain Plan

Not sure if they have a newer version - but it's still relevant.

Note there is quite a difference between 'explain plans' and 'execution plans' from other products e.g. SQL Server uses %ages, but Oracle explain plans do not and the metrics presented are quite different to .sqlplan details.
0
thomaszhwangAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.