简体   繁体   English

Oracle(?)DB转储文件

[英]Oracle (?) DB dump file

I have a legacy DB dump file which starts off something like this: 我有一个旧的数据库转储文件,它的开头是这样的:

^C^@&D
EXPORT:V07.03.04
DHISTO
RTABLES
8192
0
^@    Mon Jan 11 09:02:31 2010
TABLE "ABCD"
CREATE TABLE "ABCD" ("TIME" DATE, "ELEMENT" CHAR(16), ....

From the "EXPORT:V07.03.04", and from the data I do have, I am assuming this is an Oracle DB dump (v7). 从“ EXPORT:V07.03.04”以及我拥有的数据中,我假设这是一个Oracle DB转储(v7)。 Which tools do I have available to import this data? 我可以使用哪些工具来导入此数据?


Thanks everybody for the help. 谢谢大家的帮助。 I ended up installing Oracle XE 10g, and using it to import the dump files - worked perfectly. 我最终安装了Oracle XE 10g,并用它来导入转储文件-完美地工作了。

Yes, it looks like an Oracle dump format. 是的,它看起来像Oracle转储格式。 You can use the imp command: 您可以使用imp命令:

imp userid=user/passwd file=file.dmp ignore=y

Use ignore=y to skip tables that already exist (imp will give an error if the object is re-created). 使用ignore = y跳过已经存在的表(如果重新创建该对象,imp将给出错误)。 Depending on what you whant to import from the dump you may also have to use other flags, such as full=y (Grants and constraints are automatically included). 根据您希望从转储中导入的内容,您可能还必须使用其他标志,例如full = y(自动包括授予和约束)。

See 看到

imp help=yes

for all options of this command. 该命令的所有选项。

Oracle imp is the counterpart to exp which created this file. Oracle imp是创建此文件的exp的对应文件。

http://www.orafaq.com/wiki/Import_Export_FAQ http://www.orafaq.com/wiki/Import_Export_FAQ

"On a machine which currently has no Oracle installation, what would be the fastest way to import this data so I can export it to other formats and work with it?" “在当前没有安装Oracle的计算机上,什么是导入此数据的最快方法,以便我可以将其导出为其他格式并使用它?”

The file is an Oracle proprietary format. 该文件是Oracle专有格式。 So the easiest way of working with it would be to install an Oracle database and use IMP to load it. 因此,使用它的最简单方法是安装Oracle数据库并使用IMP加载它。 You can use pretty much any version of Oracle as the target because IMP has backwards compatibility going way back. 您几乎可以使用任何版本的Oracle作为目标,因为IMP具有向后兼容的功能。 If you have an Oracle Support account the relevant note is id=132904.1 . 如果您具有Oracle支持帐户,则相关注释为id = 132904.1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM