GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Concepts and Architecture
Go To First  |  Previous Question  |  Next Question 
 Concepts and Architecture  |  Question 66 of 74    Print  
what is meant by snapshot error? expain it.

  
Total Answers and Comments: 5 Last Update: April 24, 2008     Asked by: senthamil selvi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 26, 2006 04:55:29   #1  
HImanshu        

RE: what is meant by snapshot error? expain it.

Many time people come accross Snapshot too Old error. there are many reasons for this error but the most basic and important one is that the rollback segments are too small.

Accordingly this error can arise when a long-running query is being executed at the same time as data manipulation transactions.

Possible Remedies:

  • Increase the size of all the roll back segments.

  • Add more rollback segments.

  • Increase the OPTIMAL size of the roll back segments i.e.:

Alter rollback segment XXX storage (optimal NNNK);

  • If the error seems to be associated with a particular application (job or script and not necessarily the one producing the error) then investigate whether that application s use of rollback space could be reduced. For example consider whether the application could 'commit' more frequently. For long running applications (particularly if it is the application that is encountering the error) consider whether any record sets could be refreshed periodically rather than relying upon the same record set contents for the entire run of the application.


 
Is this answer useful? Yes | No
November 15, 2006 06:09:08   #2  
suresha mathada        

RE: what is meant by snapshot error? expain it.

hi

The snap shot too old can also arise because of LOB.

If we do concurrant writes to same segment then ORACLE will alllow it.

But the data will be corrupted. The subsequent reads will give rise to this error


 
Is this answer useful? Yes | No
December 01, 2006 06:03:44   #3  
sujatha dhanesh        

RE: what is meant by snapshot error? expain it.

Yes as U said

If on one side a query is executed and simultaneously a DML is happening at the same time. THEN the user doing the DML action gives a commit in between while the query is still executing on the other side then on the query side U get this message SNAPSHOT TOO OLD

Suggestion :

Alter system set UNDO_retention 900 ;

or give a large value for undo retention ie. the undo block will be kept in the memory until 900 microseconds even after the commit transaction on the same table so that the query ends within that.


 
Is this answer useful? Yes | No
March 25, 2007 07:17:33   #4  
Mohammed Abdul Afroze        

RE: what is meant by snapshot error? expain it.
Answer:

Avoiding Snap Shot too old error-(oerr ora 01555).

First thing here we understood how is the rbs works.This will work in circular fashion by looping around the reuse of the extents which has been released by the commited transactions.Thus in case of long running queries if the data is change while the query is running rbs created for that change for the long running query.When these extents are reused while these were still needed by the query this error occurs because oracle can no longer provided a read consistent image of the data.

To avoid this error.You need to postpone the reuse of the extents.Thus increasing the size of the rbs and the optimal parameter should do the trick.Commiting less often would be another solution.As until transaction is commited rollback segment cannot be reused.And thus reducing the chances of a snapshot too old error.

 
Is this answer useful? Yes | No
April 24, 2008 22:42:29   #5  
sanjayoracle Member Since: April 2008   Contribution: 4    

RE: what is meant by snapshot error? expain it.

Just in simple words.....

Ora01555 error occurs when a transation fails when it cannot able to find read consistence image in rollback segment.

To solve this problem: Increse the Undo_Retention

Cheers :)


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape