Autonomous Health Framework

Share via:

Dear Readers,

In this article, we will see the Autonomous Health Framework.

AHF includes number of diagnostic tools in a single bundle and helps us to gather various types og information like upgrading info. , oracheck…..
AHF combines Trace file analyzer(TFA), orachk etc.., which oracle support needs these files to trace the issue.
Oracle releases a new version of Oracle Autonomous Health Framework approximately every three months.

AHF Download link — Doc ID 2550798.1

root@lnx01.oracle:root [UNKNOWN]
# ls –lrth AHF-*
total 748M
-rwxrwxrwx. 1 root root 371M Jan 29 01:10 AHF-LINUX_v20.4.0.BETA.zip

root@lnx01.oracle:/root [UNKNOWN]
# unzip AHF-LINUX_v20.4.0.BETA.zip
Archive: AHF-LINUX_v20.4.0.BETA.zip
inflating: README.txt
inflating: ahf_setup

root@lnx01.oracle:/root [UNKNOWN]
# ls –lrth AHF-*
total 748M
-rwxrwxrwx. 1 root root 371M Jan 29 01:10 AHF-LINUX_v20.4.0.BETA.zip

root@lnx01.oracle:/root [UNKNOWN]
# ./ahf_setup

AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_204000_7305_2021_01_29-23_52_54.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.4.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 |
+————–+—————+——-+——-+————+———————-+
| lnx01.oracle | RUNNING | 19263 | 23203 | 20.4.0.0.0 | 20400020201122214905 |
‘————–+—————+——-+——-+————+———————-‘

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 | /root/oracle.ahf/data |
| Repository | /root/oracle.ahf/data/repository |
| Diag Directory | /root/oracle.ahf/data/lnx01.oracle/diag |
‘—————–+—————————————–‘

Starting orachk scheduler from AHF …
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Moving /tmp/ahf_install_204000_7305_2021_01_29-23_52_54.log to /root/oracle.ahf/data/lnx01.oracle/diag/ahf/

root@lnx01.oracle:/home/orachk [UNKNOWN]
# vi /tmp/ahf_install_204000_18106_2021_02_06-17_32_23.log

root@lnx01.oracle:/home/orachk [UNKNOWN]
# cd /home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf/

root@lnx01.oracle:/home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf [UNKNOWN]
# ls -lrth
total 16K
-rw——-. 1 root root 16K Feb 6 17:37 ahf_install_204000_18106_2021_02_06-17_32_23.log

root@lnx01.oracle:/home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf [UNKNOWN]
# vi ahf_install_204000_18106_2021_02_06-17_32_23.log

root@lnx01.oracle:/home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf [UNKNOWN]
# pwd
/home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf

root@lnx01.oracle:/home/orachk/oracle.ahf/data/lnx01.oracle/diag/ahf [UNKNOWN]
# vi ahf_install_204000_18106_2021_02_06-17_32_23.log

root@lnx01.oracle:/home/orachk/oracle.ahf/data [UNKNOWN]
# ls -lrth
total 0
drwxr-x–x. 2 root root 6 Feb 6 17:34 work
drwxr-x–x. 7 root root 68 Feb 6 17:34 lnx01.oracle
drwxr-x–x. 2 root root 6 Feb 6 17:34 repository

root@lnx01.oracle:/opt/oracle.ahf/bin [UNKNOWN]
# mkdir -p /home/orachk/oracle.ahf/data/lnx01.oracle/orachk/user_root/work

