1:安装

[oracle@st8cserver16 tmp]$ cd /tmp/trca/install/
[oracle@st8cserver16 install]$ ls
tacobj.sql   tacpkgg.pks  tacpkgp.pks  tacpkgt.pkb  tacreate.sql  tadrop.sql
tacpkge.pkb  tacpkgi.pkb  tacpkgr.pkb  tacpkgt.pks  tacusr.sql    tadusr.sql
tacpkge.pks  tacpkgi.pks  tacpkgr.pks  tacpkgx.pkb  tacvw.sql     tasqdirset.sql
tacpkgg.pkb  tacpkgp.pkb  tacpkg.sql   tacpkgx.pks  tadobj.sql    tautltest.sql
[oracle@st8cserver16 install]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 7月 17 17:39:53 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> @tacreate.sql                             --运行此脚本
Uninstalling TRCA, please wait
TADOBJ completed.
SQL>
SQL> WHENEVER SQLERROR EXIT SQL.SQLCODE;
SQL> REM If this DROP USER command fails that means a session is connected with this user.
SQL> DROP USER trcanlzr CASCADE;
SQL> WHENEVER SQLERROR CONTINUE;
SQL>
SQL> SET ECHO OFF;
TADUSR completed.
TADROP completed.

Specify optional Connect Identifier (as per Oracle Net)
Include "@" symbol, ie. @PROD
If not applicable, enter nothing and hit the "Enter" key

Optional Connect Identifier (ie: @PROD):                                        --直接回车,默认创建trcanlzr用户

Define the TRCANLZR user password (hidden and case sensitive).

Specify TRCANLZR password:
Re-enter password:

Set up TRCANLZR temporary and default tablespaces

Below are the list of online tablespaces in this database.
Decide which tablespace you wish to create the TRCANLZR tables
and indexes.  This will also be the TRCANLZR user default tablespace.

Specifying the SYSTEM tablespace will result in the installation
FAILING, as using SYSTEM for tools data is not supported.

Wait...

TABLESPACE_NAME         FREE_SPACE_MB
------------------------------ -------------
EAINDEX_IDX     200
FLINK_DATA     361
USERS      389
WZ_DATA     1018
EAINDEX_DATA    1925
SMSWAY           10240
NEWADUNION         226965

Above is the list of online tablespaces in this database.
Decide which tablespace you wish to create the TRCANLZR tables
and indexes.  This will also be the TRCANLZR user default tablespace.

Specifying the SYSTEM tablespace will result in the installation
FAILING, as using SYSTEM for tools data is not supported.

Tablespace name is case sensitive.

Default tablespace [UNKNOWN]: NEWADUNION                           ---输入用户的默认表空间

DEFAULT_TABLESPACE
------------------------------
NEWADUNION

Choose the TRCANLZR user temporary tablespace.

Specifying the SYSTEM tablespace will result in the installation
FAILING, as using SYSTEM for the temporary tablespace is not recommended.

Wait...

TABLESPACE_NAME
------------------------------
GTMP

Tablespace name is case sensitive.

Temporary tablespace [UNKNOWN]: GTMP                                                                    ---输入用户使用的临时表空间

TEMPORARY_TABLESPACE
------------------------------
GTMP

Type of TRCA repository

Create TRCA repository as Temporary or Permanent objects?
Enter T for Temporary or P for Permanent.
T is recommended and default value.

Type of TRCA repository [T]:                                                         --默认为T,表示临时对象

