Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Tbs READ ONLY and Snapshot too old

Tbs READ ONLY and Snapshot too old

2004-06-18       - By Binley Lim
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

MessageActually, you are both right.

[BL] They cannot both be right -- either you get ORA-1555 (See ORA-1555.ora-code.com) on a READ ONLY tablespace or you do not.

Delayed Block Cleanout can cause an ORA-1555 (See ORA-1555.ora-code.com), even in a read only tablespace.

[BL] Agreed.

However, if the tablespace has been read only "for a long enough period of time ",
every query against it will realize that all updates to objects in that tablespace have
been committed, and will never try to reconstruct the table.

[BL] Disagree. What is "long enough " and how can a query "realise " something? Problem is the ITL entries which tell the query to visit the rollback segments cannot be cleaned out because they are in a READ ONLY tablespace. Every time the block(s) are queried, they repeat the same exercise. This problem is magnified when you do selective restores of tablespaces without the rollback segments, and find you cannot read from those tablespaces without the rollback tablespaces. Also, you don 't reconstruct the table, but just reconstruct the individual blocks.

As it happens, I have never had an ORA-1555 (See ORA-1555.ora-code.com) on a table which is (was?) being
updated during the query; I 've had lots of them due to delayed block cleanout.
This was my first thought when I read the original post, however, as I read the OP,
I think that the errors are appearing after the tablespace has been read only
for several days.

[BL] A table being updated is guaranteed to have its undo entries intact.Since this is the only way the rollback can happen if the update does not commit. Your query will find what it needs in the rollback segments, and not get an ORA-1555 (See ORA-1555.ora-code.com), unless the update has already committed, or rolled-back.

As a test, (if the OP is still reading, and my time sequence is spot on), try
computing all statistics on all objects in the tablespace (not estimate, full
compute). This will visit every block on all tables and indexes (if any are
in the tablespace) and should clean out all the blocks.

[BL] Much easier to simply do "select max(column)... " on an un-indexed column to cause FTS to cause cleanouts. Statistics is a bit of an overkill.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML > <HEAD > <TITLE >Message </TITLE >
<META http-equiv=Content-Type content= "text/html; charset=iso-8859-1 " >
<META content= "MSHTML 5.50.4522.1800 " name=GENERATOR >
<STYLE > </STYLE >
</HEAD >
<BODY bgColor=#ffffff >
<DIV > <FONT face=Arial size=2 >Actually, you are both right. </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 >[BL] They cannot both be right -- either you get
ORA-1555 (See ORA-1555.ora-code.com) on a READ ONLY tablespace or you do not. </DIV >
<DIV > <BR >Delayed Block Cleanout can cause an ORA-1555 (See ORA-1555.ora-code.com), even in a read only
tablespace. </DIV >
<DIV >  </DIV >
<DIV >[BL] Agreed. <BR >  <BR >However, if the tablespace has been read only
"for a long enough period of time ", <BR >every query against it will realize that
all updates to objects in that tablespace have <BR >been committed, and will never
try to reconstruct the table. </DIV >
<DIV >  </DIV >
<DIV >[BL] Disagree. What is "long enough " and how can a query "realise "
something? Problem is the ITL entries which tell the query to visit
the rollback segments cannot be cleaned out because they are in a READ ONLY
tablespace. Every time the block(s) are queried, they repeat the same exercise.
This problem is magnified when you do selective restores of tablespaces without
the rollback segments, and find you cannot read from those tablespaces without
the rollback tablespaces. Also, you don 't reconstruct the table, but just
reconstruct the individual blocks. <BR >  <BR >As it happens, I have never
had an ORA-1555 (See ORA-1555.ora-code.com) on a table which is (was?) being <BR >updated during the query;
I 've had lots of them due to delayed block cleanout. <BR >This was my first
thought when I read the original post, however, as I read the OP, <BR >I think
that the errors are appearing after the tablespace has been read only <BR >for
several days. <BR >  </DIV >
<DIV >[BL] A table being updated is guaranteed to have its undo entries
intact.Since this is the only way the rollback can happen if the update does not
commit. Your query will find what it needs in the rollback segments, and not get
an ORA-1555 (See ORA-1555.ora-code.com), unless the update has already committed, or rolled-back. </DIV >
<DIV >  </DIV >
<DIV >As a test, (if the OP is still reading, and my time sequence is spot on),
try <BR >computing all statistics on all objects in the tablespace (not estimate,
full <BR >compute).  This will visit every block on all tables and indexes
(if any are <BR >in the tablespace) and should clean out all the blocks. <BR > </DIV >
<DIV >[BL] Much easier to simply do "select max(column)... " on an un-indexed
column to cause FTS to cause cleanouts. Statistics is a bit of an
overkill. </DIV > </FONT > </BODY > </HTML >