IMPDP from Oracle 10g TO 11g
Question
I'm not able to import the full database from oracle 10g to 11g using impdp FULL=Y
. It seems that the file path is differing so what shall I do?
The impdp
command is looking for oracle 10g path while importing into 11g db.
is there any way to import full database from 10g to 11g using impdp
?
Solution
A full export/import contains tablespace definitions with datafile paths as well, so impdp
tries to create the datafiles with the original path.
Just create the tablespaces manually before running impdp, that is usually what I do. impdp
will notice that the tablespaces already exist, and continue with the remaining objects.
You can extract the tablespace creation scripts as well if you want, using the sqlfile
clause:
impdp user/password directory=... dumpfile=... sqlfile=ts.sql include=TABLESPACE
The above creates a ts.sql
file containing the CREATE
and ALTER
statements for your tablespaces, which you can edit or use for creating the tablespaces.