Oracle Trace File Analyzer (TFA) is part of Autonomous Health Framework (AHF) and is widely used for collecting diagnostic data in environments. However, in some cases you may want to completely remove TFA from the system.
Check TFA Binary
First, verify whether the TFA binary exists:
root@ORACLEDBASECRETS/#cd $ORACLE_HOME/bin root@ORACLEDBASECRETS/oracle/app/12102/grid/bin#ls -tlr |grep -i tfa -rwxr-x--x 1 root oinstall 1748 Apr 13 2021 tfactl
Check if TFA is Running
Check running processes:
root@ORACLEDBASECRETS/oracle/app/12102/grid/bin#ps -efa |grep -i tfa
root 46137984 50922538 0 02:49:12 pts/1 0:00 grep -i tfa
No active TFA process was found, which means TFA is either stopped or not properly configured.
Locate AHF Installation
The AHF installer package was located under:
root@ORACLEDBASECRETS/oracle#cd findb root@ORACLEDBASECRETS/oracle/findb#ls -trl total 0 drwxrwxrwx 3 oracle oinstall 256 Mar 10 22:53 AHF-AIX-PPC64_v21.4.2 root@ORACLEDBASECRETS/oracle/findb#cd AHF-AIX-PPC64_v21.4.2 root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#ls -trl total 1560016 -rwxrwxrwx 1 oracle oinstall 1525 Mar 10 22:52 README.txt -rwxrwxrwx 1 oracle oinstall 625 Mar 10 22:53 oracle-tfa.pub -rwxrwxrwx 1 oracle oinstall 384 Mar 10 22:53 ahf_setup.dat -rwxrwxrwx 1 oracle oinstall 798703189 Mar 10 22:53 ahf_setup drwxrwxrwx 2 oracle oinstall 256 Mar 10 23:11 oracle.ahf
Stop TFA Service
Before uninstalling, ensure TFA is stopped:
root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#tfactl stop
Stopping TFA
TFA Stopped Successfully
. . .
Successfully stopped TFA..
root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#
Uninstall TFA
Run the uninstall command:
root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#tfactl uninstall
Unable to determine a host list from TFA. So running local uninstall.
TFA will be Uninstalled on Node ORACLEDBASECRETS:
Removing TFA from ORACLEDBASECRETS only
Please remove TFA locally on any other configured nodes
Notifying Other Nodes about TFA Uninstall...
TFA-00002 : Oracle Trace File Analyzer (TFA) is not running
Unable to update other nodes about TFA Uninstall
Sleeping for 10 seconds...
Stopping TFA in ORACLEDBASECRETS...
Shutting down TFA
TFA Stopped Successfully
. . . . .
. . .
Successfully shutdown TFA..
Deleting TFA support files on ORACLEDBASECRETS:
Removing /oracle/app/grid/tfa/ORACLEDBASECRETS/database...
Removing /oracle/app/grid/tfa/ORACLEDBASECRETS/log...
Removing /oracle/app/grid/tfa/ORACLEDBASECRETS/output...
Removing /oracle/app/grid/tfa/ORACLEDBASECRETS...
Removing /oracle/app/grid/tfa...
Removing /etc/init.tfa...
Removing /oracle/app/12102/grid/bin/tfactl...
Removing /oracle/app/12102/grid/tfa/bin...
Removing /oracle/app/12102/grid/tfa/ORACLEDBASECRETS...
root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#
Output Verifies Successful Removal of TFA
Verify Removal
Try running tfactl again:
root@ORACLEDBASECRETS/oracle/findb/AHF-AIX-PPC64_v21.4.2#tfactl
ksh: tfactl: not found.
Oracle Autonomous Health Framework (AHF)
This confirms that TFA has been completely removed from the system.
Conclusion
Uninstalling TFA is a straightforward process using tfactl uninstall. Always ensure that TFA is stopped before removal, and verify the binary no longer exists. This is useful in cleanup scenarios or before reinstalling AHF.
Toufique Khan

No comments:
Post a Comment