开发环境kf1 rac搭建oracle 11g rac for aix6.1

更新时间:2024-07-05 10:13:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

环境描述

操作系统版本:6100-09-03-1415 主机型号:IBM小型机P550 内存大小:8GB

rac集群软件版本:oracle 11g 11.2.0.4 数据库软件版本:oracle 11g 11.2.0.4 软件安装目录:/u01 (空间30G)

存储规划

存储设备型号:IBM DS5020

14块300G的磁盘,6+1做为一个RAID5, 5+1做成一个RAID5,剩下一块盘做为热备盘;共划分17个LUN,14个200G的LUN用于存放数据和归档日志,3个10的LUN用于存放CRS和VOTE DISK。 Lun名称 lun1?lun14 ocrlun1?ocrlun3 大小(G) 200 10 用途 数据库数据、归档 CRS、VOTE DISK hdisk2?hdisk15 hdisk16?hidisk18 IP规划

本次开发RAC计划采用两个私网络,最终私网IP还是采用一个网段,10.0.1.0段的私网暂时不用,因为在安装期间报错,想测试HAIP后期再想办法解决。 主机 Public IP VIP Private ip kf1rac1 kf2rac2 scan ip 192.168.121.132 192.168.121.133 192.168.121.136 192.168.121.134 192.168.121.135 10.10.10.132/10.0.1.132 10.10.10.133/10.0.1.133 安装前硬件配置检查

内存大小:至少4G (lsattr -El sys0 -a realmem 验证) swap:至少4G (lsps -a 验证) tmp目录:至少2G 确认系统体系结构: 确认CPU个数 # lsdev -C | grep proc

proc0 Available 00-00 Processor proc2 Available 00-02 Processor proc4 Available 00-04 Processor proc6 Available 00-06 Processor 确认CPU主频 # lsattr -El proc0

frequency 3503000000 Processor Speed False smt_enabled true Processor SMT enabled False smt_threads 2 Processor SMT threads False state enable Processor state False type PowerPC_POWER6 Processor type False

getconf HARDWARE_BITMODE(建议64位)

操作系统依赖文件集

以下是安装oracle 11g rac集群软件之前,操作系统所需要安装依赖包 Aix6.1需要安装如下软件包: bos.adt.base bos.adt.lib bos.adt.libm

bos.perf.libperfstat 6.1.2.1 or later bos.perf.perfstat bos.perf.proctools rsct.basic.rte

rsct.compat.clients.rte xlC.aix61.rte 10.1.0.0 or later bos.rte.bind_cmds.6.1.7.1.bff Aix5.3需要安装如下软件包: bos.adt.base bos.adt.lib bos.adt.libm

bos.perf.libperfstat 5.3.9.0 or later bos.perf.perfstat bos.perf.proctools rsct.basic.rte

rsct.compat.clients.rte xlC.aix50.rte 10.1.0.0 or later

以上软件包可以用此命令确认是否已安装lslpp -L all | grep bos.adt,系统默认安装通常安装是不完整的,因此需手工确认,具体版本因具体操作系统版本而定

安装前操作系统patches

如果操作系统在6100-04及以上版本,那么基本上不需要打任何补丁包了,在安装期间报的几个补丁包我们也可以直接忽略

安装前操作系统相关设置

1、修改系统时区(须重启)

Smit chtz_date?change time zone using system defined values选择”Asia/Chongqing”,然后回车保存 Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] TIME ZONE name OFFSET from Greenwich Mean Time echo $TZ --检查时区是否修改成功

2、 smit date 修改两个主机之间的时间,确保时间保持一致 3、 禁止 NTP 服务

Asia/Chongqing GMT+08:00

stopsrc -s xntpd 将/etc/ntp.conf 改名 cd /etc/

mv ntp.conf ntp.conf_bak

4、 编辑/etc/ssh/sshd_config 文件 (修改后需要重启才能生效)

LoginGraceTime 0

5、 打开异步IO

AIX5.3中,在安装grid软件前执行rootpre.sh会自动打开异步IO服务,在AIX6.1中默认异步IO服务是打开的。推荐的aio_maxreqs值为64k(65536),检查方法 如下: AIX6.1

#ioo-oaio_maxreqsaio_maxreqs=65536 AIX5.3

#lsattr-Elaio0-amaxreqs

maxreqs 65536 Maximum number of REQUESTS True 查看当前启动了多少异步IO进程的方法:

#ps-ek|grep-vgrep|grep–vposix_aioserver|grep-caioserver 调整aio_maxservers和aio_minservers为合适的值 原则:

(1)、调整maxservers的值为10倍的磁盘数量,但是不要超过80

(2)、在高io的时间周期监控AIO的性能情况,如果所有的AIO服务进程都已经启动 那么增大maxservers的值。但是,过多的AIO进程也会增加系统的负载

(3)、监控AIO服务进程的使用情况:

#ps-ek|grep-vgrep|grep–vposix_aioserver|grep-caioserver

(4)、调整参数 ioo-poaio_maxservers=80/ioo-poaio_minservers=40 6、修改内存管理参数 (修改后需重启系统才能生效):

vmo -p -o maxperm%=90; vmo -p -o minperm%=3 vmo -p -o maxclient%=90

vmo -p -o strict_maxperm=0 vmo -p -o strict_maxclient=1 vmo -p -o lru_file_repage=0 vmo -r -o page_steal_method=1

7、 调整maxuproc(系统最大进程数)和ncargs(系统块大小)参数

chdev -l sys0 -a maxuproc=16384

也可以使用:smit chgsys修改“Maximum number of PROCESSES allowed per user”

chdev -l sys0 -a ncargs=256 修改完成后检查

lsattr -El sys0 -a maxuproc lsattr -El sys0 -a ncargs 8、 网络参数配置

名称 Ipqmaxlen 修改的值 512 rfc sb_max tcp_recvspace tcp_sendspace udp_recvspace udp_sendspace 配置方法:

检查当前值的是否满足要求: # /usr/sbin/no -a | more 查看系统是否兼容模式

13231 2*655360 65536 65536 655360(等于tcp_sendspace的10倍,小于sb_max) 65536 # /usr/sbin/lsattr -E -l sys0 -a pre520tune

pre520tune enable Pre-520 tuning compatibility mode True(显示为兼容模式) 开始修改

# /usr/sbin/no -o parameter_name=value --例子 /usr/sbin/no -o ipqmaxlen=512 /usr/sbin/no -o rfc1323=1 /usr/sbin/no -o sb_max=1310720 /usr/sbin/no -o tcp_recvspace=65536 /usr/sbin/no -o tcp_sendspace=65536 /usr/sbin/no -o udp_recvspace=655360 /usr/sbin/no -o udp_sendspace=65536 重新启动计算机使参数生效

非兼容模式下用以下方式修改 /usr/sbin/no -r -o ipqmaxlen=512 /usr/sbin/no -r -o rfc1323=1 /usr/sbin/no -r -o sb_max=1310720 /usr/sbin/no -r -o tcp_recvspace=65536 /usr/sbin/no -r -o tcp_sendspace=65536 /usr/sbin/no -r -o udp_recvspace=1351680 /usr/sbin/no -r -o udp_sendspace=65536 重新启动计算机使参数生效

取消主机中oracle、root和grid用户shell限制

以下修改完成后必须要将主机重启才能生效 vi /etc/security/limits default:

fsize = -1 cpu = -1 data = -1 stack = -1 core = 2097151 rss = -1 nofiles = -1

fsize_hard = -1 cpu_hard = -1 data_hard = -1 stack_hard = -1 rss_hard = -1 nofiles_hard = -1

/etc/hosts设置

