Rechercher Articles Oracle SQL sur ce Site.
Loading
Pourquoi cette erreur ORA-39142 lorsque j'essaie d'importer dans Oracle 10G R2 un dump file venant d'une 11G R2 ?.
Parce que j'ai exporté un dump file d'une base 11G avec EXPDP version 11.2.0.1.0 pour l'importer ensuite dans une base 10G avec IMPDP version
10.2.0.1.0.
Et surtout parce que j'ai oublié lors de l'export avec EXPDP version 11.2.0.1.0 de
mettre l'argument ou option VERSION=10.2.0.1 ce qui permet de
rendre compatible ce DUMP FILE avec une 10.2.0.1. Voici une démo.
C:\>impdp system/pwd tables=scott.DEPT,scott.EMP, scott.BONUS,scott.SALGRADE directory=DBTEST_EXPORT dumpfile=DEPT_SALG.dmp logfile=IDEPT_SALG.log Import: Release 10.2.0.1.0 - Production on Friday, 17 June, 2011 23:42:27 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-39142: incompatible version number 3.1 in dump file "C:\EXPORT\DEPT_SALG.dmp" SQL> |
C:\>expdp system/pwd version=10.2.0.1 tables=scott.BONUS,scott.DEPT,scott.EMP,scott.SALGRADE directory=DBTEST_EXPORT dumpfile=10gDEPT_SALG.dmp Export: Release 11.2.0.1.0 - Production on Ven. Juin 17 23:54:55 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options DÚmarrage de "SYSTEM"."SYS_EXPORT_TABLE_01" : system/******** version=10.2.0.1 tables=scott.BONUS,scott.DEPT,scott.EMP,scott.SALGRADE directory=DBTEST_EXPORT dumpfile=10gDEPT_SALG.dmp Estimation en cours Ó l'aide de la mÚthode BLOCKS ... Traitement du type d'objet TABLE_EXPORT/TABLE/TABLE_DATA Estimation totale Ó l'aide le la mÚthode BLOCKS : 192 KB Traitement du type d'objet TABLE_EXPORT/TABLE/TABLE Traitement du type d'objet TABLE_EXPORT/TABLE/INDEX/INDEX Traitement du type d'objet TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Traitement du type d'objet TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT . . export : "SCOTT"."DEPT" 5.75 KB 4 lignes . . export : "SCOTT"."EMP" 8.070 KB 14 lignes . . export : "SCOTT"."SALGRADE" 5.679 KB 5 lignes . . export : "SCOTT"."BONUS" 0 KB 0 lignes Table ma¯tre "SYSTEM"."SYS_EXPORT_TABLE_01" chargÚe/dÚchargÚe avec succÞs ****************************************************************************** L'ensemble de fichiers de vidage de SYSTEM.SYS_EXPORT_TABLE_01 est : C:\EXPORT\10GDEPT_SALG.DMP L'exÚcution du travail "SYSTEM"."SYS_EXPORT_TABLE_01" a abouti Ó 23:55:02 C:\> |
C:\>impdp system/pwd tables=scott.DEPT,scott.EMP, scott.bonus,scott.salgrade directory=DBTEST_EXPORT dumpfile=10GDEPT_SALG.dmp logfile=IDEPT_SALG.log Import: Release 10.2.0.1.0 - Production on Friday, 17 June, 2011 23:56:36 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production Master table "SYSTEM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded Starting "SYSTEM"."SYS_IMPORT_TABLE_01": system/******** tables=scott.DEPT,scott.EMP, scott.bonus ,scott.salgrade directory=DBTEST_EXPORT dumpfile=10GDEPT_SALG.dmp logfile=IDEPT_SALG.log Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/TABLE_DATA . . imported "SCOTT"."DEPT" 5.75 KB 4 rows . . imported "SCOTT"."EMP" 8.070 KB 14 rows . . imported "SCOTT"."SALGRADE" 5.679 KB 5 rows . . imported "SCOTT"."BONUS" 0 KB 0 rows Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Job "SYSTEM"."SYS_IMPORT_TABLE_01" successfully completed at 23:56:41 C:\> |
| Liens en rapport avec l'article et qui sont susceptibles de vous intéresser |
|
• Export Oracle avec EXPDP Data Pump • Import Oracle avec IMPDP Data Pump |