2017-06-06 79 views
0

我們在Docker容器上運行XE。當試圖導出表我得到了下面的錯誤從Oracle XE數據庫導出表時失敗

expdp test/[email protected] tables=UserProfile directory=/tmp dumpfile=profile.dmp logfile=logger 

ORA-39006: internal error 
ORA-39213: Metadata processing is not available 

我GOOGLE了一下,發現我需要執行下面的命令,但未能過

execute dbms_metadata_util.load_stylesheets 
ERROR at line 1: 
ORA-31609: error loading file "kucolumn.xsl" from file system directory 
"/u01/app/oracle/product/11.2.0/xe/rdbms/xml/xsl" 
ORA-06512: at "SYS.DBMS_METADATA_UTIL", line 2397 
ORA-06512: at line 1 

我走過的目錄,發現「xsl」目錄不存在,這個目錄是默認使用XE安裝創建的,還是我們需要一個特定的設置來獲取「xsl」文件夾?

使用rpm-oracle-xe-11.2.0-1.0.x86_64.rpm安裝XE。任何想法可能是什麼問題?

回答

0

您指定爲目錄的值需要是Oracle數據庫目錄對象,而不是文件系統上目錄的值。

create directory export_directory as '/tmp'; 

expdp test/[email protected] tables=UserProfile directory=export_directory dumpfile=profile.dmp logfile=logger 
+0

在oracle中創建了該目錄,但問題仍然保持不變。與丟失的xsl目錄有關。我不確定它是否因安裝Oracle XE而缺少一些步驟.. – moiz134