Oracle expdp 无数据

发布于 2025-01-02 05:35:31 字数 94 浏览 2 评论 0原文

如果使用expdp且表没有数据导出会有影响吗?例如,我们运行一个作业来执行expdp,并且要转储的表在作业运行的实例上没有记录,是否会出现异常?这应该通过另一次检查来处理吗?

Will there be any impact if expdp is used and the table has no data to be exported? For example, we run a job to perform expdp and the table to be dumped has no records at the instance the job was run, will there be exceptions for this? Should this be handled by another checking?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

摘星┃星的人 2025-01-09 05:35:31

我刚刚尝试了一下,看起来效果很好。

Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SYSTEM"."BONUS"                                0 KB       0 rows
Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
  /usr/lib/oracle/xe/app/oracle/admin/XE/dpdump/exp.dmp
Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at 22:10:10

如果您要导入转储文件,它应该重新创建表,但(显然)没有任何行。

I just tried it, and it looks like it works just fine.

Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SYSTEM"."BONUS"                                0 KB       0 rows
Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
  /usr/lib/oracle/xe/app/oracle/admin/XE/dpdump/exp.dmp
Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at 22:10:10

If you were to import the dump file, it should recreate the table but (obviously) without any rows.

阳光下的泡沫是彩色的 2025-01-09 05:35:31

如果导出空表也不例外。导出实用程序将仅导出表的元数据(即 DDL)。

There will be no exception if you export an empty table. The export utility will just export the metadata for the table (i.e. the DDL).

最美的太阳 2025-01-09 05:35:31

expdp 将导出空表。尝试使用旧导出功能导出表将不会导出空表。

请参阅我关于该主题的博客文章。

http://tsells.wordpress.com/2011/02/10/oracle-11g2-does-not-export-empty-tables-when-using-exp-exe/

expdp will export empty tables. Trying to export tables using the legacy export functions will not export empty tables.

Please see my blog post here on the subject.

http://tsells.wordpress.com/2011/02/10/oracle-11g2-does-not-export-empty-tables-when-using-exp-exe/

高跟鞋的旋律 2025-01-09 05:35:31

数据泵不存在异常问题,除非您提到错误的表名。它应该可以正常工作。
我在这里找到了许多数据泵选项参考 http://www.acehints.com/p/site-地图.html

There is no question of exception in data pump unless until you mention a wrong table name. It should work properly.
I found many datapump options reference here http://www.acehints.com/p/site-map.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文