denrepo

OraclePerformance

Load right now (last 60 seconds)

Host CPU, average active sessions, transactions, redo and I/O rates from V$SYSMETRIC. Compare average active sessions with your CPU count to judge whether the box is saturated.

Not yet verified. How scripts are tested

ora-load-now.sql
1CLEAR COLUMNS2SET LINESIZE 120 PAGESIZE 100 TRIMOUT ON TAB OFF3COLUMN metric_name HEADING "METRIC" FORMAT A404COLUMN value       FORMAT 999,999,999,990.95COLUMN metric_unit HEADING "UNIT"   FORMAT A35 TRUNCATE6 7SELECT metric_name, ROUND(value, 1) AS value, metric_unit8FROM v$sysmetric9WHERE group_id = 210  AND metric_name IN ('Host CPU Utilization (%)', 'Average Active Sessions',11                      'Database CPU Time Ratio', 'Executions Per Sec',12                      'User Transaction Per Sec', 'Physical Read Total Bytes Per Sec',13                      'Redo Generated Per Sec', 'Logons Per Sec', 'Current Logons Count')14ORDER BY metric_name;

Save it as ora-load-now.sql and run it with SQL> @ora-load-now.

Open in denrepo

Part of these runbooks

More Oracle scripts: Performance