最近在安裝Oracle11.2.0.2.0 for RedHat5.4_32bit,出現了一些問題,總結如下。 一、數據庫軟件安裝好後,用dbca命令建庫。 1、報錯如下: [oracle@mydb]$dbca Oracle Net Services Configuration: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xa78b13a8, pid=5118, tid=3086896789 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode) # Problematic frame: # C [libnnz11.so+0x3c3a8] # # An error report file with more information is saved as hs_err_pid5118.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp 2、解決方法: (1)下載p8670579_112010_LINUX.zip補丁包,上傳到Liux服務器。 (2)確認是否配置了ORACLE_HOME [oracle@mydb]$ echo $ORACLE_HOME /u01/app/oracle/product/11.2.0/db_1 (3)檢查perl的版本,需要5.00503以上的版本 [oracle@mydb]$perl -v This is perl, v5.8.8 built for i386-linux-thread-multi (4)Verify the OUI Inventory. $opatch lsinventory (5)解壓並打補丁 [oracle@mydb]$unzip p8670579_112010_LINUX.zip [oracle@mydb]$cd 8670579 [oracle@mydb]$$ORACLE_HOME/OPatch/opatch apply -invPtrLoc $ORACLE_HOME/oraInst.loc 3、dbca正常建庫 二、很多Oracle的命令不能執行。 1、如執行rman命令報錯如下: [oracle@mydb]$ rman target / rman: error while loading shared libraries: /u01/app/oracle/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 2、如執行lsnrctl命令報錯如下: [oracle@mydb]$ lsnrctl status lsnrctl: error while loading shared libraries: /u01/app/oracle/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 3、什麼原因導致這些錯誤呢?原兇就是在安裝LINUX時開啓了SELinux,記得關閉SELinux,如下圖。 4、解決方法: (1)查看selinux的狀態爲Enforcing模式(setenforce 1設置SELinux 成爲Enforcing模式,即開啓SElinux) [root@mydb]# getenforce Enforcing (2)setenforce 0 設置SELinux 成爲permissive模式(即臨時關閉SElinux) [root@mydb]# setenforce 0 (3)查看selinux的狀態爲Permissive模式(setenforce 0設置SELinux 成爲Permissive模式) [root@mydb]# getenforce Permissive 5、關閉SElinux,修改Selinux的配置文件 [root@mydb bin]# vi /etc/sysconfig/selinux # 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 三、oracle11Gr2在RHEL6 X64上執行gui安裝報錯 前些天某學生在安裝oracle時碰到一個問題,報錯信息如下 # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00007f5bb0bced70, pid=2732, tid=140031049791248 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode) # Problematic frame: # C [ld-linux-x86-64.so.2+0x14d70] # # An error report file with more information is saved as hs_err_pid2732.log # # If you would like to submit a bug report, please visit: 看報錯信息 很古怪 檢查報錯的動態庫文件ld-linux-x86-64.so.2 屬於glibc 應該不會是這個動態庫文件出問題。 答案是 export LD_BIND_NOW=1 這個環境變量的作用是什麼的 於是乎又新一輪的百度 得到答案如下 設置環境變量LD_BIND_NOW=1讓連接器在程序執行前把所有的函數地址都連接好 看起來筆者的思路沒有偏離太多 最後的解決方案 在oracle用戶的家目錄下的.bash_profile 當中添加一個全局變量: export LD_BIND_NOW=1 即可解決在使用GUI安裝oracle文件時候圖形化無法出來的問題
最近在安裝Oracle11.2.0.2.0 for RedHat5.4_32bit,出現了一些問題,總結如下。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Markdown學習之路
CFishHome
2019-02-22 22:19:08
Kafka學習之路 (五)Kafka在zookeeper中的存儲
小左先森
2019-02-22 14:40:31
我的python學習之路
a13191426
2019-01-11 13:32:43
找圖不求人!10個以圖搜圖的識圖網站推薦
己立
2018-12-20 13:37:08
關閉 WordPress 自動更新及 WP 降級方法
己立
2018-12-16 13:40:25
【雙12促銷】搬瓦工 CN2 DC8 $39/年,1G內存/20G硬盤/1T流量
己立
2018-12-12 13:33:51
教你使用 Excel 快速更換照片背景底色
己立
2018-12-09 13:32:06
磁力播:又一款磁力鏈接/種子在線播放器
己立
2018-12-08 13:33:23
Kindle 如何更換自定義字體教程
己立
2018-12-01 13:32:36
簡悅:一鍵開啓沉浸式閱讀體驗
己立
2018-12-01 13:32:36
分享《機器學習之路》+PDF+阿布
TensorFlow_tf
2018-11-30 13:42:04
【搬瓦工網一促銷】$29/年,1G內存/40G硬盤/1T流量
己立
2018-11-28 14:11:02
WordPress 搬家方法總結:遷移主機和更換域名
己立
2018-11-26 07:06:53
HFS - 超好用的本地文件分享利器,快速從電腦傳文件到手機等設備
己立
2018-11-19 07:09:51
搬瓦工雙十一促銷套餐依然有貨,CN2,2G內存,$31/年
己立
2018-11-15 07:06:24