思路:
1,备份目标系统元数据
2,将目标系统用户DROP掉(这样可以快速DROP索引及约束)
3,导入数据(这个步骤不导入索引及约束)
4,导入索引约束及权限等元数据。
5,作一次统计分析。
--------CODE excerpt:
1, expdp ... schemas=user1,user2 content=metadata_only
2,drop user user1/user2 cascade ;
3, impdp ... schemas=user1,user2 include=user,system_grant,role_grant,default_role,table/table,table_table_data parallel=4
4,impdp schemas=user1,user2 exclude=user,system_grant,role_grant,default_role,table/table,table_table_data
5, exec dbms_stats.gather_schema_stats('user1',force=y) ;
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/350519/viewspace-1050563/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/350519/viewspace-1050563/
本文详细介绍了一种高效的数据迁移方案,分为五个步骤:备份元数据、删除目标系统用户、导入数据、恢复索引和权限、执行统计分析。此方法适用于 Oracle 数据库,并能有效减少迁移过程中的资源消耗。
4677

被折叠的 条评论
为什么被折叠?



