GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Oracle
Go To First  |  Previous Question  |  Next Question 
 Oracle  |  Question 3 of 76    Print  
what is SNAPSHOT-TOO-OLD error? How does snapshot-too-old error can be rectified in Oracle 9i?

  
Total Answers and Comments: 5 Last Update: July 23, 2007     Asked by: SaratKumar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 20, 2005 10:54:15   #1  
purushgeek Member Since: October 2005   Contribution: 3    

RE: what is SNAPSHOT-TOO-OLD error? How does snapshot-...

The SNAPSHOT_TOO_OLD  erro will come ... the query will goves into cartesion product  or infinite loop .

Other case is suppose ur updated loarge no of rows at atime without saveing the records . In this case u can use commit statement for every 500 records then u can avoid this problam. Or ask DBA to extend the table space for this segment.


 
Is this answer useful? Yes | No
November 04, 2005 00:51:03   #2  
Vishnu        

RE: what is SNAPSHOT-TOO-OLD error? How does snapshot-...

Snapshot_too_old exception is thrown when ur performing very large DML operation without commiting, this can be resolved by increasing undo retention period. contact ur DBA to check for Undo retention period


 
Is this answer useful? Yes | No
January 13, 2006 05:17:40   #3  
anil_pinto        

RE: what is SNAPSHOT-TOO-OLD error? How does snapshot-...
when switch on to one undo tablespace to another that time for prevoius currently runnig tables the data will be not available so this time also his error will occur.for rectify this error make undo tablespace size large.to avoid this error set undo_suppress_error=true
 
Is this answer useful? Yes | No
March 28, 2006 23:10:38   #4  
Deep Chandra Pandey        

RE: what is SNAPSHOT-TOO-OLD error? How does snapshot-...

There may two Cause for SNAPSHOT-TOO-OLD error:-

(1) Since space managemnt in undo segment follo LRU algorihm.So in space allocated for to undo segment will so small to data may frequently swaped out from undo segement and may cause SNAPSHOT-TOO-OLD error.

(2) It also depend on the undo retention policy set by the DBA.If the undo retention time is set to very low the the data will sweped out too early and may cause SNAPSHOT-TOO-OLD error.

Thanks and Regards

Deep Chandra Pandey


 
Is this answer useful? Yes | No
July 23, 2007 18:54:21   #5  
Sandeep Deshmukh        

RE: what is SNAPSHOT-TOO-OLD error? How does snapshot-...
When any DML operation is taking long time which may lead reuse of datablocks of undo segment by another  DML, in this case oracle will throw snapshot too old error.

For any DML oracle stores the undo image in rollback segment, suppose transaction A is in progress which cause datablock from undo segment been used by this transaction.

And now if another transaction B is started which need datablocks from undo segment to keep undo copy, but if rollback segment is not large enough to provide the datablocks for second transaction B, then transaction B will use the datablock which are already in use to retain the undo image for transaction A, and this will lead to snap shot too old.

Simple solution change the commit point by chaning checkpoint frequency. And if it's possible then increase undo segment size by adding datafile to undo tablespace.

Thanks.
Sandeep Deshmukh

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape