宿主机:win7sp1
vmware station 7.15
redhat linux4 update7 + oracle10.2.0.1  rac安装
注意:在安装linux的时候,如果空间充足,尽量全部安装软件包,否则在接下来安装rac的过程中会出现莫名的错误。
安装完 redhat enterprise linux 4 update7以后 ,对主机做如下配置。

1:因为是用vmware-workstation 安装的,因此要在.vmx文件中添加如下文件
disk.locking = "FALSE"
   diskLib.dataCacheMaxSize = "0"
   scsi1.sharedBus = "virrual"
2:修改/etc/hosts文件, 修改后的结果如下
127.0.0.1  localhost  // 注意:此处必须为这种写法,否则监听ip地址变为127.0.0.1
172.16.10.96 rac1
172.16.10.97 rac2
172.16.10.94 rac1-vip
172.16.10.95 rac2-vip
10.10.17.221 rac1-priv
10.10.17.222 rac2-priv

3:创建oracle用户、oinstall和dba组
oracle用户的 .bash_profile 文件最终如下
#set environment

export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/10.2.0/db_1
export ORACLE_CRS_HOME=$ORACLE_BASE/10.2.0/crs_1
export ORACLE_SID=rac1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_CRS_HOME/bin:$$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
ulimit -u 16384 -n 65536
umask 022

4:配置内核参数
vi /etc/sysctl.conf
添加如下内容
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
提示,上述参数中通常只有一项需要我们更改,即kernel.shmmax,该参数推荐设定为物理内存的一半,
由于安装crs 的时候要求内存至少512M,因此我们此处也按照512*1024*1024 来设置。

5:设置oracle用户的shell限制
vi /etc/security/limits.conf
增加如下内容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

6:修改安全限制
vi /etc/pam.d/login
添加如下内容
session required /lib/security/pam_limits.so

7:配置Hangcheck 计时器
增加如下内容
modprobe hangcheck-timer hangcheck-tick=30 hangcheck_margin=180

8:磁盘分区,最终分区结果如下
[root@rac1 ~]# fdisk -l
Disk /dev/hda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         637     5116671   83  Linux
/dev/hda2             638        1435     6409935   83  Linux
/dev/hda3            1436        1566     1052257+  82  Linux swap
Disk /dev/hdd: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1         414      195583+  83  Linux
/dev/hdd2             415         828      195615   83  Linux
/dev/hdd3             829        9096     3906630   83  Linux
/dev/hdd4            9097       16537     3515872+  83  Linux
[root@rac1 ~]#

9:安装必要的asmlib包

[root@rac1 ~]# uname -a
Linux rac1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# uname -r
2.6.9-78.ELsmp
[root@rac1 ~]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# rpm -qa |grep oracleasm
oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4
oracleasmlib-2.0.4-1.el4
oracleasm-support-2.1.7-1.el4
[root@rac1 ~]#

10:修改裸设备服务的配置文件: /etc/sysconfig/rawdevices  添加下面2行。
/dev/raw/raw1  /dev/hdd1
/dev/raw/raw2  /dev/hdd2
 
