I have a number of tables that use function based indexes (indices if you prefer). These indexes use functions within packages that I have defined. When importing the schema of the user it would appear that the tables get imported first, then the indexes and then the packages.
I say thin because I get errors such as the following;
ORA-39083: Object type INDEX failed to create with error:
ORA-04067: not executed, package body "DEVELOPE.METAPHONE" does not exist
ORA-06508: PL/SQL: could not find program unit being called: "DEVELOPE.METAPHONE"
Failing sql is:
CREATE INDEX "DEVELOPE"."CLAIMS_PATIENT_INDEX_2" ON "DEVELOPE"."CLAIMS_PATIENT" (
"GENDER", "DEVELOPE"."METAPHONE"."GENPRIMKEY"("NAME_FIRSTNAME",3),
TO_NUMBER(TO_CHAR("DOB",'YYYY')), SUBSTR("ADDR_ZIP",1,3)) PCTFREE 10 INITRANS 2
MAXTRANS 166 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTEN
Are there parameters within impdp that will resolve this problem? Or another workaround?
If I create the index after the impdp finishes, everything works fine.