Oracle 11g RAC 在 CentOS 5.5 的安裝日誌

來源:互聯網
上載者:User

伺服器
DELL R410 2台
CPU INTER E5620 .4GHz 12M4C
MEM 64G
DISK 300G

儲存空間
DS3512
DISK 600G*12 RAID5

(因為JS以次充好,在伺服器光纖卡上,搞了一個月,才把問題解決掉。

出現問題:
    1.伺服器時不時找不到儲存空間;
    2.在儲存空間設定端,找不到光纖卡介面。
    3.伺服器重啟後,找不到儲存空間,要儲存空間重啟後才可找到


最後還是用一塊4GB的當了8GB給了我們。速度肯定是打折了。
那個氣呀。使用不同的硬體產品,就是麻煩)



軟體環境:
CentOS 5.5  64bit
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0(64位)


1、伺服器本地磁碟分割:

Disk /dev/sda: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       36472   292760527+  8e  Linux LVM


使用了LVM 分區,後使用卷。
關於LVM 資料如下:
http://hi.baidu.com/dongfangmn/blog/item/23f7ccd813c9213831fa1c67.html

2、IP規劃

[root@rac2 app]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1        localhost.localdomain localhost
#::1        localhost6.localdomain6 localhost6


#public ip
192.168.18.101 rac1
192.168.18.103 rac2

#priv ip
192.168.0.101     rac1-private
192.168.0.103     rac2-private

#vip ip
192.168.18.121      rac1-vip
192.168.18.123      rac2-vip

#scan ip
192.168.18.100      rac-scan

(注意:All host names must conform to the RFC 952 standard,
which permits alphanumeric characters, Host name using underscores(“_”)
are not allowed.HOSTS 檔案中不支援“_” 字元)

3、使用者/組

/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid

[root@ora1 ~]# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
[root@ora1 ~]# id grid
uid=502(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)


mkdir -p /opt/app/oraInventory
chown -R grid:oinstall /opt/app/oraInventory
chmod -R 775 /opt/app/oraInventory

mkdir -p /opt/app/grid
mkdir -p /opt/app/oracle
chown -R grid:oinstall /opt/app/grid
chown -R oracle:oinstall /opt/app/oracle
chmod -R 775 /opt/app/oracle
chmod -R 775 /opt/app/grid

passwd grid
passwd oracle

4、修改系統參數:
vi /etc/security/limits.conf

#ORACLE SETTING
grid                 soft    nproc   2047
grid                 hard    nproc   16384
grid                 soft    nofile  1024
grid                 hard    nofile  65536
oracle               soft    nproc   2047
oracle               hard    nproc   16384
oracle               soft    nofile  1024
oracle               hard    nofile  65536


vi /etc/pam.d/login

#ORACLE SETTING
session    required     pam_limits.so

# vi /etc/sysctl.conf

#ORACLE SETTING
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586


5、gird時間同步所需要的設定(11gR2新增檢查項)

#Network Time Protocol Setting
/sbin/service ntpd stop
chkconfig ntpd off
#rm /etc/ntp.conf
mv /etc/ntp.conf  /etc/ntp.conf.org


選擇是開啟還是關閉SELINUX的工作模式(修改這一項後最好重啟一下作業系統)

[root@oracle ~]# vi /etc/selinux/config

# 設定SELINUX為disabled

      SELINUX=disabled

6、作業系統版本:

[root@rac1 ~]# lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:    CentOS
Description:    CentOS release 5.5 (Final)
Release:    5.5
Codename:    Final

[root@rac1 ~]# uname -a

Linux solr03 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 ~]#

7、修改系統的發行版本

[root@oracle ~]# vi /etc/RedHat-release

將CentOS release 5 (Final) 修改成
#CentOS release 5 (Final)
Red Hat Enterprise Linux AS release 5 (Nahant Update 5)

(因為oracle公司沒推出CentOS版本的oracle)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 下一頁

聯繫我們

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