针对数据泵导出 (expdp) 和导入 (impdp)工具性能降低问题的检查表 (文档 ID 1549185.1) | 转到底部 |
文档内容
适用于:Oracle Database - Enterprise Edition - 版本 10.1.0.2 到 12.1.0.2 [发行版 10.1 到 12.1]本文档所含信息适用于所有平台 用途本文档提供了有关使用数据泵导入导出工具传输数据时所遇到的性能相关问题的可能原因。 适用范围本文的目标受众是 Oracle10g 和 Oracle11g 数据库的用户,并且使用 Export Data pump 工具从 Oracle 源数据库中导出数据,并使用 Import Data pump 工具将这些数据导入到 Oracle 目标数据库中。本文档仅适用于新的 Export Data Pump (expdp) 和 Import Data Pump (impdp) 客户端,不适用于原始的导出 (exp) 和导入 (imp) 客户端。对于 Oracle10g 及更高版本,我们建议使用数据泵在 Oracle 数据库之间传输数据。 详细信息简介从版本 10g (10.1.0) 开始,Oracle 引入了新的 Oracle 数据泵技术,通过该项技术,用户能够以极快的速度将数据和元数据从一个数据库移动到另一个数据库。此项技术是 Oracle 新的数据移动工具(“Export Data pump”和“Import Data pump”)的基础。 参数在此部分列出了可能会对数据泵导出或导入作业的性能产生影响的数据泵参数。此外,还列出了一些通用数据库参数 (init.ora/spfile),我们已知这些参数可能会对数据泵作业产生影响。
检查数据泵的活动已知缺陷概述下面概述了各个 Oracle10g 和 Orace11g 版本中已知的性能相关缺陷。请参阅概述之后的内容部分,以了解有关这些缺陷和可能的变通方案的详细信息。
Export DataPump (expdp):
10.1.0.1.0 至 10.1.0.3.0 - Bug 3447032 - Import Data Pump is slow when importing statistics - Bug:4513695 - Poor performance for SELECT with ROWNUM=1 with literal replacement - Bug 5095025 - Export Data Pump runs out of memory (ORA-4030) when exporting many schema's - Bug:5464834 - Export Data Pump runs out of memory (ORA-4030) when many tables are involved - Bug:5590185 - Consistent Export Data Pump is slow when exporting row data - Bug:5928639 - Export Data Pump of table can be very slow if CURSOR_SHARING is not EXACT - Bug 5929373 - Export Data Pump of a table can be very slow if database has many user tables 10.1.0.4.0 至 10.1.0.5.0 以及 10.2.0.1.0 至 10.2.0.3.0 - Bug:4513695 - Poor performance for SELECT with ROWNUM=1 with literal replacement - Bug 5095025 - Export Data Pump runs out of memory (ORA-4030) when exporting many schema's - Bug:5464834 - Export Data Pump runs out of memory (ORA-4030) when many tables are involved - Bug:5590185 - Consistent Export Data Pump is slow when exporting row data - Bug:5928639 - Export Data Pump of table can be very slow if CURSOR_SHARING is not EXACT - Bug 5929373 - Export Data Pump of a table can be very slow if database has many user tables - Bug 5573425 - Slow Datapump with wrong results due to subquery unnesting and complex view 10.2.0.4.0 - Bug 7413726 - Poor EXPDP performance when db COMPATIBLE=10.2.0.3 or 10.2.0.4 (duplicate of Bug 7710931) - Bug 7710931 - DataPump export is extremely slow when extracting schema - Bug 6460304 - (affects earlier versions as well) Expdp domain index dump using RULE Optimizer and slow - Bug 7722575 -DATAPUMP VIEW KU$_NTABLE_DATA_VIEW causes poor plan / slow Expdp 11.1.0.6.0 - Bug 7585314 - OCSSD.BIN consumes much too much CPU while running Datapump - Bug 7722575 - DATAPUMP VIEW KU$_NTABLE_DATA_VIEW causes poor plan / slow Expdp 11.1.0.7.0 - Bug 8363441 - Very Expensive Sql Statement During Datapump Import With Many Subpartitions - Bug 7722575 - DATAPUMP VIEW KU$_NTABLE_DATA_VIEW causes poor plan / slow Expdp - Bug 8904037 - LT_CTX_PKG.SCHEMA_INFO_EXP IS TAKING MORE TIME WHILE EXPORTING PROCOBJ OBJECTS 11.2.0.1 - Bug 10178675 - expdp slow with processing functional_and_bitmap/index - Bug 10194031 - EXPDP OF OR XML LEAKS MEMORY / RUNS SLOW 11.2.0.1 WORKS 11.1.0.7 11.2.0.3 - <Unpublished Bug 12780993> DATA PUMP PERFORMANCE FOR ESTIMATE=STATISTICS IN EXPORT IS BAD - Bug 13573203 SLOW INDEX EXPORT DUE TO PERFORMANCE ISSUE WITH METADATA KU$_INDEX_COL_VIEW - Bug 13914808 QUERY AGAINST KU$_INDEX_VIEW KU$ SLOW EVEN AFTER USING METADATA FROM 13844935 - Bug 14192178 - EXPDP of partitioned table can be slow - Bug 14794472 - EXPDP TOO SLOW HAVING TOO MANY TABLESPACES - Bug 16138607 - SLOW EXPDP AFTER 11.2.0.3 UPGRADE - Bug 16298117 - TTS EXPDP TAKING 26 HOURS TO COMPLETE, MOST OF TIME PROCESSING INDEX INFO - Bug 16856028 - EXPORT DATAPUMP SLOW ON DATAGUARD STANDBY INSTANCE - Bug 18793246 - EXPDP slow showing base object lookup during datapump export causes full table scan per object - Bug 20446613 - EXPORTING NON-STREAMS TABLE FROM STRADMIN SCHEMA OVER NETWORK LINK IS SLOW - Bug 20236523 - DATAPUMP EXPORT SLOW USING CONTENT=METADATA_ONLY Note:: 1) 对于11.2.0.3, patch 16038089 中包含了以下修复: - Bug 12325243 - SLOW PERFORMANCE ON EXPDP FUNCTIONAL AND BITMAP INDEXES - Unpublished Bug 12780993 - DATA PUMP PERFORMANCE FOR ESTIMATE=STATISTICS IN EXPORT IS BAD - Bug 13573203 - SLOW INDEX EXPORT DUE TO PERFORMANCE ISSUE WITH METADATA KU$_INDEX_COL_VIEW - Bug 13844935 - QUERY AGAINST KU$_INDEX_VIEW SLOW IN 11.2.0.3 - Bug 14192178 - BUG 14006804 FIX DOES NOT RESOLVE THE PERFORMANCE ISSUE 2) 相对于 Patch 16038089,下边两个patch是更好的选择: 11.2.0.3 - Patch 15893700 11.2.0.3.3或更高 - MLR Patch 14742362 这是因为这两个patch包含了 Patch 16038089中所有的修复,同时还修复了其它一些之前patch没有修复的性能问题。 3) 所有8个 bug 都在 Patch 14742362中修复并已包含11.2.0.4补丁集中,详见: Note 1562142.1 - 11.2.0.4 Patch Set - List of Bug Fixes by Problem Type 11.2.0.4 - Bug 14794472 - EXPDP TOO SLOW HAVING TOO MANY TABLESPACES - Bug 16856028 - EXPORT DATAPUMP SLOW ON DATAGUARD STANDBY INSTANCE - Bug 18469379 - Data pump export estimate phase takes a long time to determine if table is empty - Bug 18793246 - EXPDP slow showing base object lookup during datapump export causes full table scan per object - Bug 19674521 - EXPDP takes a long time when exporting a small table - Bug 20111004 - "COMMENT ON COLUMN" statement waits 1 second on "Wait for Table Lock" - Bug 20236523 - DATAPUMP EXPORT SLOW USING CONTENT=METADATA_ONLY - Bug 20548904 - EXPDP HANG IN METADA_ONLY ON A PARTITION TABLE WITH AROUND 40000 SUBPARTITIONS Note: 在11.2.0.4上发布的merge patch 20883577包含了以下bug的fix: 18469379, 18793246, 19674521, 20236523 and 20548904 在11.2.0.4上发布的merge patch 21443197包含了以下bug的fix: 18082965 18469379 18793246 20236523 19674521 20532904 20548904 12.1.0.1 - Bug 18469379 - Data pump export estimate phase takes a long time to determine if table is empty - Bug 18793246 - EXPDP slow showing base object lookup during datapump export causes full table scan per object - Unpublished Bug 18720801 - DATAPUMP EXPORT IS SLOW DUE TO EXPORT OF SYNOPSES - Bug 20111004 - "COMMENT ON COLUMN" statement waits 1 second on "Wait for Table Lock" 12.1.0.2 - Bug 18793246 - EXPDP slow showing base object lookup during datapump export causes full table scan per object - Bug 20236523 - DATAPUMP EXPORT SLOW USING CONTENT=METADATA_ONLY - Unpublished Bug 17662403 - DATA PUMP EXPORT: SLOW I/O PERFORMANCE WRITING TO NFS DISKS - Bug 20548904 - EXPDP HANG IN METADA_ONLY ON A PARTITION TABLE WITH AROUND 40000 SUBPARTITIONS - Bug 21128593 - UPDATING THE MASTER TABLE AT THE END OF DP JOB IS SLOW STARTING WITH 12.1.0.2 Note: 在12.1.0.2上发布的merge patch 20687195包含了以下bug的fix: 18793246, 20236523 and 20548904 在12.1.0.2上发布的merge patch 21554480包含了以下bug的fix : 18793246, 20236523, 20548904 and 21128593. Import DataPump (impdp): 10.1.0.1.0 至 10.1.0.3.0 - Bug 3447032 - Import Data Pump is slow when importing statistics - Bug:5292551 - Import Data Pump runs out of memory (ORA-04030) and can be very slow on certain tables - Bug 5555463 - Import Data Pump can be slow when importing small LOBs in External Table mode 10.1.0.4.0 - Bug:5292551 - Import Data Pump runs out of memory (ORA-04030) and can be very slow on certain tables - Bug 5555463 - Import Data Pump can be slow when importing small LOBs in External Table mode 10.1.0.5.0 - Bug 3508675 - Import Data Pump is slow when importing TABLE_DATA - Bug:5292551 - Import Data Pump runs out of memory (ORA-04030) and can be very slow on certain tables - Bug 5555463 - Import Data Pump can be slow when importing small LOBs in External Table mode 10.2.0.1.0 至 10.2.0.3.0 - Bug:5071931 - Import Data Pump with REMAP_SCHEMA and REMAP_TABLESPACE is slow - Bug:5292551 - Import Data Pump runs out of memory (ORA-04030) and can be very slow on certain tables - Bug 6989875 -Transportable Tablespace Import Spins Using CPU - Bug 5555463 - Import Data Pump can be slow when importing small LOBs in External Table mode 10.2.0.4.0 - Bug 7439689 - (affects earlier versions as well) Impdp workeer process spinning on MERGE statement 11.1.0.6.0 - Bug 7585314 - OCSSD.BIN consumes much too much CPU while running Datapump 11.1.0.7.0 - Bug 8363441 - Very Expensive Sql Statement During Datapump Import With Many Subpartitions 11.2.0.2 - Bug 13609098 - IMPORTING SMALL SECUREFILE LOBS USING DATA PUMP IS SLOW - Bug 16396856 - TTS IMPDP SEEMS TO HANG AND CONSUME 100% CPU 11.2.0.3 - Bug 13609098 - IMPORTING SMALL SECUREFILE LOBS USING DATA PUMP IS SLOW - Bug 14834638 - Import slow on create partitioned index - Bug 16396856 - TTS IMPDP SEEMS TO HANG AND CONSUME 100% CPU - Bug 19520061 - IMPDP: EXTREMELY SLOW IMPORT FOR A PARTITIONED TABLE - Bug 20532904 DATAPUMP SLOW FOR PARTITIONED TABLE - Bug 14192178 - EXPDP of partitioned table can be slow 注意:expdp的bug 14192178的fix对一些impdp/import以及一些DBMS_METADATA的查询也有帮助 11.2.0.4 - Bug 13609098 - IMPORTING SMALL SECUREFILE LOBS USING DATA PUMP IS SLOW - Bug 19520061 - IMPDP: EXTREMELY SLOW IMPORT FOR A PARTITIONED TABLE 12.1.0.1 - Bug 16396856 - TTS IMPDP SEEMS TO HANG AND CONSUME 100% CPU 缺陷详细信息
对于11.2.0.3, patch 16038089 中包含了以下修复: 参考BUG:7413726 - POOR EXPDP PERFORMANCE WHEN DB COMPATIBLE=10.2.0.3 OR 10.2.0.4NOTE:223730.1 - Automatic PGA Memory Management BUG:10194031 - EXPDP OF OR XML LEAKS MEMORY / RUNS SLOW 11.2.0.1 WORKS 11.1.0.7 BUG:10416375 - DATA PUMP EXPDP JUST HANG ON KU$_TEMP_SUBPARTDATA_VIEW BUG:4438573 - DATAPUMP RUNS VERY SLOW OVER NETWORK FOR TABLES WITH CLOBS BUG:4513695 - SELECT WITH ROWNUM=1 PERFORMANCE IS TOO LATE USING CURSOR_SHARING=SIMILAR BUG:5573425 - NON-CORRELATED SUBQUERY RETURNS WRONG RESULTS, LIKE A CARTESIAN JOIN BUG:5590185 - CONSISTENT EXPORT DATA PUMP JOB HAS SLOWER PERFORMANCE BUG:8225599 - ER: CTAS WITH LOB ACCESS ACROSS DATABASE LINK IS SLOW NOTE:286496.1 - Export/Import DataPump Parameter TRACE - How to Diagnose Oracle Data Pump BUG:6460304 - EXPDP TAKES MORE TIME NOTE:1290574.1 - Datapump Performance Issue With Content=Metadata_only BUG:5071931 - DATAPUMP IMPORT WITH REMAP TABLESPACE, AND SCHEMA IS VERY SLOW BUG:5292551 - IMPDP VERY SLOW WHEN IMPORTING A TABLE WITH INITIALIZED COLUMN OF TYPE VARRAY NOTE:331221.1 - 10g Export/Import Process for Oracle Applications Release 11i NOTE:362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i NOTE:365459.1 - Parallel Capabilities of Oracle Data Pump BUG:7439689 - IMPDP HANGS ON IDLE EVENT 'WAIT FOR UNREAD MESSAGE ON BROADCAST CHANNEL' NOTE:421441.1 - DataPump Import Via NETWORK_LINK Is Slow With CURSOR_SHARING=FORCE NOTE:762160.1 - DataPump Import (IMPDP) Hangs When Using Parameters TRANSPORT_DATAFILES and REMAP_DATAFILE NOTE:786165.1 - Understanding the ESTIMATE and ESTIMATE_ONLY Parameters in Export DataPump BUG:6807289 - IMPDP WITH REMAP_SCHEMA AND REMAP_TABLESPACE HANGS AT TABLE STATISTICS BUG:6989875 - TRANSPORTABLE TABLESPACE IMPORT SPINS USING CPU BUG:5464834 - ORA-4030 USING EXPDP BUG:5928639 - DATAPUMP EXPORT SLOW WHEN CURSOR_SHARING != EXACT BUG:7722575 - DATAPUMP VIEW KU$_NTABLE_DATA_VIEW CAUSES POOR PLAN / SLOW EXPDP BUG:5481520 - WRONG RESULTS WITH ROWNUM AND BIND PEEKING NOTE:429846.1 - Slow Data Pump with REMAP_SCHEMA and REMAP_TABLESPACE parameters NOTE:94036.1 - Init.ora Parameter "CURSOR_SHARING" Reference Note NOTE:155477.1 - Parameter DIRECT: Conventional Path Export Versus Direct Path Export BUG:8363441 - VERY EXPENSIVE SQL STATEMENT DURING DATAPUMP IMPORT WITH MANY SUBPARTITIONS BUG:5996665 - EXPDP HANGING MORE THAN 5 HOURS NOTE:277905.1 - Export/Import DataPump Parameter TABLES - How to Export and Import Tables Residing in Different Schemas BUG:10178675 - EXPDP SLOW WITH PROCESSING FUNCTIONAL_AND_BITMAP/INDEX BUG:7585314 - OCSSD.BIN CONSUMING 6 TIMES MORE CPU IF EXCESSIVE DATAPUMP IS RUNNING ON NODE BUG:7710931 - DATAPUMP EXPORT IS EXTREMELY SLOW WHEN EXTRACTING SCHEMA NOTE:14834638.8 - Bug 14834638 - IMPDP import slow on create partitioned index NOTE:1673445.1 - EXPDP Estimate Phase Takes a Long Time With 12.1.0.1 NOTE:885388.1 - DataPump Export Is Slow After Upgrade To 11g When Workspace Manager Is Installed BUG:7710931 - DATAPUMP EXPORT IS EXTREMELY SLOW WHEN EXTRACTING SCHEMA |