Step 1: Create a backup file storage directory
create or replace directory back_file as 'F:\APP\ADMINISTRATOR\ORADATA\ORCL';
create or replace directory back_file as 'D:\app\yangxf\back_or_memery_file';
create or replace directory 目录名 as 'D:\app\yangxf\back_or_memery_file';
Step 2: Create table space
create tablespace WX_DATA datafile 'F:\APP\ADMINISTRATOR\ORADATA\ORCL\wx.dbf' size 1000M autoextend on next 50m;
create tablespace BASE_DATA datafile 'D:\app\yangxf\oradata\base_tablespace\BASE.dbf' size 100M autoextend on next 50m;
create tablespace table space name (with consistent backup file table space) datafile 'D: \ App \ yangxf \ oradata \ base_tablespace \ backup file name .dbf' size 100M autoextend on next 50m ;
Step 3: Create a user backup file, specify the table space
create user wxsi identified by wxsi123 default tablespace WX_DATA;
create user BASE identified by BASE default tablespace BASE_DATA;
create user username identified by password default tablespace table space name ;
Step four: authorized users to read and write the backup file directory
grant read, write on directory back_file to wxsi;
grant read, write on directory back_file to BASE;
grant read, write on directory storage directory name to the user name ;
Step five: authorized users to connect, resource, log in, dba privileges
grant connect,resource,dba to wxsi;
grant connect,resource,dba to BASE;
Step Six: the import statement
Here only use not wxsi / wxsi @ orcl AS sysdba
impdp system/root@orcl directory=back_file dumpfile=BASE.DMP full=y;
impdp username / password @ instance name directory = directory name dumpfile = name of the file to import .DMP full = y;
Remarks:
Under delete all user objects
drop user JCSJ cascade;
drop user username cascade;
Delete table space
drop tablespace JCSJ_DATA including contents and datafiles;
drop tablespace 表空间名 including contents and datafiles;
Super Admin Login
sqlplus sys/root@orcl as sysdba;
sqlplus username / password @ instance name as sysdba;
The following is my example: Import of dmp users wxsi, table space named: wx_data, the use notpad ++, and can be found winhex
Step 1: Create a backup file storage directory
the Create or the replace Directory back_file AS 'F: \ APP \ ADMINISTRATOR \ ORADATA \ ORCL' ; // actually useless to
Step 2: Create table space
create tablespace WX_DATA datafile 'F:\APP\ADMINISTRATOR\ORADATA\ORCL\wx.dbf' size 1000M autoextend on next 50m;
Step 3: Create a user backup file, specify the table space
create user wxsi identified by wxsi123 default tablespace WX_DATA;
Step four: authorized users to read and write the backup file directory
grant read, write on directory back_file to wxsi;
Step five: authorized users to connect, resource, log in, dba privileges
grant connect,resource,dba to wxsi;
Step Six: the import statement
I was after PLSQL Developer software imp function of transference
But there can only be used wxsi / wxsi @ orcl connect as normal can not sysdba