oracle 錯誤解析

應用程序鏈接oracle的庫時會出現以下錯誤:
XXXXX:: error while loading shared libraries: /usr/local/oracle/product/10.2.0/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
或者:
XXXXX:: error while loading shared libraries: /usr/local/oracle/product/10.2.0/lib/libclntsh.so.10.1: cannot restore segment prot after reloc: Permission denied
等錯誤。
解決辦法是用chcon命令把相應文件的屬性改一下便可,如:
chcon -t texrel_shlib_t   /usr/local/oracle/product/10.2.0/lib/libnnz10.so
chcon -t texrel_shlib_t  /usr/local/oracle/product/10.2.0/lib/libclntsh.so.10.1oracle

上訴文件目錄參考時要改爲本身的。rest

相關文章
相關標籤/搜索