广告
返回顶部
首页 > 资讯 > 数据库 >Oracle 学习之RAC(三) Grid Infrastructure 安装
  • 715
分享到

Oracle 学习之RAC(三) Grid Infrastructure 安装

2024-04-02 19:04:59 715人浏览 独家记忆
摘要

将Grid Infrastructure安装包上传到服务器,并解压unzip p10404530_112030_linux-x86-64_3of7.zip -d /databa

  1. 将Grid Infrastructure安装包上传到服务器,并解压

unzip p10404530_112030_linux-x86-64_3of7.zip -d /database/

2. 更改/database所属组

[root@11grac1 database]# chown grid.oinstall -R /database/
[root@11grac1 database]# su - grid
11grac1-> cd /database/grid/
11grac1-> ls
doc  install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

3.运行./runcluvfy.sh脚本,检查环境是否满足安装grid的条件

 ./runcluvfy.sh stage -pre crsinst -n 11grac1,11grac2 -fixup -verbose


检查运行结果,发现failed项,需要逐一解决。

11grac1-> ./runcluvfy.sh stage -pre crsinst -n 11grac1,11grac2 -fixup -verbose

PerfORMing pre-checks for cluster services setup 

Checking node reachability...

Check: Node reachability from node "11grac1"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  11grac2                               yes                     
  11grac1                               yes                     
Result: Node reachability check passed from node "11grac1"


Checking user equivalence...

Check: User equivalence for user "grid"
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac2                               passed                  
  11grac1                               passed                  
Result: User equivalence check passed for user "grid"

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac2                               passed                  
  11grac1                               passed                  

Verification of the hosts config file successful


Interface information for node "11grac2"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.199.11  192.168.199.0   0.0.0.0         192.168.199.1   00:0C:29:5A:86:53 1500  
 eth2   192.168.10.11   192.168.10.0    0.0.0.0         192.168.199.1   00:0C:29:5A:86:5D 1500  


Interface information for node "11grac1"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.199.10  192.168.199.0   0.0.0.0         192.168.199.1   00:0C:29:53:75:BC 1500  
 eth2   192.168.10.10   192.168.10.0    0.0.0.0         192.168.199.1   00:0C:29:53:75:C6 1500  


Check: Node connectivity of subnet "192.168.199.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  11grac2[192.168.199.11]         11grac1[192.168.199.10]         yes             
Result: Node connectivity passed for subnet "192.168.199.0" with node(s) 11grac2,11grac1


Check: tcp connectivity of subnet "192.168.199.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  11grac1:192.168.199.10          11grac2:192.168.199.11          passed          
Result: TCP connectivity check passed for subnet "192.168.199.0"


Check: Node connectivity of subnet "192.168.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  11grac2[192.168.10.11]          11grac1[192.168.10.10]          yes             
Result: Node connectivity passed for subnet "192.168.10.0" with node(s) 11grac2,11grac1


Check: TCP connectivity of subnet "192.168.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  11grac1:192.168.10.10           11grac2:192.168.10.11           passed          
Result: TCP connectivity check passed for subnet "192.168.10.0"


Interfaces found on subnet "192.168.199.0" that are likely candidates for VIP are:
11grac2 eth0:192.168.199.11
11grac1 eth0:192.168.199.10

Interfaces found on subnet "192.168.10.0" that are likely candidates for a private interconnect are:
11grac2 eth2:192.168.10.11
11grac1 eth2:192.168.10.10
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.199.0".
Subnet mask consistency check passed for subnet "192.168.10.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed

Checking multicast communication...

Checking subnet "192.168.199.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.199.0" for multicast communication with multicast group "230.0.1.0" passed.

Checking subnet "192.168.10.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.10.0" for multicast communication with multicast group "230.0.1.0" passed.

Check of multicast communication passed.

Checking ASMLib configuration.
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac2                               passed                  
  11grac1                               passed                  
Result: Check for ASMLib configuration passed.

Check: Total memory 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       1.9535GB (2048424.0KB)    1.5GB (1572864.0KB)       passed    
  11grac1       1.9535GB (2048424.0KB)    1.5GB (1572864.0KB)       passed    
