疯狂

STANDING ON THE SHOULDERS OF GIANTS
posts - 481, comments - 486, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

oracle ORA-39212异常

Posted on 2013-02-20 10:10 疯狂 阅读(2358) 评论(0)  编辑  收藏 所属分类: databasequestions_handerquestions方法论

通过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.

 

即可。

 


只有注册用户登录后才能发表评论。


网站导航: