扩展跟踪文件分析工具 (TVD$XTAT)是个命令行工具.和TKPROF一样,主要目的是把原始跟踪文件作为输入内容生成一个格式化的文件作为输出内容.输出文件可以是HTML或是文本文件.界面非常友好,推荐使用

下面是安装过程:

1.下载介质
https://antognini.ch/2009/04/tvdxtat-40-beta-9/

2.root用户修改 tvd$xtat的所属用户和所属组
[root@Oracle11g ~]# chown -R oracle:oinstall tvdxtat_40beta11_20170301.zip

3.oracle建立专门的目录,专对 tvd$xtat
[oracle@Oracle11g ~]$ mkdir tvdxtat
[oracle@Oracle11g ~]$ mv tvdxtat_40beta11_20170301.zip  tvdxtat

4.解压该文件
[oracle@Oracle11g ~]$ cd tvdxtat
[oracle@Oracle11g tvdxtat]$ unzip tvdxtat_40beta11_20170301.zip
Archive:  tvdxtat_40beta11_20170301.zip
  inflating: changelog.txt           
  inflating: config/logging.properties  
  inflating: config/tvdxtat.properties  
  inflating: doc/commons-cli-license.txt  
  inflating: doc/tvdxtat-license.html  
 extracting: images/deed.gif         
 extracting: images/deed2.gif        
  inflating: images/deeds.css        
  inflating: images/logo_deed.gif    
 extracting: images/somerights20.gif  
 extracting: images/trivadis.gif     
  inflating: lib/commons-cli-1.0.jar  
  inflating: lib/tvdxtat.jar         
  inflating: readme.html             
  inflating: templates/active.xsl    
  inflating: templates/html.xsl      
  inflating: templates/text.xsl      
  inflating: templates/tvdxtat.xsd   
  inflating: tvdxtat.cmd             
  inflating: tvdxtat.sh              
 
5.修改文件tvdxtat.sh
[oracle@Oracle11g tvdxtat]$ echo $ORACLE_HOME   --确认oracle_home
/u01/app/oracle/product/11.2.0/db_1

[oracle@Oracle11g tvdxtat]$ ls -l /u01/app/oracle/product/11.2.0/db_1/jdk/jre  --确认java_home
总计 124
drwxr-xr-x  2 oracle oinstall  4096 2014-09-16 bin
-rwxr-xr-x  1 oracle oinstall   969 2008-10-31 CHANGES
-rwxr-xr-x  1 oracle oinstall  2487 2008-10-31 COPYRIGHT
drwxr-xr-x 14 oracle oinstall  4096 2014-09-16 lib
-rwxr-xr-x  1 oracle oinstall 13237 2008-10-31 LICENSE
-rwxr-xr-x  1 oracle oinstall 13936 2008-10-31 README
-rwxr-xr-x  1 oracle oinstall 67235 2008-10-31 THIRDPARTYLICENSEREADME.txt
-rwxr-xr-x  1 oracle oinstall   969 2008-10-31 Welcome.html

[oracle@Oracle11g tvdxtat]$ vi  tvdxtat.sh   --修改文件
#!/bin/sh

#JAVA_HOME=/u00/app/oracle/product/11.2.0.4/jdk/jre/  --保留原内容
JAVA_HOME=/u01/app/oracle/product/11.2.0/db_1/jdk/jre  --指定为实际路径
TVDXTAT_HOME=/home/oracle/tvdxtat   --指定为实际路径