TACUSR completed.
No errors.
SQLT$STAGE: created
SQLT$STAGE: READ,WRITE access granted to TRCANLZR
SQLT$STAGE: write test file tasqdirset.txt
SQLT$STAGE: read test file tasqdirset.txt
SQLT$STAGE: get attributes for file tasqdirset.txt
SQLT$STAGE: /app/soft/oracle/admin/eagaodb/udump
TRCA$STAGE: created
TRCA$STAGE: READ,WRITE access granted to TRCANLZR
TRCA$STAGE: write test file tasqdirset.txt
TRCA$STAGE: read test file tasqdirset.txt
TRCA$STAGE: get attributes for file tasqdirset.txt
TRCA$STAGE: /app/soft/oracle/admin/eagaodb/udump
SQLT$UDUMP: created
SQLT$UDUMP: READ access granted to TRCANLZR
SQLT$UDUMP: read test file tasqdirset.txt
SQLT$UDUMP: get attributes for file tasqdirset.txt
SQLT$UDUMP: /app/soft/oracle/admin/eagaodb/udump
SQLT$BDUMP: created
SQLT$BDUMP: READ access granted to TRCANLZR
SQLT$BDUMP: /app/soft/oracle/admin/eagaodb/bdump
TRCA$INPUT1: created
TRCA$INPUT1: READ access granted to TRCANLZR
TRCA$INPUT1: read test file tasqdirset.txt
TRCA$INPUT1: get attributes for file tasqdirset.txt
TRCA$INPUT1: /app/soft/oracle/admin/eagaodb/udump
TRCA$INPUT2: created
TRCA$INPUT2: READ access granted to TRCANLZR
TRCA$INPUT2: /app/soft/oracle/admin/eagaodb/bdump
Connected.

TAUTLTEST completed.

no rows selected

TACOBJ completed.
tool_owner: "TRCANLZR"
role_name: "PUBLIC"
Creating Package Specs TRCA$G
No errors.
Creating Package Specs TRCA$P
No errors.
Creating Package Specs TRCA$T
No errors.
Creating Package Specs TRCA$I
No errors.
Creating Package Specs TRCA$E
No errors.
Creating Package Specs TRCA$R
No errors.
Creating Package Specs TRCA$X
No errors.
Creating Views
Creating Package Body TRCA$G
No errors.
Creating Package Body TRCA$P
No errors.
Creating Package Body TRCA$T
No errors.
Creating Package Body TRCA$I
No errors.
Creating Package Body TRCA$E
No errors.
Creating Package Body TRCA$R
No errors.
Creating Package Body TRCA$X
No errors.
Creating Grants on Packages

Tool Version
----------------
11.4.4.2

Install Date
----------------
20120717

Directories
--------------------------------------------------------------------------------------------------------------------------------
TRCA$INPUT1(VALID) /app/soft/oracle/admin/eagaodb/udump
TRCA$INPUT2(VALID) /app/soft/oracle/admin/eagaodb/bdump
TRCA$STAGE(VALID) /app/soft/oracle/admin/eagaodb/udump
user_dump_dest  /app/soft/oracle/admin/eagaodb/udump
background_dump_dest /app/soft/oracle/admin/eagaodb/bdump

Libraries
--------------------------------------------------------------------------------------------------------------------------------
VALID PACKAGE TRCA$I /* $Header: 224270.1 tacpkgi.pks 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE TRCA$E /* $Header: 224270.1 tacpkge.pks 11.4.2.7 2011/04/08 csierra $ */
VALID PACKAGE TRCA$G /* $Header: 224270.1 tacpkgg.pks 11.4.2.7 2011/04/08 csierra $ */
VALID PACKAGE TRCA$P /* $Header: 224270.1 tacpkgp.pks 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE TRCA$R /* $Header: 224270.1 tacpkgr.pks 11.4.2.7 2011/04/08 csierra $ */
VALID PACKAGE TRCA$T /* $Header: 224270.1 tacpkgt.pks 11.4.3.1 2011/06/17 csierra $ */
VALID PACKAGE TRCA$X /* $Header: 224270.1 tacpkgx.pks 11.4.2.7 2011/04/08 csierra $ */
VALID PACKAGE BODY TRCA$I /* $Header: 224270.1 tacpkgi.pkb 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE BODY TRCA$E /* $Header: 224270.1 tacpkge.pkb 11.4.2.7 2011/04/08 csierra $ */
VALID PACKAGE BODY TRCA$G /* $Header: 224270.1 tacpkgg.pkb 11.4.4.2 2012/02/02 csierra $ */
VALID PACKAGE BODY TRCA$P /* $Header: 224270.1 tacpkgp.pkb 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE BODY TRCA$R /* $Header: 224270.1 tacpkgr.pkb 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE BODY TRCA$T /* $Header: 224270.1 tacpkgt.pkb 11.4.4.1 2012/01/02 csierra $ */
VALID PACKAGE BODY TRCA$X /* $Header: 224270.1 tacpkgx.pkb 11.4.2.7 2011/04/08 csierra $ */
TACPKG completed.

Taking a snapshot of some Data Dictionary objects, please wait...

17:43:08 => refresh_trca$_dict_from_this
17:43:08 -> purge_trca$_dict
17:43:08 dict_state_before_purge
17:43:08 -----------------------
17:43:08 -> print_dict_state
17:43:08 dict_refresh_days :
17:43:08 dict_refresh_date :
17:43:08 dict_database_id  :
17:43:08 dict_database_name:
17:43:08 dict_instance_id  :
17:43:08 dict_instance_name:
17:43:08 dict_host_name    :
17:43:08 dict_platform    :
17:43:08 dict_rdbms_version:
17:43:08 dict_db_files    :
17:43:08 <- print_dict_state
17:43:08 -> purge_trca$_dict_gtt
17:43:08 <- purge_trca$_dict_gtt
17:43:08 dict_state_after_purge
17:43:08 ----------------------
17:43:08 -> print_dict_state
17:43:08 dict_refresh_days :
17:43:08 dict_refresh_date :
17:43:08 dict_database_id  :
17:43:08 dict_database_name:
17:43:08 dict_instance_id  :
17:43:08 dict_instance_name:
17:43:08 dict_host_name    :
17:43:08 dict_platform    :
17:43:08 dict_rdbms_version:
17:43:08 dict_db_files    :
17:43:08 <- print_dict_state
17:43:08 <- purge_trca$_dict
17:43:08 -> trca$_file$
17:43:08 <- trca$_file$ (23 rows)
17:43:08 using serial execution
17:43:08 -> trca$_segments
17:43:08 <- trca$_segments (6536 rows)
17:43:08 -> trca$_extents_dm
17:43:08 <- trca$_extents_dm (0 rows)
17:43:08 -> trca$_extents_lm
17:43:17 <- trca$_extents_lm (26795 rows)
17:43:17 -> trca$_users
17:43:18 <- trca$_users (29 rows)
17:43:18 -> trca$_extents
17:43:18 <- trca$_extents (26732 rows)
17:43:18 -> purge_trca$_dict_gtt
17:43:18 <- purge_trca$_dict_gtt
17:43:18 -> trca$_tables$
17:43:19 <- trca$_tables$ (2350 rows)
17:43:19 -> trca$_indexes$
17:43:19 <- trca$_indexes$ (2858 rows)
17:43:19 -> trca$_ind_columns$
17:43:20 <- trca$_ind_columns$ (4375 rows)
17:43:20 -> trca$_tab_cols$
17:43:21 <- trca$_tab_cols$ (4044 rows)
17:43:21 -> trca$_objects$
17:43:21 <- trca$_objects$ (5791 rows)
17:43:21 -> trca$_parameter2$
17:43:21 <- trca$_parameter2$ (27 rows)
17:43:21 dict_state_after_refresh
17:43:21 ------------------------
17:43:21 -> print_dict_state
17:43:21 dict_refresh_days : 1
17:43:21 dict_refresh_date : 20120717
17:43:21 dict_database_id  : 1798905771
17:43:21 dict_database_name: EAGAODB
17:43:21 dict_instance_id  : 1
17:43:21 dict_instance_name: eagaodb
17:43:21 dict_host_name    : st8cserver16.easou.com
17:43:21 dict_platform    : Linux
17:43:21 dict_rdbms_version: 10.2.0.1.0
17:43:21 dict_db_files    : 200
17:43:21 <- print_dict_state
17:43:21 <= refresh_trca$_dict_from_this

PL/SQL procedure successfully completed.

Snapshot of some Data Dictionary objects completed.

TAUTLTEST completed.

TACREATE completed. Installation completed successfully.

只需要上面的5步即可完成安装。

2:卸载

卸载时会移除TRCA 的数据和TRCANLZR用户的所有对象,最后也会drop 这个用户,卸载用sys执行脚本:tadrop.sql

# cd trca/install

# sqlplus / as sysdba

SQL> start tadrop.sql

3:测试

