Oracle 方案导出致另一表间详细步骤

来源:互联网 发布:icloud和阿里云 编辑:程序博客网 时间:2024/05/29 11:58

搞了一天的数据库,原来的服务器总出问题,想装个数据库查个究竟…… 出现个难题,如何将现有方案导出至另一方案 ,且改变tablespace,网上搜集了些资料-已搞定,把过程拿出来共享下,以供初学者参考。

1、将原方案old 导出至 old.dmp;

2、新建方案 new, 新建表空间 newtablespace

3、登录sys用户

grant connect,resourse to new;

grant dba to new;

revoke unlimited tablespace from new;

alter user new quota 0 on users;

alter user new quota unlimited on newtablespace;  

 4、

imp new/ora2008@game file=old.dmp fromuser=old touser=new grants=n

OK  

原创粉丝点击