搞了一天的数据库,原来的服务器总出问题,想装个数据库查个究竟…… 出现个难题,如何将现有方案导出至另一方案 ,且改变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