Blog For DBA Consultants - 2020
Blog For DBA Consultants - 2020
Autonomous Health Framework (AHF) will be shipped with new releases of the
database, but you should always download the latest version. Single installer for
Trace File Analyzer (TFA) and ORAchk/EXAchk
Autonomous Health Framework (AHF) - Including TFA and ORAchk/EXAChk (Doc ID
2550798.1)
If possible you should install as root. This will give you the richest capabilities.. Unzip
the
software and run the ahf_setup command. Answer the questions when prompted.
Download the appropriate installer from above, copy to a target machine and unzip
Run the TFA & ORAchk/EXAchk install command
# cd /u01/software
# ./ahf_setup
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.
Choose Option [1 - 2] : 1
.-------------------------------------------------------------------------
| Host | Status of TFA | PID | Port | Version | Build ID
+-----------+---------------+------+-------+------------+-----------------
| localhost | RUNNING | 7860 | 24035 | 20.4.0.0.0 | 2040002020123110
'-----------+---------------+------+-------+------------+-----------------
.-------------------------------------------------------.
+-----------------+-------------------------------------+
| Parameter | Value |
+-----------------+-------------------------------------+
| Repository | /opt/oracle.ahf/data/repository |
'-----------------+-------------------------------------'
/opt/oracle.ahf/bin
[root@ed-ol-rac-lin01::~]$ exachk -v
CGroup: /system.slice/oracle-tfa.service
└─284747 /bin/sleep 30
#systemctl daemon-reload
tfactl and orachk commands are available from the following directory.
$ORACLE_HOME/ahf/oracle.ahf/bin
With the installation complete we can use the orachk command to check the services running on
the server. This can be done on-demand, or run as a background task, which will send an email to
the notification email addresses.
# as root
cd /opt/oracle.ahf/bin
# as non-root
cd $ORACLE_HOME/ahf/oracle.ahf/bin
# on-demand
./orachk
# background
./orachk -autostart
Once this is complete the oracle-orachkscheduler.service service will be enabled and running.
# root
cd /opt/oracle.ahf/bin
# non-root
cd $ORACLE_HOME/ahf/oracle.ahf/bin
./tfactl diagcollect
Each TFA collection produces a single zip file that can be uploaded to My Oracle
Support (MOS), as described below.
# root
cd /opt/oracle.ahf/bin
# non-root
cd $ORACLE_HOME/ahf/oracle.ahf/bin
# ./tfactl setupmos
Enter Password:
The result of a TFA collection can be uploaded directly to MOS by including the "-
sr" option in the command to specify the target SR number.
# MOS credentials supplied on command line. You are prompted for the passw
./tfactl diagcollect -srdc ORA-00600 -sr 1-12345678910 -user sami.malik@or
You can upload one or more files (both TFA generated and other files) as a
separate action using the following commands.
# MOS credentials supplied on command line. You are prompted for the passw
./tfactl upload -sr 1-12345678910 -user [email protected] file1.zip fi
TFA is the Primary diagnostic collection tool, with Database Support Tools Bundle
For example:
Alternatively to limit the combined total of system memory and the swap memory to 2GB use:
ORAchk / EXAchk
Oracle Stack Compliance Checks
procwatcher
Automate & capture database performance diagnostics & session level hangs
See 459694.1 for more details.
events
Reports warnings and errors seen in the logs
managelogs
Shows disk space usage and purges ADR log and trace files
alertsummary
Provides summary of events for one or more database or ASM alert files from all nodes
ls / dir
Lists all files TFA knows about for a given file name pattern across all nodes
summary
High level summary of the configuration
vi / notepad
Open alert or trace files for viewing a given database and file name pattern in the vi editor
tail
Run a tail on an alert or trace files for a given database and file name pattern
param
Show all database and OS parameters that match a specified pattern
oswatcher
Collect and archive OS metrics, useful for instance / node evictions & performance Issues.
See 301137.1 for more details.
oratop
Near real-time database monitoring
See 1500864.1 for more details.
pstack
Generate process stack for specified processes across all nodes
grep / findstr
Search alert or trace files with a given database and file name pattern, for a search string
dbglevel
Set and unset multiple CRS trace levels with one command
history
Show the shell history for the tfactl shell
changes
Report any noted changes in the system setup over a given time period. This includes database a
parameters, OS parameters, patches applied etc
calog
Reports major events from the Cluster Event log
ps / tasklist
Finds processes
triage
Summarize oswatcher/exawatcher data