Abdul Hafeez Kalsekar - OCS - OCE - OCP - Oracle TFA and AHF Log Collection - Installation
Abdul Hafeez Kalsekar - OCS - OCE - OCP - Oracle TFA and AHF Log Collection - Installation
Trace File Analyzer Collector also known as TFA is a diagnostic collection utility which greatly simplifies the diagnostic data
collection for both Oracle Database as well as Oracle Clusterware/Grid Infrastructure RAC environments.
Trace File Analyzer provides a central and single interface for all diagnostic data collection and analysis.
When a problem occurs, TFA collects all the relevant data at the time of the problem and consolidates data even across multiple
nodes in a clustered Oracle RAC environment. Only the relevant diagnostic data is collected and can be packaged and uploaded
to Oracle Support and this leads to faster resolution times. All the required diagnostic data is collected via a single tfactl command
instead of having to individually look for the required diagnostic information across a number of database and cluster alert logs,
trace files or dump files.
In addition to the core functionality of gathering, consolidating and processing diagnostic data, Trace File Analyzer comes
bundled with a number of support tools which enable us to obtain a lot of other useful information like upgrade readiness, health
checks for both Engineered as well as non-Engineered systems, OS performance graphs, Top SQL queries etc.
Oracle Trace File Analyzer is shipped along with Oracle Grid Infrastructure (from version 11.2.0.4). However, it is recommended
to download the latest TFA version which can be accessed via the My Oracle Support Note 1513912.1 since the TFA bundled
with the Oracle Grid Infrastructure does not include many of the new features, bug fixes and more importantly the Oracle
Database Support Tools bundle.
Oracle releases new versions of the TFA several times a year and the most current version is Trace File Analyzer 18.1.1 which is
now available for download via the MOS Note 1513912.1.
##################################################################################
TFA
##################################################################################
__________________
Install Tfa
__________________
Download the latest version of Oracle Trace File Analyzer with Oracle Database support tools bundle from My Oracle Support
note 1513912.1
Upgrading is similar to first-time install. As root, use the installTFAplatform script example for linux >
./installTFA-Linux.
Install Tfa on both Nodes --> Sync on both Nodes --> Start
( As root )
./installTFAplatform
( As Oracle User )
-extractto dir -javahome jre_home
$ ./installTFAplatform
cd /u01/software
unzip TFA-LINUX_v18.2.1.zip
mkdir -p $ORACLE_HOME/tfa
$ORACLE_HOME/tfa
./installTFA-LINUX -local -tfabase
After having completed this process on all nodes, let’s synchronize them. As I decided not to use SSH, I need to execute those
final steps :
Please copy these files manually to remote node and restart TFA
1. /grid/infrastructure/home/tfa/node01/tfa_home/server.jks
2. /grid/infrastructure/home/tfa/node01/tfa_home/client.jks
3. /grid/infrastructure/home/tfa/node01/tfa_home/internal/ssl.properties
These files must be owned by root and should have 600 permissions.
__________________
Log Collection Tfa
__________________
cd $ORACLE_HOME/tfa/bin/
# Gather information about errors. You are prompted to select a specific incident.
./tfactl diagcollect -srdc ORA-00600
tfactl summary
To find all errors in the last one day
Execute tfactl setupmos to configure Oracle Trace File Analyzer with MOS user name and password followed by
tfactl summary
Grant access to a user
__________________
____________________________________
TFA installed as part of 21523375 (Oct2015
CPU)
____________________________________
__________________
tfactl setresourcelimit
[-tool tool_name]
[-resource resource_type]
[-value value]
__________________
TFA Reference :
__________________
https://xy2401-local-doc-java.github.io/en/engineered-systems/health-diagnostics/trace-file-analyzer/tfaug/troubleshoot-
tfa.html#GUID-169D2468-008B-4CE1-AB8E-1BA2A6233360
__________________
Troubleshooting TFA
__________________
https://xy2401-local-doc-java.github.io/en/engineered-systems/health-diagnostics/trace-file-analyzer/tfaug/troubleshoot-
tfa.html#GUID-AEEC5C9E-00F1-44B7-B39F-76E836AFC10F
##################################################################################
Oracle Autonomous Health Framework (Former TFA)
##################################################################################
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 contains Oracle ORAchk, Oracle EXAchk, and Oracle Trace File Analyzer.
Install Oracle Autonomous Health Framework as root to obtain the fullest capabilities. Oracle Autonomous Health Framework
has reduced capabilities when you install it as a non-root user.AFH can be run in two different modes either as daemon or Non-
daemon mode. Both are doing same thing but daemon mode is more preferred.
To install Oracle AHF we run the ahf_setup installer with the -extract parameter. We also specify the -notfasetup parameter to
avoid enabling the Oracle Trace File Analyser component of Oracle AHF.
For Rac we need to install on both nodes . AHF will automatically synchronize between nodes. IF show status shows both nodes
means its synchronized no need to manually synchronize like tfa
3) unzip AHF-LINUX_v20.2.0.zip
4) Install TFA
as root
cd /u01/src/
./ahf_setup
__________________
upgrade the AHF
__________________
1 mkdir /tmp/AHF
2 copy the latest AHF to /tmp/AHF and unzip
4. uninstall existing TFA :
tfactl uninstall
3 ./ahf_setup -data_dir /u01/app/grid_base -tmp_loc /u01/app/grid_base/tmp/ ( You can find the data directory " ps -ef | grep tfa
| grep HeapDumpPath" )
4) Verify TFA installed :
/opt/oracle.ahf/tfa/bin/tfactl status
/opt/oracle.ahf/tfa/bin/tfactl toolstatus
tfactl syncnodes