Oracle expdp為什麼比exp快,原理是什麼

來源:互聯網
上載者:User

標籤:

先看oracle 10g的官方文檔:

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。

Oracle expdp為什麼比exp快,原理是什麼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.