os: centos 7.4
db: oracle 18c(18.3)

TFA 全称是 Oracle Trace File Analyzer (TFA),是一款非常好用的工具集。
提供 随库安装和独立安装 两种安装方式。

随数据库软件一起安装

安装oracle 18.3软件的最后一步,需要以root用户运行两个脚本:
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/18.3.0/db_1/root.sh

运行第二个脚本时会提示是否安装TFA。

# /u01/app/oracle/product/18.3.0/db_1/root.shDo you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] :
yes
Installing Oracle Trace File Analyzer (TFA).
Log File: /u01/app/oracle/product/18.3.0/db_1/install/root_18c3node1_2018-11-22_16-15-14-147399837.log
Finished installing Oracle Trace File Analyzer (TFA)
fa_install_13325_2018_11_22-16_15_26.log
Starting TFA installationTFA Version: 181000 Build Date: 201712032224Running Auto Setup for TFA as user root...Installing TFA now...TFA Will be Installed on 18c3node1...TFA will scan the following Directories
++++++++++++++++++++++++++++++++++++++++++++.------------------------------------------------------------.
|                          18c3node1                         |
+-------------------------------------------------+----------+
| Trace Directory                                 | Resource |
+-------------------------------------------------+----------+
| /u01/app/oraInventory/ContentsXML               | INSTALL  |
| /u01/app/oraInventory/logs                      | INSTALL  |
| /u01/app/oracle/cfgtoollogs                     | INSTALL  |
| /u01/app/oracle/diag                            | RDBMS    |
| /u01/app/oracle/product/18.3.0/db_1/cfgtoollogs | INSTALL  |
| /u01/app/oracle/product/18.3.0/db_1/install     | INSTALL  |
| /u01/app/oracle/product/18.3.0/db_1/rdbms/log   | RDBMS    |
| /u01/app/oracle/product/18.3.0/db_1/rdbms/trace | RDBMS    |
'-------------------------------------------------+----------'Installing TFA on 18c3node1:
HOST: 18c3node1 TFA_HOME: /u01/app/oracle/tfa/18c3node1/tfa_home.-------------------------------------------------------------------------------.
| Host      | Status of TFA | PID   | Port  | Version    | Build ID             |
+-----------+---------------+-------+-------+------------+----------------------+
| 18c3node1 | RUNNING       | 13722 | 46405 | 18.1.0.0.0 | 18100020171203222424 |
'-----------+---------------+-------+-------+------------+----------------------'Running Inventory in All Nodes...Enabling Access for Non-root Users on 18c3node1...Summary of TFA Installation:
.--------------------------------------------------------------.
|                           18c3node1                          |
+---------------------+----------------------------------------+
| Parameter           | Value                                  |
+---------------------+----------------------------------------+
| Install location    | /u01/app/oracle/tfa/18c3node1/tfa_home |
| Repository location | /u01/app/oracle/tfa/repository         |
| Repository usage    | 0 MB out of 10240 MB                   |
'---------------------+----------------------------------------'TFA is successfully installed...Moving Install log file to /u01/app/oracle/tfa/18c3node1/log

TFA安装在 $ORACLE_BASE/tfa/$HOSTNAME/tfa_home 目录下,即TFA_HOME=/u01/app/oracle/tfa/18c3node1/tfa_home

# cd /u01/app/oracle/tfa
# ls -l
total 0
drwxr-xr-x 8 root root 220 Nov 22 16:15 18c3node1
drwxr-xr-x 2 root root  20 Nov 22 16:15 bin
drwxr-xr-t 3 root root  22 Nov 22 16:15 repository# cd /u01/app/oracle/tfa/18c3node1/tfa_home
# ls -l
total 48
drwxr-x--x  8 root root 4096 Nov 22 16:15 bin
-rwx------  1 root root 3272 Nov 22 16:15 client.jks
-rwx------  1 root root  939 Nov 22 16:15 client_pub.crt
drwxr-xr-x 26 root root 4096 Nov 22 16:15 ext
drwxr-x---  2 root root  187 Nov 22 16:15 install
drwxr-x--x  3 root root 4096 Nov 23 09:40 internal
drwxr-x--x  2 root root  230 Nov 22 16:15 jlib
drwxr-x--x  5 root root  185 Nov 22 16:15 jre
drwxr-x--x  5 root root   39 Nov 22 16:15 perl
-rw-------  1 root root 3267 Nov 22 16:15 public.jks
drwxr-x---  3 root root   22 Nov 22 16:15 receiver
drwxr-xr-x  3 root root 4096 Nov 22 16:20 resources
-rwx------  1 root root 3270 Nov 22 16:15 server.jks
-rwx------  1 root root  939 Nov 22 16:15 server_pub.crt
-rw-r-----  1 root root 1713 Nov 22 16:36 tfa_directories.txt
-rwxr-x---  1 root root 3262 Nov 22 16:15 tfa.jks
-rw-r--r--  1 root root    0 Nov 23 09:40 tfa.lock
-rw-r--r--  1 root root  786 Nov 22 16:26 tfa_setup.txt
drwxr-xr-x  2 root root    6 Nov 22 16:20 tmp

配置随OS启动

# systemctl status oracle-tfa.service
# systemctl enable oracle-tfa.service

tfactl

# /u01/app/oracle/tfa/18c3node1/tfa_home
# ./bin/tfactl
WARNING - TFA Software is older than 180 days. Please consider upgrading TFA to the latest version.tfactl>
tfactl> helpUsage : /u01/app/oracle/tfa/bin/tfactl <command> [options]commands:diagcollect|collection|analyze|ips|run|start|stop|enable|disable|status|print|access|purge|directory|host|receiver|set|toolstatus|uninstall|diagnosetfa|syncnodes
For detailed help on each command use:/u01/app/oracle/tfa/bin/tfactl <command> -help

怎么又到 /u01/app/oracle/tfa/bin/tfactl 这去了?

查看状态

tfactl> status.-------------------------------------------------------------------------------------------------.
| Host      | Status of TFA | PID  | Port  | Version    | Build ID             | Inventory Status |
+-----------+---------------+------+-------+------------+----------------------+------------------+
| 18c3node1 | RUNNING       | 6438 | 37146 | 18.1.0.0.0 | 18100020171203222424 | COMPLETE         |
'-----------+---------------+------+-------+------------+----------------------+------------------'

显示信息

tfactl> printPrint requested details.Usage : /u01/app/oracle/tfa/bin/tfactl print <command> [options]commands:status|components|config|directories|hosts|receivers|collectors|robjects|actions|repository|runmode|suspendedips|protocols
For detailed help on each command use:/u01/app/oracle/tfa/bin/tfactl print <command> -help

建议 print 每个 option 都执行一下,看看信息,增进对TFA的了解。

diagcollect

# $TFA_HOME/bin/tfactl diagcollect -all -from "Sep/27/2019 12:00:00" -to "Sep/27/2019 16:00:00"
# $TFA_HOME/bin/tfactl diagcollect -node node1 -from "Sep/27/2019 12:00:00" -to "Sep/27/2019 16:00:00"

参考:
TFA Collector - TFA with Database Support Tools Bundle (Doc ID 1513912.1)
Best Practices: Streamline your data collection for support issues by installing the latest TFA Support Tools Bundle (See Note:1594347.1 )

