Autonomous Health Framework (AHF)笔记

简介: Oracle Autonomous Health包括Oracle ORAchk或Oracle EXAchk 和 Oracle Trace File Analyzer (TFA)

Oracle Autonomous Health包括Oracle ORAchk或

Oracle EXAchk 和 Oracle Trace File Analyzer (TFA)


安装

参考文档 (Doc ID 2550798.1): https://support.oracle.com/epmos/faces/DocContentDisplay?id=2550798.1

在文档上可以找到下面的两个版本下载:

AHF 20.1 (Beta) for Linux
TFA & ORAchk/EXAchk 19.3.2 for Linux

Oracle在raccheck的基础之上又推出了orachk,现在这个AHF又包括了Trace File Analyzer (TFA) 和 ORAchk/EXAchk。


./ahf_setup  -ahf_loc /home/oracle/ahf/ahf19
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_15735_2020_03_14-20_13_53.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 193200 Build Date: 201911251327
./ahf_setup: line 1307: perl: command not found
AHF Location : /home/oracle/ahf/ahf19/oracle.ahf
AHF Data Directory : /home/oracle/ahf/ahf19/oracle.ahf/data
Extracting AHF to /home/oracle/ahf/ahf19/oracle.ahf
/home/oracle/ahf/ahf19/oracle.ahf/tfa/bin/tfactl: line 106: perl: command not found
Configuring TFA in Standalone Mode...
Build Version : 193200  Build Date : 201911251327
Discovering Nodes and Oracle Resources
.--------------------------------------------------------------------.
|                    Summary of TFA Configuration                    |
+----------------+---------------------------------------------------+
| Parameter      | Value                                             |
+----------------+---------------------------------------------------+
| TFA Location   | /home/oracle/ahf/ahf19/oracle.ahf/tfa             |
| Data Directory | /home/oracle/ahf/ahf19/oracle.ahf/data//tfa       |
| Repository     | /home/oracle/ahf/ahf19/oracle.ahf/data/repository |
| Diag Directory | /home/oracle/ahf/ahf19/oracle.ahf/data//diag/tfa  |
| Java Home      | /home/oracle/ahf/ahf19/oracle.ahf/jre             |
'----------------+---------------------------------------------------'
Exception in thread "OfflineMessageHandler" java.lang.NullPointerException
        at oracle.rat.tfa.TFADirectoryManager.isValidTFADirectory(TFADirectoryManager.java:1101)
        at oracle.rat.tfa.TFADirectoryManager.addFromFileLine(TFADirectoryManager.java:1144)
        at oracle.rat.tfa.util.Properties.readDirectoriesFile(Properties.java:1213)
        at oracle.rat.tfa.util.Properties.<init>(Properties.java:973)
        at oracle.rat.tfa.util.Properties.getInstance(Properties.java:1032)
        at oracle.rat.tfa.OfflineMessageHandler.main(OfflineMessageHandler.java:1007)
.---------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+------+---------------+-----+------+---------+----------+------------------+
'------+---------------+-----+------+---------+----------+------------------'
AHF is deployed at /home/oracle/ahf/ahf19/oracle.ahf
ORAchk is available at /home/oracle/ahf/ahf19/oracle.ahf/bin/orachk
AHF binaries are available in /home/oracle/ahf/ahf19/oracle.ahf/bin
AHF is successfully installed
Moving /tmp/ahf_install_15735_2020_03_14-20_13_53.log to /home/oracle/ahf/ahf19/oracle.ahf/data//diag/ahf/


安装过程中有报错是因为没有安装perl,使用yum安装perl后症状消失。

使用root用户安装会设置auto-start。Linux 使用 init,

The most severe problems at 2am, once a day

All known problems once a week at 3am on a Sunday

Send an email to the notification addresses, provided during install of any check failures and a diff since last run

可以使用./orachk -autostop终止自动运行。


运行

./orachk –d start 以daemon方式运行

./orachk run compliance checks on-demand

./orachk –u –o pre 升级前检查

./orachk –u –o post 升级后检查

./orachk -dball 检查所有数据库

./orachk –dbnames db1,db2,db3 检查指定数据库

./orachk -nordbms 只检查grid,包括数据库

./orachk –profile dba,clusterware 指定的profile

./orachk –profile -h 查询profile

-failedchecks previous_result 只运行上次出错的检查

相关文章
一窥kbmmw中的 smart service
在kbmmw 的新版中(还没有发布),将会有一个叫做smart service 的服务。这种服务的属性基于服务器端,并且可以自动注册服务名,下面就是一个简单例子代码。这个服务里面有有三个发布的函数:echostring,EchoReversedString和AddNumbers。
1099 0
|
JSON 安全 API
Rest Assured - Ways to Avoid Security Issues When Using RESTful
Discover various security challenges faced by developers in RESTful architectures and ways to avoid them
1734 0
|
安全
The Cloud Security Ecosystem: Technical, Legal, Business and Management Issues
http://www.amazon.com/Cloud-Security-Ecosystem-Technical-Management-ebook/dp/B00ZC90H02/ref=mt_kindle?_encoding=UTF8&me= http://www.
891 0
The 11-Step Guide to BYOD Security. How to Avoid Getting Fired
https://heimdalsecurity.com/blog/byod-security/
725 0
|
开发者
《Peer Reviews in Software: A Practical Guide》第2章 - (2)
Review的结果不可用于个人工作的评价依据,这样会严重影响组织的文化,人人开始回避Review。可以使用总的统计数据进行质量改善。 滥用Review会导致一些不良态度的产生: 1.开发者不愿进行Review 2.Review人员不会在会上直接提出问题 3.Review过程中会进行激辨 4.内部Review时会趋向发现较少的问题 5.开发者可能反复提供相同的代码进行Review,以减少可能发现的问题。
1022 0
|
程序员 开发者
《Peer Reviews in Software: A Practical Guide》第2章 - (1)
  让别人指出工作中的错误是需要学习的,并不是天生就会的。我们都自豪于自己的工作,从不乐于承认错误。我们不知道犯了多少错,也不愿意其他人发现这些错误。
1023 0
The Recon-ng Framework : Automated Information Gathering
http://resources.infosecinstitute.com/the-recon-ng-framework-automated-information-gathering/ ...
654 0

热门文章

最新文章