127.0.0.1 localhost 192.168.121.132 kf1rac1 192.168.121.133 kf1rac2 #Virtual IP address

192.168.121.134 kf1rac1-vip1 192.168.121.135 kf1rac2-vip1 # Private IP address 10.10.10.132 kf1rac1-priv1 10.10.10.133 kf1rac2-priv1 10.0.1.132 kf1rac1-priv2 10.0.1.133 kf1rac2-priv2 #SCAN IP address

192.168.121.136 kf1rac-scan

# loopback (lo0) name/address 用户组和用户创建

mkgroup -'A' id='310' adms='root' dba mkgroup -'A' id='311' adms='root' oinstall

mkuser -a id='1100' pgrp='oinstall' groups='dba,oinstall' home='/home/grid' fsize=-1 data=-1 core=-1 fsize_hard=-1 cpu_hard=-1 data_hard=-1 stack_hard=-1 core_hard=-1 grid

mkuser -a id='1101' pgrp='oinstall' groups='dba,oinstall' home='/home/oracle' fsize=-1 data=-1 core=-1 fsize_hard=-1 cpu_hard=-1 data_hard=-1 stack_hard=-1 core_hard=-1 oracle

为用户添加以下能力: /usr/bin/chuser

capabilities=CAP_PROPAGATE,CAP_BYPASS_RAC_VMM,CAP_NUMA_ATTACH oracle /usr/bin/chuser

capabilities=CAP_PROPAGATE,CAP_BYPASS_RAC_VMM,CAP_NUMA_ATTACH root /usr/bin/chuser

capabilities=CAP_PROPAGATE,CAP_BYPASS_RAC_VMM,CAP_NUMA_ATTACH grid --查看用户拥有的能力 lsuser -a capabilities grid ――设置用户密码 passwd oracle/oracle passwd grid/oracle

设置 grid和 oracle用户环境变量.profile

Grid用户,注意1号小机+ASM1,2号小机需要换成+ASM2 export ORACLE_SID=+ASM1 export ORACLE_BASE=/u01/app/grid export GRID_HOME=/u01/app/11.2/grid export ORACLE_HOME=/u01/app/11.2/grid export

PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin/jdk:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:$PATH export AIXTHREAD_SCOPE=S umask 022

oracle用户注意1号小机kf1rac1,2号小机需要换成kf1rac22

export ORACLE_SID=kf1rac1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2/db_1 export

PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin/jdk:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:$PATH export AIXTHREAD_SCOPE=S umask 022

创建安装路径点

创建/u01 文件系统30GB,在2台小机执行 以 root 用户身份执行以下命令: mkdir -p /u01/app/11.2/grid chown -R grid:oinstall /u01 mkdir -p /u01/app/oracle

chown oracle:oinstall /u01/app/oracle chmod -R 775 /u01

注意:如果grid和oracle安装在同一文件系统下面,如上,在进行权限修改时要注意先后顺序,先进行/u01赋权,再进行/u01/app赋权,否则会被覆盖

rac集群磁盘配置

以下三步操作在每个节点都需要操作

取消磁盘锁

――然后查询磁盘锁状态值 lsattr -El hdisk11 | grep reserve_

如果上面的结果为reserve_policy,那么必须执行下面命令将rac集群要用的所有磁盘取消磁盘锁(针对IBM存储)。

chdev -l hdisk2 -a reserve_policy=no_reserve chdev -l hdisk3 -a reserve_policy=no_reserve chdev -l hdisk4 -a reserve_policy=no_reserve

