autotrace
We can observe the execution plan Oracle choses for a given query by using the menu AUTOTRACE
LAST_CR_BUFFER_GETS (number of pages from the RAM buffer)
LAST_DISK READS (number of pages read from disk)
Autotrace and Explain的区别
- Autotrace runs the query and shows the executed plan and its main statistics
- Explain shows an estimated best plan and its estimated statistics without running the query