How to Use Oradebug to Get Trace File Name and Location
2013-08-13 14:22
661 查看
APPLIES TO:
Oracle Database - 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'?
SOLUTION
Use the command: Oradebug tracefile_nameFor example:
At SQL*Plus prompt, execute:
'Alter session set events ... ' statement to enable tracing.
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
相关文章推荐
- How to use script to get all oracle EBS Form name and corresponding fmb file name
- How to use script to get all Oracle EBS Concurrent Program/Report name and corresponding execution f
- How To Get Application Path,And How To Get The Path's Directory,File Name,And Type Info(如何得到运行程序的路径,以及如何得到路径的文件夹,文件名,以及类型等等信息)
- How to get trace file from getbfno.sql gettrcname.sql
- Use regular expression to get filename from a file full path name.
- ffmpeg示例一:how to use libavformat and libavcodec to read video from a file.
- How To Use TKPROF To Trace And Analyze Sql Explan
- Use Flex and JavaScript to get the full path of a local File
- [原创]HOW TO USE VERITAS VOLUME MANAGER AND VERITAS FILE SYSTEM
- How to use btt with blktrace to analysis the trace file
- [笔记] How to get the versionCode and versionName of your app
- how to config and use apt-get
- How to get real file offset in NAND by file name?
- how to make&get trace file
- RESTful WCF Services with No svc file and No config and How to use Service Route
- How to download Xcode 4 / 5 / 6 / 7 and get the DMG file?
- on IRC, how to use secure connection(SSL) and get a cloak/vhost to hide your IP
- How to get the Diagnostic data and debug file of Sales Order pick release
- How to use 'SetItemData()' and 'GetItemData()'?
- How to Find the Self Service Related File Location and Versions