ORACLE 导入

select * from v$datafile;


--创建表空间
create tablespace 表空间名称
   datafile
     'D:\APP\ORADATA\ORCL\表空间名称.dbf' size 500m reuse 
   autoextend on next 10m maxsize unlimited
   extent management local autoallocate
   permanent
   online;
--创建用户并指定表空间    
create user 用户名  identified by 密码  default tablespace 表空间名称  temporary tablespace 默认临时表空间;  
--给用户授权
grant connect,resource,dba to 用户名;

导入命令(表空间需要替换的命令)
impdp 用户名/密码@orcl dumpfile=文件名称.DMP remap_schema=原用户空间:替换后的用户空间 remap_tablespace=原表空间名称:替换后的表空间名称   logfile =导入日志名称.log

导入命令(表空间无需替换的命令)
impdp 用户名/密码@orcl dumpfile=文件名称.DMP schemas=用户空间名称 tablespace=表空间名称   logfile =导入日志名称.log

 

 

 

你可能感兴趣的:(ORACLE)