It would be useful to also know Disk Reads/Writes, Memory, CPU, etc. statistics for a given SQL statement.
2 に答える
Oracle Explainツールはコスト見積もりツールであり、リソース消費の予測ツールではありません。特定のSQLステートメントの実際のリソース消費量について、Oracleのディクショナリ(V $ SQLAREAビューなど)にクエリを実行できます。
余談ですが、2つのSQLステートメントは同じ実行プランを生成する可能性がありますが、Oracleでは異なるSQLステートメントと見なされる可能性があります。
There are 4 different DBMS in the tags. Each of them provides abundant extra information about a query via different mechanisms — not usually through EXPLAIN itself, which is the optimizer's way of predicting the cost of a query rather than recording what it does cost. However, the mechanisms by which this is done are quite different in each DBMS, being well beyond the reach of anything other than de facto standards (and each DBMS is its own de facto standard).