root@lnx01.oracle:/opt/oracle.ahf/bin [UNKNOWN]
# ./orachk –v
| -a
| -acchk
| -appjar
| -applypatch
| -apptrc
| -asmhome
| -asynch
| -autorun_id
| -autoselect
| -autostart
| -autostatus
| -autostop
| -b
| -baseline
| -basic
| -cdahfhome
| -cddatadir
| -cellparallel
| -cellparallelmax
| -cells
| -cellserial
| -celltmpdir
| -check
| -checkdbupload
| -checkdiscovery
| -checkfaileduploads
| -checkservicefaileduploads
| -checkserviceupload
| -ciphers
| -classicjson
| -cleanup
| -clusternodes
| -cmupgrade
| -configdir
| -createprofile
| -credfile
| -cvuhome
| -cvuonly
| -d
| -db_config_name
| -dball
| -dbconfig
| -dbnames
| -dbnone
| -dbparallel
| -dbparallelmax
| -dbserial
| -debug
| -decode
| -decodezip
| -deleteprofile
| -diagpath
| -diff
| -disabledbupload
| -disableserviceupload
| -discovery
| -discoverydir
| -download
| -downloadchecks
| -duration
| -ebs32bit
| -ecra
| -enabledbupload
| -enableserviceupload
| -encode
| -encodezip
| -env
| -escs_mgmt_proxy
| -escs_user
| -event
| -excludecheck
| -excludecvu
| -excludedbnames
| -excludediscovery
| -excludemaa
| -excludeprofile
| -extzfsnodes
| -f
| -failedchecks
| -fileattr
| -fileattronly
| -force
| -from
| -get
| -getcheckxml
| -getdbupload
| -getfromwallet
| -getoutputdir
| -getserviceupload
| -h
| -hardwaretype
| -header
| -help
| -ibswitches
| -ibtmpdir
| -id
| -identifier
| -identitydir
| -includecvu
| -includedir
| -init_dstart
| -initcheck
| -initrmsetup
| -initsetup
| -insecure
| -javahome
| -jdbcver
| -json
| -key
| -localonly
| -localuser
| -lockcells
| -logconf
| -loglevel
| -m
| -merge
| -modifyprofile
| -module
| -mos_config_name
| -mserver_conf
| -nocleanup
| -nocvu
| -nodaemon
| -nodeparallel
| -nodeparallelmax
| -nodeserial
| -nopass
| -noproxy
| -nordbms
| -noreport
| -noscore
| -noupgrade
| -o
| -orainst
| -ordscheck
| -ordsrmsetup
| -ordssetup
| -oss_config_name
| -outfile
| -output
| -p
| -postupgrade
| -preupgrade
| -probe
| -profile
| -querypatch
| -r
| -readenvconfig
| -rediscovery
| -remotedestdir
| -remotehost
| -remoteuser
| -repair
| -rmap
| -rmdiscovery
| -rollbackpatch
| -runasroot
| -s
| -sanitize
| -sendemail
| -sender_email
| -set
| -setasm
| -setcrs
| -setdbupload
| -setemagent
| -setinvloc
| -setinwallet
| -setjava
| -setjdbcver
| -setserviceupload
| -setwls
| -short
| -show_critical
| -showpass
| -showrepair
| -silentforce
| -skip_security
| -skip_usr_def_checks
| -switches
| -switchparallel
| -switchparallelmax
| -switchserial
| -syslog
| -systemtype
| -t
| -tag
| -targetversion
| -testemail
| -timeframe
| -tls
| -tmpdir
| -torswitches
| -trace
| -u
| -universal
| -unlockcells
| -unset
| -unsetdbupload
| -unsetinwallet
| -unsetserviceupload
| -updatezip
| -upgrade
| -uploadfailed
| -uploadservicefailed
| -use_legacy_scheduler
| -usediscovery
| -username
| -usesocket
| -usessh
| -v
| -wallet_loc
| -withcapacity
| -zfsnodes
| -zfssa
| -zipfile

To see detailed help of each option use ./orachk <option> -h
root@lnx01.oracle:/opt/oracle.ahf/bin [UNKNOWN]
# ./orachk -v
ORACHK VERSION: 20.4.0(BETA)_20201122

root@lnx01.oracle:/opt/oracle.ahf/bin [UNKNOWN]
# ./orachk -u -o pre
Enter upgrade target version (valid versions are 11.2.0.4.0, 12.1.0.2.0, 12.2.0.1.0, 18.0.0.0.0, 19.0.0.0.0, 21.0.0.0.0) 3 tries left:- 19.0.0.0.0

List of running databases
1. dbtest1
2. dbtest2
3. None of above

Select databases from list for checking best practices. For multiple databases, select 1 for All or comma separated number like 1,2 etc [1-2][1]. 1
. .
. .
Checking Status of Oracle Software Stack – Clusterware, ASM, RDBMS
# root
cd /opt/oracle.ahf/bin
# non-root
cd $ORACLE_HOME/ahf/oracle.ahf/bin

# Gather information about errors. You are prompted to select a specific incident.
./tfactl diagcollect -srdc ORA-00600
./tfactl diagcollect -srdc ORA-07445

# Collect data for all components for a specific time period.
./tfactl diagcollect -from “2018-06-16 13:00:00” -to “2018-06-16 13:00:00”

# Collect data for all components for the last 12 hours.
./tfactl diagcollect

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts
Instagram : https://www.instagram.com/knowledgesharingplatform

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Add Comment