The GATHER_SYSTEM_STATS procedure collects system statistics.
Syntax
DBMS_STATS.GATHER_SYSTEM_STATS();
Exceptions
| Error code | Description |
|---|---|
| HY000 | The entered name of the system statistical item is incorrect. |
Considerations
To execute this procedure, you must have the SUPER privilege or use the root account.
Examples
Call the DBMS_STATS.GATHER_SYSTEM_STATS procedure to collect system statistics, such as the CPU speed, disk I/O performance, and network throughput.
BEGIN
-- Collect system statistics.
DBMS_STATS.GATHER_SYSTEM_STATS();
END;
/