美文网首页
orcale数据库迁移

orcale数据库迁移

作者: WindRiseed | 来源:发表于2019-02-22 14:41 被阅读0次

第一步:创建表空间

命令:

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

相关文章

网友评论

      本文标题:orcale数据库迁移

      本文链接:https://www.haomeiwen.com/subject/dileyqtx.html