| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: shrinking undo tablespace
I came up with this question because the other day I was creating a new
instance for a small development so my disk space was limited then I
noticed the undo was assigned 500MB space! I thought hell in 8i the
database assistant creates 525MB by default and it seems this happen in
9i too but in 8i I always manually resized so I had more space for data.
which was not possible with that new 9i instance I was creating, I didnt
know how to reduce number of RBS to make it consumes less space! My undo
retention is set at 300, 5 minutes
Regarding your suggestions, Howard you said we could have mire than one undo at time, how is this possible. In the ILT courses the guides states that a instance can only have one undo tablespace I was not very convinced so I actually tried to put undo_tablespace="undo1, undo2" which does not work.
Peter again from ILT guides it states that smon wakes up every 12 hours in normal activities. I guess when you say "SMON will shrink the undo segments when necessary" you probably mean when there are more activities?
Sometimes we may also run into situations where the undo might eats up a whole filesystem..... after high activities but after these activities ceases there is only one transaction going but the undo is still big in this case we would have to wait 12 hours for SMON to wakeup? Or we could wakeup SMON with oradebug to do his job?
Pete Sharman wrote:
> In article <aetrje$t95$1_at_lust.ihug.co.nz>, "Howard says... >
> > From what I understand, SMON will shrink the undo segments when necessary, and > undo segments will be removed automatically when no longer needed as well. Now > that doesn't address the tablespace size issue, but what it should mean is that > you can manually shrink the file in the same way as normal tablespace files. > Seems to work OK as you can see from this: > > SQL> alter database datafile 'd:\oracle\oradata\ora92\undotbs01.dbf' resize 200M > ; > > Database altered. > > Of course, as HJR points out, the undo tablespace size grows as Oracle needs it > to, so you may end up causing yourself some grief by manually interfering with > what is supposed to be an automatic process. There may be times when that is > valid (say for example you know that you have a huge monthly update and small > update amounts in between), but if you have the space for the huge monthly > updates, then why worry about leaving the tablespace as big as is needed for the > monthly processing? > >
> > HTH. Additions and corrections welcome. > > Pete > > SELECT standard_disclaimer, witty_remark FROM company_requirements; > >Received on Fri Jun 21 2002 - 01:07:04 CDT
![]() |
![]() |