IMP Takes More Time To Import The Constraints (Doc ID 166887.1)
Applies to:
Oracle Server - Enterprise Edition - Version 8.1.6.0 to 11.2.0.4 [Release 8.1.6 to 11.2]Information in this document applies to any platform.
Symptoms
Exporting from Oracle database (older versions 8i/9i) and importing into Oracle 8i/9i/10g/11g. You observed a slow perfomance when running import job. The TKPROF output shows the time is spent on view SYS.IMP8CDT. Your application has many constraints.
Cause
The view IMP8CDT was investigated in bugs:
Bug 1779169 IMPORT IS VERY SLOW TO WRAP UP WHEN THERE ARE LARGE NUMBERS OF CONSTRAINTS
Bug 1936535 IMPORT TAKES MORE TIME AFTER UPGRADE
Bug 12341094 IMPORT INTO ORACLE 11.2 IS TOO SLOW USING ORACLE 9.2 DUMP FILE
which are closed (not a bug, not reproducible)
Solution
1. Import with CONSTRAINTS=N. Or:
2. Change the following export data dictionary views and restart the import:
SELECT decode(bitand(c$.defer,16),16,1,0)
FROM sys.cdef$ c$
WHERE c$.defer is NOT NULL
AND bitand(c$.defer,16) = 16
/
CREATE OR REPLACE view imp8cdt2 (ownerid, bad) AS
SELECT co$.owner#, decode(bitand(c$.defer,16),16,1,0)
FROM sys.cdef$ c$, sys.con$ co$
WHERE c$.defer is NOT NULL
AND bitand(c$.defer,16) = 16
AND c$.con# = co$.con#
/
grant select on imp8cdt to select_catalog_role;
grant select on imp8cdt2 to select_catalog_role;
CREATE OR REPLACE view imp8cdtu AS
SELECT * from imp8cdt2
WHERE ownerid = UID
/
References
BUG:1936535 - IMPORT TAKES MORE TIME AFTER UPGRADEBUG:12341094 - IMPORT INTO ORACLE 11.2 IS TOO SLOW USING ORACLE 9.2 DUMP FILE.
BUG:1779169 - IMPORT IS VERY SLOW TO WRAP UP WHEN THERE ARE LARGE NUMBERS OF CONSTRAINTS.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1083336/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- imp INDEXES=N CONSTRAINTS=NIndexAI
- Script: To list Foreign Key Constraints (Doc ID 1039297.6)AI
- Error IMP-32 Obtained During Import (文件 ID 846397.1)ErrorAIImport
- RMAN 11g Import catalog fails RMAN-6429 (Doc ID 457392.1)ImportAI
- prettier/prettier-vscode FormatOnSave takes a long time 慢VSCodeORM
- Export and import right application or execute import imp-00010 error solveExportImportAPPError
- JDBC:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.JDBCServerZed
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- idea import配置IdeaImport
- java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents moreJavaSQLExceptionServerZed
- Clock in a Linux Guest Runs More Slowly or Quickly Than Real TimeLinuxUI
- TypeError: object() takes no parametersErrorObject
- 修改vip (Doc ID 276434.1)
- from bson import ObjectIdImportObject
- 異常解決——The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than oneServerZed
- idapython import 'site' failedPythonImportAI
- HANGFG User Guide (Doc ID 362094.1)GUIIDE
- takes 0 positional arguments but 1 was given
- depends on one or more Android Libraries but is a jarAndroidJAR
- Data Warehouse Guide文件筆記(三):RELY constraintsGUIIDE筆記AI
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- IMP-00013: only a DBA can import a file exported by another DBA 問題及解決方案ImportExport
- 【idea_取消自動import .*】IdeaImport
- 初學vue遇到 imported multiple times import/no-duplicates問題VueImport
- #import vs @importImport
- main() takes 0 positional arguments but 1 was givenAI
- mysql執行報The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim......MySqlServerZed
- Android開發簡單教程.docAndroid
- SQLT Diagnostic Tool (Doc ID 215187.1)SQL
- Oracle Text Health Check (Doc ID 823649.1)Oracle
- The DBMS_SUPPORT Package (Doc ID 62294.1)Package
- DBMS_REPAIR example (Doc ID 68013.1)AI
- Overview of Parameter Reference Notes (Doc ID 68462.1)View
- Linux OS Service 'ntpd' (Doc ID 551704.1)Linux
- takes_ownership(s)語句執行
- constraint=constraints?AI
- MapInfo is no moreAPI
- Oracle 最新PSU (Doc ID 2118136.2)Oracle