Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: get rollback info for process
If you are setting the rollback segment explicitly. And you are not using UNDO mananagement (menaing use the good old rollback semgents) and you are not getting any errors then
it is using the rollback segment you are setting explicitly.
you already have input like below sql and that it will work when the transaction is still running and not after it finishes.
"Goulet, Dick" <DGoulet_at_vicr.com> wrote: Don't remember exactly where I found this(possibly MetaLink), but it sure works.
SELECT r.name, b.extents, l.sid,p.spid,s.username,
s.machine, s.program
FROM v$lock l, dba_segments b, v$process p, v$rollname r,
v$session s
WHERE b.segment_name = r.name
and l.sid = p.pid(+)
AND s.sid=l.sid
AND TRUNC (l.id1(+)/65536) = r.usn
AND l.type(+) = 'TX'
AND l.lmode(+) = 6
ORDER BY r.name
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Doug Gernaat
Sent: Tuesday, May 30, 2006 11:04 AM
To: oracle-l_at_freelists.org
Subject: get rollback info for process
we have a ProC program that runs for about 90mins. after its completion, i would like to be able to identify which rollback segments it used. a trace/tkprof didn't help me(maybe i overlooked). statspak? any ideas?
thanks
-doug-
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
![]() |
![]() |