在客户的oracle 10.2.0.1环境下要准备进行迁移数据库,但是执行EXPDP的时候提示报错

ORA-39006: internal error

ORA-39213: Metadata processing is notavailable

 

使用ORACLE用户,查看ORA-39213 具体内容:

oerr ora 39213

39213, 00000, "Metadata processing isnot available"

// *Cause: The Data Pump could not use the Metadata API.  Typically,

//         this is caused by the XSL stylesheets not being set up properly.

// *Action: Connect AS SYSDBA and executedbms_metadata_util.load_stylesheets

//         to reload the stylesheets.

根据提示,按如下操作

SQL> conn / as sysdba;

Connected.

SQL> executesys.dbms_metadata_util.load_stylesheets;

PL/SQL procedure successfully completed.

之后再执行EXPDP就不再出现错误了,实际测试对在用的生产业务没有影响,可以放心使用