使用impdp導出數據時碰到ora-39006錯誤,錯誤提示如下所示:
ORA-39006: internal error ORA-39213: Metadata processing is not available
初看到internal error的錯誤提示,下了一跳。Google一番的結果如下:
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.
數據泵無法使用元數據API,需要以sysdba身份登錄,執行:
SQL> execute dbms_metadata_util.load_stylesheets; PL/SQL procedure successfully completed.