红联Linux门户
Linux帮助

在linux下出现cannot restore segment prot after reloc的解决

发布时间:2016-11-29 09:27:22来源:linux网站作者:博雅居
应用程序连接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
 
本文永久更新地址:http://www.linuxdiyf.com/linux/26407.html