2017-06-25 1 views
0

J'essaie d'importer une sauvegarde dans Oracle 11g. J'ai exécuté cette commande:Les tablespaces ne sont pas créées sur l'opération d'importation de fichier de vidage Oracle.

impdp david/[email protected] directory=geismar file=EXPDP_TOP.dmp log=EXPDP_TOP.log full=y; 

Le processus d'importation est lancé avec succès, mais je reçois beaucoup d'erreurs. Voici un sous-ensemble de mon fichier journal: Importation: Version 11.2.0.2.0 - Production sur Dim. 25 juin 2017 12:02:28

Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production 
;;; Legacy Mode Active due to the following parameters: 
;;; Legacy Mode Parameter: "file=EXPDP_TOP.dmp" Location: Command Line, Replaced with: "dumpfile=EXPDP_TOP.dmp" 
;;; Legacy Mode Parameter: "log=EXPDP_TOP.log" Location: Command Line, Replaced with: "logfile=EXPDP_TOP.log" 
Master table "DAVID"."SYS_IMPORT_FULL_01" successfully loaded/unloaded 
Starting "DAVID"."SYS_IMPORT_FULL_01": david/********@Louis-PC directory=geismar dumpfile=EXPDP_TOP.dmp logfile=EXPDP_TOP.log full=y; 
Processing object type SCHEMA_EXPORT/USER 
ORA-39083: Object type USER failed to create with error: 
ORA-00959: tablespace 'TOPADDIN' does not exist 
Failing sql is: 
CREATE USER "TOPADDIN" IDENTIFIED BY VALUES 'S:A86A3644C5EA64C9320A5C66457EE39C51888BBD1110001C5776E9D7A554;C4D29EC4F0EAB8DE' DEFAULT TABLESPACE "TOPADDIN" TEMPORARY TABLESPACE "TEMP" 
ORA-39083: Object type USER failed to create with error: 
ORA-00959: tablespace 'TOPDBA' does not exist 
Failing sql is: 
CREATE USER "TOPDBA" IDENTIFIED BY VALUES 'S:29F9686B7D8B5861F84CA3D5720C6C8A8CFC8C7D01374D49D77DE152C234;F3A449A6B2BF4CD0' DEFAULT TABLESPACE "TOPDBA" TEMPORARY TABLESPACE "TEMP" 
ORA-39083: Object type USER failed to create with error: 
ORA-00959: tablespace 'TOPERP' does not exist 
Failing sql is: 
CREATE USER "TOPERP" IDENTIFIED BY VALUES 'S:3EC63E08F86B4922FE5328678F5E5DDD7A23D6092D539C31492FC97F2FFB;B3B7BBDA73271B0C' DEFAULT TABLESPACE "TOPERP" TEMPORARY TABLESPACE "TEMP" 
ORA-39083: Object type USER failed to create with error: 
ORA-00959: tablespace 'TOPMAN_USERS' does not exist 

Il semble que l'importation ne comprend pas la définition des tablespaces et ne crée pas tablespaces. L'option full=y ne devrait-elle pas également importer des définitions d'espace de table? Qu'est-ce que je fais de mal?

Répondre

0

D'abord, vous pouvez faire

impdp david/[email protected] directory=geismar dumpfile=EXPDP_TOP.dmp SQLFILE=check.sql 

pour voir exactement ce que LDD l'importation va courir, en regardant check.sql.

Ensuite, testez certains paramètres, par exemple:

INCLUDE=TABLESPACE:"IN ('TOPADDIN','TOPDBA')" 
INCLUDE=SCHEMA:"IN ('TOPADDIN','TOPDBA')" 

Et peut-être quelques remaps:

remap_schema= 
remap_tablespace=