11:修改裸设备权限
[root@rac1 ~]# vi /etc/udev/permissions.d/50-udev.permissions
该行修改后的结果为:
# raw devices
raw*:oracle:dba:0660
raw/*:oracle:dba:0660

配置第二个节点:

1:修改vi /etc/sysconfig/network
将hostname改为 rac2
2:修改网卡的mac地址,并修改ip
3:在rac2节点,将oracle用户的oracle_sid 改为 racdb2
设置ssh 等效性
(具体参考三思的笔记)

配置asm

首先在rac1 执行:
[root@rac1 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
 
 
然后切换至rac2 执行
[root@rac2 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

再切换回rac1 执行

[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/hdd3
Marking disk "/dev/sdd1" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/hdd4
Marking disk "/dev/hdd4" as an ASM disk: [ OK ]
[root@rac1 linux-patch]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
查看一下当前的磁盘组:
Scanning system for ASM disks: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
rac2 上也查看一下当前磁盘组:
[root@rac2 ~]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
接下来就是安装clusterware,如果没大的问题,就安装成功。
在最后阶段,会提示一个错误,只要在rac2节点执行 $ORACLE_CRS_HOME/bin/vipca  即可
安装过程中碰到的一些问题:
1:软件包卸载
rpm -ivh ****.rpm --force --nodeps就可以了,nodeps的意思是忽视依赖关系。

如:
rpm -ivh oracleasm-2.6.9-78.ELhugemem-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-2.6.9-78.EL-debuginfo-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-2.6.9-78.EL-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-support-2.1.7-1.el4.i386.rpm --force --nodeps

2:关闭防火墙和sendmail ,否则客户端连接不上,启动很慢。
查看相关的状态
chkconfig --list iptables
chkconfig --list sendmail
关闭相关服务
chkconfig --level 23456 iptables off
chkconfig --level 23456 sendmail off
本人安装的rac系统在运行一个周以后,再次打开rac2主机时,就找不到 rac2的 eth1 网卡了 ,导致网卡丢失,问题还没解决。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24862808/viewspace-721801/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24862808/viewspace-721801/

vmware workstation7 + win7 安装rac相关推荐

  1. 虚拟机VMware 配置win7 安装

    1.首先需要下载一个VMware 2.接着下载一个Windows7的镜像系统 下载地址:MSDN, 我告诉你 - 做一个安静的工具站 我的MSDN - MSDN原版系统,MSDN镜像,MSDN ISO ...

  2. VMware Linux 下安装 Oracle 11gR2 RAC

     文本: 文本 VMware Linnux 下安装 Oracle 11g R2 RAC 虚拟机VMware下安装Linux下载wmware server 2.0http://download.pcho ...

  3. Win7安装VMware

    Win7安装VMware 下载Vmware 下载链接:https://download.csdn.net/download/weixin_44021888/86948258?spm=1001.2014 ...

  4. Oracle 12cR1 RAC 在VMware Workstation上安装(上)—OS环境配置

    Oracle 12cR1 RAC 在VMware Workstation上安装(上)-OS环境配置 1.1  整体规划部分 1.1.1  所需软件介绍 Oracle RAC不支持异构平台.在同一个集群 ...

  5. VMware虚拟机下安装win7系统详解

    工具/原料 VMware虚拟机 YLMF_GHOSTWIN7SP1_X64_YN2015.iso镜像文件 方法/步骤 1 1.点击[创建新的虚拟机]按钮,创建虚拟机. 2.选择[经典]安装. 3.选择 ...

  6. Vmware+RHEL5+Oracle 10G RAC安装实验--详细过程(一)

    实验环境: 普通PC一台(3GB内存,500GB硬盘) Vmware Server 1.0.6版 RedHat Linux Enterprise 5.1 Oracle  10g for linux(1 ...

  7. 虚拟机——在VMware虚拟机上安装Win7 操作系统

    在VMware虚拟机上安装Win7 操作系统 1.环境 本机环境:windows 8.1专业版 64 bit 内存:4GB 2.准备 VMware虚拟机 (对于安装VMware虚拟机的详细步骤,可参看 ...

  8. VMware调试.【转】VMware+Windgb+Win7 内核驱动调试

    ZC:我遇到的问题:com_1 怎么都不成功,记起来 貌似原来也遇到过这个问题,看了一下 VMware里面创建的是 "串行端口 2",于是 将 "com_1"改 ...

  9. Ubuntu12.04 VMware Tools的安装

    Ubuntu12.04VMware Tools的安装 备注:xp+VMware.Workstation.v8.0.3 1.      VMware Tools的概述 VMware Tools是VMwa ...

最新文章

  1. 迁移学习CNN图像分类模型 - 花朵图片分类
  2. 【Python】全国气温骤降,Python一键生成御寒指南,助你温暖过冬!!
  3. 复制百度文库的文字加什么后缀_WORD文档中如何复制样式
  4. 踩坑记录--mybatisplus模糊查询中文时 有数据但 like查不到
  5. js方法写在html中,在js中写html代码怎么写
  6. java的URLEncoder.encode() 疑问与解惑
  7. Redis基础(十一)——缓存穿透和缓存雪崩
  8. 中国吉他效果市场趋势报告、技术动态创新及市场预测
  9. oracle运维dba面试题,一份DBA面试题目---亲身经历
  10. [转载] Python Numpy
  11. 「代码随想录」213.打家劫舍II 【动态规划】力扣详解!
  12. java 导出word简历_java导出生成word(类似简历导出)
  13. SQL*Plus 系统变量之36 - PAGES[IZE]
  14. 双耳节拍 枕头_枕头2-3-0不在
  15. mysql通配符_MySQL中的通配符
  16. Oracle 11g 通过透明网关访问瀚高数据库
  17. java正则表达式匹配单引号_java - 正则表达式,用于在未被单引号或双引号括起时使用空格分割字符串...
  18. 湖南信息学院大一C语言考试,2003级信息学院《C语言程序设计》考试试题
  19. Redis三种删除策略
  20. FMODE学习之-------第一站

热门文章

  1. 老电脑玩游戏又卡又慢,怎么办?
  2. 夜空为什么是黑暗的?
  3. 如何教老婆学Python?
  4. PTA 7-3 插入排序还是归并排序 (25分)
  5. 祝我家小璐璐生日快乐
  6. 解放switch-case/if-else
  7. J - 马老师的餐厅
  8. iOS播放已经下载,部分下载,没有下载的视频资源
  9. python父亲节祝福_用python祝福父亲节_父亲节短信祝福怎么发 最经典的感恩父亲句子...
  10. LeetCode刷题笔记 495. 提莫攻击