Overview
Oracle Autonomous Health Framework is a collection of components that analyzes the diagnostic data collected and proactively identifies issues before they affect the health of your clusters or your Oracle Real Application Clusters (Oracle RAC) databases.
Oracle Autonomous Health Framework (AHF) maximizes availability and performance by enforcing best practices, capturing data at first failure, monitoring the whole system (server, database, I/O, and network) to proactively discover issues and notify the user and provide timely bug resolution by suggesting fixes automatically after failure.
- System administrators can use most of the components in Oracle Autonomous Health Framework interactively during installation, patching, and upgrading.
- Database administrators can use Oracle Autonomous Health Framework to diagnose operational runtime issues and mitigate the impact of these issues.
Autonomous Health Framework (AHF) provides several diagnostic tools in a single bundle, making it easy to gather diagnostic information about the Oracle database and Clusterware, which in turn helps with problem resolution when dealing with Oracle Support.
What is Autonomous Health Framework (AHF)???
Autonomous Health Framework (AHF) combines the existing Trace File Analyzer (TFA) and ORAchk/EXAchk, along with a bunch of other stuff, into a single download and setup.
if you install AHF using the root user and start everything as daemon processes, it will give you proactive health monitoring, which could help you fix issues before they become a problems.
Download Autonomous Health Framework (AHF)
Use the mentioned Docs to download the AHF tool.
Install Oracle Autonomous Health Framework (AHF) - Using root user
Autonomous Health Framework (AHF) can be installed as the "root" user on the server, which provides the most functionality and allows it to run in a proactive manner as a daemon. In this example, we will perform an installation as the root user.
Unzip the software and run the ahf_setup command.
root@srv1/oswatcher/oracle_temp#ls -trl
total 2966656
-r-xr-xr-x 1 oracle oinstall 766958181 Oct 29 22:21 ahf_setup
-rw-r--r-- 1 oracle oinstall 384 Oct 29 22:22 ahf_setup.dat
-rw-r--r-- 1 oracle oinstall 625 Nov 01 22:20 oracle-tfa.pub
-rw-r--r-- 1 oracle oinstall 1525 Nov 01 22:20 README.txt
-rw-r--r-- 1 oracle oinstall 751955111 Dec 03 15:07 AHF-AIX-PPC64_v21.3.0.zip
root@srv1/oswatcher/oracle_temp#
root@srv1/oswatcher/oracle_temp#./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_202000_7305_2021_01_29-23_52_54.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.2.0 Build Date: 202011222149
Default AHF Location : /opt/oracle.ahf
Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N : Y
AHF Location : /opt/oracle.ahf
AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.
Please Enter AHF Data Directory : /root
AHF Data Directory : /root/oracle.ahf/data
Do you want to add AHF Notification Email IDs ? [Y]|N : N
Login using root is disabled in sshd config. Installing AHF only on Local Node
Extracting AHF to /opt/oracle.ahf
Configuring TFA Services
Discovering Nodes and Oracle Resources
Successfully generated certificates.
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 |
+-----------------+---------------+----------+-------+------------+----------------------+
| srv1 | RUNNING | 198263 | 26877 | 20.2.1.0.0 | 20200020201122214905 |
'-----------------+---------------+----------+-------+------------+----------------------'
Running TFA Inventory…
Please add world execute permissions for all directories above /root to enable TFA Non-Root Access
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 | /opt/oracle.ahf.data/oracle.ahf/data |
| Repository | /opt/oracle.ahf.data/oracle.ahf/data/repository |
| Diag Directory | /opt/oracle.ahf.data/oracle.ahf/data/srv1/diag |
'-----------------+-----------------------------------------------------------'
Starting orachk scheduler from AHF …
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Moving /tmp/ahf_install_202000_7305_2021_01_29-23_52_54.log to /root/oracle.ahf/data/srv1/diag/ahf/
root@srv1/oswatcher/oracle_temp#
Most Useful Things Before Installation of AHF.
Oracle Autonomous Health Framework (AHF) - with ORAchk, EXAchk & Trace File Analyzer
------------------------------------------------------------------------------------
Installation/Upgrade Instructions
-------------------------
This must be completed for each node of a cluster.
1) Copy the zip file to a target machine and unzip
2) Verify the installer file integrity. ( See Below )
3) Run the command: ahf_setup
For advanced installation/upgrade options see the User Guide
Installer file Verification
---------------------------
The ahf_setup file has been signed to ensure it has not been modified from the originally created file.
To Verify the file you will need to have installed on your system 'openssl' or have a separate system that has openssl to verify the installer.
In the directory that the zip file was extracted to run :-
openssl dgst -sha256 -verify ./oracle-tfa.pub -signature ./ahf_setup.dat ./ahf_setup
Only if the command returns 'Verified OK' should the installer be used.
If the command does not return 'Verified OK' please contact Oracle Support and report this issue.
User Guide:
---------------
The AHF User Guide can now be found online at https://docs.oracle.com/en/engineered-systems/health-diagnostics/autonomous-health-framework/ahfug/index.html
Enhancements and Bug Fixes
--------------------------
A full list of enhancements and bugs fixed in each release is available at:
https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=2550798.1:AHF_VERSION_HISTORY
Useful Command's
Check AHF Details
cd /opt/oracle.ahf/bin <--- AHF Location
./ahfctl version
./ahfctl version -a
./ahfctl statusahf
./tfactl toolstatus
Start
./ahfctl startahf
Stop
./ahfctl stopahf
Diagnostic Collection
tfactl diagcollect -from "Oct/01/2022 20:00:00" -to "Oct/03/2022 07:00:00"
No comments:
Post a Comment