oracle ORA-39212异常

通过ddl查询建表语句:

 

SQL> select dbms_metadata.get_ddl('TABLE','表名称') from dual;

出现以下错误:

‍ERROR:
ORA-39212: installation error: XSL stylesheets not loaded correctly
...
官方文档解释如下:

ORA-39212: installation error: XSL stylesheets not loaded correctly
Cause:  The XSL stylesheets used by the Data Pump Metadata API were not loaded correctly into the Oracle dictionary table "sys.metastylesheet." Either the stylesheets were not loaded at all, or they were not converted to the database character set.
Action:  Connect AS SYSDBA and execute dbms_metadata_util.load_stylesheets to reload the stylesheets.


原因是相关的oracle内部的字典表sys.metastylesheet没有创建,或者跟你修改字符集有关系,重新执行相关存储过程即可。
解决方法:
以sysdba用户登陆以后执行以下语句:
SQL> exec dbms_metadata_util.load_stylesheets;

PL/SQL procedure successfully completed.

 

即可。

 

你可能感兴趣的:(oracle ORA-39212异常)