Wednesday, May 6, 2009

ORA-39000, ORA-39143 dump file may be an original export dump file

Problem Description
E:\>impdp directory=test dumpfile=testexp_07_03_09.dmp userid=arju/a

Import: Release 10.2.0.1.0 - Production on Thursday, 07 May, 2009 10:07:00

Copyright (c) 2003, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39143: dump file "E:\oracle\Test\testexp_07_03_09.dmp" may be an original export dump file

Cause of the problem
The above problem happened whenever you try to use the Import Data Pump client (impdp) to import a dumpfile that was created with the original Export client (exp).

Though not related but similar error occured.
Like whenever you try to import from an empty file,
E:\>impdp directory=test dumpfile=testexp_07_03_09.dmp userid=arju/a

Import: Release 10.2.0.1.0 - Production on Thursday, 07 May, 2009 10:16:52

Copyright (c) 2003, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31619: invalid dump file "E:\oracle\Test\testexp_07_03_09.dmp"
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 38) Reached the end of the file.

Whenever you try to import from invalid dump file or corrupted dump file then you may get following error,

E:\>impdp directory=test dumpfile=testexp_07_03_09.dmp userid=arju/a

Import: Release 10.2.0.1.0 - Production on Thursday, 07 May, 2009 10:17:23

Copyright (c) 2003, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31619: invalid dump file "E:\oracle\Test\testexp_07_03_09.dmp"

Solution of the Problem
It is obvious that,
-Data pump export client(impdp) can't read file created by the original export client (exp).

and,

-Data exported by data pump client(expdp) can't be readable by original import client(imp).

So to import dumpfile that was created with the original Export client (exp) you must have to use imp.

Like,
imp userid=arju/a file=e:\oracle\testexp_07_03_09.dmp

Otherwise you can export the dumpfile using expdp and then try impdp while importing.

Related Documents
http://arjudba.blogspot.com/2009/02/how-to-do-data-pump-import-from-higher.html
http://arjudba.blogspot.com/2008/04/data-pump-exportimport-how-we-can-do-it.html
http://arjudba.blogspot.com/2009/02/ude-00018-data-pump-client-is.html
http://arjudba.blogspot.com/2008/04/exportimport-datapump-parameter-query.html

No comments:

Post a Comment