Friday, May 7, 2021

Query to find the Tracefile using SID in Oracle Database

 

Query to find the Tracefile using SID in Oracle Database

How to find the Tracefile using SID in Oracle?




Below mentioned query will help you find the Tracefile if you have enabled the SQL Trace in your Oracle Database. Make sure you know the SID for which you want to check the tracefile.

SELECT p.tracefile
FROM   v$session s
       JOIN v$process p ON s.paddr = p.addr
WHERE  s.sid = &SID;

No comments:

Post a Comment

Types of animations

Animation is a diverse and creative field with a variety of styles that artists and filmmakers use to bring their visions to life. Here are ...