chdev -l hdisk5 -a reserve_policy=no_reserve chdev -l hdisk6 -a reserve_policy=no_reserve chdev -l hdisk7 -a reserve_policy=no_reserve chdev -l hdisk8 -a reserve_policy=no_reserve chdev -l hdisk9 -a reserve_policy=no_reserve chdev -l hdisk10 -a reserve_policy=no_reserve chdev -l hdisk11 -a reserve_policy=no_reserve chdev -l hdisk12 -a reserve_policy=no_reserve chdev -l hdisk13 -a reserve_policy=no_reserve chdev -l hdisk14 -a reserve_policy=no_reserve chdev -l hdisk15 -a reserve_policy=no_reserve chdev -l hdisk16 -a reserve_policy=no_reserve chdev -l hdisk17 -a reserve_policy=no_reserve chdev -l hdisk18 -a reserve_policy=no_reserve

如果查询结果为reserve_lock,那么必须执行以下命令 (针对EMC存储) chdev -l hdisk18 -a reserve_lock=no

修改磁盘用户属主

chown grid:oinstall /dev/rhdisk2 chown grid:oinstall /dev/rhdisk3 chown grid:oinstall /dev/rhdisk4

chown grid:oinstall /dev/rhdisk5 chown grid:oinstall /dev/rhdisk6 chown grid:oinstall /dev/rhdisk7 chown grid:oinstall /dev/rhdisk8 chown grid:oinstall /dev/rhdisk9 chown grid:oinstall /dev/rhdisk10 chown grid:oinstall /dev/rhdisk11 chown grid:oinstall /dev/rhdisk12 chown grid:oinstall /dev/rhdisk13 chown grid:oinstall /dev/rhdisk14 chown grid:oinstall /dev/rhdisk15 chown grid:oinstall /dev/rhdisk16 chown grid:oinstall /dev/rhdisk17 chown grid:oinstall /dev/rhdisk18

修改磁盘权限

chmod 660 /dev/rhdisk2 chmod 660 /dev/rhdisk3 chmod 660 /dev/rhdisk4 chmod 660 /dev/rhdisk5 chmod 660 /dev/rhdisk6 chmod 660 /dev/rhdisk7

chmod 660 /dev/rhdisk8 chmod 660 /dev/rhdisk9 chmod 660 /dev/rhdisk10 chmod 660 /dev/rhdisk11 chmod 660 /dev/rhdisk12 chmod 660 /dev/rhdisk13 chmod 660 /dev/rhdisk14 chmod 660 /dev/rhdisk15 chmod 660 /dev/rhdisk16 chmod 660 /dev/rhdisk17 chmod 660 /dev/rhdisk18

安装GRID软件

切换到GRID用户执行安装前检查,进入grid安装目录: ./runcluvfy.sh stage -pre crsinst -n kf1rac1,kf1rac2 -fixup –verbose

执行rootpre.sh

用root用户身份登陆,在每个节点执行grid软件包中的rootpre.sh脚本

Grid软件安装

通过xmanager以grid用户登陆,执行./runInstaller脚本,弹出以下界面,按下图选择,然后点击NEXT

默认选择点击NEXT

选择典型安装,点击NEXT

点击ssh connectivity,然后点击identity nework interfaces按钮

以下界面自定义私网和公网网段,配置正确后点击OK;然后再点击界面上的‘setup’,自动配置等效,等效配置完成后最后点击TEST按钮,没问题后再点击OK

设置ASM存储密码,SYSASM密码为oracle,设置完成后点击NEXT会有警告“密码不符合oracle公司推荐标准”,忽略点击OK

创建ASM磁盘组,此处创建的磁盘组给ocr和vote disk用,所以此处选择3个磁盘,然后点击NEXT

此处默认选择,点击NEXT

忽略以下几个包的报错,网络参数可以安装好后再调整,再点击NEXT

耐心等待安装进度,大约半小时左右

安装完成后按以下提示,以root用户登陆,在每个节点都执行以下两个脚本

# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete. # /u01/app/11.2/grid/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: The file \ Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file \ Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file \ Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. 2015-01-14 20:54:47: Parsing the host name 2015-01-14 20:54:47: Checking for super user privileges 2015-01-14 20:54:47: User has super user privileges Using configuration parameter file: /u01/app/11.2/grid/crs/install/crsconfig_params Creating trace directory User grid has the required capabilities to run CSSD in realtime mode LOCAL ADD MODE Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert TP profile reader root cert TP pa root cert TP peer pa cert TP pa peer cert TP profile reader pa cert TP profile reader peer cert TP peer user cert pa user cert Adding daemon to inittab CRS-4123: Oracle High Availability Services has been started. ohasd is starting CRS-2672: Attempting to start 'ora.gipcd' on 'kf1rac1' CRS-2672: Attempting to start 'ora.mdnsd' on 'kf1rac1' CRS-2676: Start of 'ora.gipcd' on 'kf1rac1' succeeded CRS-2676: Start of 'ora.mdnsd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'kf1rac1' CRS-2676: Start of 'ora.gpnpd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'kf1rac1' CRS-2676: Start of 'ora.cssdmonitor' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'kf1rac1' CRS-2672: Attempting to start 'ora.diskmon' on 'kf1rac1' CRS-2676: Start of 'ora.diskmon' on 'kf1rac1' succeeded CRS-2676: Start of 'ora.cssd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'kf1rac1' CRS-2676: Start of 'ora.ctssd' on 'kf1rac1' succeeded ASM created and started successfully.

DiskGroup crsvg created successfully. clscfg: -install mode specified Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. CRS-2672: Attempting to start 'ora.crsd' on 'kf1rac1' CRS-2676: Start of 'ora.crsd' on 'kf1rac1' succeeded CRS-4256: Updating the profile Successful addition of voting disk 2d7dbf0ca43a4f52bf13d64eb32b755f. Successful addition of voting disk 29cb69e8283a4ffdbf836eb105eecb5a. Successful addition of voting disk 06d972fdff284f34bfdbf1acfc931296. Successfully replaced voting disk group with +crsvg. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE 2d7dbf0ca43a4f52bf13d64eb32b755f (/dev/rhdisk16) [CRSVG] 2. ONLINE 29cb69e8283a4ffdbf836eb105eecb5a (/dev/rhdisk17) [CRSVG] 3. ONLINE 06d972fdff284f34bfdbf1acfc931296 (/dev/rhdisk18) [CRSVG] Located 3 voting disk(s). CRS-2673: Attempting to stop 'ora.crsd' on 'kf1rac1' CRS-2677: Stop of 'ora.crsd' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.asm' on 'kf1rac1' CRS-2677: Stop of 'ora.asm' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.ctssd' on 'kf1rac1' CRS-2677: Stop of 'ora.ctssd' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'kf1rac1' CRS-2677: Stop of 'ora.cssdmonitor' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.cssd' on 'kf1rac1' CRS-2677: Stop of 'ora.cssd' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.gpnpd' on 'kf1rac1' CRS-2677: Stop of 'ora.gpnpd' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.gipcd' on 'kf1rac1' CRS-2677: Stop of 'ora.gipcd' on 'kf1rac1' succeeded CRS-2673: Attempting to stop 'ora.mdnsd' on 'kf1rac1' CRS-2677: Stop of 'ora.mdnsd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.mdnsd' on 'kf1rac1' CRS-2676: Start of 'ora.mdnsd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.gipcd' on 'kf1rac1' CRS-2676: Start of 'ora.gipcd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'kf1rac1' CRS-2676: Start of 'ora.gpnpd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'kf1rac1' CRS-2676: Start of 'ora.cssdmonitor' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'kf1rac1' CRS-2672: Attempting to start 'ora.diskmon' on 'kf1rac1' CRS-2676: Start of 'ora.diskmon' on 'kf1rac1' succeeded CRS-2676: Start of 'ora.cssd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'kf1rac1' CRS-2676: Start of 'ora.ctssd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.asm' on 'kf1rac1' CRS-2676: Start of 'ora.asm' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.crsd' on 'kf1rac1' CRS-2676: Start of 'ora.crsd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.evmd' on 'kf1rac1' CRS-2676: Start of 'ora.evmd' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.asm' on 'kf1rac1' CRS-2676: Start of 'ora.asm' on 'kf1rac1' succeeded CRS-2672: Attempting to start 'ora.CRSVG.dg' on 'kf1rac1' CRS-2676: Start of 'ora.CRSVG.dg' on 'kf1rac1' succeeded kf1rac1 2015/01/14 21:05:53

