Witold:
This will show which rollback segment is being used by a current transation.
(Also shows current sql as well as a time stamp. You can get rid of that
stuff if you don't need it.)
There's no way I know of to force a user to a particular rollback segment.
Barb
select TO_CHAR(SYSDATE,'DD-MON-YYYY:HH24:MI:SS'),
osuser o, username u,
segment_name s, substr(sa.sql_text,1,500) txt
from v$session s,
v$transaction t,
dba_rollback_segs r,
v$sqlarea sa
where s.taddr=t.addr
and t.xidusn=r.segment_id(+)
and s.sql_address=sa.address(+)
/
> ----------
> From: Witold Iwaniec[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Monday, February 18, 2002 8:33 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Rollback Segments
>
> 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).
>
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Baker, Barbara
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).