Oracle database data pump import steps

First, the table space establishment:

create tablespace nnc_data01 datafile 'D:\data\nnc_data01.dbf' size 1024M autoextend on next 100M extent management local uniform size 256K;

create tablespace nnc_data02 datafile 'D:\data\nnc_data02.dbf' size 1024M autoextend on next 100M extent management local uniform size 256K;

create tablespace nnc_data03 datafile 'D:\data\nnc_data03.dbf' size 1024M autoextend on next 100M extent management local uniform size 256K;

索引:
create tablespace nnc_index01 datafile 'D:\data\nnc_index01.dbf' size 1024M autoextend on next 100M extent management local uniform size 128K;

create tablespace nnc_index02 datafile 'D:\data\nnc_index02.dbf' size 1024M autoextend on next 100M extent management local uniform size 128K;

create tablespace nnc_index03 datafile 'D:\data\nnc_index03.dbf' size 1024M autoextend on next 100M extent management local uniform size 128K;

2. --Create user information
CREATE USER NC633 IDENTIFIED BY "123" DEFAULT TABLESPACE NNC_DATA01; --Authorize
the user
GRANT DBA,RESOURCE,CONNECT TO NC633;

3. Import the database

imp  NC633/123@orcl  file=C:\MCC\mcctest1_2018-04-29\MCCTEST1_2018-04-29.DMP  full=y
impdp NC63/123@orcl dumpfile=MCCTEST1_2018-04-29.DMP
impdp MCC/123@ORCL directory=exp dumpfile=MCCTEST_2018-04-25.DMP logfile=mcctest_2018-04-25.log schemas=leftfist table_exists_action=replace

Assuming that dmp is placed in the /data directory,
first create a directory directory in the database
SQL> create directory exp as '/data/'
to execute the import command in the operating system command.
impdp system/***** directory=exp dumpfile=scott.dmp logfile=imp.log

When exporting a higher version and importing a lower version, the version number must be added when exporting (the version number of oracle to be imported)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325251821&siteId=291194637