I'm trying to restore my Oracle backup version 11.2.0.1 to another server version 11.2.0.4.
When I run the impdp, the ORA-39171 and ORA-01659 erros are shown.
impdp hosp/xxxx file=HOSP3001.DMP logfile=loghosp3001.dmp version=latest schemas=HOSP
In the .dmp file I have the following TABLESPACES and DATAFILES:
DATAFILE | TABLESPACE
/u01/app/oracle/product/11.2.0/db_1/dbs/HOSP | HOSP
/u01/app/oracle/product/11.2.0/db_1/dbs/HOSPDATA | HOSPDATA
/u01/app/oracle/product/11.2.0/db_1/dbs/HOSPDATA2 | HOSPDATA
/u01/app/oracle/product/11.2.0/db_1/dbs/HOSPDATA3 | HOSPDATA
I have created in the new server the follwing TABLESPACES and DATAFILES.
CREATE TABLESPACE HOSP DATAFILE 'HOSP' SIZE 1024M ;
ALTER DATABASE DATAFILE 'HOSP' RESIZE 1024M ;
ALTER DATABASE DATAFILE 'HOSP' AUTOEXTEND ON MAXSIZE UNLIMITED ;
CREATE TABLESPACE HOSPDATA DATAFILE 'HOSPDATA' SIZE 1024M ;
ALTER DATABASE DATAFILE 'HOSPDATA' RESIZE 1024M ;
ALTER DATABASE DATAFILE 'HOSPDATA' AUTOEXTEND ON MAXSIZE UNLIMITED ;
In this new scenario I intend to keep just one DATAFILE for the TABLESPACE "HOSPDATA".