Result: Total memory check passed

Check: Available memory 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       1.7258GB (1809616.0KB)    50MB (51200.0KB)          passed    
  11grac1       1.6177GB (1696252.0KB)    50MB (51200.0KB)          passed    
Result: Available memory check passed

Check: Swap space 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       1.9531GB (2047996.0KB)    2.9303GB (3072636.0KB)    failed    
  11grac1       1.9531GB (2047996.0KB)    2.9303GB (3072636.0KB)    failed    
Result: Swap space check failed

Check: Free disk space for "11grac2:/tmp" 
  Path              Node Name     Mount point   Available     Required      Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              11grac2       /             14.2822GB     1GB           passed      
Result: Free disk space check passed for "11grac2:/tmp"

Check: Free disk space for "11grac1:/tmp" 
  Path              Node Name     Mount point   Available     Required      Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              11grac1       /             12.2295GB     1GB           passed      
Result: Free disk space check passed for "11grac1:/tmp"

Check: User existence for "grid" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  11grac2       passed                    exists(1100)            
  11grac1       passed                    exists(1100)            

Checking for multiple users with UID value 1100
Result: Check for multiple users with UID value 1100 passed 
Result: User existence check passed for "grid"

Check: Group existence for "oinstall" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  11grac2       passed                    exists                  
  11grac1       passed                    exists                  
Result: Group existence check passed for "oinstall"

Check: Group existence for "dba" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  11grac2       passed                    exists                  
  11grac1       passed                    exists                  
Result: Group existence check passed for "dba"

Check: Membership of user "grid" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Status      
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           yes           yes           yes           yes           passed      
  11grac1           yes           yes           yes           yes           passed      
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed

Check: Membership of user "grid" in group "dba" 
  Node Name         User Exists   Group Exists  User in Group  Status          
  ----------------  ------------  ------------  ------------  ----------------
  11grac2           yes           yes           yes           passed          
  11grac1           yes           yes           yes           passed          
Result: Membership check for user "grid" in group "dba" passed

Check: Run level 
  Node Name     run level                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       5                         3,5                       passed    
  11grac1       5                         3,5                       passed    
Result: Run level check passed

Check: Hard limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  11grac2           hard          65536         65536         passed          
  11grac1           hard          65536         65536         passed          
Result: Hard limits check passed for "maximum open file descriptors"

Check: Soft limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  11grac2           soft          1024          1024          passed          
  11grac1           soft          1024          1024          passed          
Result: Soft limits check passed for "maximum open file descriptors"

Check: Hard limits for "maximum user processes" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  11grac2           hard          16384         16384         passed          
  11grac1           hard          16384         16384         passed          
Result: Hard limits check passed for "maximum user processes"

Check: Soft limits for "maximum user processes" 
  Node Name         Type          Available     Required      Status          
  ----------------  ------------  ------------  ------------  ----------------
  11grac2           soft          2047          2047          passed          
  11grac1           soft          2047          2047          passed          
Result: Soft limits check passed for "maximum user processes"

Check: System architecture 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       x86_64                    x86_64                    passed    
  11grac1       x86_64                    x86_64                    passed    
Result: System architecture check passed

Check: Kernel version 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       2.6.39-400.17.1.el6uek.x86_64  2.6.32                    passed    
  11grac1       2.6.39-400.17.1.el6uek.x86_64  2.6.32                    passed    
Result: Kernel version check passed

Check: Kernel parameter for "semmsl" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           250           250           250           passed          
  11grac1           250           250           250           passed          
Result: Kernel parameter check passed for "semmsl"

Check: Kernel parameter for "semmns" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           32000         32000         32000         passed          
  11grac1           32000         32000         32000         passed          
Result: Kernel parameter check passed for "semmns"

Check: Kernel parameter for "semopm" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           100           100           100           passed          
  11grac1           100           100           100           passed          
Result: Kernel parameter check passed for "semopm"

Check: Kernel parameter for "semmni" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           128           128           128           passed          
  11grac1           128           128           128           passed          
Result: Kernel parameter check passed for "semmni"

Check: Kernel parameter for "shmmax" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           1054472192    1054472192    1048793088    passed          
  11grac1           1054472192    1054472192    1048793088    passed          
