如何从 dmp 文件恢复/导入 Oracle 数据库?

Pau*_*aul 8 oracle database oracle10g oracle-11g

我最近收到了即将迁移的 Oracle 数据库的转储文件。我已经安装了 Oracle 10g,现在我需要恢复原始数据库。

谁能给我一个如何从*.dmp文件中恢复它的分步过程?

小智 8

这取决于您要做什么,但一个简短的答案是:

imp system/password@sid file=(filename) log=imp.log fromuser=(existing user) touser=(new user)
Run Code Online (Sandbox Code Playgroud)

此处的最后 3 个:log, fromuser,touser是可选的。如果这没有帮助,您可能会提供有关您正在做什么的更多详细信息...