What is ORA-01555 - Snapshot Too Old error and how do you avoid it?

1 Answer

Answer :

The ORA-01555 is caused by Oracle read consistency mechanism. If you have a long running SQL that starts at  11:30 AM, Oracle ensures that all rows are as they appeared at 11:30 AM, even if the query runs until noon! Oracles does this by reading the "before image" of changed rows from the online undo segments. If you have lots  of updates, long running SQL and too small UNDO, the ORA-01555 error will appear. ORA-01555 error relates to  insufficient undo storage or a too small value for the undo_retention parameter:
ORA-01555: snapshot too old: rollback segment number string with name "string" too small Cause: Rollback records needed by a reader for consistent read are overwritten by other writers. Action: If in Automatic Undo Management mode, increase the setting of UNDO_RETENTION. Otherwise, use larger  rollback segments.
You can get an ORA-01555 error with a too-small undo_retention, even with a large undo tables. However, you can set a super-high value for undo_retention and still get an ORA-01555 error. The ORA-01555 snapshot too old error can be addressed by several remedies:
▪ Re-schedule long-running queries when the system has less DML load
▪ Increasing the size of your rollback segment (undo) size
▪ The ORA-01555 snapshot too old also relates to your setting for automatic undo retention ▪ Don't fetch between commits

Related questions

Description : What is ORA-01555 - Snapshot Too Old error and how do you avoid it?

Last Answer : The ORA-01555 is caused by Oracle read consistency mechanism. If you have a long running SQL that starts at 11:30 AM, Oracle ensures that all rows are as they appeared at 11:30 AM, ... -01555 snapshot too old also relates to your setting for automatic undo retention ▪ Don't fetch between commits

Description : Explain an ORA-01555

Last Answer : You get this error when you get a snapshot too old within rollback. It can usually be solved by increasing the undo retention or increasing the size of rollbacks. You should also look at the logic involved in the application getting the error message.

Description : What are the minimum parameters should exist in the parameter file (init.ora) ?

Last Answer : DB NAME - Must set to a text string of no more than 8 characters and it will be stored inside the datafiles, redo log files and control files and control ... an ORACLE instance acquires at database startup. Also optionally LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and LICENSE_MAX_USERS.

Description : How do you switch from an init.ora file to a spfile?

Last Answer : Issue the create spfile from pfile command.

Description : What should you do if you encounter an ORA-600?

Last Answer : Contact Oracle Support

Description : What is a SNAPSHOT LOG ?

Last Answer : A snapshot log is a table in the master database that is associated with the master table. ORACLE uses a snapshot log to track the rows that have been updated in the master table. Snapshot logs are used in updating the snapshots based on the master table.

Description : What is snapshot log ?

Last Answer : It is a table that maintains a record of modifications to the master table in a snapshot. It is stored in the same database as master table and is only available for simple snapshots. It should be created before creating snapshots.

Description : What is a SNAPSHOT ?

Last Answer : Snapshots are read-only copies of a master table located on a remote node which is periodically refreshed to reflect changes made to the master table.

Description : When will the data in the snapshot log be used?

Last Answer : We must be able to create a after row trigger on table (i.e., it should be not be already available) After giving table privileges. We cannot specify snapshot log name because oracle uses the ... 23 characters. (The table name created will be MLOGS_tablename, and trigger name will be TLOGS name).

Last Answer : The director of the full-length film 'Ora 11 Jan' - - Chashi Nazrul Islam.

Description : Four routers haveto be interconnected in a point-to-point Network. Each pair of root us may connect by a high-speed line, a medium speed line ora low speed line. Find the total number of topologies. A. 12 B. 81 C. 48 D. 729

Last Answer : 729

Description : How you will avoid your query from using indexes?

Last Answer : SELECT * FROM emp Where emp_no+' '=12345; i.e you have to concatenate the column name with space within codes in the where condition. SELECT /*+ FULL(a) */ ename, emp_no from emp where emp_no=1234; i.e using HINTS

Description : How you will avoid duplicating records in a query?

Last Answer : By using DISTINCT

Description : How do you trap the error in forms 3.0 ?

Last Answer : using On-Message or On-Error triggers.

