Import database
- create a table space (where the original database table space name)
the Create TABLESPACE table space name datafile 'G: \ hygy \ zjgltest.dbf' size 1024M;
- Create user
create user xhdc identified by hygy default tablespace table space name ;
- grant dba permissions
grant dba to xhdc;
- create directory
the create directory or the replace hygy_dir AS 'G: \ hygy';
- grant read and write permissions
grant read, write on directory hygy_dir to hygy;
Here dmp file into the first G: \ and then execute the following statement in the cmd window under hygy directory, direct execution.
--cmd导入
impdp hygy/hygy@orcl remap_schema=thytest7:hygy directory=hygy_dir dumpfile=T220190924hdp_1819_thytest7.dmp
Turn Description: hygy / hygy username / password, thytest7 original export user name, hygy for the new import user name, T220190924hdp_1819_thytest7.dmp data dmp name