Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)
一、安装CRS补丁
在安装CRS之前,须要安装补丁p6718715_10203_AIX64-5L,否则在安装时会出现“无法发现node”的错误。
[root@aix203 /]#cd /home/oracle/p6718715_10203_AIX64-5L/
补丁解压后,仅仅须要以root身份执行“root.sh”就可以:
[root@aix203 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身份安装:
安装前检測:
[oracle@aix203 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]

[oracle@aix203 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)配置节点

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


4)配置OCR 和 Vote Disk

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


5)安装

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />

6)执行Script

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


在执行脚本前能够通过dd。清理ocr和vote disk:
node1:
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#/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:
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in
2560+0 records out
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix204 /]#/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资源

[root@aix204 /]#cd /u01/crs_1/bin
[root@aix204 bin]#./vipca



watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />

三、查看CRS服务及资源
<strong>[root@aix203 /]#crsctl check crs</strong>
CSS appears healthy
CRS appears healthy
EVM appears healthy
<strong>[root@aix203 /]#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>[root@aix204 bin]#crsctl check crs</strong>
CSS appears healthy
CRS appears healthy
EVM appears healthy
<strong>[root@aix204 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安装配置成功 。

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





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

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

    Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3) 一.配置共享存储 [oracle@aix203 ~]$lsdev -c disk hdisk0 Available ...

  2. Oracle Study之--Oracle 11gR2通过RMAN克隆数据库

    Oracle Study之--Oracle 11gR2通过RMAN克隆数据库 Purpose of Database Duplication A duplicate database is usefu ...

  3. Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0

    Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0 系统环境: 操作系统:RedHat EL6(64位) Oracle:    Oracle 11gR2 ...

  4. 构建Oracle的Docker镜像

    说明:本次构建环境,Centos7.7,Oracle12.2.0.1,Docker19 注意:已安装好docker的,请检查docker版本,1.13以下版本要升级: # df -h 命令检查根目录的 ...

  5. Oracle 10gR2 RAC 启动与关闭

    一. 检查共享设备 一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的. 如果他们没有启动,RAC 肯定是启动不了的. 1.1 如果使用ocfs2的,检查o ...

  6. 【Oracle 集群】Linux下Oracle RAC集群搭建之基本测试与使用(九)

    Oracle 11G RAC数据库安装(九) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总 ...

  7. 【转】【Oracle 集群】Linux下Oracle RAC集群搭建之基本测试与使用(九)

    原文地址:http://www.cnblogs.com/baiboy/p/orc9.html   阅读目录 目录 检查RAC状态 检查创建的数据库 全部参考文献 相关文章 Oracle 11G RAC ...

  8. 【Oracle 集群】Linux下Oracle RAC集群搭建之Oracle DataBase安装(八)

    Oracle 11G RAC数据库安装(八) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总 ...

  9. Oracle Forms 10g Tutorial Ebook Download - Oracle Forms Blog

    A step by step tutorial for Oracle Forms 10g development. This guide is helpful for freshers in Orac ...

随机推荐

  1. Codeforces Round #387 (Div. 2) 747E

    这题本身是个水题,但是写了半天 题意就是给出一个树的生成方式,让你还原这棵树,然后按深度输出结点 这个还原过程还是比较有趣的(没有用递归) PS:getline的新姿势get #include < ...

  2. [洛谷P4389]付公主的背包

    题目大意:有$n(n\leqslant10^5)$种物品,第$i$个物品体积为$v_i$,都有$10^5$件.给定$m(m\leqslant10^5)$,对于$s\in [1,m]$,请你回答用这些商 ...

  3. Swift中由找不到removeAll(where:)方法引起的连锁反应(上)

    核心代码 section.removeAll {baseRow in if let habitRow = baseRow as? HabitRow{ let idxPath = habitRow.in ...

  4. 等差子序列(sequence)

    等差子序列(sequence) 题目描述 给一个1到N的排列{Ai},询问是否存在1<= p1 < p2 < p3 < p4 < p5 < - < pLen ...

  5. NOIP2017赛前模拟11月6日—7日总结

    收获颇丰的两天··· 题目1:序列操作 给定n个非负整数,进行m次操作,每次操作给出c,要求找出c个正整数数并将它们减去1,问最多能进行多少操作?n,m<=1000000 首先暴力贪心肯定是每次 ...

  6. tornado获取application/json类型的入参

    tornado本身是不支持直接获取json入参的,在BaseHandler中定义方法get_json_argument,以供调用 class BaseHandler(tornado.web.Reque ...

  7. Python 二进制,十进制,十六进制转换

    十六进制 到 十进制 使用 int() 函数 ,第一个参数是字符串 '0Xff' ,第二个参数是说明,这个字符串是几进制的数.  转化的结果是一个十进制数. >>> int('0xf ...

  8. [bzoj 2216] [Poi2011] Lightning Conductor

    [bzoj 2216] [Poi2011] Lightning Conductor Description 已知一个长度为n的序列a1,a2,-,an. 对于每个1<=i<=n,找到最小的 ...

  9. 汕头市队赛 SRM 09 C 撕书

    C 撕书III-3 SRM 09 背景&&描述 琉璃双在撕书.     书总共有n页,每页都可以看作是一个数字.     琉璃读书喜欢来回地读.但他也因此发现了作者的灌水行为:有些连续 ...

  10. Linux Mint---安装docky

    这个安装的时候没啥难度,直接在软件中心安装一下就可以了,效果很赞的,linux下最棒的dock, 简洁大方,效果好! 只不有过一点需要注意,这个东东直接很上拖是添加不上去的 需要从/usr/share ...