数据泵导出数据时碰到ORA-39213: Metadata processing is not available报错
[oracle@localhost dump]$ tail -100f nohup.out
Export: Release 11.2.0.4.0 - Production on Thu Feb 29 00:12:28 2024
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-39213报错解释,由于 XSL 样式表设置不正确造成数据泵无法使用元数据的API
[oracle@localhost dump]$ oerr ora 39213
39213, 00000, "Metadata processing is not 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 execute dbms_metadata_util.load_stylesheets
// to reload the stylesheets.
解决方案
通过dbms_metadata_util.load_stylesheets包重新加载样式表。
[oracle@localhost dump]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Feb 29 00:14:59 2024
Copyright (c) 1982, 2013, Oracle. 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
SQL> exec dbms_metadata_util.load_stylesheets
PL/SQL procedure successfully completed.