如何在不同服务器上的两个不同数据库之间复制或导入Oracle模式? [英] How do I copy or import Oracle schemas between two different databases on different servers?

查看:57
本文介绍了如何在不同服务器上的两个不同数据库之间复制或导入Oracle模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从一个用户/实例/服务器复制架构的最佳方法是什么:

What is the best way to copy schema from one user/instance/server:

jdbc:oracle:thin:@deeb02:1535:DH, user pov

发送给另一个用户/实例/服务器

to another user/instance/server

jdbc:oracle:thin:@123.456.789.123:1523:orcl, user vrs_development

?

推荐答案

类似地,如果您使用的是Oracle 10g +,则应该可以使用Data Pump进行此工作:

Similarly, if you're using Oracle 10g+, you should be able to make this work with Data Pump:

expdp user1/pass1@db1 directory=dp_out schemas=user1 dumpfile=user1.dmp logfile=user1.log

并导入:

impdp user2/pass2@db2 directory=dp_out remap_schema=user1:user2 dumpfile=user1.dmp logfile=user2.log

这篇关于如何在不同服务器上的两个不同数据库之间复制或导入Oracle模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