Description : Select NORTH', CUSTOMER From CUST_DTLS Where REGION = N' Order By CUSTOMER Union Select EAST', CUSTOMER From CUST_DTLS Where REGION = E' Order By CUSTOMER The above is a) Not an error b) Error - ... ' and SOUTH' c) Error - the string should be in double quotes d) Error - ORDER BY clause

Last Answer : d) Error - ORDER BY clause

Description : SQL> SELECT * FROM MY_SCHEMA.MY_TABLE; SP2-0678: Column or attribute type cannot be displayed by SQL*Plus Why I’m getting this error?

Last Answer : The table has a BLOB column.

Description : Did you take a snapshot today? Want to share it?

Last Answer : I took this this morning and chuckled to myself “Fat Barry on Fat Tuesday”....my dad once referred to my cat Barnabus as Fat Barry and I laugh hysterically every time I call him that. Not sure why.

Description : Having a snapshot of a website emailed to you on a weekly basis?

Last Answer : I don’t know about the service, but why not make an outlook/ical event that reoccurs every friday with the URL in it? Provided you are behind a computer that day.

Description : Is there a free program that allows me to take a snapshot of whatever is on my computer screen?

Last Answer : first of all, which OS ?

Description : Can anyone send me the link to the official Minecraft 1.17 snapshot website most people use?

Last Answer : By most people, I mean like the youtubers.

Description : Report snapshot:

Last Answer : A report that contains data captured at a specific point in time. A report snapshot is actually a report definition that contains a dataset instead of query instructions.

Description : What is Snapshot parameter in SSRS?

Last Answer : When a report is saved in a snapshot history, it is allocated a time or date to uniquely identify that report. Snapshot parameter is used to get back these historical reports by passing this time or ... report is processed. Rendering Extensions are: HTML, MHTML, EXCEL, CSV, IMAGE, PDF, and XML.

Description : What is report snapshot in SSRS?

Last Answer : Report snapshot is a report which contains layout information and a dataset that is extracted at a particular point of time. When the new snapshot is created the previous report snapshot will be overwritten.

Description : In snapshot, …………………. clause tells oracle how long to wait between refreshes. A) Complete B) Force C) Next D) Refresh

Last Answer : D) Refresh

Description : The following describes means to create a OEM V1.x (very old!!!) repository on WindowsNT:

Last Answer : Create a tablespace that would hold the repository data. A size between 200- 250 MB would be ideal. Let us call it Dummy_Space. . Create an Oracle user who would own this repository. Assign ... would trigger the creation of the repository. From now on, Enterprise manager is ready to accept jobs.

Description : To avoid large centering error with very short legs, observations are generally made (A) To chain pins (B) By using optical system for centering the theodolite (C) To a target fixed on theodolite tripod on which theodolite may be fitted easily (D) All the above

Last Answer : (C) To a target fixed on theodolite tripod on which theodolite may be fitted easily

Description : What career paths seem too dangerous to avoid getting involved in crime involuntarily?

Last Answer : If every show about cartels is to be believed, then lawyer.

Description : Isn't it too late to avoid a huge increase in mass shootings in the United States?

Last Answer : What if they don't want to regulate guns more because they'd rather us keep killing each other, creating chaos and fear to allow more control? Anytime gun control gets brought up, people just buy more ... is over and Peace on earth, and the probable best selling gift this Christmas may be guns..

Description : Wrong about being wrong. How do you avoid not finding out till it's too late?

Last Answer : You either get smarter and avoid getting into the loop, or you let it go and get out.

Description : How do I avoid having my large Hydrangea plowers droop as they are too big for their stems?

Last Answer : I would snip off a couple to let them stand up straighter..............in the late fall you need to give them a better trim......Those branches could break if they hang on the ground with all those heavy flowers..............

Description : How can you avoid too much attachment to your smartphone?

Last Answer : You can avoid so much attachment to your phone by doing it the old fashioned way , leave your phone somewhere for a good few hours. I would suggest filling your free time with as many non-phone ... you will forget all about your phone). You could pick up other things such as cooking or painting.

Description : Which type of product might require a more direct marketing channel to avoid delays and too much handling? A. products in their decline stage B. products in their maturity stage C. perishable products D. high-priced products

