denrepo

OracleRAC & ASM

Global cache (interconnect) waits by instance

Cluster-class waits per instance since startup. High average times on gc cr or gc current events point at the interconnect or at hot blocks shared across nodes.

All RAC instances

Not yet verified. How scripts are tested

ora-rac-gc.sql
1CLEAR COLUMNS2SET LINESIZE 140 PAGESIZE 100 TRIMOUT ON TAB OFF3COLUMN inst_id     HEADING "INST"    FORMAT 9994COLUMN event       FORMAT A405COLUMN total_waits HEADING "WAITS"   FORMAT 999,999,999,9906COLUMN waited_s    HEADING "TOTAL S" FORMAT 999,999,9907COLUMN avg_ms      HEADING "AVG MS"  FORMAT 99,990.998 9SELECT inst_id, event, total_waits,10       ROUND(time_waited_micro / 1e6) AS waited_s,11       ROUND(time_waited_micro / NULLIF(total_waits, 0) / 1000, 2) AS avg_ms12FROM gv$system_event13WHERE wait_class = 'Cluster'14  AND total_waits > 015ORDER BY time_waited_micro DESC;

Save it as ora-rac-gc.sql and run it with SQL> @ora-rac-gc.

Open in denrepo

More Oracle scripts: RAC & ASM