Check the database status
select status from v$instance;
Create a table space
create tablespace NNC_DATA01(空间名) datafile 'D:\app\T480S\oradata\orcl\NNC_DATA01.ora'(路径) size 2048M autoextend on NEXT 1024M MAXSIZE UNLIMITED NOLOGGING EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO;
Creating a Data Pump directory
create directory backupdata as 'F:\app\supreme\oradmp';
Create a user
create user username identified by a user name TABLESPACE default NNC_DATA01 (this is my table space name) the Temporary TABLESPACE the TEMP;
Give permission
Grant Connect, dba, Resource to a user name with admin option; - bold permissions! ! ! ! Indispensable.
Distribution data pump directory permissions
grant read,write on directory backupdata to 用户名;
- Import database table specified directory on the file name given in the file table = User name: now Username
impdp username / password directory = backupdata dumpfile = original table name .dmp remap_schema = User: User Online - original user name can be found in the import file distribution is as follows:
Export User
expdp username / password directory = backupdata dumpfile = table name .dmp logfile = mlw.log
Common mistakes:
Note : If you import an error occurs, first look at the production database log lock root of the problem.
When prompted 1.oracle impdp import "ORA-39002: invalid operation ORA-39070: Unable to open log file"
Solve: https://www.cnblogs.com/linbo3168/p/6052054.html
2. Now-31685
Resolution: The version conflict, export and import version of the database file is not the same