How to fix ORA01555

Posted on 2010-01-09
Medium Priority
Last Modified: 2013-12-18
Oralce ORA01555 error in oracle 10g  How to fix it.
Question by:yendluri
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 26273323
ORA 01555  Error in Oracle.

Author Comment

ID: 26273328
Oracle ORA 01555 Error
LVL 15

Accepted Solution

Shaju Kumbalath earned 1000 total points
ID: 26273405
The UNDO tablespace is too small. Increase the size of the UNDO tablespace.
The UNDO tablespace should be large enough to store the undo data generated by
active transactions as well as those preserved to honor the undo retention setting.
LVL 11

Assisted Solution

it-rex earned 1000 total points
ID: 26276221
ORA01555 is the infamous snapshot too old error!
1- are using automatic undo mangamanet

The following initialisation parameters can be used to enable and control AUM (do a "show parameters undo" to see your settings):

- One MUST set this parameter to AUTO to enable Automatic Undo Management. The default is MANUAL for both Oracle 8i and Oracle 9i databases. One must restart the database to switch between MANUAL and AUTO mode.

UNDO_TABLESPACE (valid UNDO-type tablespace name)
- Specifies which undo tablespace to use.

if you are not using it  see this link in how to set it up

if it is already used then as shajukg said
UNDO_RETENTION (time in seconds)
- Specifies the amount of undo the instance should attempt to retain. The default is 9000 seconds or 15 minutes. If the UNDO tablespace is too small compared to the retention time, one can still get the famous ORA-1555 errors.

- Specifies whether or not to return an exception when DDL and "SET TRANSACTION USE ROLLBACK SEGMENT" statements are issued. The default is FALSE.
values for both needs to be reconsidered!

========why do you get old snapshot is because

roll back segments work in a circular fashion by looping around to reuse the extents which have been released by committed transactions. Thus in case of long running queries if data is changed while the query is running, rollback segments created for that change are needed to make a read consistent image for the lon running query. When these extents are reused while these were still need by the query, this error occurs, because oracle can no longer provide a read consistent image of the data.

To avoid this error you need to postpone the reuse of extents. Thus increasing the size of rollback segments and the value of OPTIMAL parameter should do the trick. Comitting less often would be other solution. As until transaction is comitted rollback segment can not be reused thus reducing the chances of a snapshot too old error.

details for how to avoid this issue is in here


Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question