Oracle imp 和 exp 命令

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

Oracle imp and exp commands

oracleunixsqlplusexpimp

提问by Vijay

Normally when i have to take a backup of of a database on unix, i do,

通常,当我必须在 unix 上备份数据库时,我会这样做,

exp DBUSER/DBPSW@INST file=xxx.dmp

or load from a dump

或从转储加载

imp DBUSER/DBPSW@INST file=xxx.dmp

my question here is :

我的问题是:

  1. how can we take a backup of a single table
  2. how can we import the data backup from the dump into a single table.
  3. how can we disable the constraints when taking a backup
  1. 我们如何备份单个表
  2. 我们如何将转储中的数据备份导入到单个表中。
  3. 我们如何在备份时禁用约束

I rarely do these when required.some times i need to do the above mentioned things but instead because i donot know i take the complete backup of all the table and load it. does anybody know how we can do it?

我很少在需要时做这些。有时我需要做上面提到的事情,而是因为我不知道我对所有表进行完整备份并加载它。有人知道我们怎么做吗?

回答by maximdim

You can list tables you want to export or import in your command line as 'tables=...' Or run exp/imp interactively and it will ask you for list of tables. Here is a good FAQ

您可以在命令行中将要导出或导入的表列为“tables=...”,或者以交互方式运行 exp/imp,它会要求您提供表列表。这是一个很好的 常见问题解答