Dear members
Can someone tell me a way of validating an export dump file? How can I make sure I can recover my entire database from the dump file of a full export???
Here is a script that would do the check and make sure that the export and imports were successfull...
This gives schema wise total object count, valid object count and invalid object count ...
------------------------cut here-------------------------------------
set linesize 80
set pagesize 80
spool repobjcount.lst
ttitle ' ' skip 2 -
center 'ORACLE RDBMS' skip 1 -
center 'Object Count Report' right 'Page:' format 99 sql.pno skip 2
col owner format a16 heading 'Object Owner'
col object_type format a20 heading 'Object Type'
col count(*) format 9999 heading 'Object|Count'
break on owner
compute sum of count(*) on owner skip 1
select owner,object_type, count(*)
from dba_objects
group by owner,object_type;
ttitle ' ' skip 2 -
center 'ORACLE RDBMS' skip 1 -
center 'Valid Object Count Report' right 'Page:' format 99 sql.pno skip 2
break on owner
compute sum of count(*) on owner skip 1
select owner,object_type, count(*)
from dba_objects
where status = 'VALID'
-- where status = 'INVALID'
group by owner,object_type;
ttitle ' ' skip 2 -
center 'ORACLE RDBMS' skip 1 -
center 'Invalid Object Count Report' right 'Page:' format 99 sql.pno skip 2
break on owner
compute sum of count(*) on owner skip 1
select owner,object_type, count(*)
from dba_objects
where status = 'INVALID'
group by owner,object_type;
spool off
clear columns
clear breaks
--set feedback on
set verify on
------------------------cut here-------------------------------------
Curtesy to the poster who ever had posted this script earlier..
In the mean time, you also could write a script that would scan your logfile and report of any problems in the export. The following link would provide you with the list on export errors, that you can make use of...
Bookmarks