statistics_level
can be set to all | |
typical | The default value. It collects all statistics except timed operating system statistics and plan execution statistics (aka row source statistics). |
basic | Disables the collection of some statistics. |
statistics_level
can be queried from v$statistics_level
. timed_statistics
cannot be set to false
if statistics_level
is typical
or all
. select p.name, p.value from v$parameter p where p.name in ( 'statistics_level', 'timed_statistics' ); -- -- NAME VALUE -- ---------------- ------- -- timed_statistics TRUE -- statistics_level TYPICAL alter session set timed_statistics = false; > ORA-02097: parameter cannot be modified because specified value is invalid > ORA-00044: timed_statistics must be TRUE when statistics_level is not BASIC
statistics_level
to all
implicitly sets _rowsource_statistics_sampfreq
to 1. statistics_level
must either be typical
or all
. timed_statistics
, timed_os_statistics