在VMware Workstation 10.0.1 build-1379776上安装ORACLE 11G双节点 RAC(一)

公司需要11gRAC坏境,很久没在Workstation没装过RAC了,喜欢Workstation的操作界面,用VMware Server不习惯,网上关于VMware Workstation装RAC的资料比较少,普遍都是关于

vmserver装10g rac的,关于11g很多rac的安装文档大部分都是有头无尾,看着别扭,此文档安装到哪,写到哪,希望能成功吧.



1.环境:

VMware Workstation 10.0.1 build-1379776是装在windows server 2008 r2 Enterprise环境上的,虚拟机装的LINUX是redhat5.8 64位的:

Linux node1 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux


2.安装数据文件

-rwxrwxrwx 1 root root 1239269270 Mar  6 15:41 linux.x64_11gR2_database_1of2.zip
-rwxrwxrwx 1 root root 1111416131 Mar  6 15:56 linux.x64_11gR2_database_2of2.zip
-rwxrwxrwx 1 root root 1052897657 Mar 10 10:41 linux.x64_11gR2_grid.zip
-rwxrwxrwx 1 root root     137897 Mar 11 18:47 oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm
-rwxrwxrwx 1 root root      14176 Mar 11 18:47 oracleasmlib-2.0.4-1.el5.x86_64.rpm
-rwxrwxrwx 1 root root      90225 Mar 11 18:47 oracleasm-support-2.1.8-1.el5.x86_64.rpm


3.安装虚拟机

  安装的时候,选择高级安装,硬盘选择SCSI

  sda  30g   /

  sdb  30g  /u01

  sdc   50g /data

  sdd  100g asm

  原有网卡选择桥接,再添加一块网卡是host only模式.


4.安装操作系统,把操作系统安装到ada下,把大部分包安装了,关闭防火墙和sellinux.



5.修改虚拟机配置文件,关于共享存储,添加如下内容:

   disk.locking= "FALSE"

   diskLib.dataCacheMaxSize= "0"

   scsi1.sharedBus= "virtual"

   scsi1:0.deviceType= "disk"

   scsi1:1.deviceType= "disk"

   scsi1:2.deviceType= "disk"

   scsi1:3.deviceType= "disk"


6.安装vmware-toolbox



7.修改虚拟机配置文件:

  tools.syncTime = "TRUE" 


8.修改LINUX操作系统/boot/grub/grub.conf,

 添加

  clock=pit nosmp noapic nolapic 到读取内核那一行后面


9.建grid和oracle11用户

# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba grid
# /usr/sbin/useradd -g oinstall -G dba oracle11



10..修改参数文件/etc/security/limits.conf,添加如下内容:

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


11.修改/etc/sysctl.conf,添加如下内容:

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 = 1048576



13.修改/etc/hosts文件:

 [root@node4 file]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node3 localhost.localdomain localhost
192.168.1.242           node3.mycorpdomain.com        node3
192.168.1.42            node3-vip.mycorpdomain.com    node3
10.10.10.242            node3-priv.mycorpdomain.com   node3
192.168.1.241           node4.mycorpdomain.com        node4
192.168.1.41            node4-vip.mycorpdomain.com    node4
10.10.10.241            node4-priv.mycorpdomain.com   node4
[root@node4 file]# 


14.配置 hangcheck timer 内核模块,修改/etc/modprobe.conf ,添加如下内容:

  options hangcheck-timer hangcheck_tick=30hangcheck_margin=180



15.通过rpm -ivh安装asm包:

-rwxrwxrwx 1 root root     137897 Mar 11 18:47 oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm
-rwxrwxrwx 1 root root      14176 Mar 11 18:47 oracleasmlib-2.0.4-1.el5.x86_64.rpm
-rwxrwxrwx 1 root root      90225 Mar 11 18:47 oracleasm-support-2.1.8-1.el5.x86_64.rpm


16.创建asm磁盘组:

[root@node3 /]# oracleasm
Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
       oracleasm --exec-path
       oracleasm -h
       oracleasm -V
The basic oracleasm commands are:
    configure        Configure the Oracle Linux ASMLib driver
    init             Load and initialize the ASMLib driver
    exit             Stop the ASMLib driver
    scandisks        Scan the system for Oracle ASMLib disks
    status           Display the status of the Oracle ASMLib driver
    listdisks        List known Oracle ASMLib disks
    querydisk        Determine if a disk belongs to Oracle ASMlib
    createdisk       Allocate a device for Oracle ASMLib use
    deletedisk       Return a device to the operating system
    renamedisk       Change the label of an Oracle ASMlib disk
    update-driver    Download the latest ASMLib driver
[root@node3 /]# oracleasm listdisks
[root@node3 /]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+  83  Linux
/dev/sda2            1913        3393    11896132+  83  Linux
/dev/sda3            3394        3915     4192965   82  Linux swap / Solaris

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         130     1044193+  83  Linux

Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        2610    20964793+  83  Linux

Disk /dev/sdd: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        2610    20964793+  83  Linux

Disk /dev/sde: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1        2610    20964793+  83  Linux
[root@node3 /]# oracleasm createdisk VOL1 /dev/sdc1 
Writing disk header: done
Instantiating disk: done
[root@node3 /]# oracleasm createdisk VOL2 /dev/sdd1 
Writing disk header: done
Instantiating disk: done
[root@node3 /]# oracleasm createdisk VOL3 /dev/sde1 
Writing disk header: done
Instantiating disk: done
[root@node3 /]# oracleasm listdisks
VOL1
VOL2
VOL3
[root@node3 /]# 


17.修改/etc/sysconfig/rawdevices ,原始设备映射到先前创建的共享分区

/dev/raw/raw1 /dev/sdc1

/dev/raw/raw2 /dev/sdd1

/dev/raw/raw3 /dev/sde1

# chown grid:oinstall  /dev/raw/raw[1-3]


接下来就是安装 linux.x64_11gR2_grid.zip


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值