虛擬機器Linux中Oracle 11g的安裝

來源:互聯網
上載者:User

一、系統內容

1.作業系統:Fedora13
2.資料庫:Oracle11g 11.1.0.6.0
3.虛擬機器:Oracle VirtualBox 3.2.6
4.連網方式:Host-only

二、安裝步驟

1.建立dba使用者組及oracle使用者
切換到root賬戶 : su - root
添加使用者組 : groupadd dba
添加使用者 : useradd -g dba -p oracle oracle

2.解壓zip包到oracle使用者目錄 :/home/oracle

3.終端進入安裝目錄: cd /home/oracle/database

4.執行 ./runInstaller 按照提示進行設定

5.對於檢查系統不符項進行如下修改:

I.系統版本不符(system requirements)
新開終端以roor賬戶登入 : su - root
進入etc目錄 : cd /etc
搜尋RedHat-release檔案 : ls redhat-release
備份redhat-release檔案 : cp redhat-release /home
編輯redhat-release檔案 : vi redhat-release
根據Oracle提示Expected result改為 : redhat-5
儲存並關閉檔案

II.依賴包的安裝(system package requirements)
檢查所有依賴包的安裝情況,忽略"passed"的包
根據"Failed"的包名,到系統安裝光碟片的 /media/Fedora 13 i386 DVD/Packages 目錄下搜尋
如:Checking for libaio-devel-0.3.106; Not found. Failed <<<<
在上述目錄下 ls libaio* 找到該版本或更高版本的rpm安裝包
如果安裝光碟片內沒有,可以到 http://rpm.pbone.net/ 搜一個下載下來,通過FTP上傳到虛擬機器
使用root賬戶執行 rpm -ivh libaio-devel-0.3.109-2.fc13.i686.rpm 安裝rpm包
如果安裝時提示 XXX is needed by ### 則扔需要將 XXX 相同版本下載後先安裝

III.核心參數(kernel parameters)
修改檔案 /etc/sysctl.conf 添加如下內容
#Oracle Parameters
kernel.sem=250 32000 100 128
kernel.shmmax=536870912
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 65536

儲存後,執行 sysctl -p 使配置生效


完成上述操作後,即可安裝。

相關文章

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.