Oracle 自主健康框架 (AHF) 集成了 Oracle ORAchk、Oracle EXAchk 和 Oracle Trace File Analyzer (TFA) 的功能。
作为一名DBA,我们希望你在资源更少的情况下完成更多的工作,同时承受着保证关键任务应用程序正常运行的压力。当出现问题时,每个人都会询问你,想了解出了什么问题以及如何解决它。为了实现这一目标,我们需要在正确的时间运行正确的工具。如果你正在使用Oracle Grid Infrastructure,那么还需要从所有数据库节点收集诊断数据。收集这些数据可能需要你使用一些不常用的工具。但是,每个工具都有自己的语法。你要收集的数据量可能会非常大。其中只有一小部分数据是有用的。基于这种相对苛刻的处境,Oracle 自主健康框架 (AHF) 应运而生。
Oracle 自主健康框架通过以下组件使这一过程变得更加简便:
目录 | 描述 |
---|---|
Oracle ORAchk / Oracle EXAchk | 提供了一个轻量级且不侵入性的合规性检查框架,用于Oracle的软件和硬件组件堆栈。 |
Oracle Trace File Analyzer (TFA) | 监控您的日志以寻找重要的问题,自动修剪日志并在集群节点间收集相关的诊断信息,然后在一个地方整合所有内容。收集的内容会被分析以查找已知的问题。还包括了各种DBA工具,用于对问题进行排序和分析。 |
下面我来介绍安装方法:
第一步:使用root用户进行上传和安装
Desktop Downloads Pictures setup_rac_scripts Videos anaconda-ks.cfg Documents Music Public Templates
第二步:解压AHF压缩包
Archive: AHF-LINUX_v23.4.0.zip
inflating: ahf_setup
extracting: ahf_setup.dat
inflating: README.txt
inflating: oracle-tfa.pub
第三步:执行安装程序
- -ahf_loc: 为安装目录,AHF主程序会安装在此目录。
- -data_dir :为指定的数据保存位置,会在指定目录下面生成如下目录:
rac1 repository work
安装过程如下:
AHF-LINUX_v23.4.0.zip ahf_setup.dat Desktop Downloads oracle-tfa.pub Public setup_rac_scripts Videos
ahf_setup anaconda-ks.cfg Documents Music Pictures README.txt Templates
[root@rac1 ~]# ./ahf_setup -ahf_loc /opt -data_dir /u01/app/grid
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_234000_13766_2023_07_26-18_54_16.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 23.4.0 Build Date: 202305101921
TFA is already installed at : /u01/app/19.8/grid/tfa/rac1/tfa_home
Installed TFA Version : 183300 Build ID : 20190315044534
AHF Location : /opt/oracle.ahf
AHF Data Directory : /u01/app/grid/oracle.ahf/data
Shutting down TFA : /u01/app/19.8/grid/tfa/rac1/tfa_home
Copying TFA Data Files from /u01/app/19.8/grid/tfa/rac1/tfa_home
Uninstalling TFA : /u01/app/19.8/grid/tfa/rac1/tfa_home
Do you want to add AHF Notification Email IDs ? [Y]|N : n
AHF will also be installed/upgraded on these Cluster Nodes :
1. rac2
2. rac3
The AHF Location and AHF Data Directory must exist on the above nodes
AHF Location : /opt/oracle.ahf
AHF Data Directory : /u01/app/grid/oracle.ahf/data
Do you want to install/upgrade AHF on Cluster Nodes ? [Y]|N : y
Extracting AHF to /opt/oracle.ahf
Configuring TFA Services
Copying TFA Data Files to AHF
Discovering Nodes and Oracle Resources
Starting TFA Services
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
.-------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID |
+------+---------------+-------+------+------------+----------------------+
| rac1 | RUNNING | 19621 | 5000 | 23.4.0.0.0 | 23400020230510192145 |
| rac2 | NOT RUNNING | - | | | |
| rac3 | NOT RUNNING | - | | | |
'------+---------------+-------+------+------------+----------------------'
Running TFA Inventory...
Adding default users to TFA Access list...
.------------------------------------------------------------.
| Summary of AHF Configuration |
+-----------------+------------------------------------------+
| Parameter | Value |
+-----------------+------------------------------------------+
| AHF Location | /opt/oracle.ahf |
| TFA Location | /opt/oracle.ahf/tfa |
| Orachk Location | /opt/oracle.ahf/orachk |
| Data Directory | /u01/app/grid/oracle.ahf/data |
| Repository | /u01/app/grid/oracle.ahf/data/repository |
| Diag Directory | /u01/app/grid/oracle.ahf/data/rac1/diag |
'-----------------+------------------------------------------'
Starting Orachk Scheduler from AHF
Setting up AHF CLI and SDK
AHF install completed on rac1
Installing AHF on Remote Nodes :
AHF will be installed on rac2, Please wait.
AHF will prompt twice to install/upgrade per Remote Node. So total 4 prompts
Do you want to continue Y|[N] : y
AHF will continue with Installing on remote nodes
Installing AHF on rac2 :
[rac2] Copying AHF Installer
root@rac2's password:
[rac2] Running AHF Installer
root@rac2's password:
[ERROR] : [rac2] Failed to Install AHF. Exit Status : 5
AHF will be installed on rac3, Please wait.
Installing AHF on rac3 :
[rac3] Copying AHF Installer
root@rac3's password:
[rac3] Running AHF Installer
root@rac3's password:
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : n
Moving /tmp/ahf_install_234000_13766_2023_07_26-18_54_16.log to /u01/app/grid/oracle.ahf/data/rac1/diag/ahf/
[root@rac1 ~]#
Speak Your Mind