Admin/admin

Disable Diagsnap in Oracle 12c

Qhtlr 2020. 9. 4. 17:03

What is Diagsnap in Oracle 12c

Diagsnap is a new feature introduced in 12.1.0.2 GI, which manages the diagsnap resource, which collects additional operating system statistics that are not normally collected by CHM (Cluster Health Monitor) osysmod.

Diagsnap metric collection automatically runs every 15 minutes to collect baseline metrics.

Which events trigger Diagsnap?

  • if cssd process reports missing network heartbeats
  • if one or more interfaces of the gipcd process are down
  • if the rank events of the gipcd process occur

Diagsnap runs the following operating system commands

  • iostat
  • netstat
  • lsof {gipcd pid | ocssd pid | ocssd pid | crsd pid | ohasd pid}
  • arp
  • ifconfig
  • ping (over private interconnect)
  • tcpdump
  • top

Where is Diagsnap Logs in 12c?

The diagsnap logs are located in the $ORACLE_BASE/diagsnap directory for 12.1 and 12.2.0.1

 

How To Enable Diagsnap

$ oclumon manage -enable diagsnap

 

How To Disable Diagsnap

$ oclumon manage -disable diagsnap

 

How To Check Whether the Diagsnap is Disabled or Enabled?

$GRID_HOME/crf/admin/crf$(hostname -s).ora