Oracle 11g安裝報錯cannot restore segment prot after reloc: Permission denied
[日期:2012-07-28] 來源:Linux社區(qū) 作者:mfkqwyc86
環(huán)境:
RedHat Linux AS5.7 +Oracle11.2.0.1 X86_64位環(huán)境
安裝完Oracle11.2.0.1后,通過netca創(chuàng)建監(jiān)聽程序,然后執(zhí)行l(wèi)snrctl 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
重新執(zhí)行l(wèi)snrctl status,問題解決。
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|