/u01/app/11.2/grid/cdata/kf1rac1/backup_20150114_210553.olr Configure Oracle Grid Infrastructure for a Cluster ... succeeded Updating inventory properties for clusterware Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 8192 MB Passed The inventory pointer is located at /etc/oraInst.loc The inventory is located at /u01/app/oraInventory 'UpdateNodeList' was successful.

$ crs_stat -t -v

Name Type R/RA F/FT Target State Host ----------------------------------------------------------------------

ora.CRSVG.dg ora....up.type 0/5 0/ ONLINE ONLINE kf1rac1 ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE kf1rac1 ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE kf1rac1 ora.cvu ora.cvu.type 0/5 0/0 ONLINE ONLINE kf1rac1 ora.gsd ora.gsd.type 0/5 0/ OFFLINE OFFLINE ora....SM1.asm application 0/5 0/0 ONLINE ONLINE kf1rac1 ora....ac1.gsd application 0/5 0/0 OFFLINE OFFLINE ora....ac1.ons application 0/3 0/0 ONLINE ONLINE kf1rac1 ora....ac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE kf1rac1 ora....SM2.asm application 0/5 0/0 ONLINE ONLINE kf1rac2 ora....ac2.gsd application 0/5 0/0 OFFLINE OFFLINE

ora....ac2.ons application 0/3 0/0 ONLINE ONLINE kf1rac2 ora....ac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE kf1rac2 ora....network ora....rk.type 0/5 0/ ONLINE ONLINE kf1rac1 ora.oc4j ora.oc4j.type 0/1 0/2 ONLINE ONLINE kf1rac1 ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE kf1rac1 ora....ry.acfs ora....fs.type 0/5 0/ ONLINE ONLINE kf1rac1 ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE kf1rac1 $ crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [11.2.0.4.0] $ crsctl query crs releaseversion

Oracle High Availability Services release version on the local node is [11.2.0.4.0] $ crsctl check cluster -all

************************************************************** kf1rac1:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online

************************************************************** kf1rac2:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online

**************************************************************

安装oracle软件 执行rootpre.sh

用root用户身份登陆,在每个节点执行grid软件包中的rootpre.sh脚本 cd database # ./rootpre.sh

oracle软件安装

通过xmanager以oracle用户登陆,执行./runInstaller脚本,弹出以下界面,按下图选择,然后点击NEXT,提示警告忽略

选择跳过软件更新,点击NEXT

选择仅安装软件,点击NEXT

选择“安装集群数据库软件”,点击ssh connectivity,确保需要安装的节点都被选中,然后输入oracle用户密码,再点击“Setup”按钮自动配置ORACLE用户等效,配置完成后点击TEST按钮,确保测试正常后点击OK,最后再点击NEXT

默认点击NEXT

选择企业版本安装,点击NEXT

确保安装目录无误后点击NEXT

确保系统组分配正确后点击NEXT

下图提示有系统参数设置不合理,可以点击“Fix&Check Again”按钮自动生产合再的参数放在/tmp/CVU_11.2.0.4.0_oracle/runfixup.sh脚本中,以root用户登陆到每个节点执行这个脚本,然后再点击OK,它会自动重新校验一次系统参数

以下几个警告直接忽略,SCAN警告是因为我们没有配置DNS服务器

点击install按钮,进行安装需要耐心等待半小时左右

本文来源:https://www.bwwdw.com/article/0ne.html

Top