需求分析:将源库所有表结构、表数据及表间约束关系整体迁移到目标实例;
删除目标数据库的所有表和用户,重建目标数据库的用户:
drop user user_name cascade;
create user user_name identified by password default tablespace tablespace_name;
grant connect,dba to user_name;
源库操作:源库指定用户下导出所有表:
Exp username/pwd@link_name file=dmpfilename owner=user_name rows=y log=fullpath_logfilename
目标库操作:导入数据不要约束和索引:
imp username/pwd@link_name file=dmpfilename rows=y ignore=y feedback=10000 constraints=n indexes=n log=fullpath_logfile.log full=y
导入约束和索引不导数据
imp username/pwd@link_name file=dmpfilename rows=n ignore=y constraints=y indexes=y log=fullpath_logfile.log full=y
验证迁移结果在源、目标库分别运行下面脚本
Select count(*) from user_tables;一个检查并自动安装Oralce所需rpm的shell脚本Oracle分区表使用实例相关资讯 Oracle基础教程
- Oracle块编程返回结果集详解 (11/10/2013 10:45:58)
- Oracle基础教程之设置系统全局区 (08/22/2013 14:24:00)
- Oracle基础教程知识点总结 (06/18/2013 07:43:32)
| - Oracle基础教程之tkprof程序详解 (10/22/2013 11:49:50)
- Oracle基础教程之sqlplus汉字乱码 (07/18/2013 16:30:00)
- Oracle 管理之 Linux 网络基础 (02/16/2013 18:37:35)
|
本文评论 查看全部评论 (0)