当前位置:Gxlcms > 数据库问题 > Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

一、安装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身份安装:

安装前检测:

  1. [oracle@aix203 cluvfy]$./runcluvfy.sh 
  2. USAGE:
  3. cluvfy [ -help ]
  4. cluvfy stage { -list | -help }
  5. cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]
  6. cluvfy comp  { -list | -help }
  7. cluvfy comp  <component-name> <component-specific options>  [-verbose]
  8. [oracle@aix203 cluvfy]$./runcluvfy.sh stage -pre crsinst -n aix203,aix204 -verbose
  9. Performing pre-checks for cluster services setup 
  10. Checking node reachability...
  11. Check: Node reachability from node "aix203"
  12.   Destination Node                      Reachable?              
  13.   ------------------------------------  ------------------------
  14.   aix203                                yes                     
  15.   aix204                                yes                     
  16. Result: Node reachability check passed from node "aix203".
  17. Checking user equivalence...
  18. Check: User equivalence for user "oracle"
  19.   Node Name                             Comment                 
  20.   ------------------------------------  ------------------------
  21.   aix204                                passed                  
  22.   aix203                                passed                  
  23. Result: User equivalence check passed for user "oracle".
  24. Checking administrative privileges...
  25. Check: Existence of user "oracle"
  26.   Node Name     User Exists               Comment                 
  27.   ------------  ------------------------  ------------------------
  28.   aix204        yes                       passed                  
  29.   aix203        yes                       passed                  
  30. Result: User existence check passed for "oracle".
  31. Check: Existence of group "oinstall"
  32.   Node Name     Status                    Group ID                
  33.   ------------  ------------------------  ------------------------
  34.   aix204        exists                    300                     
  35.   aix203        exists                    300                     
  36. Result: Group existence check passed for "oinstall".
  37. Check: Membership of user "oracle" in group "oinstall" [as Primary]
  38.   Node Name         User Exists   Group Exists  User in Group  Primary       Comment     
  39.   ----------------  ------------  ------------  ------------  ------------  ------------
  40.   aix204            yes           yes           yes           yes           passed      
  41.   aix203            yes           yes           yes           yes           passed      
  42. Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.
  43. Administrative privileges check passed.
  44. Checking node connectivity...
  45. Interface information for node "aix204"
  46.   Interface Name                  IP Address                      Subnet          
  47.   ------------------------------  ------------------------------  ----------------
  48.   en0                             192.168.8.204                   192.168.8.0     
  49.   en2                             10.10.10.204                    10.10.10.0      
  50. Interface information for node "aix203"
  51.   Interface Name                  IP Address                      Subnet          
  52.   ------------------------------  ------------------------------  ----------------
  53.   en0                             192.168.8.203                   192.168.8.0     
  54.   en2                             10.10.10.203                    10.10.10.0      
  55. Check: Node connectivity of subnet "192.168.8.0"
  56.   Source                          Destination                     Connected?      
  57.   ------------------------------  ------------------------------  ----------------
  58.   aix204:en0                      aix203:en0                      yes             
  59. Result: Node connectivity check passed for subnet "192.168.8.0" with node(s) aix204,aix203.
  60. Check: Node connectivity of subnet "10.10.10.0"
  61.   Source                          Destination                     Connected?      
  62.   ------------------------------  ------------------------------  ----------------
  63.   aix204:en2                      aix203:en2                      yes             
  64. Result: Node connectivity check passed for subnet "10.10.10.0" with node(s) aix204,aix203.
  65. Suitable interfaces for the private interconnect on subnet "192.168.8.0":
  66. aix204 en0:192.168.8.204
  67. aix203 en0:192.168.8.203
  68. Suitable interfaces for the private interconnect on subnet "10.10.10.0":
  69. aix204 en2:10.10.10.204
  70. aix203 en2:10.10.10.203
  71. ERROR: 
  72. Could not find a suitable set of interfaces for VIPs.
  73. Result: Node connectivity check failed.
  74. Checking system requirements for ‘crs‘...
  75. No checks registered for this product.
  76. 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:

