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 g560dST03413
 for <oracle-l@naude.co.za>; Wed, 5 Jun 2002 20:39:28 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA32877;
 Wed, 5 Jun 2002 09:37:24 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0047541D; Wed, 05 Jun 2002 09:33:38 -0800
Message-ID: <F001.0047541D.20020605093338@fatcity.com>
Date: Wed, 05 Jun 2002 09:33:38 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Richard Huntley <rhuntley@mindleaders.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Richard Huntley <rhuntley@mindleaders.com>
Subject: RE: Rollback segment shrinks
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: multipart/mixed;	boundary="----=_NextPartTM-000-5f2f3e2f-7890-11d6-8b0a-00b0d04949c1"
------=_NextPartTM-000-5f2f3e2f-7890-11d6-8b0a-00b0d04949c1
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C20CAD.AC6DD5B0"
------_=_NextPart_001_01C20CAD.AC6DD5B0
Content-Type: text/plain;
 charset="iso-8859-1"

Terry,

This query will tell you which process is using which rollback segment,
maybe
that'll help you backtrack to find out what's going on.

column "Oracle UserName" FORMAT a15
column "RBS Name" format a15
select r.name "RBS Name", p.spid, l.sid "ORACLE PID",
	s.username "Oracle UserName"
from v$lock l, v$process p, v$rollname r, v$session s
where s.sid = l.sid and l.sid = p.pid(+)
and r.usn = trunc(l.id1(+)/65536)
and l.type(+) = 'TX' and l.lmode(+) = 6
order by r.name
/

Then go into Instance Mananger and take a look at what sql is being executed
and when you find the one that's causing the problem, kill it.

HTH,
Rich


-----Original Message-----
Sent: Wednesday, June 05, 2002 12:34 PM
To: Multiple recipients of list ORACLE-L


Terry,

    Take a look to see if there is some long running process that is
inactive
and attached to a client that you know is not connected to the database.
I've
had this happen when someone lets the query from hell loose and then shuts
off
their PC or worse yet, does a 'set pause on' in their SQL session and
minimizes
SQL*Plus.  Your rollback usage will grow logarithmically since the query is
forcing it to be retained.

Dick Goulet

____________________Reply Separator____________________
Author: "Ball; Terry" <TBall@birch.com>
Date:       6/5/2002 7:53 AM

Oracle 8.1.6.3 on Sun Solaris 2.6.

The rollback tablespace filled up last night and the rollback segments
became full.  I added space to the tablespace and tried shrinking the
rollback segments.  They remained full, so I altered them offline and
online.  The extents are increasing, but I still can not get a shrink to
work.  If they don't stop increasing, my tablespace will fill up again and I
can't keep throwing disk at it.  Since this is a production system, bouncing
is not an option.

Any ideas?

TIA

Terry

Terry Ball, DBA
Birch Telecom
Work: 816-300-1335
FAX:  816-300-1800

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ball, Terry
  INET: TBall@birch.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: 
  INET: dgoulet@vicr.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).

------_=_NextPart_001_01C20CAD.AC6DD5B0
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Rollback segment shrinks</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Terry,</FONT>
</P>

<P><FONT SIZE=2>This query will tell you which process is using which rollback segment, maybe</FONT>
<BR><FONT SIZE=2>that'll help you backtrack to find out what's going on.</FONT>
</P>

<P><FONT SIZE=2>column &quot;Oracle UserName&quot; FORMAT a15</FONT>
<BR><FONT SIZE=2>column &quot;RBS Name&quot; format a15</FONT>
<BR><FONT SIZE=2>select r.name &quot;RBS Name&quot;, p.spid, l.sid &quot;ORACLE PID&quot;,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>s.username &quot;Oracle UserName&quot;</FONT>
<BR><FONT SIZE=2>from v$lock l, v$process p, v$rollname r, v$session s</FONT>
<BR><FONT SIZE=2>where s.sid = l.sid and l.sid = p.pid(+)</FONT>
<BR><FONT SIZE=2>and r.usn = trunc(l.id1(+)/65536)</FONT>
<BR><FONT SIZE=2>and l.type(+) = 'TX' and l.lmode(+) = 6</FONT>
<BR><FONT SIZE=2>order by r.name</FONT>
<BR><FONT SIZE=2>/</FONT>
</P>

