create directory GPS as ‘E:\Oracle\GPS’;
create user GJ identified by Mx;
grant create session to GJ;
grant connect,resource to GJ;
grant create any table to GJ;
create tablespace HTZTGJ_GPS
datafile ‘E:\Oracle\GPS\HTZTGJ_GPS.dbf’ size 1500M
autoextend on next 10M maxsize unlimited;
create tablespace HTZTGJ_WORK
datafile ‘E:\Oracle\GPS\HTZTGJ_WORK.dbf’
size 1500M
autoextend on next 10M maxsize unlimited;
alter user GJ quota unlimited on HTZTGJ_GPS;
alter user GJ quota unlimited on HTZTGJ_WORK;
进行设置权限操作
grant CREATE ANY DIRECTORY,create session,create table,create view,unlimited tablespace to GJ;
然后再这个盘里面进行设置存放的dmp文件的路径
CREATE OR REPLACE DIRECTORY
DMPDIR AS ‘E:\Oracle\gps\’;
这个地方需要将dmp文件给导入到这个盘里面E:\Oracle\GPS
接下来就是进行导入命令的操作
impdp GJ/Mx DIRECTORY=DMPDIR DUMPFILE=GPS_TABLE_P20170703.DMP full=y
就是要打开plsql进行将所选的文件进行导出的操作。