Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)

一、安装CRS补丁

在安装CRS之前,需要安装补丁p6718715_10203_AIX64-5L,否则在安装时会出现“无法发现node”的错误。

[[email protected] /]#cd /home/oracle/p6718715_10203_AIX64-5L/

补丁解压后,只需要以root身份运行“root.sh”即可:

[[email protected] p6718715_10203_AIX64-5L]#./rootpre.sh

./rootpre.sh output will be logged in /tmp/rootpre.out_16-03-15.17:51:20
Saving the original files in /etc/ora_save_16-03-15.17:51:20....
Copying new kernel extension to /etc....
./rootpre.sh[295]: test: argument expected
Loading the kernel extension from /etc
 Oracle Kernel Extension Loader for AIX
       Copyright (c) 1998,1999 Oracle Corporation
 Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it
 Unconfigured the kernel extension successfully
 Unloaded the kernel extension successfully
 Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
The kernel extension was successfuly loaded.
./rootpre.sh[360]: test: argument expected
Checking if group services should be configured....
Please confirm your Oracle userid is a member of the group: hagsuser
Configuring HACMP group services socket for possible use by Oracle.

二、安装CRS

以Oracle身份安装:

安装前检测:

[[email protected] cluvfy]$./runcluvfy.sh

USAGE:
cluvfy [ -help ]
cluvfy stage { -list | -help }
cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]
cluvfy comp  { -list | -help }
cluvfy comp  <component-name> <component-specific options>  [-verbose]

[[email protected] cluvfy]$./runcluvfy.sh stage -pre crsinst -n aix203,aix204 -verbose

Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "aix203"
  Destination Node                      Reachable?
  ------------------------------------  ------------------------
  aix203                                yes
  aix204                                yes
Result: Node reachability check passed from node "aix203".
Checking user equivalence...
Check: User equivalence for user "oracle"
  Node Name                             Comment
  ------------------------------------  ------------------------
  aix204                                passed
  aix203                                passed
Result: User equivalence check passed for user "oracle".
Checking administrative privileges...
Check: Existence of user "oracle"
  Node Name     User Exists               Comment
  ------------  ------------------------  ------------------------
  aix204        yes                       passed
  aix203        yes                       passed
Result: User existence check passed for "oracle".
Check: Existence of group "oinstall"
  Node Name     Status                    Group ID
  ------------  ------------------------  ------------------------
  aix204        exists                    300
  aix203        exists                    300
Result: Group existence check passed for "oinstall".
Check: Membership of user "oracle" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  aix204            yes           yes           yes           yes           passed
  aix203            yes           yes           yes           yes           passed
Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.
Administrative privileges check passed.
Checking node connectivity...
Interface information for node "aix204"
  Interface Name                  IP Address                      Subnet
  ------------------------------  ------------------------------  ----------------
  en0                             192.168.8.204                   192.168.8.0
  en2                             10.10.10.204                    10.10.10.0      

Interface information for node "aix203"
  Interface Name                  IP Address                      Subnet
  ------------------------------  ------------------------------  ----------------
  en0                             192.168.8.203                   192.168.8.0
  en2                             10.10.10.203                    10.10.10.0      

Check: Node connectivity of subnet "192.168.8.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  aix204:en0                      aix203:en0                      yes
Result: Node connectivity check passed for subnet "192.168.8.0" with node(s) aix204,aix203.
Check: Node connectivity of subnet "10.10.10.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  aix204:en2                      aix203:en2                      yes
Result: Node connectivity check passed for subnet "10.10.10.0" with node(s) aix204,aix203.
Suitable interfaces for the private interconnect on subnet "192.168.8.0":
aix204 en0:192.168.8.204
aix203 en0:192.168.8.203
Suitable interfaces for the private interconnect on subnet "10.10.10.0":
aix204 en2:10.10.10.204
aix203 en2:10.10.10.203
ERROR:
Could not find a suitable set of interfaces for VIPs.
Result: Node connectivity check failed.
Checking system requirements for 'crs'...
No checks registered for this product.

Pre-check for cluster services setup was unsuccessful on all the nodes.

安装:

1)指定安装路径

2)检查安装环境

出现警告提示:对于AIX 6100-09,Oracle 10gR2不支持,不用理会,继续安装就可以

3)配置节点

4)配置OCR 和 Vote Disk

5)安装

6)运行Script

在运行脚本前可以通过dd,清理ocr和vote disk:

node1:

