最近在安裝Oracle11.2.0.2.0 for RedHat5.4_32bit,出現了一些問題,總結如下。

   最近在安裝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,如下圖。   14061015CT3P-2YV.jpg   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文件時候圖形化無法出來的問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章