六脉shen剑

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
 
应用程序连接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.1
posted on 2012-11-21 18:21  六脉shen剑  阅读(296)  评论(0编辑  收藏  举报