Skip to content

Commit caa9f97

Browse files
committed
Merge branch 'main' of github.com:n9e/n9e.github.io
2 parents 65c4003 + 1f53877 commit caa9f97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

content/zh/docs/practice/oracle.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ interval = 15
3838
# 这是第一个 Oracle 实例的配置,使用一大块 [[instances]] 来配置
3939
# [[instances]] 使用双中括号包裹,双中括号在 TOML 中表示数组
4040
# 即可以配置多个 [[instances]] 区块,也就是可以配置多个 Oracle 实例
41+
# 建议不要使用 sys 用户来进行采集,因为在 oracle 12c 及之后版本,go-ora 的 ping 方法在判断 oracle up 状态时,不准确
4142
[[instances]]
4243
address = "10.1.2.3:1521/orcl"
4344
username = "monitor"
@@ -86,6 +87,7 @@ Oracle 监控数据采集原理:周期性执行 SQL,把返回的结果转换
8687
- timeout: SQL 执行的超时时间
8788
- ignore_zero_result: 是否忽略查询结果中值为 0 的行,如果不忽略(设置为 false)且没有查到数据的话会打印一行错误日志,如果忽略了(设置为 true),则查不到数据的时候不会打印错误日志
8889

90+
8991
## metric.toml
9092

9193
这里配置了一些常用的 Oracle 监控数据采集 SQL,Categraf 会定期执行这些 SQL,获取所有 Oracle 实例的监控数据。这里的 SQL 具体含义、作用,可能 Oracle DBA 才比较熟悉,欢迎各位 Oracle DBA 写文章分享这些 SQL 的含义和作用,完事可以把您的文章链接提个 PR 放到本页文档里,让更多人受益。

0 commit comments

Comments
 (0)