oracle imp导入库到指定表空间

来源:互联网 发布:剑雨江湖祝福值数据 编辑:程序博客网 时间:2024/05/17 02:36
1.创建表空间
create tablespace example_tablespace datafile 'e:\****.dbf' size 100m reuse autoextend on next 10m maxsize unlimited;

2.创建用户,指定表空间,临时表空间
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.其它命令
 impusername/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  导入一个完整的库 
0 0
原创粉丝点击