Posted on 2013-02-20 10:10
瘋狂 閱讀(2384)
評論(0) 編輯 收藏 所屬分類:
database 、
questions_hander 、
questions 、
方法論
通過ddl查詢建表語句:
SQL> select dbms_metadata.get_ddl('TABLE','表名稱') from dual;
出現(xiàn)以下錯誤:
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.
原因是相關(guān)的oracle內(nèi)部的字典表sys.metastylesheet沒有創(chuàng)建,或者跟你修改字符集有關(guān)系,重新執(zhí)行相關(guān)存儲過程即可。
解決方法:
以sysdba用戶登陸以后執(zhí)行以下語句:
SQL> exec dbms_metadata_util.load_stylesheets;
PL/SQL procedure successfully completed.
即可。