Linux_Oracle11g数据库安装报错cannot restore segment prot after reloc: …

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:778

环境:
Redhat Linux AS5.7 +Oracle 11.2.0.1 X86_64位环境

安装完Oracle11.2.0.1后,通过netca创建监听程序,然后执行lsnrctl status,报错如下:

[oracle @bt bin]#lsnrctl status
./lsnrctl: error while loading shared libraries: /oracle/ora11g/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

解决过程如下:

[root@bt bin]#semanage fcontext -a -t textrel_shlib_t /oracle/ora11g/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1

csvn homedir /opt/CollabNet_Subversion or its parent directory conflicts with a defined context in /etc/selinux/targeted/contexts/files/file_contexts, /usr/sbin/genhomedircon will not create a new context. This usually indicates an incorrectly defined system account. If it is a system account please make sure its login shell is /sbin/nologin.

[root@bt bin]# restorecon -R -v /oracle/ora11g/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1

restorecon reset /home/mnum/app/mnum/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 context user_u:object_r:user_home_t:s0->system_u:object_r:textrel_shlib_t:s0

重新执行lsnrctl status,问题解决。

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】