Installing Oracle Trace File Analyzer ( TFA ) and collecting data

See Oracle Support Notes to download and run:
TFA Collector – Tool for Enhanced Diagnostic Gathering (Doc ID 1513912.2) – to download
SRDC – Data Collection for Grid Infrastructure, Storage Management, and RAC (Doc ID 2041228.1)
After downloading then:

# as root
cd /u01/app/grid/
mkdir tfa_setup
unzip TFALite_v12.1.2.8.0.zip
mkdir /u01/app/grid/product/12.1.0/grid/tfa
./installTFALite -local -deferdiscovery -tfabase /u01/app/grid/product/12.1.0/grid/tfa -javahome /u01/app/grid/product/12.1.0/grid/JRE
./tfactl diagcollect -from “SEP/01/2016 08:01:01” -to “SEP/09/2016 07:01:01”
# – the user guide for TFA is also unzipped in the same dir
./installTFALite [-local][-deferdiscovery][-tfabase <install dir>][-javahome < JRE Path>][-silent]

then to collect… to be completed

cd /u01/app/grid/product/12.1.0/grid/tfa/bin
[root@asm12c bin]# pwd
[root@asm12c bin]# ./tfactl print status
.---------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+--------+---------------+------+------+------------+----------------------+------------------+
| asm12c | RUNNING | 5510 | 5000 | 12.1.2.8.0 | 12128020160623222219 | COMPLETE |
'--------+---------------+------+------+------------+----------------------+------------------'
[root@asm12c bin]# ./tfactl access lsusers
.---------------------------------.
| TFA Users in asm12c |
+-----------+-----------+---------+
| User Name | User Type | Status |
+-----------+-----------+---------+
| oracle | USER | Allowed |
'-----------+-----------+---------.


[root@asm12c bin]# ./tfactl access add -user grid
Sucessfully added 'grid' to TFA Access list.
.---------------------------------.
| TFA Users in asm12c |
+-----------+-----------+---------+
| User Name | User Type | Status |
+-----------+-----------+---------+
| grid | USER | Allowed |
| oracle | USER | Allowed |
'-----------+-----------+---------'

At this point we could use grid to collect with diagcollect – but since I have root

[root@asm12c bin]# ./tfactl diagcollect -all -since 8d
Collecting data for all components using above parameters…
Collecting data for all nodes
Collection Id : 20160910120210asm12c
Repository Location in asm12c : /u01/app/grid/product/12.1.0/grid/tfa/repository
Collection monitor will wait up to 60 seconds for collections to start
2016/09/10 12:02:12 EDT : Collection Name : tfa_Sat_Sep_10_12_02_10_EDT_2016.zip
2016/09/10 12:02:12 EDT : Scanning of files for Collection in progress…
2016/09/10 12:02:12 EDT : Collecting extra files…
2016/09/10 12:02:17 EDT : Getting list of files satisfying time range [09/02/2016 12:02:12 EDT, 09/10/2016 12:02:17 EDT]
2016/09/10 12:02:17 EDT : Starting Thread to identify stored files to collect
2016/09/10 12:02:17 EDT : Getting List of Files to Collect
2016/09/10 12:02:17 EDT : Finished Getting List of Files to Collect
2016/09/10 12:02:17 EDT : asm12c: Zipped 100 Files so Far
2016/09/10 12:02:19 EDT : Completed collection of extra files…
2016/09/10 12:02:20 EDT : asm12c: Zipped 200 Files so Far
2016/09/10 12:02:20 EDT : asm12c: Zipped 300 Files so Far
2016/09/10 12:02:20 EDT : asm12c: Zipped 400 Files so Far
2016/09/10 12:02:20 EDT : Collecting ADR incident files…
2016/09/10 12:02:20 EDT : Completed Zipping of all files
2016/09/10 12:02:20 EDT : Cleaning up temporary files
2016/09/10 12:02:20 EDT : Finished Cleaning up temporary files
2016/09/10 12:02:20 EDT : Finalizing the Collection Zip File
2016/09/10 12:02:20 EDT : Finished Finalizing the Collection Zip File
2016/09/10 12:02:20 EDT : Total Number of Files checked : 432
2016/09/10 12:02:20 EDT : Total Size of all Files Checked : 222MB
2016/09/10 12:02:20 EDT : Number of files containing required range : 432
2016/09/10 12:02:20 EDT : Total Size of Files containing required range : 222MB
2016/09/10 12:02:20 EDT : Number of files trimmed : 0
2016/09/10 12:02:20 EDT : Total Size of data prior to zip : 222MB
2016/09/10 12:02:20 EDT : Saved 0kB by trimming files
2016/09/10 12:02:20 EDT : Zip file size : 8.1MB
2016/09/10 12:02:20 EDT : Total time taken : 8s
2016/09/10 12:02:20 EDT : Completed collection of zip files.
Logs are being collected to: /u01/app/grid/product/12.1.0/grid/tfa/repository/collection_Sat_Sep_10_12_02_10_EDT_2016_node_all
/u01/app/grid/product/12.1.0/grid/tfa/repository/collection_Sat_Sep_10_12_02_10_EDT_2016_node_all/asm12c.tfa_Sat_Sep_10_12_02_10_EDT_2016.zip
[root@asm12c bin]#

The log message above shows the location of the collection output – a zip file.
Hope this helps.
 

Leave a Comment

Scroll to Top