TFA 在 18.3 下的使用之一 随库安装相关推荐

  1. python3.8.0安装详细步骤_win10下python3.8的PIL库安装过程

    1.找到Python的位置 我的是在 C:UsersadminAppDataLocalProgramsPythonPython38 AppData这个文件是个隐藏文件需要查询得先把隐藏文件显示出来 w ...

  2. Windows环境下无法将python第三方库安装到Anaconda下

    在用命令行进行pip install XXX安装第三方python包时,经常出现安装到C:\Users\ALPHA\AppData\Roaming,这个路径下,而以下路径才是我们需要的:C:\Prog ...

  3. Ubuntu 18.04下的Python和OpenCV的安装

    最近在做深度学习和计算机视觉的有关内容,因此要在python中用到opencv.我的电脑装的是Ubuntu 18.04,python 3.6和OpenCV 3.4.2 .按照官网的安装方法出了个问题, ...

  4. Windows10下python3.5的sklearn库安装

    具体安装方法参考https://blog.csdn.net/HYDMonster/article/details/79766086 但是注意的是,http://www.lfd.uci.edu/~goh ...

  5. 网易云音乐ubuntu 18.04下无法打开的解决办法

    为什么80%的码农都做不了架构师?>>>    网易云音乐ubuntu 18.04下无法打开的解决办法 网易云音乐在ubuntu18.04下无法打开,即显示不了界面,主要是因为环境变 ...

  6. Ubuntu 18.04 下搭建 C/C++编译开发环境及GCC多版本切换

    关注公众号 风色年代(itfantasycc) 领 500G Java 微服务 开发资料 Ubuntu 18.04 下搭建 C/C++编译开发环境及GCC多版本切换_Linux教程_Linux公社-L ...

  7. Linux运行网易云命令,因环境变量而在Ubuntu 18.04下无法启动网易云音乐的解决

    升级到Ubuntu 18.04后网易云音乐Linux客户端不能通过图标点击启动,只能在系统终端中使用sudo netease-cloud-music命令来启动网易云音乐Linux客户端.每次都在要打开 ...

  8. 双系统下卸载ubuntu 20.04再安装ubuntu 18.04的相关方法、软件以及出现ACPI Error错误和解决办法

    文章目录 前言 一.删除原来的ubuntu 20.04系统和开机引导 二.制作ubuntu18.04系统盘 三.安装ubuntu 18.04(已经有一个windows 10系统情况下) 四.安装完重启 ...

  9. Ubuntu 18.04下搜狗拼音输入法选词面板乱码问题(通过更换输入法版本完美解决,一劳永逸)

    Ubuntu 18.04下搜狗拼音输入法选词面板乱码问题(通过更换输入法版本完美解决,一劳永逸) 卸载已安装的搜狗拼音输入法 安装搜狗拼音输入法,注意版本 卸载已安装的搜狗拼音输入法 卸载已安装的输入 ...

最新文章

  1. linux启动x不启动桌面,redhat开机不启动桌面登录程序
  2. mysql流量控制_UDP流量控制之分析
  3. 从零开始学习jQuery (三) 管理jQuery包装集
  4. w ndows7防火墙文件名,Windows7中的防火墙是什么? 爱问知识人
  5. 六类网线和超六类网线有什么区别呢 怎么区分
  6. 【转】C++类的sizeof大小
  7. 通信工程中常用算法c语言,通信工程常见面试题.doc
  8. Delphi 防止程序多次运行《转》
  9. GIS生涯个人总结及个人感悟
  10. Spring-day02
  11. python空值填充_pandas妙招之 DataFrame基础运算以及空值填充
  12. 通过追女孩时的常见对话来看你会不会聊天
  13. Apache Ant简介
  14. 6轴串联关节机器人的奇异点
  15. android11 root、android10 root、android9 root、android8.1 root、android6.0 root user版本权限开放
  16. Python编程PTA题解——换硬币
  17. electron与jquery起冲突,使用jquery报错解决方法
  18. CORS解决跨域的几种实现方式
  19. (转载)从鼠尾草凋谢看中国花花世界的阴影(附EmilMatthew的评论)
  20. 【C语言】结构体指针与结构体数组

热门文章

  1. echarts字符云相关配置说明
  2. 计算机基础-分类介绍
  3. 一文带你学会0编程基础做木马免杀
  4. 记一次GenerationTarget encountered exception accepting command : Error executing DDL的解决技巧
  5. Tensorflow-gpu+Cuda+cuDNN安装(详细且包含失败解决教程)
  6. oracle跨平台跨版本迁移工具xtts-V4版本
  7. java osgi 文件_OSGi 系列(一)之什么是 OSGi :Java 语言的动态模块系统
  8. matlab 真假随机,Matlab 随机数是否随机的问题
  9. 微信官方发布的微信应用号(小程序)设计规范
  10. 锤子科技确认卖身,官网微博均变更所属公司