Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g6VG3tG24059
 for <oracle-l@naude.co.za>; Wed, 31 Jul 2002 12:03:55 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA46768;
 Wed, 31 Jul 2002 09:03:43 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 004A788D; Wed, 31 Jul 2002 08:53:34 -0800
Message-ID: <F001.004A788D.20020731085334@fatcity.com>
Date: Wed, 31 Jul 2002 08:53:34 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Mohammad Rafiq" <rafiq9857@hotmail.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Mohammad Rafiq" <rafiq9857@hotmail.com>
Subject: Re: user(s) & RBS
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Content-Transfer-Encoding: 7bit

One more script:

set linesize 120
select substr(a.os_user_name,1,8) "OS User"
, substr(b.object_name,1,30) "Object Name"
, substr(b.object_type,1,8) "Type"
, substr(c.segment_name,1,10) "RBS"
, e.process "PROCESS"
, substr(d.used_urec,1,8) "# of Records"
from v$locked_object a
, dba_objects b
, dba_rollback_segs c
, v$transaction d
, v$session e
where a.object_id = b.object_id
and a.xidusn = c.segment_id
and a.xidusn = d.xidusn
and a.xidslot = d.xidslot
and d.addr = e.taddr
/
Regards
Rafiq




Reply-To: ORACLE-L@fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
Date: Tue, 30 Jul 2002 15:28:23 -0800


select c.segment_name, e.sid, e.username,
        b.object_name, b.object_type,
        d.used_urec, a.os_user_name,
        d.xidusn, d.start_time,
        e.process, e.program, e.status
  from v$locked_object a,
       dba_objects b,
       dba_rollback_segs c,
       v$transaction d,
       v$session e
where a.object_id = b.object_id
   and a.xidusn = c.segment_id
   and a.xidusn = d.xidusn
   and a.xidslot = d.xidslot
   and d.addr = e.taddr;


Charlie Mengler wrote:
 >
 > If I'm interested in a specific RBS, how do I determine which user(s)
 > are making use of this segement?
 >
 > How do I determine which RBS a particular user is using?
 >
 > --
 > Charlie Mengler                                  Maintenance Warehouse
 > charliem@mwh.com                                 10641 Scripps Summit Ct.
 > 858-831-2229                                     San Diego, CA 92131
 > Lack of planning on your part doesn't constitute an emergency on my part!
 > --
 > Please see the official ORACLE-L FAQ: http://www.orafaq.com
 > --
 > Author: Charlie Mengler
 >   INET: charliem@mwh.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@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: Suzy Vordos
   INET: lvordos@qwest.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@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).




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mohammad Rafiq
  INET: rafiq9857@hotmail.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@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).