SQL> oradebug setmypid
ORA-01031: insufficient privileges
SQL> show user;
USER is "TRCANLZR"
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
[oracle@st8cserver16 install]$ sqlplus / as sysdba                                                --使用哪个用户trace的就使用哪个用户分析

SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 7月 17 17:58:34 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> oradebug setmypid
Statement processed.
SQL> oradebug event 10046 trace name context forever,level 12;
Statement processed.
SQL> select * from all_users;                                                                                                 --查询出结果

USERNAME     USER_ID CREATED
------------------------------ ---------- --------------
................

...............

37 rows selected.

SQL> oradebug event 10046 trace name context off;                                                        --关闭跟踪
Statement processed.
SQL> oradebug tracefile_name
/app/soft/oracle/admin/eagaodb/udump/eagaodb_ora_32079.trc
SQL> SELECT directory_path FROMdba_directories WHERE directory_name = 'TRCA$INPUT1';
SELECT directory_path FROMdba_directories WHERE directory_name = 'TRCA$INPUT1'
                                          *
ERROR at line 1:
ORA-00923: FROM keyword not found where expected

SQL> SELECT directory_path FROM dba_directories WHERE directory_name = 'TRCA$INPUT1';

DIRECTORY_PATH
--------------------------------------------------------------------------------
/app/soft/oracle/admin/eagaodb/udump

SQL> @../run/trcanlzr.sql eagaodb_ora_32079.trc                                       ----输入执行的脚步路径以及上面生成的tra文件

Parameter 1:
Trace Filename or control_file.txt (required)

Value passed to trcanlzr.sql:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TRACE_FILENAME: eagaodb_ora_32079.trc

Analyzing eagaodb_ora_32079.trc

To monitor progress, login as TRCANLZR into another session and execute:
SQL> SELECT * FROM trca$_log_v;

... analyzing trace(s) ...

Trace Analyzer completed.
Review first trcanlzr_error.log file for possible fatal errors.
Review next trca_e60044.log for parsing messages and totals.

Copying now generated files into local directory

TKPROF: Release 10.2.0.1.0 - Production on 星期二 7月 17 18:12:17 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

adding: trca_e60044.html (deflated 90%)
  adding: trca_e60044.log (deflated 83%)
  adding: trca_e60044.tkprof (deflated 82%)
  adding: trca_e60044.txt (deflated 87%)
  adding: trcanlzr_error.log (deflated 81%)
test of trca_e60044.zip OK
deleting: trcanlzr_error.log
Archive:  trca_e60044.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
   182274  07-17-12 18:12   trca_e60044.html
    15624  07-17-12 18:12   trca_e60044.log
    14244  07-17-12 18:12   trca_e60044.tkprof
    88617  07-17-12 18:12   trca_e60044.txt
 --------                   -------
   300759                   4 files

File trca_e60044.zip has been created

TRCANLZR completed.

退出后可以直接ls可以发现此打包的文件,里面包含上面生成的4个文件

trca_e60044.zip

解压后,查看trca_e60044.html,里面的信息非常详细,看的眼花缭乱的

