久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

sqlplus: error while loading shared libraries的解決方案是什么

144次閱讀
沒有評論

共計(jì) 1225 個(gè)字符,預(yù)計(jì)需要花費(fèi) 4 分鐘才能閱讀完成。

今天就跟大家聊聊有關(guān) sqlplus: error while loading shared libraries 的解決方案是什么,可能很多人都不太了解,為了讓大家更加了解,丸趣 TV 小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。

昨天在給學(xué)員培訓(xùn)時(shí),安裝完畢數(shù)據(jù)庫后,執(zhí)行 sqlplus 出現(xiàn)了如下錯(cuò)誤。
建好 oracle 庫后,執(zhí)行 sqlplus 命令:
[oracle@localhost database]$ sqlplus /nolog
sqlplus: error while loading shared libraries: /oracle/app/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

問題原因:安裝 LINUX 時(shí)開啟了 SELinux

解決方案:關(guān)閉 SELinux

第一種方法
(1)查看 SELinux 的狀態(tài),若為 Enforcing 表示 SELinux 為開啟狀態(tài)
[root@mydb]# getenforce
Enforcing

(2)執(zhí)行 setenforce 0 將 SELinux 設(shè)為 permissive 模式(即臨時(shí)關(guān)閉 SElinux)
[root@mydb]# setenforce 0

(3)驗(yàn)證上步操作的結(jié)果
[root@mydb]# getenforce
Permissive

這種方法的缺點(diǎn)是當(dāng)系統(tǒng)重啟的時(shí)候,SELinux 又恢復(fù)為 Enforcing 狀態(tài),執(zhí)行 sqlplus 仍然會報(bào)錯(cuò)。

第二種方法
用 root 賬戶將 /etc/selinux/config 中的 SELinux=enforcing 改為 SELinux=disabled,改完之后如下所示:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#  enforcing – SELinux security policy is enforced.
#  permissive – SELinux prints warnings instead of enforcing.
#  disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#  targeted – Only targeted network daemons are protected.
#  strict – Full SELinux protection.
SELINUXTYPE=targeted

重啟系統(tǒng)讓設(shè)置生效:
# reboot

看完上述內(nèi)容,你們對 sqlplus: error while loading shared libraries 的解決方案是什么有進(jìn)一步的了解嗎?如果還想了解更多知識或者相關(guān)內(nèi)容,請關(guān)注丸趣 TV 行業(yè)資訊頻道,感謝大家的支持。

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-17發(fā)表,共計(jì)1225字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 泉州市| 环江| 梁山县| 玛纳斯县| 陕西省| 翁源县| 绿春县| 金门县| 定西市| 台中市| 买车| 台山市| 洪江市| 三门县| 奉化市| 焉耆| 四川省| 平湖市| 兴文县| 英超| 余庆县| 永宁县| 松滋市| 潞城市| 镇宁| 嘉义县| 太谷县| 南阳市| 筠连县| 子洲县| 桃江县| 丽江市| 昌邑市| 翼城县| 辽中县| 苍溪县| 绿春县| 浪卡子县| 大理市| 富顺县| 汤原县|