Trace File Analyzer (TFA) is now under Autonomous Health Framework (AHF), so please make sure that you have installed the newest AHF before you use TFA to do any operations.
[root@primary01 /]# which tfactl
/usr/bin/tfactl
[root@primary01 /]# ls -l /usr/bin/tfactl
lrwxrwxrwx 1 root system 30 Dec 07 16:27 /usr/bin/tfactl -> /opt/oracle.ahf/tfa/bin/tfactl
TFA-00002
Tried to display the status information by Trace File Analyzer (TFA), but it failed with TFA-00002.
[root@primary01 /]# tfactl status
TFA-00002 Oracle Trace File Analyzer (TFA) is not running
TFA-00106 TFA Shutdown/Stopped by user
TFA-00002 means that the process of Trace File Analyzer (TFA) is not running on this server, you should start it first, then perform the operation you want.
Solution
So the solution is simple, just start TFA before collecting diagnostic information.
tfactl start
[root@primary01 /]# tfactl start
Starting TFA..
Waiting up to 100 seconds for TFA to be started..
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
Successfully started TFA Process..
. . . . .
tfactl status
Let's see its status.
[root@primary01 /]# tfactl status
.------------------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+-----------+---------------+----------+------+-------------+-----------------------+------------------+
| primary01 | RUNNING | 37683464 | 5000 | 23.10.0.0.0 | 231000020231031182123 | COMPLETE |
| primary02 | RUNNING | 8847802 | 5000 | 23.10.0.0.0 | 231000020231031182123 | COMPLETE |
'-----------+---------------+----------+------+-------------+-----------------------+------------------'
It's running, you may collect your diagnostic data now.
tfactl stop
To stop it, you can do it by this:
[root@primary01 /]# tfactl stop
Stopping TFA from the Command Line
Stopped OSWatcher
Nothing to do !
TFA-00002 Oracle Trace File Analyzer (TFA) is not running
TFA-00106 TFA Shutdown/Stopped by user
TFA Stopped Successfully
Telemetry adapter is not running
Successfully stopped TFA..
The lifecycle of TFA has completed.