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: undotbs01.dbf just keeps growing

Re: undotbs01.dbf just keeps growing

From: Jared Still <jkstill_at_cybcon.com>
Date: Tue, 30 Dec 2003 20:34:26 -0800
Message-ID: <F001.005DB4AD.20031230203426@fatcity.com>


Content-Type: text/plain
Content-Transfer-Encoding: 7bit

The data file(s) for your undo tablespace is likely set as autoextend with an unlimited size.

Run the attached script to check it.

If so, you can use this to put a limit on it:

alter database datafile '<your file name>' autoextend on next 200m maxsize 2000m;

Adjust the numbers for your system.

You should probably investigate why it continues to grow so large.

I haven't yet converted our production databases to UNDO, having only recently migrated to 9i, so I don't have any useful advice past this.

There are others that will be able to offer more for this. ( Dan Fink, where are you? This might even get Kirti to take a break from his book for a few minutes )

HTH Jared

On Tue, 2003-12-30 at 03:29, John Dunn wrote:
> I have recently installed Standard Engine 9.2 on AIX 5.2 and notice that the
> undotbs01.dbf file just keeps on growing. It is now over 1 GB.
>
> What could be the reason for this? Can I limit it's size and would this
> cause a problem too?
>
> John
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: John Dunn
> INET: john.dunn_at_sefas.co.uk
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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).
>

--=-6qQ48iznDIBZKxxlVKYS

Content-Disposition: attachment; filename=u.sql
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-sql; name=u.sql; charset=UTF-8

clear computes
clear breaks
clear columns

set pagesize 60 heading on

col file_name format a30
col tablespace_name format a15
col bytes format 999,999.99 head "BYTES|MEG" col autoextensible format a4 head "AUTO|XTND" col maxbytes format 999,999.99 head "MAX|BYTES|MEG" col increment_by format 999,999.99 head "INCR|BYTES|MEG" col maxfree format 999,999.99 head "MAX|MEG|FREE"

   =20
col cblocksize noprint new_value ublocksize set term off feed off
select value cblocksize
from v$parameter
where name =3D 'db_block_size';
set term on feed on

select

	f.name file_name,
	round(f.bytes/1049576,2) bytes,
	s.maxfree,
	df.autoextensible,
	round(df.maxbytes/1048576,2) maxbytes,
	round((df.increment_by * &ublocksize) / 1048576,2) increment_by
from v$datafile f, (
	select
		file_id,
		round(max(bytes/1048576),2) MAXFREE
	from dba_free_space
	group by file_id
)  s,
	v$tablespace ts,
	dba_data_files df
where f.file# =3D s.file_id(+)
	and f.name like '%'
	and ts.ts# =3D f.ts#
	and df.file_id =3D f.file#
	and ts.name like '%UNDO%'

order by tablespace_name
/

--=-6qQ48iznDIBZKxxlVKYS--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  INET: jkstill_at_cybcon.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Dec 30 2003 - 22:34:26 CST

Original text of this message

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