重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3355|回复: 0
打印 上一主题 下一主题

[参考文档] Oracle expdp比exp快的原理是什么

[复制链接]
跳转到指定楼层
楼主
发表于 2019-3-7 10:15:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Database Utilities

Data Performance Improvements for Data Pump Export and Import

The improved performance of the Data Pump Export and Import utilities is attributable to several factors, including the following:
Multiple worker processes can perform intertable and interpartition parallelism to load and unload tables in multiple, parallel, direct-path streams.
--多个进程并行和直接路径读
For very large tables and partitions, single worker processes can choose intrapartition parallelism through multiple parallel queries and parallel DML I/O server processes when the external tables method is used to access data.
Data Pump uses parallelism to build indexes and load package bodies.
--可以并行的建索引和包
Dump files are read and written directly by the server and, therefore, do not require any data movement to the client.
--在服务器上操作,不需要将数据返回给客户端,省去网络的环节
The dump file storage format is the internal stream format of the direct path API. This format is very similar to the format stored in Oracle database datafiles inside of tablespaces. Therefore, no client-side conversion to INSERT statement bind variables is performed.
--导出的数据文件是block格式,不是exp的SQL语句
The supported data access methods, direct path and external tables, are faster than conventional SQL. The direct path API provides the fastest single-stream performance. The external tables feature makes efficient use of the parallel queries and parallel DML capabilities of the Oracle database.
--支持直接路径读,比转换成SQL快
Metadata and data extraction can be overlapped during export.
--元数据和数据的提取可以同时执行


总结如下:

  1.expdp是服务端程序,exp是客户端程序,exp还需要网络传输,这个很影响速度。
  2.expdp读的就是数据块,exp是要转换成SQL。
  3.expdp可以并行导出数据、元数据和建索引、包,exp不行。
  4.expdp采用的是直接路径读,exp是要通过SGA。



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 09:35 , Processed in 0.088886 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表