Home » RDBMS Server » Server Administration » sizing Undo tablespace
sizing Undo tablespace [message #168638] Fri, 21 April 2006 07:20 Go to next message
smriti_pal
Messages: 3
Registered: November 2005
Location: India
Junior Member

Hi All,

We have to resize the undotablespace in out testing environment
according to the size of rollback segment in Procudtion environment. Production env is Oracle7 and testing env is Oracle9i
IN production max(rssize) is - 31455232 and
SQL> select sum(bytes) from dba_segments where segment_type='ROLLBACK';
SUM (BYTES)
----------
839680000

SQL> select max (bytes) from dba_segments where segment_type='ROLLBACK';
MAX(BYTES)
----------
629145600


1) I do'nt understand y ther is a difference in rssize n bytes of v$rollstat and dba_segments respectively.
2) How to calculate the size
Re: sizing Undo tablespace [message #168640 is a reply to message #168638] Fri, 21 April 2006 07:37 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>> Production env is Oracle7 and testing env is Oracle9i
That will never work. Just a waste of time. Oracle 7 evolved into oracle 9i with huge differences ( Like from Homo habilis to Homo sapiens ).
In 9i, for Undo segments you need to consider UNDO_RETENTION ( RBS is not supposed to be used 9i).



Re: sizing Undo tablespace [message #168644 is a reply to message #168640] Fri, 21 April 2006 07:49 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
and to answer your question:
http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96536/ch3159.htm
RSSIZE 
Size (in bytes) of the rollback segment. This value differs by the number of bytes in one database block from the value of the BYTES column of the ALL/DBA/USER_SEGMENTS views.
Re: sizing Undo tablespace [message #168651 is a reply to message #168644] Fri, 21 April 2006 08:10 Go to previous messageGo to next message
smriti_pal
Messages: 3
Registered: November 2005
Location: India
Junior Member

Hi Mahesh,
thx a ton for replying.
I think i did'nt explained the question well.
Actually we have to design the undo tablespace in Oracle9i(test)
so that it can support largest running query in Oracle7(prod).
I was thinking to increase the size of undo tablespace by 30% of the existing size of maximum size of RBS.
Largest running query takes - 4hrs.
accordingly we have to size the undo_retention also.

thx,
Smriti
Re: sizing Undo tablespace [message #168654 is a reply to message #168651] Fri, 21 April 2006 08:19 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
That is what i was addressing.
You are designing something in 9.x (using undo_retention etc) and expect the same behaviour in 7.x? ( Apart from UNDO, there are many other thingies that vary here). THere is no UNDO_RENTION concept in 7.x. So SIZE is what matters. In 9i, size and undo_retention matters.

[Updated on: Fri, 21 April 2006 08:21]

Report message to a moderator

Previous Topic: Where is the 'NOT NULL' constraint held on the system?
Next Topic: sql*plus problem in 10g
Goto Forum:
  


Current Time: Fri Sep 20 14:31:40 CDT 2024