dbms_xplan [message #644054] |
Tue, 27 October 2015 07:02 |
pointers
Messages: 451 Registered: May 2008
|
Senior Member |
|
|
Hi,
I have a query which runs for almost 2 hours against huge tables, I would like to start analysing from the execution plan. As I know explain plan shows only estimated, I thought I would run the query in a session
1. alter session set statistics_level=all
2. run query
3. select * from table(dbms_xplan.display_cursor('sqlid',null,'allstats last');
I would like to follow the above 3 steps, so far so good, but as the query runs for 2 hours (at step 2 above), I will have to wait for 2 hours.
1. Is there any other way to cut waiting time and get the actual execution plan with all the necessary details.
2. As the query returns millions of rows, I had used "set termout off" in a file and ran it --
does this make any issues as far as getting the actual execution plan.
Regards,
Pointers
|
|
|
|
|
|