我把我的配置文件贴一下,希望对其他朋友有帮助:
Counters=150
CustomCounters=14
;How many seconds for each data sample?
SamplingRate=10
Name must be unique
Name=Five Hundred
Description=This counter always returns 500.
Query=SELECT 500 FROM DUAL
IsRate=0 好东西~~支持原创 原帖由 jzl2004 于 2009-6-10 16:56 发表 http://bbs.51testing.com/images/common/back.gif
按照步骤一步一步做,应该是没有问题的,若是还有问题,把 3/配置文件示例对象, 里面的内容直接拷贝到vmon.cfg文件中去,应该没有问题,若是有问题,我给你做个vmon.cfg文件直接发给你,你覆盖(先备份),再试。
谢谢楼主 以及nataliedu了 可以了…… 继续发问:
请问楼主以及各位:
7、 监控表空间的 I/O读总数 select sum(f.phyrds) pyr from v$filestat f, dba_data_files df where f.file# = df.file_id 监控表空间的 I/O
8、 监控表空间的 I/O块读总数 select sum(f.phyblkrd) pbr from v$filestat f, dba_data_files df where f.file# = df.file_id 监控表空间的 I/O
9、 监控表空间的 I/O写总数 select sum(f.phywrts) pyw from v$filestat f, dba_data_files df where f.file# = df.file_id 监控表空间的 I/O
10、监控表空间的 I/O块写总数 select sum(f.phyblkwrt) pbwfrom v$filestat f, dba_data_files df where f.file# = df.file_id 监控表空间的 I/O
这几个指标值怎么分析呢?现在监控的数值一直是上升的,合理吗? 支撑楼主,顶一下
我装的是lr9.5,vmon.cfg内容好像不一样了
Counters=150
;CustomCounters=2
;How many seconds for each data sample?
SamplingRate=10
;
;Name must be unique
;Name=Five Hundred
;Description=This counter always returns 500.
;Query=SELECT 500 FROM DUAL
;IsRate=0
;
;Name=Thirty Five
;Description=This counter always returns 35.
;Query=SELECT 35 FROM DUAL
;IsRate=1
Name=CPU used by this session
Description=This is the amount of CPU time (in 10s of milliseconds) used by a session between when a user call started and ended. Some user calls can complete within 10 milliseconds and as a result, the start and end user-call time can be the same. In this case, 0 milliseconds are added to the statistic. A similar problem can exist in the reporting by the operating system, especially on systems that suffer from many context switches.
IsRate=0
Name=CPU used when call started
Description=The CPU time used when the call is started.
IsRate=0
Name=CR blocks created
Description=A buffer in the buffer cache was cloned. The most common reason for cloning is that the buffer is held in a incompatible mode.
IsRate=0
Name=Cached Commit SCN referenced
Description=The number of times cached Commit SCN is referenced.
IsRate=0
....... 有人帮忙解释一下? 总结得很好,正需要,顶起来,让更多人看到 真好,收藏下 我在LR11安装路径下看不到LZ说的monitors这个文件夹哦! thx指点.. 先顶一下。。。 我按照你说的方法做了,可是在controller下面的oracle计数器中查询不到我自定义的计数器,求指导!!谢谢 你好,按照你的方法进行了配置,但是在添加计数器里面没有选项,这是自定义的部分:
V$ Monitor]
Counters=150
CustomCounters=12
;How many seconds for each data sample?
SamplingRate=10
;Name must be unique
Name=库快存命中率.
Description=该计数器返回当前库快存命中率
Query=SELECT 100*((sum(pins-reloads))/sum(pins)) from v$librarycache.
IsRate=0
;Name must be unique
Name=高速缓存区命中率
Description=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=共享区库缓存区命中率
Description=命中率应大于0.99.
Query=Select round(sum(pins-reloads)/sum(pins) * 100, 2) from v$librarycache
IsRate=0
;Name must be unique
Name=共享区字典缓存区命中率
Description=命中率应大于0.85
Query=Select round(sum(gets-getmisses-usage-fixed)/sum(gets) * 100, 2) from v$rowcache
IsRate=0
;Name must be unique
Name=检测回滚段的争用
Description=应该小于1%
Query=select round(sum(waits)/sum(gets) * 100, 2) from v$rollstat
IsRate=0
;Name must be unique
Name=检测回滚段收缩次数
Description=应该小于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读总数
Description=监控表空间的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块读总数
Description=监控表空间的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写总数
Description=监控表空间的I/O
Query=select sum(f.phywrts) pyw from v$filestat f, dba_data_files df where f.file# = df.file_id
IsRate=0
;Name must be unique
Name=库快存命中率
Description=该计数器返回当前库快存命中率
Query=SELECT 100*((sum(pins-reloads))/sum(pins)) from v$librarycache
IsRate=0
;Name must be unique
Name=监控表空间的 I/O块写总数
Description=监控表空间的I/O
Query=select sum(f.phyblkwrt) pbwfrom v$filestat f, dba_data_files df where f.file# = df.file_id
IsRate=0
;Name must be unique
Name=监控 SGA 中重做日志缓存区的命中率
Description=应该小于1%
Query=SELECT Decode(immediate_gets+immediate_misses,0,0,immediate_misses/(immediate_gets+immediate_misses)*100) ratio2 FROM v$latch WHERE name IN ('redo copy')
IsRate=0
;Name must be unique
Name=监控内存和硬盘的排序比率
Description=最好使它小于 10%
Query=select round(sum(case when name='sorts (disk)' then value else 0 end) / sum(case when name='sorts (memory)' then value else 0 end)*100,2) from (SELECT name, value FROM v$sysstatWHERE name IN ('sorts (memory)', 'sorts (disk)'))
IsRate=0
添加计数器的自定义计数器为空C:\Users\Administrator\Desktop
zsjmm 发表于 2009-9-22 14:53
谢谢楼主 以及nataliedu了 可以了……
我想问下,你是怎么操作后可以看到的。 我现在也一样。。按着那个步骤做了以后,在计数器中看不到我自定义的指标。难道还有什么地方要注意么? 请教,添加后中文显示为乱码,是哪里问题?
页:
1
[2]