<P><FONT SIZE=2>Then go into Instance Mananger and take a look at what sql is being executed</FONT>
<BR><FONT SIZE=2>and when you find the one that's causing the problem, kill it.</FONT>
</P>

<P><FONT SIZE=2>HTH,</FONT>
<BR><FONT SIZE=2>Rich</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: dgoulet@vicr.com [<A HREF="mailto:dgoulet@vicr.com">mailto:dgoulet@vicr.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, June 05, 2002 12:34 PM</FONT>
<BR><FONT SIZE=2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=2>Subject: Re:Rollback segment shrinks</FONT>
</P>
<BR>

<P><FONT SIZE=2>Terry,</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; Take a look to see if there is some long running process that is inactive</FONT>
<BR><FONT SIZE=2>and attached to a client that you know is not connected to the database.&nbsp; I've</FONT>
<BR><FONT SIZE=2>had this happen when someone lets the query from hell loose and then shuts off</FONT>
<BR><FONT SIZE=2>their PC or worse yet, does a 'set pause on' in their SQL session and minimizes</FONT>
<BR><FONT SIZE=2>SQL*Plus.&nbsp; Your rollback usage will grow logarithmically since the query is</FONT>
<BR><FONT SIZE=2>forcing it to be retained.</FONT>
</P>

<P><FONT SIZE=2>Dick Goulet</FONT>
</P>

<P><FONT SIZE=2>____________________Reply Separator____________________</FONT>
<BR><FONT SIZE=2>Author: &quot;Ball; Terry&quot; &lt;TBall@birch.com&gt;</FONT>
<BR><FONT SIZE=2>Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6/5/2002 7:53 AM</FONT>
</P>

<P><FONT SIZE=2>Oracle 8.1.6.3 on Sun Solaris 2.6.</FONT>
</P>

<P><FONT SIZE=2>The rollback tablespace filled up last night and the rollback segments</FONT>
<BR><FONT SIZE=2>became full.&nbsp; I added space to the tablespace and tried shrinking the</FONT>
<BR><FONT SIZE=2>rollback segments.&nbsp; They remained full, so I altered them offline and</FONT>
<BR><FONT SIZE=2>online.&nbsp; The extents are increasing, but I still can not get a shrink to</FONT>
<BR><FONT SIZE=2>work.&nbsp; If they don't stop increasing, my tablespace will fill up again and I</FONT>
<BR><FONT SIZE=2>can't keep throwing disk at it.&nbsp; Since this is a production system, bouncing</FONT>
<BR><FONT SIZE=2>is not an option.</FONT>
</P>

<P><FONT SIZE=2>Any ideas?</FONT>
</P>

<P><FONT SIZE=2>TIA</FONT>
</P>

<P><FONT SIZE=2>Terry</FONT>
</P>

<P><FONT SIZE=2>Terry Ball, DBA</FONT>
<BR><FONT SIZE=2>Birch Telecom</FONT>
<BR><FONT SIZE=2>Work: 816-300-1335</FONT>
<BR><FONT SIZE=2>FAX:&nbsp; 816-300-1800</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Please see the official ORACLE-L FAQ: <A HREF="http://www.orafaq.com" TARGET="_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Author: Ball, Terry</FONT>
<BR><FONT SIZE=2>&nbsp; INET: TBall@birch.com</FONT>
</P>

<P><FONT SIZE=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=2>San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet access / Mailing Lists</FONT>
<BR><FONT SIZE=2>--------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>To REMOVE yourself from this mailing list, send an E-Mail message</FONT>
<BR><FONT SIZE=2>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=2>(or the name of mailing list you want to be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=2>also send the HELP command for other information (like subscribing).</FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Please see the official ORACLE-L FAQ: <A HREF="http://www.orafaq.com" TARGET="_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Author: </FONT>
<BR><FONT SIZE=2>&nbsp; INET: dgoulet@vicr.com</FONT>
</P>

<P><FONT SIZE=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=2>San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet access / Mailing Lists</FONT>
<BR><FONT SIZE=2>--------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>To REMOVE yourself from this mailing list, send an E-Mail message</FONT>
<BR><FONT SIZE=2>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=2>(or the name of mailing list you want to be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=2>also send the HELP command for other information (like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C20CAD.AC6DD5B0--

------=_NextPartTM-000-5f2f3e2f-7890-11d6-8b0a-00b0d04949c1--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Richard Huntley
  INET: rhuntley@mindleaders.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).

