Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Estimate a query time
...also, I can't remember if it the time estimate was in 9.x (my
apologies if it wasn't), but the explain plan in 10G actually shows the
estimated time, as shown below. On my highly unscientific test, it
proved to be pretty close...
SQL> explain plan for
2 select a.c,b.c from
3 (select c from t0407) a,
4 (select c from t0407) b;
Explained.
SQL> @?\rdbms\admin\utlxpls
PLAN_TABLE_OUTPUT
Plan hash value: 2814017309
PLAN_TABLE_OUTPUT
Note
15 rows selected.
SQL> set timing on SQL> set autotrace traceonly; SQL> select a.c,b.c from
24990001 rows selected.
Elapsed: 00:03:06.49
Execution Plan
Note
Statistics
0 recursive calls 0 db block gets 5023 consistent gets 0 physical reads 0 redo size
1 sorts (memory) 0 sorts (disk)
SQL> Received on Fri Apr 07 2006 - 13:26:02 CDT
![]() |
![]() |