Home  >  Article  >  Database  >  Oracle 查询跟踪的更新

Oracle 查询跟踪的更新

WBOY
WBOYOriginal
2016-06-07 17:13:11945browse

在Oracle 11g版本前查询如下: select d.value||

在Oracle 11g版本前查询如下:

select d.value||'/'||lower(rtrim(i.instance,chr(0)))||'_ora_'||p.spid||'.trc' trace_file_name
from
(select p.spid
from sys.v$mystat m,sys.v$session s,sys.v$process p
where m.statistic# = 1 and s.sid = m.sid and p.addr = s.paddr) p,
(select t.instance from sys.v$thread t,sys.v$parameter v
where v.name = 'thread' and (v.value = 0 or t.thread# = to_number(v.value))) i,
(select value from sys.v$parameter where name = 'user_dump_dest') d
/

Oracle 11g版本开始简单多了如下

   v$diag_info

select value from v$diag_info from v$diag_info where

更多Oracle相关信息见Oracle 专题页面 ?tid=12

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn