Hello Casey

Run this script. It will display rollback & commit of all running session

set head     on
set echo     off
set verify   off
set feedback off
set pagesize 1000
set tab      off
col "SID"               format 999
col "Nb commit"        format 99,999,999,999
col "Nb rollback"      format 999,999,999

-- to find the
select  min(sid)         "SID",
        sum(cmt)  "Nb commit",
        sum(roll) "Nb rollback"
        from (
              select ses.sid, st.value cmt, 0 roll
              from v$session ses, v$sesstat st, v$statname nm
              where ses.sid = st.sid and
                    st.statistic# = nm.statistic# and
                    nm.NAME = 'user commits'
            union
              select ses.sid, 0, st.value
              from v$session ses, v$sesstat st, v$statname nm
              where ses.sid = st.sid and
                    st.statistic# = nm.statistic# and
                    nm.NAME = 'user rollbacks'
              )
group by sid ;




>From: "Casey Jordan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: Rollback Question
>Date: Tue, 06 Feb 2001 06:00:23 -0800
>
>Is there anyway to find out if a long running concurrent program is rolling 
>back its transactions?
>
>
>Thanks
>
>Casey

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: salu Ullah
  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