>데이터 베이스 >MySQL 튜토리얼 >Oracle 11g安装报错cannot restore segment prot after reloc: Permi

Oracle 11g安装报错cannot restore segment prot after reloc: Permi

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-06-07 17:17:18980검색

环境:Redhat Linux AS5.7 +Oracle11.2.0.1 X86_64位环境安装完Oracle11.2.0.1后,通过netca创建监听程序,然后执行lsnrctl stat

环境:
RedHat Linux AS5.7 +Oracle11.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,问题解决。

更多Oracle相关信息见Oracle 专题页面 ?tid=12

linux

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.