oracle11g centos63 virtualbox安裝手記

來源:互聯網
上載者:User

最近由於工作需要,在virtualbox上安裝了Centos6.3,並在上面安裝了oracle11g,記錄一下安裝過程中遇到的一些問題。

oracle安裝參考:http://blog.csdn.net/hotday_kevin/article/details/7339783

環境:
VirtualBox 4.2.6
CentOS63
Oracle 11.2

安裝過程中遇到的一些問題:
1、Unexpected error occurred while validating inputs at state 'getOCMDetails'. 
一種解決方案:http://www.linkedin.com/groups/I-try-clone-oracle-grid-77941.S.38808726
另外一種是不填寫郵件地址,直接點no,跳過這一步。
2、缺少pdksh
先安裝依賴包
#rpm -e ksh-20100621-16.el6.i686
下載pdksh-5.2.14-1.i386.rpm 
#rpm -ivh /home/oracle/downloads/pdksh-5.2.14-1.i386.rpm 

3.Swap空間過小
Linux伺服器需要擴大swap,但原硬碟因分區問題,沒有辦法調整swap分區的大小。
通過建立一個swap檔案的方法,來解決作業系統的交換空間(虛擬記憶體)問題。
通過下面方法建立swap檔案:
#dd if=/dev/zero of=/tmp/swapfree bs=32k count=65515 (count是分區數量,swap大小=bs*count,增加2G)
#mkswap /tmp/swapfree (格式化交換分區檔案)
#swapon /tmp/swapfree (啟用交換分區檔案)
#swapon –s (顯示swap狀態)

修改/etc/fstab,讓系統每次啟動都把/tmp/swapfree作為swap使用,增加下面一行:
/tmp/swapfree swap swap defaults 0 0

4.file not found /oracle/oracle11g/app/oracle/product/11.1.0/db_1/oc4j/j2ee/oc4j_applications/applications/WFMLRSVCApp.ear.
解決方案:將下載下來的兩個Zip檔案,解壓到同一個目錄下,檔案:V20610-01_1of2.zip和V20610-01_2of2.zip解壓後的形態很重要。
假設解壓到F:\Temp\database路徑,
1)將V20610-01_1of2.zip解壓到F:\Temp\database路徑,解壓後database路徑下有檔案夾名為V20610-01_1of2
2)將V20610-01_2of2.zip解壓到F:\Temp\database路徑,解壓後database路徑下有檔案夾名為V20610-01_2of2
3)將V20610-01_2of2\database\stage\Components子檔案夾全部copy到路徑V20610-01_1of2\database\stage\Components\下
4)運行V20610-01_1of2檔案中的setup即可

5.安裝介面中文亂碼,執行一下命令即可
export LC_ALL=C

6.監聽連接埠被佔用
vim /etc/hosts 增加
127.0.0.1 ganjh.moyasz(主機名稱)

7.linux建立oracle 執行個體時提示 file etc oratab is not accessible
忘記去執行 一個root.sh 和 orainstRoot.sh檔案了,當然了,需要用root使用者執行:
[oracle@ganjh 11.2.0]# pwd
/usr/local/oracle/product/11.2.0/
[oracle@ganjh 11.2.0]# ./root.sh
[oracle@ganjh 11.2.0]#cd /home/oracle/oralnventory/
[oracle@ganjh oralnventory]#./orainstRoot.sh

8.切換到oracle使用者後,不能自動執行~/.bash_profile(問題沒有找到答案)

9.windows pl/sql不能串連到oracle,提示連線逾時。

首先確認監聽已經啟動(lsnrctl status)
關閉SELinux:
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
開啟1521連接埠(開啟其他如80連接埠,也可使用同樣的方式)
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.