[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

  1. WARNING: directory ‘/u01‘ is not owned by root
  2. Checking to see if Oracle CRS stack is already configured
  3. Checking to see if any 9i GSD is up
  4. Setting the permissions on OCR backup directory
  5. Setting up NS directories
  6. Oracle Cluster Registry configuration upgraded successfully
  7. WARNING: directory ‘/u01‘ is not owned by root
  8. Successfully accumulated necessary OCR keys.
  9. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
  10. node <nodenumber>: <nodename> <private interconnect name> <hostname>
  11. node 1: aix203 aix203-priv aix203
  12. node 2: aix204 aix204-priv aix204
  13. Creating OCR keys for user ‘root‘, privgrp ‘system‘..
  14. Operation successful.
  15. Now formatting voting device: /dev/rrac_vote
  16. Format of 1 voting devices complete.
  17. Startup will be queued to init within 30 seconds.
  18. Adding daemons to inittab
  19. Adding daemons to inittab
  20. Expecting the CRS daemons to be up within 600 seconds.
  21. CSS is active on these nodes.
  22.         aix203
  23. CSS is inactive on these nodes.
  24.         aix204
  25. Local node checking complete.
  26. 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

  1. WARNING: directory ‘/u01‘ is not owned by root
  2. Checking to see if Oracle CRS stack is already configured
  3. Checking to see if any 9i GSD is up
  4. /etc/oracle does not exist. Creating it now.
  5. Setting the permissions on OCR backup directory
  6. Setting up NS directories
  7. Oracle Cluster Registry configuration upgraded successfully
  8. WARNING: directory ‘/u01‘ is not owned by root
  9. clscfg: EXISTING configuration version 3 detected.
  10. clscfg: version 3 is 10G Release 2.
  11. Successfully accumulated necessary OCR keys.
  12. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
  13. node <nodenumber>: <nodename> <private interconnect name> <hostname>
  14. node 1: aix203 aix203-priv aix203
  15. node 2: aix204 aix204-priv aix204
  16. clscfg: Arguments check out successfully.
  17. NO KEYS WERE WRITTEN. Supply -force parameter to override.
  18. -force is destructive and will destroy any previous cluster
  19. configuration.
  20. Oracle Cluster Registry for cluster has already been initialized
  21. Startup will be queued to init within 30 seconds.
  22. Adding daemons to inittab
  23. Adding daemons to inittab
  24. Expecting the CRS daemons to be up within 600 seconds.
  25. CSS is active on these nodes.
  26.         aix203
  27.         aix204
  28. CSS is active on all nodes.
  29. Waiting for the Oracle CRSD and EVMD to start
  30. Waiting for the Oracle CRSD and EVMD to start
  31. 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.


7)运行vipca配置CRS资源

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

技术分享

技术分享

技术分享


三、查看CRS服务及资源
[root@aix203 /]#crsctl check crs

CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix203 /]#crs_stat -t

  1. Name           Type           Target    State     Host        
  2. ------------------------------------------------------------
  3. ora.aix203.gsd application    ONLINE    ONLINE    aix203      
  4. ora.aix203.ons application    ONLINE    ONLINE    aix203      
  5. ora.aix203.vip application    ONLINE    ONLINE    aix203      
  6. ora.aix204.gsd application    ONLINE    ONLINE    aix204      
  7. ora.aix204.ons application    ONLINE    ONLINE    aix204      
  8. ora.aix204.vip application    ONLINE    ONLINE    aix204

[root@aix204 bin]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix204 bin]#crs_stat -t

  1. Name           Type           Target    State     Host        
  2. ------------------------------------------------------------
  3. ora.aix203.gsd application    ONLINE    ONLINE    aix203      
  4. ora.aix203.ons application    ONLINE    ONLINE    aix203      
  5. ora.aix203.vip application    ONLINE    ONLINE    aix203      
  6. ora.aix204.gsd application    ONLINE    ONLINE    aix204      
  7. ora.aix204.ons application    ONLINE    ONLINE    aix204      
  8. ora.aix204.vip application    ONLINE    ONLINE    aix204

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


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

本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1759101

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

标签:oracle

人气教程排行