oracle中自定义计数器加不上
环境变量已经设定,数据库可以访问了,
vmon也修改了Custom1]
;Name must be unique
Name=高速缓存区命中率
Descrīption=oracle database shoot straight
Query=SELECT round(1-SUM(PHYSICAL_READS)/(SUM(DB_BLOCK_GETS) + SUM(CONSISTENT_GETS)), 4) * 100 FROM (SELECT CASE WHEN NAME='physical reads' THEN VALUE END PHYSICAL_READS,CASE WHEN NAME = 'db block gets' THEN VALUE ENDDB_BLOCK_GETS,CASE WHEN NAME = 'consistent gets' THEN VALUE ENDCONSISTENT_GETS FROM V$SYSSTAT WHERE Name IN ('physical reads','db block gets','consistent gets'))
IsRate=0
;Name must be unique
Name=共享区库缓存区命中率
Descrīption=命中率应大于0.99
Query=Select round(sum(pins-reloads)/sum(pins) * 100, 2) from v$librarycache
IsRate=0
;Name must be unique
Name=共享区字典缓存区命中率
Descrīption=命中率应大于0.85
Query=Select round(sum(gets-getmisses-usage-fixed)/sum(gets) * 100, 2) from v$rowcache
IsRate=0
;Name must be unique
Name=检测回滚段的争用
Descrīption=应该小于1%
Query=select round(sum(waits)/sum(gets) * 100, 2) from v$rollstat
IsRate=0
;Name must be unique
Name=检测回滚段收缩次数
Descrīption=应该小于1%
Query=select sum(shrinks) from v$rollstat, v$rollname where v$rollstat.usn = v$rollname.usn
IsRate=0
;Name must be unique
Name=监控表空间的I/O读总数
Descrīption=监控表空间的I/O
Query=select sum(f.phyrds) pyr from v$filestat f, dba_data_files df where f.file# = df.file_id
IsRate=0
;Name must be unique
Name=监控表空间的I/O块读总数
Descrīption=监控表空间的I/O
Query=select sum(f.phyblkrd) pbr from v$filestat f, dba_data_files df where f.file# = df.file_id
IsRate=0
;Name must be unique
Name=监控表空间的I/O写总数
Descrīption=监控表空间的I/O
Query=select sum(f.phywrts) pyw from v$filestat f, dba_data_files df where f.file# = df.file_id
IsRate=0
我是这么加的,
可是就是添加计数器没找到他们啊
HELP!!!!!!!! 顶,遇到一样的问题 也遇到同样的问题,知道的高手请援助一下。。 有人没:Q 下载-解压-覆盖-重启-选择自定义监控指标 楼上正解
页:
[1]