Você está na página 1de 1

Document 452341.

Pgina 1 de 1

ORA-01555 And Other Errors while Exporting Table With LOBs, How To Detect Lob Corruption. (Doc ID 452341.1)
In this Document
Symptoms
Cause
Solution
References

APPLIES TO:
Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 25-Aug-2014***

To Bottom

Was this document helpful?


Yes
No

Document Details
Type:
Status:
Last Major
Update:
Last Update:

PROBLEM
PUBLISHED
25-Aug-2014
25-Aug-2014

Related Products

SYMPTOMS
When attempting to export tables that contain lobs, the following errors occur:
- using DataPump export, EXPDP:
Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA
ORA-31693: Table data object "HARVEST"."HARVERSIONDATA" failed to load/unload and is being
skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEPOPULATE callout
ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-22924: snapshot too old

- using original export, EXP:


. . exporting table HARVERSIONDATA
EXP-00056: ORACLE error 1555 encountered
ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-22924: snapshot too old

CAUSE
The cause of these errors could be a LOB corruption. Maintaining the LOBs will solve the problem with Exp/Expdp.

SOLUTION
The script below can always be used to detect the lob corruption

1. Run the following script against the LOB tables in order to check for corruption:
set serverout on
exec dbms_output.enable(100000);
declare
page
number;
len
number;
c
varchar2(10);
charpp number := 8132/2;
begin
for r in (select rowid rid, dbms_lob.getlength (<your_clob_column>) len
from
<your_table_with_clcob_column>) loop
if r.len is not null then
for page in 0..r.len/charpp loop
begin
select dbms_lob.substr (<your_clob_column>, 1, 1+ (page * charpp))
into
c
from
<your_table_with_clcob_column>
where rowid = r.rid;

Oracle Database - Enterprise


Edition
Oracle Database - Enterprise
Edition
Information Centers
Index of Oracle Database
Information Centers
[1568043.2]
Information Center: Overview of
Database Security Products
[1548952.2]
Information Center: Overview
Database Server/Client
Installation and
Upgrade/Migration [1351022.2]

Document References
Bug 5212539 - LOB corruption
for NOCACHE LOBs (ORA1555/ORA-22924) [5212539.8]
LOBS - Storage, Redo and
Performance Issues [66431.1]

Recently Viewed
Concurrent Writes May
Corrupt LOB Segment When
Using Auto Segment Space
Management (ORA-1555)
[253131.1]
How to Address Issues Where
AWR Data Uses Significant
Space in the SYSAUX
Tablespace [287679.1]
Export Receives The Errors
ORA-1555 ORA-22924 ORA1578 ORA-22922 [787004.1]
Ora-01031: Insufficient
Privileges, When Using The
Flashback_time Option with
EXPDP/IMPDP Network_link
[436106.1]
Export Receives The Errors
ORA-1555 ORA-22924 ORA1578 ORA-22922 [787004.1]
Show More

exception
when others then
dbms_output.put_line ('Error on rowid ' ||R.rid||' page '||page);
dbms_output.put_line (sqlerrm);
end;
end loop;
end if;
end loop;
end;
/

To solve the issue:


- Restore and recover the LOB segment using physical backup.
Or:
- Empty the affected LOBs using the UPDATE statement as mentioned in the Note 787004.1 and Note 833635.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=4201130414471... 26/09/2015

Você também pode gostar