系统的配置见 TAR包CLONE方式 安装11GR2 RAC数据库

http://luoping.blog.51cto.com/534596/1024788

4,grid软件安装

4.1 节点1grid软件安装

 
  
  1. 4.1.1 解压软件 
  2. [grid@11rac4 u01]$ cd /u01/app/11.2.0/ 
  3. [grid@11rac4 11.2.0]$ ls 
  4. grid  grid.tar.gz 
  5. [grid@11rac4 11.2.0]$ tar -zxvpf grid.tar.gz 
  6. [grid@11rac4 11.2.0]$ rm -rf grid 
  7. [grid@11rac4 11.2.0]$ mv gridback grid 
  8. [grid@11rac4 11.2.0]$ cd $ORACLE_HOME/clone/bin 
  9. 4.1.2 编译grid软件 
  10. [grid@11rac4 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/grid ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_HOME_NAME=OraHome1Grid INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac4"' 
  11. ./runInstaller -clone -waitForCompletion  "ORACLE_BASE=/u01/app/grid" "ORACLE_HOME=/u01/app/11.2.0/grid" "ORACLE_HOME_NAME=OraHome1Grid" "INVENTORY_LOCATION=/u01/app/oraInventory" "CLUSTER_NODES={11rac4, 11rac5}"-O"LOCAL_NODE=11rac4" -silent -noConfig -nowait  
  12. Starting Oracle Universal Installer... 
  13.  
  14. Checking swap space: must be greater than 500 MB.   Actual 3631 MB    Passed 
  15. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_10-47-46PM. Please wait ...Oracle Universal Installer, Version 11.2.0.2.0 Production 
  16. Copyright (C) 1999, 2010, Oracle. All rights reserved. 
  17.  
  18. You can find the log of this install session at
  19.  /u01/app/oraInventory/logs/cloneActions2012-10-09_10-47-46PM.log 
  20. .................................................................................................... 100% Done. 
  21.  
  22.  
  23.  
  24. Installation in progress (Tuesday, October 9, 2012 10:47:58 PM CST) 
  25. ........................................................................                                                        72% Done. 
  26. Install successful 
  27.  
  28. Linking in progress (Tuesday, October 9, 2012 10:48:03 PM CST) 
  29. Link successful 
  30.  
  31. Setup in progress (Tuesday, October 9, 2012 10:48:25 PM CST) 
  32. ................                                                100% Done. 
  33. Setup successful 
  34.  
  35. End of install phases.(Tuesday, October 9, 2012 10:48:29 PM CST) 
  36. WARNING: 
  37. The following configuration scripts need to be executed as the "root" user
  38.  
  39. /u01/app/11.2.0/grid/root.sh 
  40. To execute the configuration scripts: 
  41.     1. Open a terminal window 
  42.     2. Log in as "root" 
  43.     3. Run the scripts 
  44.      
  45. Run the script on the local node. 
  46. The cloning of OraHome1Grid was successful. 
  47. Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_10-47-46PM.log' for more details. 
  48. 4.1.3 注意这里我们没有执行root.sh脚本 
  49. 在安装grid前这台主机已经安装过rdbms单机版本,所以这里只要求执行一个脚本,按理说还有/u01/app/oraInventory/orainstRoot.sh 
  50. 这个脚本 
  51. [root@11rac4 ~]# rpm -ihv /tmp/CVU_11.2.0.2.0_grid/cvuqdisk-1.0.9-1.rpm 
  52. Preparing...                ########################################### [100%] 
  53.    1:cvuqdisk               ########################################### [100%] 
  54. [root@11rac4 ~]#  

 4.2 节点2安装grid软件

 
  
  1. 执行的内容跟节点1差不多 
  2. [grid@11rac5 ~]$ mkdir -p /u01/app/grid 
  3. [grid@11rac5 ~]$ echo $ORACLE_HOME 
  4. /u01/app/11.2.0/grid 
  5. [grid@11rac5 ~]$ mkdir -p /u01/app/11.2.0/grid 
  6. [grid@11rac5 ~]$ mv /u01/grid.tar.gz  /u01/app/11.2.0/ 
  7. [grid@11rac5 ~]$ cd  /u01/app/11.2.0/ 
  8. [grid@11rac5 11.2.0]$ tar -zxvpf grid.tar.gz  
  9. [grid@11rac5 11.2.0]$ rm -rf grid 
  10. [grid@11rac5 11.2.0]$ mv gridback grid 
  11. [grid@11rac5 11.2.0]$  
  12. [grid@11rac5 11.2.0]$ cd $ORACLE_HOME/clone 
  13. [grid@11rac5 clone]$ cd bin 
  14. 注意这里的local_node=是本地的主机名。 
  15. [grid@11rac5 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/grid ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_HOME_NAME=OraHome1Grid INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac5"' 
  16. ./runInstaller -clone -waitForCompletion  "ORACLE_BASE=/u01/app/grid" "ORACLE_HOME=/u01/app/11.2.0/grid" "ORACLE_HOME_NAME=OraHome1Grid" "INVENTORY_LOCATION=/u01/app/oraInventory" "CLUSTER_NODES={11rac4, 11rac5}"-O"LOCAL_NODE=11rac5" -silent -noConfig -nowait  
  17. Starting Oracle Universal Installer... 
  18.  
  19. Checking swap space: must be greater than 500 MB.   Actual 4000 MB    Passed 
  20. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_10-48-26PM. Please wait ...Oracle Universal Installer, Version 11.2.0.2.0 Production 
  21. Copyright (C) 1999, 2010, Oracle. All rights reserved. 
  22.  
  23. You can find the log of this install session at
  24.  /u01/app/oraInventory/logs/cloneActions2012-10-09_10-48-26PM.log 
  25. .................................................................................................... 100% Done. 
  26.  
  27.  
  28.  
  29. Installation in progress (Tuesday, October 9, 2012 10:48:39 PM CST) 
  30. ........................................................................                                                        72% Done. 
  31. Install successful 
  32.  
  33. Linking in progress (Tuesday, October 9, 2012 10:48:42 PM CST) 
  34. Link successful 
  35.  
  36. Setup in progress (Tuesday, October 9, 2012 10:49:04 PM CST) 
  37. ................                                                100% Done. 
  38. Setup successful 
  39.  
  40. End of install phases.(Tuesday, October 9, 2012 10:49:07 PM CST) 
  41. WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system. 
  42. To register the new inventory please run the script '/u01/app/oraInventory/orainstRoot.sh' with root privileges.  
  43. If you do not register the inventory, you may not be able to update or patch the products you installed. 
  44. The following configuration scripts need to be executed as the "root" user
  45. /u01/app/oraInventory/orainstRoot.sh 
  46. /u01/app/11.2.0/grid/root.sh 
  47. To execute the configuration scripts: 
  48.     1. Open a terminal window 
  49.     2. Log in as "root" 
  50.     3. Run the scripts 
  51.      
  52. Run the script on the local node. 
  53. The cloning of OraHome1Grid was successful. 
  54. Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_10-48-26PM.log' for more details. 
  55. [root@11rac5 ~]# /u01/app/oraInventory/orainstRoot.sh 
  56. Changing permissions of /u01/app/oraInventory. 
  57. Adding read,write permissions for group
  58. Removing read,write,execute permissions for world. 
  59.  
  60. Changing groupname of /u01/app/oraInventory to oinstall. 
  61. The execution of the script is complete. 
  62.  
  63. [root@11rac5 ~]# rpm -ihv /tmp/CVU_11.2.0.2.0_grid/cvuqdisk-1.0.9-1.rpm 
  64. Preparing...                ########################################### [100%] 
  65.    1:cvuqdisk               ########################################### [100%] 

  5.集群配置

配置集群可以直接修改文件,也可以图形界面,我更喜欢图形界面

config.sh

双击图片可以看到大图