Last Answer : A. products in their decline stage

Description : If a store makes an error in your favor and returns too much $$ to you, do you speak up?

Last Answer : Of course. Always. And when it goes the other way, too.

Description : When I try to get a definition on the dictionary webapp, I get an error msg "Cannot open pop-up because there are too many windows open". Whst does it mean?.

Last Answer : Can you link the webapp? There are lots out there! I’d like to see if it is a safari issue or a coding one.

Description : Measuring with a 30 m chain, 0.01 m too short, introduces (A) Positive compensating error (B) Negative compensating error (C) Positive cumulative error (D) Negative cumulative error

Last Answer : (C) Positive cumulative error

Description : Characteristic of a good test A. Reasonable probability of catching an error and can be redundant B. It is not simple or too complex C. Reasonable probability of catching an error and cannot be redundant D. It is either simple or too complex

Last Answer : C. Reasonable probability of catching an error and cannot be redundant

Description : What does "jumps off the screen" mean?

Last Answer : answer:AMD is a relatively small manufacturer but well established in the industry. In this context, AMD jumps off the screen at the guy doing the research into acquiring companies for ... chip manufacturing division, but AMD is the one that really stands out from an acquisition perspective.

Description : How to add conditions in select statement in oracle?

Last Answer : Just add the decode

Description : How can I dump an oracle schema to a LOCAL file over a network connection from sqlplus?

Last Answer : By connecting and spooling are you excluding the exp/imp commands (or expdb/impdb in 10g)?

Description : What are the two ways to incorporate images into a oracle forms application?

Last Answer : Boilerplate Images Image_items

Description : Can one export a subset of a table? (for DBA

Last Answer : From Oracle8i one can use the QUERY= export parameter to selectively unload a subset of the data from a table. Look at this example: exp scott/tiger tables=emp query=\"where deptno=10\"

Description : What are the types of visual attribute settings?

Last Answer : Custom Visual attributes Default visual attributes Named Visual attributes. Window

Description : How does one use the import/export utilities? (for DBA

Last Answer : Look for the "imp" and "exp" executables in your $ORACLE_HOME/bin directory. One can run them interactively, using command line parameters, or using parameter files. Look at the imp/exp parameters ... and export data with the "Schema Manager" GUI that ships with Oracle Enterprise Manager (OEM).

Description : what is a display item?

Last Answer : Display items are similar to text items but store only fetched or assigned values. Operators cannot navigate to a display item or edit the value it contains.

Description : What is import/export and why does one need it? (for DBA

Last Answer : The Oracle export (EXP) and import (IMP) utilities are used to perform logical database backup and recovery. They are also used to move Oracle data from one machine, database or schema to ... corruption. Ensure that all the data can be read. . Transporting tablespaces between databases . Etc.

Description : Are there any troubleshooting tips for OEM? (for DBA

Last Answer : . Create the OEM repository with a user (which will manage the OEM) and store it in a tablespace that does not share any data with other database users. It is a bad practice to create ... successfully. Check the log to see the results of the execution rather than relying on this status.

Description : Where can one get more information about TCL? (for DBA

Last Answer : One can write custom event checking routines for OEM using the TCL (Tool Command Language) language. Check the following sites for more information about TCL: . The Tcl Developer Xchange - ... the OraTCL package . Tom Poindexter's Tcl Page - Oratcl was originally written by Tom Poindexter

Description : How does one start the Oracle Intelligent Agent? (for DBA

Last Answer : One needs to start an OIA (Oracle Intelligent Agent) process on all machines that will to be managed via OEM. For OEM 9i and above:

Description : What is the Oracle Intelligent Agent? (for DBA

Last Answer : The Oracle Intelligent Agent (OIA) is an autonomous process that needs to run on a remote node in the network to make the node OEM manageable. The Oracle Intelligent Agent is ... events registered in Enterprise Manager; and . Executing tasks associated with jobs submitted to Enterprise Manager.

Description : What are the types of SQL Statement ?

Last Answer : Data Definition Language : CREATE,ALTER,DROP,TRUNCATE,REVOKE,NO AUDIT & COMMIT.