Oracle Linux 5.8安裝Oracle 11g RAC

來源:互聯網
上載者:User

第一章:配置實驗環境

實驗環境使用virtual box虛擬機器軟體實現。安裝作業系統步驟忽略了。。。

1.1、伺服器作業系統:

1.2、Oracle軟體版本:

Oracle database

11.2.0.3

Oracle grid

11.2.0.3

1.3、虛擬機器硬體設定

每台虛擬機器分配3GB記憶體、2顆CPU、兩塊網卡、60GB硬碟

第二章:配置虛擬機器主機,環境準備

2.1-2.7的操作兩台虛擬機器要配置一樣(主機名稱及IP地址除外,按第一章裡的進行配置)。

其中的udev綁定指令碼來自maclean liu的oracle 11g rac教程

http://t.askmaclean.com/forum.php?mod=viewthread&tid=2007&extra=page%3D2%26orderby%3Dlastpost

2.1關閉selinux及iptables

修改/etc/selinux/config檔案,SELINUX=disables關閉SELINUX

/etc/init.d/iptables stop關閉防火牆服務。

chkconfig –level 35 ipatables off禁止服務開機啟動。‘

2.2 修改主機名稱及hosts檔案

2.3 建立相關的使用者組

建立命令如下

groupadd -g 5000 asmadmin

groupadd -g 5001 asmdba

groupadd -g 5002 asmoper

groupadd -g 6000 oinstall

groupadd -g 6001 dba

groupadd -g 6002 oper

useradd -g oinstall -G asmadmin,asmdba,asmoper grid

useradd -g oinstall -G dba,asmdba oracle

2.4 配置yum源,安裝oracle所需軟體包

Vi編輯oinstall.repo檔案輸入以下內容:

[oracle-install]

name=oracle-install

baseurl=file:///media/disk/Server

gpgcheck=0

enabled=1

然後執行yum install oracle-validated,輸入Y進行安裝

2.5修改使用者限制參數檔案

Cat /etc/security/limits.conf查看使用者限制檔案的參數,使用yum install oracle-vildated之後,oracle使用者參數己自動設定好。

只需要把grid使用者的數數添加到檔案裡即可。

# grid-Validated setting for nofile soft limit is 131072

grid soft nofile 131072

# grid-Validated setting for nofile hard limit is 131072

grid hard nofile 131072

# grid-Validated setting for nproc soft limit is 131072

grid soft nproc 131072

# grid-Validated setting for nproc hard limit is 131072

grid hard nproc 131072

# grid-Validated setting for core soft limit is unlimited

grid soft core unlimited

# grid-Validated setting for core hard limit is unlimited

grid hard core unlimited

# grid-Validated setting for memlock soft limit is 50000000

grid soft memlock 50000000

# grid-Validated setting for memlock hard limit is 50000000

grid hard memlock 50000000

2.6 建立database及grid的安裝目錄

mkdir /u01

mkdir /g01

chown –R oracle:oinstall /u01

chown –R grid:oinstall /g01

passwd oracle

passwd grid

2.7關閉ntp服務

[root@rac1 ]# /etc/init.d/ntpd status

ntpd is stopped

[root@rac1 ]# chkconfig ntpd off

[root@rac1 ]# mv /etc/ntp.conf /etc/ntp.conf.original

  • 1
  • 2
  • 3
  • 4
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.