Oracle导入DMP文件

1、创建表空间

CREATE TABLESPACE gsd_temp DATAFILE 'D:\app\Administrator\oradata\orcl\gsd_temp.dbf'  SIZE 2048M AUTOEXTEND ON;

2、创建用户

drop user GSD
CREATE USER GSD IDENTIFIED BY 123456 DEFAULT TABLESPACE gsd_temp TEMPORARY TABLESPACE temp;

3、分配权限
GRANT CREATE SESSION,CREATE TABLE,CREATE VIEW,CREATE SEQUENCE,UNLIMITED TABLESPACE TO GSD; 
GRANT CONNECT TO GSD; 
GRANT RESOURCE TO GSD; 
GRANT DBA TO GSD;

 

create or replace directory dump_dir as 'D:\fzb';

4、导入

impdp gsd/[email protected]/orcl  directory=dump_dir dumpfile=gsd.DMP 

你可能感兴趣的:(Oracle导入DMP文件)