ORACLE 10064诊断工具,TRCA安装与测试相关推荐

  1. 今晚直播丨用高效的Oracle性能诊断工具,让运维工作轻松起来!

    Oracle诊断性能问题时常用脚本工具 - 4月15日20:00 "工欲善其事,必先利其器",对于 Oracle 数据库性能诊断工作同样如此:在积累了一定数据库性能诊断经验的基础上 ...

  2. oracle 性能诊断工具,oracle性能诊断工具

    oracle提供的性能诊断的工具:autotrace.sql_trace.10046事件. 简要记录一下这些工具的使用方法: autotrace用于跟踪sql的执行计划,收集统计信息. 默认此功能是关 ...

  3. 网络诊断工具之—IP连接测试ping命令

    Ping命令是TCP/IP中内置的一个测试工具,主要通过发送Internet控制消息协议(ICMP)回响请求消息来验证与另一台TCP/IP计算机的IP级连接.对应的回响应答消息的接受情况将和往返过程的 ...

  4. Java 诊断工具Arthas初识、安装及试用

    目录 功能 使用方式 使用实例 参考 功能 监控jvm运行状态 定位应用热点,生成火焰图 具体jar包来源等 使用方式 win10本地方式 linux本地方式 docker镜像方式 idea插件方式 ...

  5. 爬虫实战系列(十一):Win10下手机爬虫工具appium的安装与测试

    一.前言 之前介绍的都是关于网页爬虫的相关内容,今天博主想跟大家分享一个非常牛的手机爬虫工具Appium,首先我会介绍它的安装方法,然后给出一个Appium连接手机app例程. 二.详细安装过程 2. ...

  6. linux学习笔记:网络诊断工具-mtr命令

    网络诊断工具-mtr命令 最近在面试的过程中,被问到了mtr命令,一脸懵逼,据面试官了解,该命令在公司里是经常使用的,借此我也来学习一下! 网络诊断的背景 网络诊断工具包括ping,tracerout ...

  7. Arthas - 开源 Java 诊断工具

    转载自  Arthas使用 Authas - 开源的java诊断工具 下载安装 authas是一个jar包,可以直接下载后运行 wget https://alibaba.github.io/artha ...

  8. 【RDMA】infiniband网卡安装|InfiniBand 连接和状态诊断工具|测试RDMA网卡是否正常工作...

    目录 1. 基础知识 一.诊断工具--翻译中 2. 驱动安装 3.配置IP 4. 性能测试 5. 其他问题 RDMA .InfiniBand.IB卡.IB驱动的关系 问题记录 原文:infiniban ...

  9. 【RDMA】RDMA信息状态查询|网卡安装|诊断工具|测试RDMA网卡是否正常工作InfiniBand IB常用命令|历史命令记录

    目录 RDMA 常用命令 0.使用命令例子 1.常规 IB 监视命令 2.常规 IB 性能测试命令 3.光纤网络诊断工具 4.查询并报告非零 IB 端口计数器 5.其常用指令 新华三 IB 网卡相关 ...

  10. Oracle TFA日志收集工具的安装与使用

    TFA日志收集工具: 一.介绍: TFA全称:Trace File Analyzer,日志分析工具. TFA会监视的日志,以发现可能影响服务的重大问题,在检测到任何潜在问题时也会自动收集相关的诊断信息 ...

最新文章

  1. html javascript 音频、视频、 mp3 、mp4 的播放、暂停、重新播放、获取音频时长、视频自动全屏播放
  2. 在VS2010下使用 UNICODE 和 ANSI 的混合编程
  3. 计算机有哪两种绘图,能被计算机接受的数字图像有哪两种?它们分别由什么构成?...
  4. Extension project - Component.js of standard application could not be loaded
  5. mac显示网速_Mac网络流量监控工具——NetWorker pro
  6. 飞鸽传书最新源码类都要复杂的多
  7. JavaScript DOM扩展——“选择符API和元素遍历”的注意要点
  8. 盘点:互联网上无处不在的僵尸
  9. php伪类,CSS3新增伪类
  10. bzoj 4034: [HAOI2015]树上操作(树链剖分+线段树区间更新)
  11. 【深度学习笔记】多层感知机,非权值共享型卷积神经网络,权值共享型卷积神经网络之间的关系
  12. Android自定义字体
  13. 打印数组的几种方式--java
  14. 百度离线地图开发API
  15. GIF动图制作全攻略!不用PS简单快速制作GIF动图!
  16. HiveSQL percentile和percentile_approx 函数计算千分数
  17. MSDC 4.3 接口规范(21)
  18. MySql 根据身份证号来判别所属省份年龄及性别
  19. iphone11计算机显示计算过程,iPhone11怎么显示电池百分比
  20. java实现的一个发送手机短信

热门文章

  1. C语言输出平行四边形,菱形
  2. linux内核源码分析之proc文件系统(二)
  3. 证明:$(g\circ f = e_X)\Rightarrow(g是满射)\wedge(f是单射)$
  4. 服务器地址为空,dns服务器地址为空
  5. c#之List深度复制
  6. Java应届生面试必备考题(附答案)
  7. 关于反三角函数在0点的高阶导数
  8. 用Cyberduck将4EVERLAND Bucket挂载到本地,构建属于自己的Web3云网盘
  9. Rdd,DataFrame和DataSet的区别
  10. mysqldb python.zip_python MySQLdb