orcale数据库迁移

第一步:创建表空间

命令:

create tablespace tablespace_name datafile 'F:\oracle\product\10.2.0\oradata\orcl\tablespace_name.dbf' size 1500M autoextend on next 5M maxsize 3000M

第二步:创建****用户

图示 创建用户

命令:create user 用户名 identified by "密码";

例:

create user user_name identified by password;

第三步:授权用户

命令:grant 权限 to 用户

例:

grant dba,resource,connect to tablespace_name;

-----详细授权

grant dba,resource,connect to tablespace_name ;

grant create any sequence to tablespace_name;

grant create any table to tablespace_name ;

grant delete any table to tablespace_name ;

grant insert any table to tablespace_name ;

grant select any table to tablespace_name ;

grant unlimited tablespace to tablespace_name;

grant execute any procedure to tablespace_name ;

grant update any table to tablespace_name ;

grant create any view to tablespace_name ;

第四步****授权用户访问表空间

图示 授权用户访问表空间

alter user 用户名 quota unlimited on 表空间;

alter user_name quota unlimited on tablespace_name;

第五步****从原来数据库中导出所有文件

exp user_name/password@tablespace_name owner=user_name file=D:\bjxydmpbak\exp_bjxy.dmp log=D:\bjxydmpbak\exp_bjxy.log buffer=6000000

第六步****导入备份数据至新库

[图片上传失败...(image-45aee2-1550817279132)]

图示 导入备份文件至新数据库

imp user_name/password@tablespace_name fromuser=user_name touser=user_name file=F:\bjxy\bjxydmpbak\exp_bjxy.dmp log=F:\bjxy\bjxydmpbak\imp_bjxy.log ignore=y

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容