执行expdp操作报出如下错误:
Export: Release 11.2.0.4.0 - Production on Thu Nov 5 15:30:35 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39006: internal error
ORA-39213: Metadata processing is not available
解决分析过程:
根据错误描述,ora-39006为一个内部错误,ora-39213是元数据处理不可用。通过查找资料,该错误只需要在数据库中执行sys.dbms_metadata_util.load_stylesheets包。
尝试执行sys.dbms_metadata_util.load_stylesheets,在sql命令行环境下,运行以下语句:
SQL> exec dbms_metadata_util.load_stylesheets
PL/SQL procedure successfully completed.
SQL>
执行完成之后,再执行备份脚本,可顺利执行。