I remember Tom Kyte talked about this and said you can just give the user an estimate instead of a real, accurate, count. An estimate can be fetched from user_tables.num_rows after table analysis. Have you noticed you search on Google and it says it finds "about XXX" results? When the XXX number is small (as when you search for an obscure word), you can see the actual number and it differs from XXX. Users most likely are OK with this inaccurate count.
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 31
Rows Row Source Operation
------- ---------------------------------------------------
9 TABLE ACCESS BY INDEX ROWID OBJ#(7792)
9 INDEX RANGE SCAN OBJ#(7796) (object id 7796)
.......
[/php]
相比sql_trace更准确
An important thing to understand about the EXPLAIN PLAN command is
that it shows you the execution plan Oracle might use if the statement
were to be hard parsed right now—which could be different from the true
execution plan currently in use for the very same statement.