Oracle数据库imp

2014-11-23 21:48:55 · 作者: · 浏览: 23

创建表空间

create  tablespace ICITY  datafile 'D:\Oracle\oradata\orcl\ICITY.DBF' 
size 400M  autoextend on  next 10M maxsize unlimited extent management local;

创建临时表空间

create temporary tablespace ICITY_TEMP  tempfile 'D:\Oracle\oradata\orcl\ICITY_TEMP.DBF' 
size 100M  autoextend on  next 10M maxsize unlimited extent management local;

创建用户并指定用户表空间

create user icity identified by "12345678" default tablespace ICITY_ICP temporary tablespace ICITY_ICP_TEMP;
分配用户角色
grant dba to icity;
导入ICITY_ICP用户数据
imp icity/12345678@orcl file='e:\icity_icp20140417.dmp' fromuser='icity' touser='icity';