将 Oracle 数据库从一台 PC 转移到另一台 PC 的最简单方法是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3111349/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the easiest way to transfer Oracle database from one PC to another?
提问by Nubkadiya
i want to transfer my oracle database to another PC. What is the easiest way to do it? Are there any GUI tools to do it?
我想将我的 oracle 数据库转移到另一台 PC。最简单的方法是什么?是否有任何 GUI 工具可以做到这一点?
采纳答案by dpbradley
APC's answer is the way to go for a logical transfer. If you're asking because you just want a one-time transfer to another PC then:
APC 的答案是进行逻辑传输的方法。如果您询问是因为您只想一次性传输到另一台 PC,那么:
- install the same version of Oracle on the second PC
create the same directory structure for the database files on the second PC
copy the database files (tablespace files, control files, redo logs) to the second PC (with the database shut down on PC #1!)
- 在第二台 PC 上安装相同版本的 Oracle
在第二台 PC 上为数据库文件创建相同的目录结构
将数据库文件(表空间文件、控制文件、重做日志)复制到第二台 PC (在 PC #1 上关闭数据库!)
回答by APC
The easiest way to transfer database structures (tables, packages, etc) together with data (or indeed without it) is to use the Oracle import/export utlities. As you're using Oracle 11g you should employ Data Pumpfor this. (On 9i or earlier it would be the old EXP and IMP utlities).
将数据库结构(表、包等)与数据(或实际上没有)一起传输的最简单方法是使用 Oracle 导入/导出实用程序。当您使用 Oracle 11g 时,您应该为此使用数据泵。(在 9i 或更早版本上,它将是旧的 EXP 和 IMP 实用程序)。
Use Export (expdp
) to make the dump file from your source PC. Transfer it to your target PC and use Import (impdp
) to load it.
使用导出 ( expdp
) 从源 PC 制作转储文件。将其传输到您的目标 PC 并使用导入 ( impdp
) 加载它。
At this point I would link to the documentation but the Oracle online docs are currently offline. So here's a link to the Oracle Wiki page instead: find out more.
在这一点上,我将链接到文档,但 Oracle 在线文档目前处于脱机状态。所以这里有一个指向 Oracle Wiki 页面的链接:了解更多。
回答by Todd Pierce
If you want a GUI, oracle Grid control can be used to clone a database from one computer to another.
如果您需要 GUI,可以使用 oracle Grid 控件将数据库从一台计算机克隆到另一台计算机。