[root@localhost bin]# lsnrctl start
lsnrctl: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
解决:
[root@localhost bin]# chcon -t textrel_shlib_t /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
使用chcon命令:
[root@redhats ~]# chcon -t textrel_shlib_t /database/ora11g/product/11.2.0/db_1/lib/libclntsh.so.11.1
如果你碰到其他类似提示:cannot restore segment prot after reloc: Permission denied
应该是SELinux引起的,可以使用这个办法:
chcon -t texrel_shlib_t /路径/路径/名字.so (这个文件视具体执行文件.)