ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [oradebug命令学习2]How to Use Oradebug to Get Trace File Name and Location

[oradebug命令学习2]How to Use Oradebug to Get Trace File Name and Location

原创 Linux操作系统 作者:尛样儿 时间:2012-11-10 20:59:23 0 删除 编辑

How to Use Oradebug to Get Trace File Name and Location [ID 310830.1]
修改时间:2012-7-31类型:HOWTO状态:PUBLISHED优先级:3

In this Document

Goal
Fix
References


Applies to:

Oracle Server - Enterprise Edition - Version 8.1.7.4 to 11.2.0.3 [Release 8.1.7 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 26-Apr-2012***

Goal

How to get trace file name and location from SQL*Plus when trace event is enabled in a session using 'Alter session'?

Fix

Use the command: Oradebug tracefile_name 

For example:

  1. At SQL*Plus prompt, execute:
       'Alter session set events ... ' statement to enable tracing.
  2. Issue:
       Oradebug setmypid
       Oradebug tracefile_name

Sample Output

SQL> conn sys/sys as sysdba
Connected.

SQL> alter session set events '10046 trace name context forever, level 12';

Session altered.

SQL> oradebug setmypid
Statement processed.

SQL> oradebug tracefile_name
/u01/app/oracle/diag/rdbms/v1120/v1120/trace/v1120_ora_26077.trc

References

@NOTE:29786.1 - SUPTOOL: ORADEBUG

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23135684/viewspace-748940/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle数据库管理员,Oracle数据库系统构架员;2012年7月出版《构建最高可用Oracle数据库系统:Oracle 11gR2 RAC管理、维护与性能优化》一书;Oracle 10g OCM。

注册时间:2010-01-05

  • 博文量
    483
  • 访问量
    5650388