Cindy Chu, February 24, 2017 - 12:19 am UTC
Thanks for your response Connor. Since I just have the dump files to work with, is there a way to get a listing of all the tablespace I need to remap?
February 25, 2017 - 1:01 am UTC
"Or you can do an import with SQLFILE=xxx, which will write all the DDL commands out to a sql file"
Once you have the SQL file, you can easily extract the list of all the datafiles you would need to remap, or get a list of the tablespaces you will need to precreate.
Thank you. one final question
Cindy Chu, February 28, 2017 - 2:56 am UTC
I tried to put all the remap_datafile parameters into 1 parfile and feed this in through the impdp command (impdp system/xxx parfile='c:\perfile.par') and got the following error: "Multiple values not allowed for parameter 'parfile'" There are about 100 remap_datafile lines. Is there a better way of doing this? below is sample from the parfile: Thank you.
CONTENT=ALL
DIRECTORY=dir
DUMPFILE=full_exp%u.dmp
FULL=y
LOGFILE=clog1.log
REMAP_DATAFILE="'/data01/oradata/YMC/ymcpdata/ctxd01.dbf':'C:\APP\ORADATA\ORCL\ctxd01.dbf'"
REMAP_DATAFILE="'/data01/oradata/YMC/ymcpdata/ctxd01.dbf' :'C:\APP\ORADATA\ORCL\ctxd01.dbf'"
REMAP_DATAFILE="'/data01/oradata/YMC/ymcpdata/owad01.dbf':'C:\APP\ORADATA\ORCL\owad01.dbf'"
REMAP_DATAFILE="'/temp01/oradata/YMC/ymcpdata/temp01.dbf':'C:\APP\ORADATA\ORCL\temp01.dbf'"
REMAP_DATAFILE="'/temp01/oradata/YMC/ymcpdata/temp04.dbf':'C:\APP\ORADATA\ORCL\temp04.dbf'"
REMAP_DATAFILE="'/temp01/oradata/YMC/ymcpdata/temp03.dbf':'C:\APP\ORADATA\ORCL\temp03.dbf'"
REMAP_DATAFILE="'/temp01/oradata/YMC/ymcpdata/temp02.dbf':'C:\APP\ORADATA\ORCL\temp02.dbf'"
REMAP_DATAFILE="'/data01/oradata/YMC/ymcpdata/funx01.dbf':'C:\APP\ORADATA\ORCL\funx01.dbf'"
February 28, 2017 - 5:05 am UTC
Multiple remap datafile commands are supported. I think you have too many quotes. Try this:
REMAP_DATAFILE='/data01/oradata/YMC/ymcpdata/ctxd01.dbf':'C:\APP\ORADATA\ORCL\ctxd01.dbf'
REMAP_DATAFILE='/data01/oradata/YMC/ymcpdata/ctxd01.dbf' :'C:\APP\ORADATA\ORCL\ctxd01.dbf'
REMAP_DATAFILE='/data01/oradata/YMC/ymcpdata/owad01.dbf':'C:\APP\ORADATA\ORCL\owad01.dbf'
REMAP_DATAFILE='/temp01/oradata/YMC/ymcpdata/temp01.dbf':'C:\APP\ORADATA\ORCL\temp01.dbf'
and perhaps full specify your dumpfile name.
Thank you
Cindy Chu, March 01, 2017 - 1:07 am UTC
Thank you Connor. Taking out the double quotes and adding the full dumpfile names did not work either. I'm going to use the results of the sqlfile parameter to pre-create the datafiles and tablespaces then run impdp. I'll get errors on the create tablespace and datafile statements but I'm hoping the rest will run fine.
Thank you for your help!!