1、首先要版本对应,也就是bmp导出时的版本和要导入的版本一致或者向下兼容。一般查看自己的数据库的版本的方法很简单这里不再赘述。
2、查看bmp文件的版本和修改bmp文件的版本------下载UltraEdit软件—附链(用记事本修改无效哦)
https://www.onlinedown.net/soft/7752.html
不需破解若不常用,
3、用软件打开bmp文件[
第一行在v后面直接修改成你的数据库的版本号就ok了
2、如果不想创建新用户,可以直接授权给scott然后导入到scott表,
grant dba to scott;
grant connect to scott;
grant resource to scott;
导入命令:
imp scott/tiger@localhost/orcl file = E:s.dmp full=y;
3、以下为创建新用户再导入过程;
创建表空间
create tablespace data_test datafile ‘e:\oracle\oradata\test\data_1.dbf’ size 50M;
autoextend on next 10M maxsize unlimited --每次扩展10M,无限制扩展
只写上面也可以的
EXTENT MANAGEMENT local autoallocate
segment space management auto;
创建用户
create user test identified by test
default tablespace data_test
temporary tablespace TEMP
profile DEFAULT;
授权用户
grant dba to test;
grant connect to test;
grant resource to test;
Tips: 在sql developer中,选择其他用户,可以用图形工具进行创建用户,并授权给管理员。
准备导入
imp test/test@localhost/oracle file = E:\oracle\base.dmp full=y
这么迁移后可能会有1435的错误,那可能是dmp的文件中有好多的namespace 和 用户,在迁移的过程中,加入一些参数。
imp test/test@lorcl file = E:\oracle\base.dmp fromuser=test touser=user ignore=y
大部分转载于:Oracle如何从零开始导入dmp文件数据 - 王小义的文章 - 知乎
https://zhuanlan.zhihu.com/p/332631320