Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Which RBS have active transactions?

RE: Which RBS have active transactions?

From: Terrian, Tom <tterrian_at_daas.dla.mil>
Date: Thu, 05 Jul 2001 07:42:33 -0700
Message-ID: <F001.00341A89.20010705075555@fatcity.com>

Thanks, I was able to write a script that gets me most of what I want:

        select a.segment_name, b.start_uext "ACTIVE EXENT NUMBER", 
               b.used_ublk "USED RBS BLOCKS" 
        from   dba_rollback_segs a, v$transaction b
        where  a.segment_id = b.xidusn
        order  by a.segment_name, b.start_uext;
        
SEGMENT_NAME                   ACTIVE EXENT NUMBER USED RBS BLOCKS
------------------------------ ------------------- ---------------
RB01                                            74               1
RB01                                            82               1
RB02                                            29               1
RB02                                            37               1
RB03                                             5               1
RB03                                            21               1

Thanks,

Tom Terrian
Oracle DBA
WPAFB - DAASC
tterrian_at_daas.dla.mil
937-656-3844

-----Original Message-----
Sent: Thursday, July 05, 2001 11:26 AM
To: Multiple recipients of list ORACLE-L

Terrian, Tom wrote:
>
> Does anyone know of a way to determine which RBS extents have active
> transactions?
>
> Specifically:
> select a.segment_name, a.bytes, a.extents, c.xacts
> from dba_segments a, dba_rollback_segs b, v$rollstat c
> where a.segment_type = 'ROLLBACK'
> and a.segment_name = b.segment_name
> and b.segment_id = c.usn;
>
> SEGMENT_NAME BYTES EXTENTS XACTS
> -------------------- ---------- ----------
> ----------
> RB01 14745600 90 2
> RB02 7364608 45
> 2
> RB03 3276800 20
> 2
> SYSTEM 5079040 62 0
>
> RB01 has 2 active transactions and 90 exents. Can I tell which of the exents
> have the active transactions?
>
> Tom Terrian
> Oracle DBA
> WPAFB - DAASC
> tterrian_at_daas.dla.mil
> 937-656-3844
>

I do not think so. V$TRANSACTION will give you information about the extent where it all started and how much rollback has been used (I think - out of memory), but you will not be able to tell exactly which extents (but the first one) are involved. I think that the detail is hard-coded somewhere in the RBS header ('slot'), I don't think that it's accessible even in some obscure X$.

--
Regards,

  Stephane Faroult
  Oriole Corporation
------------------------------------------------------------------
http://www.oriolecorp.com, designed by Oracle DBAs for Oracle DBAs
------------------------------------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriolecorp.com

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: ListGuru_at_fatcity.com (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: Terrian, Tom
  INET: tterrian_at_daas.dla.mil

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: ListGuru_at_fatcity.com (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).
Received on Thu Jul 05 2001 - 09:42:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US