--以下默认即可
$JAVA_HOME/bin/java -Xmx1024m -Dtvdxtat.home=$TVDXTAT_HOME -Djava.util.logging.config.file=$TVDXTAT_HOME/config/logging.properties -jar $TVDXTAT_HOME/lib/tvdxtat.jar $*
~
~
~6.使用 tvd$xtat.sh
[oracle@Oracle11g tvdxtat]$ ./tvdxtat.sh -i /u01/app/oracle/diag/rdbms/prod/prod/trace/prod_ora_8372_10046.trc -o /home/oracle/prod_ora_8372_10046.html -s no -w yes
00:00:00 WARNING automatically switch to release 11 (configured=12 detected=11)
00:00:00 WARNING line 1726 not processed
[oracle@Oracle11g tvdxtat]$ vi /home/oracle/p
prod_ora_3360.html        prod_ora_3360.xml         prod_ora_8372_10046.html  purchaseOrder.xml         
[oracle@Oracle11g tvdxtat]$ vi /home/oracle/prod_ora_8372_10046.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html lang="en">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TVD$XTAT Output</title>
<style type="text/css">
                                body { background-color: rgb(244,244,244); }
                                h1 { color: rgb(55,55,55); font-family: helvetica; font-size: 15pt; font-weight: bold; }
                                h2 { color: rgb(55,55,55); font-family: helvetica; font-size: 13pt; font-weight: bold; }
                                h3 { color: rgb(55,55,55); font-family: helvetica; font-size: 11pt; font-weight: bold; }
                                p { color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; }
                                a { color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; }
                                a.th { color: rgb(244,244,244); background-color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; }
                                p.error { color: rgb(255,0,0); font-family: helvetica; font-size: 10pt; font-weight: normal; }
                                th.color { color: rgb(244,244,244); background-color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; vertical-align: top; }
                                th.no_color { color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; vertical-align: top; }
                                td.color { color: rgb(55,55,55); background-color: rgb(220,208,192); font-family: helvetica; font-size: 10pt; font-weight: normal;  vertical-align: top; }
                                td.color_pre { color: rgb(55,55,55); background-color: rgb(220,208,192); font-family: helvetica; font-size: 10pt; font-weight: normal; white-space: pre; vertical-align: top; }
                                td.no_color { color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; vertical-align: top; }
                                td.no_color_pre { color: rgb(55,55,55); font-family: helvetica; font-size: 10pt; font-weight: normal; white-space: pre; vertical-align: top; }
                        table { border: 0px solid rgb(55,55,55); border-collapse: separate; border-spacing: 2px 2px; }
                        </style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" type="text/javascript"></script><script type="text/javascript">
                                $(document).ready(function() {
                                        $(".toggle").click(function() {
                                                var text = $(this).text();
                                                if (text.indexOf("hide") != -1) {
                                                        $(this).text(text.replace("hide", "show"));
                                                }
                                                else {
                                                        $(this).text(text.replace("show", "hide"));
                                                }
                                                $(this).parent().next().toggle("slow");
                                                return false;
                                        });
                                        
--7.GUI窗口查看该文件 prod_ora_8372_10046.html ,效果非常棒

转载于:https://www.cnblogs.com/iyoume2008/p/6953723.html

TVD$XTAT在linux下安装使用详解相关推荐

  1. python os模块安装方法_基于python中pygame模块的Linux下安装过程(详解)

    一.使用pip安装Python包 大多数较新的Python版本都自带pip,因此首先可检查系统是否已经安装了pip.在Python3中,pip有时被称为pip3. 1.在Linux和OS X系统中检查 ...

  2. apache 下载安装linux,linux下安装apache详解

    下载httpd-2.2.6.tar.bz2 把httpd-2.2.6.tar.bz2放到/soft 下 [root@localhost ~]#cd /soft [root@localhost soft ...

  3. 在linux下安装dns,详解在Linux下DNS的安装及配置

    大家都知道在Windows下安装DNS非常简单,配置起来也非常方便,几乎全是都是图形界面,但在Linux下安装就不一样了,他不像Windows一样有图形界面,必须通过命令来安装及配置DNS服务,大家想 ...

  4. python中pygame模块下载_基于python中pygame模块的Linux下安装过程(详解)

    pyhthon中pygame模块怎么安装?pyhthon中pygame模块怎么安装?鄙人为初二一名学生,闲来无事 钻研起电这句话还是建议问一下你们代课老师吧,因为你们老师是这方面专家,诺儿那边的话肯定 ...

  5. linux下DNS配置详解

    linux下DNS配置详解 DNS 是域名系统 (Domain Name Server) 的缩写,该系统用于命名组织到域层次结构中的计算机和网络服务.在Internet上域名与IP地址之间是一一对应的 ...

  6. 虚拟机VMware的Ubuntu下安装tensorflow详解

    这里笔者已经安装好了虚拟机并安装了Ubuntu系统,并且虚拟机可以联网,因此就直接开始介绍下面的步骤.网上博文很乱,特意整理,以供参考. 虚拟机VMware的Ubuntu下安装tensorflow详解 ...

  7. Linux下使用aMsn详解(转)

    Linux下使用aMsn详解(转) amsn这一款在linux下的Msn就不多介绍了,0.95版出来后加入了摄像头,在加上其文件传输功能,你还留恋于gaim么? 经过多天的搜索和尝试,终于在Fedor ...

  8. linux下dd命令详解

    linux下dd命令详解    名称: dd 使用权限: 所有使用者dd 这个指令在 manual 里的定义是 convert and copy a file 使用方式: dd [option] 如果 ...

  9. linux下scp命令详解

    http://www.cnblogs.com/xuxm2007/archive/2010/08/04/1792179.html linux下scp命令详解 http://www.9usb.net/20 ...

最新文章

  1. 快手刘霁:AI基础能力决定每个公司AI的迭代和落地效率丨MEET2020
  2. php编写猜拳游戏,Python中猜拳游戏与猜筛子游戏的实现方法
  3. mysql堆溢出_为什么这个MySQL触发器会导致堆栈溢出?
  4. 【bzoj 4390】 [Usaco2015 dec]Max Flow(树上差分)
  5. fsmc同步通信设置_微服务模式-同步与异步
  6. 苹果和谷歌在印度下架数十款中国应用;贾跃亭宣布破产重组完成;Tails 4.8 发布| 极客头条...
  7. 地球上出现过的CPU完全收藏.part4
  8. 五大常用算法之回溯法
  9. 华为开源镜像站体验评测报告
  10. 改进left函数,截取varchar需要的字符串长度
  11. pyqt5做了一个二维码生成器,已打包成exe可执行程序...
  12. 计算机毕业设计ssm健身房管理系统y7i9n系统+程序+源码+lw+远程部署
  13. [系统安全] 二十一.PE数字签名之(中)Signcode、PEView、010Editor、Asn1View工具用法
  14. 第六届全国计算机学科博士后论坛,首届全国计算机学科博士后论坛在清华大学圆满举行...
  15. 魔鬼R包—SNPassoc的下载与安装
  16. libpng error: iTXt: chunk data is too large error: PNG unsigned integer out of range
  17. Mybatis Smart Code Help插件使用介绍
  18. 微型计算机原理与应用实验指导书,微机原理与应用实验指导书-20180316.doc
  19. 2017 12 05
  20. tems测试软件怎么统计指标,TEMS测试数据计算公式和统计操作步骤(6页)-原创力文档...

热门文章

  1. linux训练python出现killed_linux命令总结(二)
  2. 小红书达人笔记投放攻略分享,纯干货
  3. 高并发秒杀系统方案的优化
  4. 【转】利用tmail.exe 命令参数来发送邮件
  5. Java开发入门与实战!张孝祥java就业培训
  6. MP3制作之LRC歌词文件解析(附:源代码)
  7. 如何宣传推广自己的博客
  8. 牛客小白月赛20 D.3的倍数
  9. wow mysql dbc_魔兽SF单机中用MyDbcEditor修改Spell.dbc教程
  10. 解决GitHub频繁要求verify email的问题