1.创建表空间
create tablespace
example_tablespace datafile 'e:\****.dbf' size 100m
reuse autoextend on next 10m maxsize unlimited;
create user
username identified by
password default tablespace
usertablespace temporary tablespace
temp;
3.IMP导入数据库文件注意
grant dba to
username;
DBA权限是必需的(用户必须有DBA权限才能导入数据)
一般默认导入的表空间是导出时候的表空间,也可以指定表空间,如下所示:
imp
username/
password file='e:\***.dbf' tablespaces=
example_tablespace fromuser=
sourcename touser=
targetname log='e:\a.txt';
导入指定表空间
4.其它命令
imp
username/
password
file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4) log=paycheck 多文件导入
imp system/manager file=bible_db log=dible_db full=y ignore=y 导入一个完整的库