[[email protected] /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560

2560+0 records in

2560+0 records out

[[email protected] /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in

2560+0 records out

[[email protected] /]#/u01/crs_1/root.sh

WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix203 aix203-priv aix203
node 2: aix204 aix204-priv aix204
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
Now formatting voting device: /dev/rrac_vote
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        aix203
CSS is inactive on these nodes.
        aix204
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.

node2:

[[email protected] /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in

2560+0 records out

[[email protected] /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560

2560+0 records in

2560+0 records out

[[email protected] /]#/u01/crs_1/root.sh

WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix203 aix203-priv aix203
node 2: aix204 aix204-priv aix204
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        aix203
        aix204
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
<span style="color:#cc0000;">Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.</span>

7)运行vipca配置CRS资源

[[email protected] /]#cd /u01/crs_1/bin

[[email protected] bin]#./vipca

三、查看CRS服务及资源

<strong>[[email protected] /]#crsctl check crs</strong>
CSS appears healthy
CRS appears healthy
EVM appears healthy
<strong>[[email protected] /]#crs_stat -t</strong>
Name           Type           Target    State     Host
------------------------------------------------------------
ora.aix203.gsd application    ONLINE    ONLINE    aix203
ora.aix203.ons application    ONLINE    ONLINE    aix203
ora.aix203.vip application    ONLINE    ONLINE    aix203
ora.aix204.gsd application    ONLINE    ONLINE    aix204
ora.aix204.ons application    ONLINE    ONLINE    aix204
ora.aix204.vip application    ONLINE    ONLINE    aix204

<strong>[[email protected] bin]#crsctl check crs</strong>
CSS appears healthy
CRS appears healthy
EVM appears healthy
<strong>[[email protected] bin]#crs_stat -t</strong>
Name           Type           Target    State     Host
------------------------------------------------------------
ora.aix203.gsd application    ONLINE    ONLINE    aix203
ora.aix203.ons application    ONLINE    ONLINE    aix203
ora.aix203.vip application    ONLINE    ONLINE    aix203
ora.aix204.gsd application    ONLINE    ONLINE    aix204
ora.aix204.ons application    ONLINE    ONLINE    aix204
ora.aix204.vip application    ONLINE    ONLINE    aix204  

---- 至此,CRS安装配置成功 !

------未完,待续 !

时间: 2024-10-06 01:20:03

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)的相关文章

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3) 一.配置共享存储 [[email protected] ~]$lsdev -c disk hdisk0 Available 1S-08-00-8,0 Other SCSI Disk Drive hdisk1 Available 1D-08-02     Other FC SCSI Disk Drive [[email protected] /]#lsdev -c disk hdisk0 Available 1S-

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(1)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(1) 环境: 操作系统: AIX 6100-09(SP3) 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1 构建AIX平台下RAC 依据共享存储的使用方式可以分两种: 1.建立基于并发卷组(VG concurrent)的共享存储 2.建立基于ASM下的RAW的共享存储 系统架构: 本案例是用于基于VG Concurrent 的共享存储: 一.查看系统环境信息 [[email prot

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(1)

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(1) 环境: 操作系统: AIX 6100-09(SP3) Cluster: HACMP6.1 集群软件: GI 11.2.0.1 数据库:   Oracle 11.2.0.1 构建AIX平台下RAC 依据共享存储的使用方式可以分两种: 1.建立基于并发卷组(VG concurrent)的共享存储 2.建立基于ASM下的RAW的共享存储         由于本系统阵列(SUN T300)不支持并发存储,不具有reser

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(5)

一.安装Oracle软件 以Oracle身份安装: Oracle软件安装完成后,运行"root.sh"脚本,完成Oracle安装! 二.配置网络(Listener) 通过netca配置网络: [[email protected] Disk1]$lsnrctl status LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 16-MAR-2016 17:39:24 Copyright (c) 

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(2)

一.查看系统I/O(对于Oracle数据库需启用异步I/O) 对于AIX6.1,默认异步I/O在有需求时,自动被激活,不需要配置.[[email protected] /]#ioo -a |grep aio                    aio_active = 0                    aio_maxreqs = 65536                 aio_maxservers = 30                 aio_minservers = 3   

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2)

一.修改系统内核参数 [[email protected] app]#chdev -l sys0 -a ncargs=256sys0 changed[[email protected] app]#lsattr -El sys0 -a ncargsncargs 256 ARG/ENV list size in 4K byte blocks True[[email protected] app]#vmo -p -o minperm%=3Setting minperm% to 3 in nextboo

Oracle Study之-AIX6.1构建主机之间的信任关系(ssh)

Oracle Study之-AIX6.1构建主机之间的信任关系(ssh)    在AIX环境下构建主机信任关系首选rsh,但在构建Oracle 11g RAC时需要ssh支持,以下文档介绍如何在AIX6.1下构建ssh的信任关系.    默认aix没有安装ssh软件包,首先要安装ssh软件包: 1.下载.解压软件包 [[email protected] ssh]#lsOpenSSH_5.8.0.6102.tar.Z  openssl-0.9.8.1802.tar.Z  ssh.txt 解压后通过

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误 系统环境: 操作系统: RedHat  EL55     Oracle :     Oracle 11gR2 Grid +  Oracle 1.错误现象 [[email protected] install]# /u01/11.2.0/grid/root.shRunning Oracle 11g root.sh script... The following environment variables are 

Oracle Study 之--AIX5.3安装Oracle 11gR2

系统环境: 操作系统: AIX5300-09 Oracle:  Oracle 10gR2(64) 对于AIX5.3的版本,如果安装Oracle 11g需要将系统升级到AIX 5300-09的版本,具体升级方法见我的另一博文: http://tiany.blog.51cto.com/513694/1368026 一.安装前准备 1.查看操作系统的版本 [[email protected] /]#oslevel -r 5300-09 2.查看系统硬件信息 [[email protected] /]#