代码拉取完成,页面将自动刷新
-- | PURPOSE : Oracle writes TRACE to the directory based on the value of your |
-- | "user_dump_dest" parameter in init.ora file. The trace files |
-- | use the "System Process ID" as part of the file name to ensure |
-- | a unique file for each user session. The following query helps |
-- | the DBA to determine where the TRACE files will be written and |
-- | the name of the file it would create for its particular |
-- | session. |
-- | NOTE : As with any code, ensure to test this script in a development |
-- | environment before attempting to run it in production. |
-- +----------------------------------------------------------------------------+
SET PAGESIZE 9999
COLUMN "Trace File Path" FORMAT a65 HEADING 'Your tracefile with path is:'
SELECT
a.trace_path || ' > ' || b.trace_file "Trace File Path"
FROM
( SELECT value trace_path
FROM v$parameter
WHERE name='user_dump_dest'
) a
, ( SELECT c.instance || '_ora_' || spid ||'.trc' TRACE_FILE
FROM v$process,
(SELECT LOWER(instance) instance FROM v$thread) c
WHERE addr = ( SELECT paddr
FROM v$session
WHERE audsid = ( SELECT userenv('SESSIONID')
FROM dual
)
)
) b
/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。