select r.name 
from v$rollname r, v$session s, v$lock l
where r.usn = trunc(l.id1/65536)
  and l.type = 'TX'
  and l.sid = s.sid
  and s.sid = <the sid>

 --- Witold Iwaniec <[EMAIL PROTECTED]> wrote:
> Hello DBAs
> 
> Is there a command that tells me which rollback
> segment is being 
> used by current transaction?
> Also, can you force a session to use particular
> rollback segment? I 
> have used in the past the command:
> 
> set transaction use rollback segment rbs_01 
> 
> but the named rollback segment seemed to be used
> until the end of 
> tranasction. After a commit or rollback a different
> rollback segment 
> could have been used by Oracle. I wonder if there is
> a way to make 
> sure that once a user logs in, a particular rollback
> segment is used.
> 
> Thanks
> 
> Witold
> 
> ==================================
> Witold Iwaniec
> Sr Software Developer
> NovaLIS Technologies
> [EMAIL PROTECTED]
> http://www.novalistech.com
> 
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> -- 
> Author: Witold Iwaniec
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX:
> (858) 538-5051
> San Diego, California        -- Public Internet
> access / Mailing Lists
>
--------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an
> E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of
> 'ListGuru') and in
> the message BODY, include a line containing: UNSUB
> ORACLE-L
> (or the name of mailing list you want to be removed
> from).  You may
> also send the HELP command for other information
> (like subscribing). 

=====
Connor McDonald
http://www.oracledba.co.uk (mirrored at 
http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to