從v$diag_info定位trace file
Oracle Support note Interpreting Raw SQL_TRACE output (39817.1). TKPROF
As of version 11.1, it ’ s much easier to query either the v$diag_info or v$process views, as shown in the following examples:
SQL> SELECT value
2 FROM v$diag_info
3 WHERE name = 'Default Trace File';
VALUE
--------------------------------------------------------------------
/u00/app/oracle/diag/rdbms/dba111/DBA111/trace/DBA111_ora_23731.trc
SQL> SELECT p.tracefile
2 FROM v$process p, v$session s
3 WHERE p.addr = s.paddr
4 AND s.sid = sys_context('userenv','sid');
TRACEFILE
--------------------------------------------------------------------
/u00/app/oracle/diag/rdbms/dba111/DBA111/trace/DBA111_ora_23731.trc
Note that the v$diag_info view provides information for the current session only.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14377/viewspace-2286456/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Finding Trace Files v$diag_info & TKPROF
- Trace file的命名規則和存放路徑
- SQL TraceSQL
- Oracle session traceOracleSession
- DBMS_TRACE(zt)
- Oracle 10046 SQL TRACEOracleSQL
- No virtual method setOutputFile Ljava/io/File V in class Landroid/media/MediaRecorderJavaAndroid
- Mysql從指定位置擷取字串MySql字串
- 從10046 trace 的trca報告中總結的時間模型示例模型
- 阿薩v從
- Android Framework: 增加trace點AndroidFramework
- Chromium Trace and Perfetto使用詳解
- Matrix原始碼分析————Trace Canary原始碼
- 從 React Router v5 過渡到 v6React
- 從html5的新特性定位安全問題HTML
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- Istio Trace鏈路追蹤方案
- sql_trace相關指令碼SQL指令碼
- Android Perfetto 系列 2:Perfetto Trace 抓取Android
- 【dubbo3.x trace元件分享】元件
- Oracle診斷案例-Sql_traceOracleSQL
- cat > file << EOF 與 cat > file << -
- 抖音藍V賬號定位及外化羅盤(附下載)
- 雜篇-從整理檔案發起的雜談[-File-]
- React Router從V2/V3到V4的變化React
- File
- Jib構建映象問題從定位到深入分析
- How to Convert Class File to Java File Online?Java
- File list Export for Mac(檔案列表匯出工具) v2.8.9啟用版ExportMac
- 單個SQL語句的10046 traceSQL
- ADFS – How to enable Trace Debugging and advanced access logging
- Netweaver和CloudFoundry裡的trace開關Cloud
- debug:am trace-ipc原始碼分析原始碼
- 從 webpack v1 遷移到 webpack v2 新特性Web
- 從零實現Vue的元件庫(四)- File-Reader實現Vue元件
- iOS 地圖定位 定位iOS地圖
- 手機定位App從想法到上線運營(1)--介紹APP
- webpack v4 從dev到prdWebdev