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

How to improve blog performance

Improving the performance of a blog can involve a variety of strategies, including optimizing the website's technical infrastructure, im...