在 Oracle 上导出许多表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2560269/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 20:20:25  来源:igfitidea点击:

Exporting many tables on Oracle

sqloracledatabase

提问by Adomas

I would like to know, how to export many tables from oracle DB.

我想知道,如何从oracle DB 导出多个表。

I use exp.exe, create file expdat.dmp and so on. I choose to export only tables and there I must write which ones.

我使用 exp.exe,创建文件 expdat.dmp 等等。我选择只导出表,然后我必须写出哪些表。

Is there any chance of getting all of them?

有没有机会获得所有这些?

thanks

谢谢

回答by MJB

You can export a list of tables, or you can export all tables owned by a specific user, or various other methods. The exp command, with no args, will tell you this. But it will not be all that clear -- it is usually easier to use a parm file to tell it what you want to export and how.

您可以导出表列表,也可以导出特定用户拥有的所有表,或其他各种方法。没有 args 的 exp 命令会告诉你这一点。但它不会那么清楚——使用 parm 文件告诉它你想要导出什么以及如何导出通常更容易。

回答by Oliver Michels

You can export a specified list of tables

您可以导出指定的表列表

 exp userid=scott/tiger file=dumfile.dmp log=logfile.txt tables=EMP,DEPT,SALGRADE consistent=y buffer=1024000