Result: Kernel parameter check passed for "shmmax"

Check: Kernel parameter for "shmmni" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           4096          4096          4096          passed          
  11grac1           4096          4096          4096          passed          
Result: Kernel parameter check passed for "shmmni"

Check: Kernel parameter for "shmall" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           2097152       2097152       2097152       passed          
  11grac1           2097152       2097152       2097152       passed          
Result: Kernel parameter check passed for "shmall"

Check: Kernel parameter for "file-max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           6815744       6815744       6815744       passed          
  11grac1           6815744       6815744       6815744       passed          
Result: Kernel parameter check passed for "file-max"

Check: Kernel parameter for "ip_local_port_range" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           between 9000.0 & 65500.0  between 9000.0 & 65500.0  between 9000.0 & 65500.0  passed          
  11grac1           between 9000.0 & 65500.0  between 9000.0 & 65500.0  between 9000.0 & 65500.0  passed          
Result: Kernel parameter check passed for "ip_local_port_range"

Check: Kernel parameter for "rmem_default" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           262144        262144        262144        passed          
  11grac1           262144        262144        262144        passed          
Result: Kernel parameter check passed for "rmem_default"

Check: Kernel parameter for "rmem_max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           4194304       4194304       4194304       passed          
  11grac1           4194304       4194304       4194304       passed          
Result: Kernel parameter check passed for "rmem_max"

Check: Kernel parameter for "wmem_default" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           262144        262144        262144        passed          
  11grac1           262144        262144        262144        passed          
Result: Kernel parameter check passed for "wmem_default"

Check: Kernel parameter for "wmem_max" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           1048586       1048586       1048576       passed          
  11grac1           1048586       1048586       1048576       passed          
Result: Kernel parameter check passed for "wmem_max"

Check: Kernel parameter for "aio-max-nr" 
  Node Name         Current       Configured    Required      Status        Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  11grac2           1048576       1048576       1048576       passed          
  11grac1           1048576       1048576       1048576       passed          
Result: Kernel parameter check passed for "aio-max-nr"

Check: Package existence for "binutils" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       binutils-2.20.51.0.2-5.36.el6  binutils-2.20.51.0.2      passed    
  11grac1       binutils-2.20.51.0.2-5.36.el6  binutils-2.20.51.0.2      passed    
Result: Package existence check passed for "binutils"

Check: Package existence for "compat-libcap1" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   compat-libcap1-1.10       failed    
  11grac1       missing                   compat-libcap1-1.10       failed    
Result: Package existence check failed for "compat-libcap1"

Check: Package existence for "compat-libstdc++-33(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   compat-libstdc++-33(x86_64)-3.2.3  failed    
  11grac1       missing                   compat-libstdc++-33(x86_64)-3.2.3  failed    
Result: Package existence check failed for "compat-libstdc++-33(x86_64)"

Check: Package existence for "libGCc(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       libgcc(x86_64)-4.4.7-3.el6  libgcc(x86_64)-4.4.4      passed    
  11grac1       libgcc(x86_64)-4.4.7-3.el6  libgcc(x86_64)-4.4.4      passed    
Result: Package existence check passed for "libgcc(x86_64)"

Check: Package existence for "libstdc++(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       libstdc++(x86_64)-4.4.7-3.el6  libstdc++(x86_64)-4.4.4   passed    
  11grac1       libstdc++(x86_64)-4.4.7-3.el6  libstdc++(x86_64)-4.4.4   passed    
Result: Package existence check passed for "libstdc++(x86_64)"

Check: Package existence for "libstdc++-devel(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   libstdc++-devel(x86_64)-4.4.4  failed    
  11grac1       missing                   libstdc++-devel(x86_64)-4.4.4  failed    
Result: Package existence check failed for "libstdc++-devel(x86_64)"

Check: Package existence for "sysstat" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       sysstat-9.0.4-20.el6      sysstat-9.0.4             passed    
  11grac1       sysstat-9.0.4-20.el6      sysstat-9.0.4             passed    
Result: Package existence check passed for "sysstat"

Check: Package existence for "gcc" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   gcc-4.4.4                 failed    
  11grac1       missing                   gcc-4.4.4                 failed    
Result: Package existence check failed for "gcc"

Check: Package existence for "gcc-c++" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   gcc-c++-4.4.4             failed    
  11grac1       missing                   gcc-c++-4.4.4             failed    
Result: Package existence check failed for "gcc-c++"

Check: Package existence for "ksh" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   ksh-20100621              failed    
  11grac1       missing                   ksh-20100621              failed    
Result: Package existence check failed for "ksh"

Check: Package existence for "make" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       make-3.81-20.el6          make-3.81                 passed    
  11grac1       make-3.81-20.el6          make-3.81                 passed    
Result: Package existence check passed for "make"

Check: Package existence for "glibc(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       glibc(x86_64)-2.12-1.107.el6  glibc(x86_64)-2.12        passed    
  11grac1       glibc(x86_64)-2.12-1.107.el6  glibc(x86_64)-2.12        passed    
Result: Package existence check passed for "glibc(x86_64)"

Check: Package existence for "glibc-devel(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   glibc-devel(x86_64)-2.12  failed    
  11grac1       missing                   glibc-devel(x86_64)-2.12  failed    
Result: Package existence check failed for "glibc-devel(x86_64)"

Check: Package existence for "libaio(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       libaio(x86_64)-0.3.107-10.el6  libaio(x86_64)-0.3.107    passed    
  11grac1       libaio(x86_64)-0.3.107-10.el6  libaio(x86_64)-0.3.107    passed    
Result: Package existence check passed for "libaio(x86_64)"

Check: Package existence for "libaio-devel(x86_64)" 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  11grac2       missing                   libaio-devel(x86_64)-0.3.107  failed    
  11grac1       missing                   libaio-devel(x86_64)-0.3.107  failed    
Result: Package existence check failed for "libaio-devel(x86_64)"

Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed 

Check: Current group ID 
Result: Current group ID check passed

Starting check for consistency of primary group of root user
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac2                               passed                  
  11grac1                               passed                  

Check for consistency of root user's primary group passed

Starting Clock synchronization checks using Network Time Protocol(NTP)...

NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
No NTP Daemons or Services were found to be running

Result: Clock synchronization check using Network Time Protocol(NTP) passed

Checking Core file name pattern consistency...
Core file name pattern consistency check passed.

Checking to make sure user "grid" is not in "root" group
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  11grac2       passed                    does not exist          
  11grac1       passed                    does not exist          
Result: User "grid" is not part of "root" group. Check passed

Check default user file creation mask
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  11grac2       0022                      0022                      passed    
  11grac1       0022                      0022                      passed    
Result: Default user file creation mask check passed
Checking consistency of file "/etc/resolv.conf" across nodes

Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking file "/etc/resolv.conf" to make sure that only one search entry is defined
All nodes have one search entry defined in file "/etc/resolv.conf"
Checking all nodes to make sure that search entry is "localdomain.com" as found on node "11grac2"
All nodes of the cluster have same value for 'search'
Checking DNS response time for an unreachable node
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac2                               failed                  
  11grac1                               failed                  
PRVF-5637 : DNS response time could not be checked on following nodes: 11grac2,11grac1

File "/etc/resolv.conf" is not consistent across nodes

Check: Time zone consistency 
Result: Time zone consistency check passed

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

以上主要是安装包遗漏,安装rpm包。

因为rpm安装过程中有依赖关系,手工安装非常麻烦,先配置一个本地yum源。过程如下

4. 配置本地yum源

4.1 将光盘挂载

4.2 配置yum

[root@11grac1 OL6.4 x86_64 Disc 1 20130225]# cd /etc/yum.repos.d/
[root@11grac1 yum.repos.d]# ls
packagekit-media.repo  public-yum-ol6.repo
[root@11grac1 yum.repos.d]# mkdir back
[root@11grac1 yum.repos.d]# mv p* back/
[root@11grac1 yum.repos.d]# vi local.repo
#添加如下内容
[local_server]
name=Thisis a local repo
baseurl=file:///media/"OL6.4 x86_64 Disc 1 20130225" #光盘路径,根据实际情况修改
enabled=1
gpgcheck=0

4.3 安装依赖包(根据各自系统需要,没有的再安装)

yum install compat-libcap1-1.10
yum install compat-libstdc++-33
yum install libstdc++-devel
yum install gcc
yum install  gcc-c++
yum install  ksh-20100621 
yum install  libaio-devel


5. 再次检查,唯有DNS检查项不通过

Checking DNS response time for an unreachable node
  Node Name                             Status                  
  ------------------------------------  ------------------------
  11grac3                               failed                  
  11grac2                               failed                  
  11grac1                               failed                  
PRVF-5637 : DNS response time could not be checked on following nodes: 11grac3,11grac2,11grac1


但是使用nslookup,每个节点都是通的。我们先不管此项报错。

继续安装grid Infrastructure。


6. 安装,以grid用户

11grac1-> ./runInstaller

选择Skip software updates 

Next

选择Install and Configure Oracle Grid Infrastructure for a Cluster

Next

选择Advanced Installtion

Next

Selected Languages:English

Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

将Configure GNS选择去掉,填入Cluster Name和SCAN Name

Oracle 学习之RAC(三)  Grid Infrastructure 安装

单击Add按钮,添加其他节点

Oracle 学习之RAC(三)  Grid Infrastructure 安装

单击OK,单击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

选择对应的网口,点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

选择ASM,点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

填写磁盘组名称,选择数据冗余为External,磁盘选择OCR01、OCR02、OCR03. 点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

为ASM实例的sys和asmsnmp用户设置密码Ora600asm

点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

选择用户组,点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

注意:这两个目录不能有父子包含关系

Oracle 学习之RAC(三)  Grid Infrastructure 安装

点击Next,安装程序会做必要条件的检查

Oracle 学习之RAC(三)  Grid Infrastructure 安装

cvuqdisk包没有安装,我们找到grid的安装目录下的rpm文件夹

[root@11grac1 rpm]# pwd
/database/grid/rpm
[root@11grac1 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm 
Preparing...                ########################################### [100%]
Using default group oinstall to install package
   1:cvuqdisk               ########################################### [100%]

其他节点也需要安装。

点击Check Again

Oracle 学习之RAC(三)  Grid Infrastructure 安装

勾选Ignore ALL,点击Next

Oracle 学习之RAC(三)  Grid Infrastructure 安装

运行如上两个脚本,先在本地运行,成功后,其他节点可以并发运行

[root@11grac1 database]# /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.
[root@11grac1 database]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - 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 Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on '11grac1'
CRS-2676: Start of 'ora.mdnsd' on '11grac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on '11grac1'
CRS-2676: Start of 'ora.gpnpd' on '11grac1' succeeded
CRS-2672: Attempting to start 'ora.CSSdmonitor' on '11grac1'
CRS-2672: Attempting to start 'ora.gipcd' on '11grac1'
CRS-2676: Start of 'ora.cssdmonitor' on '11grac1' succeeded
CRS-2676: Start of 'ora.gipcd' on '11grac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on '11grac1'
CRS-2672: Attempting to start 'ora.diskmon' on '11grac1'
CRS-2676: Start of 'ora.diskmon' on '11grac1' succeeded
CRS-2676: Start of 'ora.cssd' on '11grac1' succeeded

ASM created and started successfully.

Disk Group GRIDDT created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 50ca588842534f05bf6d47070069a72e.
Successfully replaced voting disk group with +GRIDDT.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   50ca588842534f05bf6d47070069a72e (ORCL:OCR03) [GRIDDT]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on '11grac1'
CRS-2676: Start of 'ora.asm' on '11grac1' succeeded
CRS-2672: Attempting to start 'ora.GRIDDT.dg' on '11grac1'
CRS-2676: Start of 'ora.GRIDDT.dg' on '11grac1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

其他节点也运行这两个脚本,如果都成功,

点击OK按钮,

Oracle 学习之RAC(三)  Grid Infrastructure 安装

那么grid就安装完毕啦~

您可能感兴趣的文档:

--结束END--

本文标题: Oracle 学习之RAC(三) Grid Infrastructure 安装

本文链接: https://www.lsjlt.com/news/51321.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作