如何将dmp文件导入到oracle数据库中


1.创建用户表空间
create tablespace tbs_bidm (表空间的名字)
datafile 'D:\app\oracle\bidm\tbs_bidm_01.dbf'
 size 800M (初始大小)
autoextend on(自动扩展) next 512m maxsize unlimited;

2.创建一个自己的用户
create user bidm (用户名)
  identified by bidm(密码)
  default tablespace tbs_bidm(上面创建的表空间)
  temporary tablespace temp(临时的表空间)  profile DEFAULT

3.需要给自己的用户赋予权限管理自己表空间
grant create any view to bidm;

grant create session to bidm;

grant debug connect session to bidm;
grant select any table to ntmeta;

grant dba to BIDM;-----dba为最高级权限,可以创建数据库,表等

4 打开cmd,执行下面语句:

imp usename/password@localhost/orcl(表示SID)  file= E:\Oracle_11g\app\Administrator

\product\11.2.0\dbhome_1\database\xxxx.dmp  full=y

即可

猜你喜欢

转载自blog.csdn.net/libaowen609/article/details/85606148