Home » RDBMS Server » Server Administration » undo-retention=0
undo-retention=0 [message #115132] Thu, 07 April 2005 13:34 Go to next message
hvdtol
Messages: 12
Registered: April 2005
Junior Member
We are migrating Oracle from 817 to 9205.
We have set the undo_retention parameter to 900, but i wonder why to set it.
We have defined the undo tablespace with a max of 2Gb.

When i set the undo_retention=0, will Oracle behave in same same way as the "old" rollback segments, or should i always use a value > 0?
We are not interested in using flash-back queries at all.
Is setting it to zero a safe value?

Thank you for your answer.
Best regards.

Harry vd Tol
Re: undo-retention=0 [message #115137 is a reply to message #115132] Thu, 07 April 2005 13:52 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Leave the undo_retention to atleast the default.
Else you may end-up with snapshot too old error.

If the UNDO_RETENTION initialization parameter is not specified, the default value is 900 seconds.

to reset this would be the command.
ALTER SYSTEM SET UNDO_RETENTION = 30000;

quoting docs

Committed undo information normally is lost when its undo space is overwritten by a newer transaction. But for consistent read purposes, long running queries might require old undo information for undoing changes and producing older images of data blocks. The initialization parameter, UNDO_RETENTION, provides a means of explicitly specifying the amount of undo information to retain. With a proper setting, long running queries can complete without risk of receiving the "snapshot too old" error.
Re: undo-retention=0 [message #115139 is a reply to message #115137] Thu, 07 April 2005 14:04 Go to previous messageGo to next message
hvdtol
Messages: 12
Registered: April 2005
Junior Member
I still have my doubts.
The maximum size is 2Gb. If i set the value to 900 seconds, it can still reached the maximum value, which then can leads to the snapshot too old message. Or am i wrong?
For me it looks the same as setting it to zero.
Re: undo-retention=0 [message #115146 is a reply to message #115139] Thu, 07 April 2005 14:19 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
900 secs is just the default value.
the value should a little more than time taken by your longest running transaction.
Re: undo-retention=0 [message #115155 is a reply to message #115146] Thu, 07 April 2005 14:52 Go to previous message
hvdtol
Messages: 12
Registered: April 2005
Junior Member
Mahseh,

I have been reading it all over and i understand now.
Thank you.
Previous Topic: ORA-01092: ORACLE instance terminated. Disconnection forced
Next Topic: problem droping locally managed tablespace in oracle 8i
Goto Forum:
  


Current Time: Fri Jan 10 04:50:41 CST 2025