Impdp Fails With ORA-39083 PLS-302 Component IMPORT_TABLE_STATS Must be Declared During Import TABLE_STATISTICS
(Doc ID 470768.1)
Last updated on SEPTEMBER 19, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 to 22.214.171.124 [Release 10.1 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
This problem can occur on any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data.
Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
You successfully performed a schema or table DataPump export. During DataPump import the following errors occur:
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39083: Object type TABLE_STATISTICS failed to create with error:
ORA-06550: line 8, column 197:
PLS-00302: component 'IMPORT_TABLE_STATS' must be declared
ORA-06550: line 8, column 186:
PL/SQL: Statement ignored
Failing sql is:
BEGIN DELETE FROM "SYS"."IMPDP_STATS"; INSERT INTO "SYS"."IMPDP_STATS" (type,
c1, c2, c3, c5,
n1, n2, n3, n4, n10, n11, n12, d1)
VALUES ('T', 4, 0, 'TAB001', NULL, NULL, 'TEST', 1, 5, 6, 1, NULL, NULL,
Job "<SCHEMA_NAME>"."SYS_IMPORT_SCHEMA_01" completed with 2 error(s) at 12:07:39
Impdp is started as privileged user <SCHEMA_NAME> (with IMP_FULL_DATABASE role granted). If you start the import as SYSTEM, then this works.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document