EXFSYS.DBMS_EXPFIL_DEPASEXP error duing expdp

NeilZhang
NeilZhang
管理员
140
文章
106.8千
浏览
Oracle评论1,250字数 514阅读1分42秒阅读模式

Today our guy got a PLS-00201 error during the schema-level expdp task, and I searched the Oracle Support website but could not find extract answer, then found a similar webpage through Baidu.
http://wenku.baidu.com/link?url=U9HC44tu6RpjDbl8bu7hRZzM71QyHCvqneW4_eNmcN-rBUQNKbflReJy0Cm8F6hrlhA2_YZ6btHeo1k8Xgcm11jsxYqtkLAgTxEmESsjkpu
Our error screen shot:
EXFSYS.DBMS_EXPFIL_DEPASEXP error duing expdp-图片1

Then I found similar methods to resolve such issues in the Oracle Support website:
How To Install/Uninstall Expression Filter Feature or EXFSYS schema along with Rules Manager (文档 ID 258618.1)
Please note this section:

  1. declare
  2. cursor cur1 is select synonym_name from all_synonyms where owner = 'PUBLIC' and table_owner = 'EXFSYS';
  3. begin
  4. for c1 in cur1 loop
  5. EXECUTE IMMEDIATE 'drop public synonym "'||c1.synonym_name||'"';
  6. end loop;
  7. end;
  8. /

The following is a list of the public synonyms that may remain after just running CATNOEXF.SQL and these would be dropped by running one of the above scripts.

  1. EXF$INDEXOPER
  2. EXF$ATTRIBUTE
  3. EXF$ATTRIBUTE_LIST
  4. EXF$TABLE_ALIAS
  5. EXF$XPATH_TAG
  6. EXF$XPATH_TAGS
  7. EVALUATE
  8. DBMS_EXPFIL
  9. USER_EXPFIL_ATTRIBUTE_SETS
  10. ALL_EXPFIL_ATTRIBUTE_SETS
  11. USER_EXPFIL_ATTRIBUTES
  12. ALL_EXPFIL_ATTRIBUTES
  13. USER_EXPFIL_DEF_INDEX_PARAMS
  14. ALL_EXPFIL_DEF_INDEX_PARAMS
  15. USER_EXPFIL_INDEX_PARAMS
  16. ALL_EXPFIL_INDEX_PARAMS
  17. USER_EXPFIL_ASET_FUNCTIONS
  18. ALL_EXPFIL_ASET_FUNCTIONS
  19. USER_EXPFIL_INDEXES
  20. ALL_EXPFIL_INDEXES
  21. USER_EXPFIL_PREDTAB_ATTRIBUTES
  22. ALL_EXPFIL_PREDTAB_ATTRIBUTES
  23. USER_EXPFIL_EXPRESSION_SETS
  24. ALL_EXPFIL_EXPRESSION_SETS
  25. USER_EXPFIL_PRIVILEGES
  26. USER_EXPFIL_EXPRSET_STATS
  27. ALL_EXPFIL_EXPRSET_STATS
  28. RLM$EVENTIDS
  29. RLM$TABLE_ALIAS
  30. DBMS_RLMGR
  31. USER_RLMGR_EVENT_STRUCTS
  32. ALL_RLMGR_EVENT_STRUCTS
  33. USER_RLMGR_RULE_CLASSES
  34. ALL_RLMGR_RULE_CLASSES
  35. USER_RLMGR_RULE_CLASS_STATUS
  36. ALL_RLMGR_RULE_CLASS_STATUS
  37. USER_RLMGR_PRIVILEGES
  38. ADM_RLMGR_PRIVILEGES
  39. USER_RLMGR_COMPRCLS_PROPERTIES
  40. ALL_RLMGR_COMPRCLS_PROPERTIES
  41. USER_RLM4J_EVENT_STRUCTS
  42. USER_RLM4J_RULE_CLASSES

And this one:
Export Full Fails With Error EXP-00083 With Reference To XDB.DBMS_XDBUTIL_INT.system_info_exp After A Successful Deinstallation of XDB (文档 ID 1461971.1)
Please note this part:

  1. However, some references to XDB were left behind in the database by the XDB deinstallaitio, in particular in the EXPPKGACT$ table.
  2. The EXPPKGACT$ table is the datapump handler table that contains all the packages that should be executed to complete the export.

Another similar issue:
Expdp Fails With PLS-00201: Identifier 'Dmsys.Dbms_dm_model_exp' Must Be Declared (文档 ID 1243504.1)

From the above notes, I decided to do following steps to fix this issue:
1. Check if the user EXFSYS had been removed
2. Check if any synonyms of EXFSYS was left
3. Check if the table SYS.EXPPKGACT$ had some rows relating with the EXFSYS
4. Export the data again to check if the issue was resolved

  1. SQL> select count(*) from dba_synonyms where table_owner like '%EXFSYS%';
  2.  
  3. COUNT(*)
  4. ----------
  5. 43

EXFSYS.DBMS_EXPFIL_DEPASEXP error duing expdp-图片2
EXFSYS.DBMS_EXPFIL_DEPASEXP error duing expdp-图片2
Done.

Sentences were used:

  1. select 'drop public SYNONYM '||SYNONYM_NAME||';' from dba_synonyms where table_owner like '%EXFSYS%';
  2. CREATE TABLE SYS.EXPPKGACT$_BACKUP AS SELECT * FROM SYS.EXPPKGACT$;
  3. DELETE FROM SYS.EXPPKGACT$ WHERE SCHEMA like '%EXFSYS%';

 
  • 本文由 NeilZhang 发表于15/12/2014 23:20:29
  • Repost please keep this link: https://www.dbcloudsvc.com/blogs/oracle/exfsys-dbms_expfil_depasexp-error-duing-expdp/
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定