My Oracle version is 10gR2 and server is HP Unix. I wants to enable sql trace file for some oracle sessions,to find the trace file generated in udump, We need to have OS Process Id of that session. But in HP Unix, v$session.process & v$process.spid is not showing the exact os process id. What I've to do to find out the exact trace file generated for that session in HP Unix?
It should work.
Enable trace and execute this query.
select a.sid,a.serial#,a.osuser,a.machine,a.program,b.sql_text
from v$session a,v$sqlarea b,v$process c
where a.sql_hash_value=b.hash_value
and a.serial# !=1
and a.status='ACTIVE'
and b.users_executing=1
and a.paddr=c.addr
AND A.SID NOT IN (select sid
from v$session
where audsid = userenv('sessionid'))
and c.spid=&spid
My Oracle version is 10gR2 and server is HP Unix. I wants to enable sql trace file for some oracle sessions,to find the trace file generated in udump, We need to have OS Process Id of that session. But in HP Unix, v$session.process & v$process.spid is not showing the exact os process id. What I've to do to find out the exact trace file generated for that session in HP Unix?
Thanks...
Hi, I have no good idea, you can saw file's create time.This easy.
If you do not know eaxctly, why do you reply for shake of it?
I have not good English. "no good idea " meaning "This no best idea, but it is easy ".
note:udump only storage user trc file.
1 you doing trc sql.
2 you into udump's folder, you saw is create trc file, the trc file is create time is last.
I have not good English. "no good idea " meaning "This no best idea, but it is easy ".
note:udump only storage user trc file.
1 you doing trc sql.
2 you into udump's folder, you saw is create trc file, the trc file is create time is last.
This might be a good answer but for a different question.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks