Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Do "imp", "exp", and "sqlplus" return status?
Alex Jentilucci wrote:
> > > > > Beware! exp can fail to export a table and still end with a zero code! > > > > Care to share with us events that would cause this to happen??
This is part of an export log:
. . exporting table ZZJD00A 1002718 rows
exported
. . exporting table ZZJD00O 4507 rows
exported
. . exporting table ZZJD00P 156 rows
exported
. . exporting table ZZJD00T 8821 rows
exported
. . exporting table ZZLICENSE 396 rows
exported
. . exporting table ZZZCOEPB_OLD
EXP-00014: error on row 13622 of table ZZZCOEPB_OLD
EXP-00222:
System error message 2
EXP-00008: ORACLE error 1578 encountered ORA-01578: ORACLE data block corrupted (file # 17, block # 102268) ORA-01110: data file 17: '/oracle/CCC/sapraw/btabd_1'exported
. about to export OPS$PCCADM's tables ...
. . exporting table SAPUSER 1 rows
if [[ $(grep -i -c "export terminated successfully without warnings"
$HOME/local
/export.log) > 0 ]]
then
mailx -s "Export $ORACLE_SID succeeded" jh33378_at_deere.com
ou90221_at_deere.com <<-EOF3
Export $ORACLE_SID succeeded. EOF3
Export $ORACLE_SID failed. EOF4