Skip to content

How to Resolve TFA-00002 Oracle Trace File Analyzer (TFA) is not running

TFA-00002

Tried to collect some diagnostic information by Trace File Analyzer (TFA), but it failed with TFA-00002.

[root@primary01 /]# /u01/app/19.0.0/grid/tfa/bin/tfactl diagcollect -database all -os -from "Mar/12/2021 09:00:00" -to "Mar/12/2021 15:00:00"
TFA-00002 Oracle Trace File Analyzer (TFA) is not running
Please start TFA before running collections

TFA-00002 means that the process of Trace File Analyzer (TFA) is not running on this server, you should start it first, then collect the information you want.

So the solution is simple, just start TFA before collecting diagnostic information.

[root@primary01 /]# /u01/app/19.0.0/grid/tfa/bin/tfactl start
Starting TFA..
Waiting up to 100 seconds for TFA to be started..
. . . . .
. . . . .
Successfully started TFA Process..
. . . . .
TFA Started and listening for commands

Let's see its status.

[root@primary01 /]# /u01/app/19.0.0/grid/tfa/bin/tfactl status

.-------------------------------------------------------------------------------------------------------.
| Host         | Status of TFA | PID      | Port | Version    | Build ID             | Inventory Status |
+--------------+---------------+----------+------+------------+----------------------+------------------+
| primary01    | RUNNING       |  6226466 | 5000 | 18.3.3.0.0 | 18330020190315044534 | COMPLETE         |
| primary02    | RUNNING       | 14287424 | 5000 | 18.3.3.0.0 | 18330020190315044534 | COMPLETE         |
'--------------+---------------+----------+------+------------+----------------------+------------------'

It's running, you may collect your diagnostic data now.

To stop it, you can do it by this:

[root@primary01 /]# /u01/app/19.0.0/grid/tfa/bin/tfactl stop

The lifecycle of TFA has completed.

Leave a Reply

Your email address will not be published. Required fields are marked *