TAR包CLONE方式 安装11GR2 RAC数据库

简介:

   最近在11gr2 RAC方式的资料,看到了CLONE方式安装grid与rdbms。原来只用过clone方式方案rdbms。下面就开始我们的测试吧。安装过程中运行的命令在最后一篇blog中可以下载。

   OS:RHEL 5.6  OS:11.2.0.2

1.节点1系统配置

 
  1. Last login: Tue Oct  9 21:44:11 2012 
  2. 1.1 修改参数 
  3.     因为各个环境不一样,参数的值可以也不一样,根据各人自己的环境来配置参数,特别是shmmax,vm.nr_hugepages等参数。 
  4. [root@11rac4 ~]# echo "fs.aio-max-nr = 1048576 
  5. > fs.file-max = 6815744 
  6. > kernel.shmall = 2097152 
  7. > kernel.shmmax = 11036870912 
  8. > kernel.shmmni = 4096 
  9. > kernel.sem = 250 32000 100 128 
  10. > net.ipv4.ip_local_port_range = 9000 65500 
  11. > net.core.rmem_default = 262144 
  12. > net.core.rmem_max = 4194304 
  13. > net.core.wmem_default = 262144 
  14. > net.core.wmem_max = 1048586">>/etc/sysctl.conf 
  15. [root@11rac4 ~]# tail -12 /etc/sysctl.conf 
  16. kernel.shmall = 4294967296 
  17. fs.aio-max-nr = 1048576 
  18. fs.file-max = 6815744 
  19. kernel.shmall = 2097152 
  20. kernel.shmmax = 11036870912 
  21. kernel.shmmni = 4096 
  22. kernel.sem = 250 32000 100 128 
  23. net.ipv4.ip_local_port_range = 9000 65500 
  24. net.core.rmem_default = 262144 
  25. net.core.rmem_max = 4194304 
  26. net.core.wmem_default = 262144 
  27. net.core.wmem_max = 1048586 
  28. 1.2 配置limit,注意在11gr2中要对grid与oracle用户配置 
  29. [root@11rac4 ~]# echo "oracle soft nproc 2047 
  30. > oracle hard nproc 16384 
  31. > oracle soft nofile 1024 
  32. > oracle hard nofile 65536 
  33. > grid   soft nproc 2047 
  34. > grid   hard nproc 16384 
  35. > grid   soft nofile 1024 
  36. > grid   hard nofile 65536">>/etc/security/limits.conf 
  37. [root@11rac4 ~]# tail -8 /etc/security/limits.conf 
  38. oracle soft nproc 2047 
  39. oracle hard nproc 16384 
  40. oracle soft nofile 1024 
  41. oracle hard nofile 65536 
  42. grid   soft nproc 2047 
  43. grid   hard nproc 16384 
  44. grid   soft nofile 1024 
  45. grid   hard nofile 65536 
  46. [root@11rac4 ~]# echo "session required pam_limits.so">>/etc/pam.d/login 
  47. [root@11rac4 ~]# tail -1 /etc/pam.d/login 
  48. session required pam_limits.so 
  49. [root@11rac4 ~]#  
  50. 1.3 创建grid与oracle用户 
  51. [root@11rac4 ~]# /usr/sbin/groupadd -g 501 oinstall 
  52. /usr/sbin/groupadd -g 502 dba 
  53. [root@11rac4 ~]# /usr/sbin/groupadd -g 502 dba 
  54. /usr/sbin/groupadd -g 504 asmadmin 
  55. [root@11rac4 ~]# /usr/sbin/groupadd -g 504 asmadmin 
  56. [root@11rac4 ~]# /usr/sbin/groupadd -g 506 asmdba 
  57. [root@11rac4 ~]# /usr/sbin/groupadd -g 507 asmoper 
  58. /usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid 
  59. [root@11rac4 ~]# /usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid 
  60. echo "oracle"|passwd oracle --stdin 
  61. [root@11rac4 ~]# /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle 
  62. 修改密码 
  63. [root@11rac4 ~]# echo "oracle"|passwd oracle --stdin 
  64. Changing password for user oracle. 
  65. passwd: all authentication tokens updated successfully. 
  66. [root@11rac4 ~]# echo "oracle"|passwd grid --stdin 
  67. Changing password for user grid. 
  68. passwd: all authentication tokens updated successfully. 
  69. [root@11rac4 ~]#  
  70. 1.4  修改hosts文件 
  71. [root@11rac4 ~]# echo "192.168.100.50 11rac4 
  72. > 192.168.100.51 11rac5 
  73. >  
  74. > 192.168.100.55 11rac4-vip 
  75. > 192.168.100.56 11rac5-vip 
  76. >  
  77. > 192.168.101.50 11rac4-priv 
  78. > 192.168.101.51 11rac5-priv 
  79. >  
  80. >  
  81. > 192.168.100.59 scan">>/etc/hosts 
  82. [root@11rac4 ~]# tail -14 /etc/hosts 
  83. # that require network functionality will fail. 
  84. 127.0.0.1               localhost.localdomain localhost 
  85. ::1             localhost6.localdomain6 localhost6 
  86. 192.168.100.50 11rac4 
  87. 192.168.100.51 11rac5 
  88.  
  89. 192.168.100.55 11rac4-vip 
  90. 192.168.100.56 11rac5-vip 
  91.  
  92. 192.168.101.50 11rac4-priv 
  93. 192.168.101.51 11rac5-priv 
  94.  
  95.  
  96. 192.168.100.59 scan 
  97. [root@11rac4 ~]#  
  98. 1.5 配置yum本地资源库 
  99. [root@11rac4 ~]# mount /dev/cdrom /media 
  100. echo " 
  101. mount: block device /dev/cdrom is write-protected, mounting read-only 
  102. [RHEL5.6] 
  103. [root@11rac4 ~]# echo " 
  104. > [RHEL5.6] 
  105. name = Enterprise Linux 5.5 DVD 
  106. > baseurl=file:///media/Server/ 
  107. > gpgcheck=0 
  108. > enabled=1">/etc/yum.repos.d/public-yum-el5.repo 
  109. [root@11rac4 ~]# tail -5 /etc/yum.repos.d/public-yum-el5.repo 
  110. [RHEL5.6] 
  111. name = Enterprise Linux 5.5 DVD 
  112. baseurl=file:///media/Server/ 
  113. gpgcheck=0 
  114. enabled=1 
  115. 1.6 安装相关软件 
  116. [root@11rac4 ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \ 
  117. > compat-libstdc++-33 \ 
  118. > elfutils-libelf \ 
  119. > elfutils-libelf-devel \ 
  120. > gcc \ 
  121. > gcc-c++ \ 
  122. > glibc \ 
  123. > glibc-common \ 
  124. > glibc-devel \ 
  125. > glibc-headers \ 
  126. > ksh \ 
  127. > libaio \ 
  128. > libaio-devel \ 
  129. > libgcc \ 
  130. > libstdc++ \ 
  131. > libstdc++-devel \ 
  132. > make \ 
  133. > sysstat \ 
  134. > unixODBC \ 
  135. > unixODBC-devel \ 
  136. > libaio-devel 
  137. yum install sysstat unixODBC unixODBC-devel libaio-develbinutils-2.17.50.0.6-14.el5 (x86_64) 
  138. compat-libstdc++-33-3.2.3-61 (x86_64) 
  139. compat-libstdc++-33-3.2.3-61 (i386) 
  140. elfutils-libelf-0.137-3.el5 (x86_64) 
  141. elfutils-libelf-0.137-3.el5 (i386) 
  142. elfutils-libelf-devel-0.137-3.el5 (x86_64) 
  143. gcc-4.1.2-50.el5 (x86_64) 
  144. gcc-c++-4.1.2-50.el5 (x86_64) 
  145. glibc-2.5-58 (x86_64) 
  146. glibc-2.5-58 (i686) 
  147. glibc-common-2.5-58 (x86_64) 
  148. glibc-devel-2.5-58 (x86_64) 
  149. glibc-devel-2.5-58 (i386) 
  150. glibc-headers-2.5-58 (x86_64) 
  151. ksh-20100202-1.el5_5.1 (x86_64) 
  152. libaio-0.3.106-5 (x86_64) 
  153. libaio-0.3.106-5 (i386) 
  154. package libaio-devel is not installed 
  155. libgcc-4.1.2-50.el5 (x86_64) 
  156. libgcc-4.1.2-50.el5 (i386) 
  157. libstdc++-4.1.2-50.el5 (x86_64) 
  158. libstdc++-4.1.2-50.el5 (i386) 
  159. libstdc++-devel-4.1.2-50.el5 (x86_64) 
  160. make-3.81-3.el5 (x86_64) 
  161. package sysstat is not installed 
  162. package unixODBC is not installed 
  163. package unixODBC-devel is not installed 
  164. package libaio-devel is not installed 
  165. [root@11rac4 ~]# yum install sysstat unixODBC unixODBC-devel libaio-devel 
  166. Loaded plugins: rhnplugin, security 
  167. This system is not registered with RHN. 
  168. RHN support will be disabled. 
  169. RHEL5.6                                                                                                                                          | 1.3 kB     00:00      
  170. RHEL5.6/primary                                                                                                                                  | 905 kB     00:00      
  171. RHEL5.6                                                                                                                                                       3229/3229 
  172. Setting up Install Process 
  173. Resolving Dependencies 
  174. --> Running transaction check 
  175. ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated 
  176. ---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated 
  177. ---> Package sysstat.x86_64 0:7.0.2-3.el5_5.1 set to be updated 
  178. ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated 
  179. ---> Package unixODBC.x86_64 0:2.2.11-7.1 set to be updated 
  180. ---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated 
  181. ---> Package unixODBC-devel.x86_64 0:2.2.11-7.1 set to be updated 
  182. --> Finished Dependency Resolution 
  183.  
  184. Dependencies Resolved 
  185.  
  186. ======================================================================================================================================================================== 
  187.  Package                                    Arch                               Version                                        Repository                           Size 
  188. ======================================================================================================================================================================== 
  189. Installing: 
  190.  libaio-devel                               i386                               0.3.106-5                                      RHEL5.6                              12 k 
  191.  libaio-devel                               x86_64                             0.3.106-5                                      RHEL5.6                              11 k 
  192.  sysstat                                    x86_64                             7.0.2-3.el5_5.1                                RHEL5.6                             174 k 
  193.  unixODBC                                   i386                               2.2.11-7.1                                     RHEL5.6                             832 k 
  194.  unixODBC                                   x86_64                             2.2.11-7.1                                     RHEL5.6                             837 k 
  195.  unixODBC-devel                             i386                               2.2.11-7.1                                     RHEL5.6                             737 k 
  196.  unixODBC-devel                             x86_64                             2.2.11-7.1                                     RHEL5.6                             793 k 
  197.  
  198. Transaction Summary 
  199. ======================================================================================================================================================================== 
  200. Install       7 Package(s) 
  201. Upgrade       0 Package(s) 
  202.  
  203. Total download size: 3.3 M 
  204. Is this ok [y/N]: y 
  205. Downloading Packages: 
  206. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  207. Total                                                                                                                                   197 MB/s | 3.3 MB     00:00      
  208. Running rpm_check_debug 
  209. Running Transaction Test 
  210. Finished Transaction Test 
  211. Transaction Test Succeeded 
  212. Running Transaction 
  213.   Installing     : unixODBC                                                                                                                                         1/7  
  214.   Installing     : unixODBC                                                                                                                                         2/7  
  215.   Installing     : unixODBC-devel                                                                                                                                   3/7  
  216.   Installing     : unixODBC-devel                                                                                                                                   4/7  
  217.   Installing     : libaio-devel                                                                                                                                     5/7  
  218.   Installing     : sysstat                                                                                                                                          6/7  
  219.   Installing     : libaio-devel                                                                                                                                     7/7  
  220.  
  221. Installed: 
  222.   libaio-devel.i386 0:0.3.106-5      libaio-devel.x86_64 0:0.3.106-5      sysstat.x86_64 0:7.0.2-3.el5_5.1   unixODBC.i386 0:2.2.11-7.1   unixODBC.x86_64 0:2.2.11-7.1   
  223.   unixODBC-devel.i386 0:2.2.11-7.1   unixODBC-devel.x86_64 0:2.2.11-7.1   
  224.  
  225. Complete! 
  226.  
  227. 1.8 配置udev,这里我使用的是udev,个人觉得更简单。也可以使用asmlib来实现。 
  228. [root@11rac4 ~]#  for i in b c d   ; 
  229. > do 
  230. > echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id -g -u -s %p\", RESULT==\"`scsi_id -g -u -s /block/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""   >> /etc/udev/rules.d/99-oracle-asmdevices.rules 
  231. > done 
  232. [root@11rac4 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules 
  233. scsi_id -g -u -s /block/sd 
  234. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="SATA_VBOX_HARDDISK_VB92e83562-d3aa4e2c_"NAME="asm-diskb", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  235. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="SATA_VBOX_HARDDISK_VBdc07bc6d-ef3fd4d5_"NAME="asm-diskc", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  236. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT==""NAME="asm-diskd", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  237. [root@11rac4 ~]# start_udev 
  238. Starting udev: ls -l /dev/asm*[  OK  ] 
  239. [root@11rac4 ~]# ls -l /dev/asm* 
  240. brw-rw---- 1 grid asmadmin 8, 16 Oct  9 22:02 /dev/asm-diskb 
  241. brw-rw---- 1 grid asmadmin 8, 32 Oct  9 22:02 /dev/asm-diskc 
  242.  
  243. 1.9 配置环境变量 
  244. [root@11rac4 ~]# echo " 
  245. > ORACLE_BASE=/u01/app/grid; export ORACLE_BASE 
  246. > ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME 
  247. > export PATH=\$ORACLE_HOME/bin:\$PATH 
  248. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  249. > export ORACLE_SID=+ASM1 
  250. > export DISPLAY=192.168.100.1:0.0 
  251. > stty erase ^h 
  252. set -o vi 
  253. > export SHELL_HOME=\$HOME/rs 
  254. > export PATH=\$PATH:\$SHELL_HOME/bin:\$SHELL_HOME/dbmonitor:\$SHELL_HOME/asm:\$SHELL_HOME/rman:\$SHELL_HOME/tune:\$SHELL_HOME/dump:\$SHELL_HOME/event:\$SHELL_HOME/dg">>/home/grid/.bash_profile 
  255. [root@11rac4 ~]# echo " 
  256. > ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE 
  257. > ORACLE_HOME=\$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME 
  258. > export PATH=\$ORACLE_HOME/bin:\$PATH 
  259. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  260. > export ORACLE_SID=power1 
  261. > export DISPLAY=192.168.100.1:0.0 
  262. > stty erase ^h 
  263. set -o vi 
  264. > export SHELL_HOME=\$HOME/rs 
  265. > export PATH=\$PATH:\$SHELL_HOME/bin:\$SHELL_HOME/dbmonitor:\$SHELL_HOME/asm:\$SHELL_HOME/rman:\$SHELL_HOME/tune:\$SHELL_HOME/dump:\$SHELL_HOME/event:\$SHELL_HOME/dg">>/home/oracle/.bash_profile 
  266.  
  267. [root@11rac4 ~]# echo " 
  268. > ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1; export ORACLE_HOME 
  269. > export GRID_HOME=/u01/app/11.2.0/grid 
  270. > export PATH=\$ORACLE_HOME/bin:\$PATH:\$GRID_HOME\bin 
  271. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  272. > export ORACLE_SID=power2 
  273. > export DISPLAY=192.168.100.1:0.0 
  274. > stty erase ^h 
  275. set -o vi">>~/.bash_profile 
  276. [root@11rac4 ~]# tail -7 ~/.bash_profile 
  277. export GRID_HOME=/u01/app/11.2.0/grid 
  278. export PATH=$ORACLE_HOME/bin:$PATH:$GRID_HOME\bin 
  279. export TNS_ADMIN=$ORACLE_HOME/network/admin 
  280. export ORACLE_SID=power2 
  281. export DISPLAY=192.168.100.1:0.0 
  282. stty erase ^h 
  283. set -o vi 
  284. 1.10 创建安装目录 
  285. [root@11rac4 ~]# mkdir /u01 
  286. [root@11rac4 ~]# chmod 777 /u01 

2.节点2系统配置

 
  1. 配置内容跟1节点差不多 
  2. Last login: Tue Oct  9 21:43:05 2012 
  3. [root@11rac5 ~]# echo "fs.aio-max-nr = 1048576 
  4. > fs.file-max = 6815744 
  5. > kernel.shmall = 2097152 
  6. > kernel.shmmax = 11036870912 
  7. > kernel.shmmni = 4096 
  8. > kernel.sem = 250 32000 100 128 
  9. > net.ipv4.ip_local_port_range = 9000 65500 
  10. > net.core.rmem_default = 262144 
  11. > net.core.rmem_max = 4194304 
  12. > net.core.wmem_default = 262144 
  13. > net.core.wmem_max = 1048586">>/etc/sysctl.conf 
  14. [root@11rac5 ~]# tail -12 /etc/sysctl.conf 
  15. kernel.shmall = 4294967296 
  16. fs.aio-max-nr = 1048576 
  17. fs.file-max = 6815744 
  18. kernel.shmall = 2097152 
  19. kernel.shmmax = 11036870912 
  20. kernel.shmmni = 4096 
  21. kernel.sem = 250 32000 100 128 
  22. net.ipv4.ip_local_port_range = 9000 65500 
  23. net.core.rmem_default = 262144 
  24. net.core.rmem_max = 4194304 
  25. net.core.wmem_default = 262144 
  26. net.core.wmem_max = 1048586 
  27. [root@11rac5 ~]# echo "oracle soft nproc 2047 
  28. > oracle hard nproc 16384 
  29. > oracle soft nofile 1024 
  30. > oracle hard nofile 65536 
  31. > grid   soft nproc 2047 
  32. > grid   hard nproc 16384 
  33. > grid   soft nofile 1024 
  34. > grid   hard nofile 65536">>/etc/security/limits.conf 
  35. [root@11rac5 ~]# tail -8 /etc/security/limits.conf 
  36. oracle soft nproc 2047 
  37. oracle hard nproc 16384 
  38. oracle soft nofile 1024 
  39. oracle hard nofile 65536 
  40. grid   soft nproc 2047 
  41. grid   hard nproc 16384 
  42. grid   soft nofile 1024 
  43. grid   hard nofile 65536 
  44. [root@11rac5 ~]# echo "session required pam_limits.so">>/etc/pam.d/login 
  45. [root@11rac5 ~]# tail -1 /etc/pam.d/login 
  46. session required pam_limits.so 
  47. [root@11rac5 ~]#  
  48. [root@11rac5 ~]# /usr/sbin/groupadd -g 501 oinstall 
  49. /usr/sbin/groupadd -g 502 dba 
  50. [root@11rac5 ~]# /usr/sbin/groupadd -g 502 dba 
  51. /usr/sbin/groupadd -g 504 asmadmin 
  52. [root@11rac5 ~]# /usr/sbin/groupadd -g 504 asmadmin 
  53. /usr/sbin/groupadd -g 506 asmdba 
  54. [root@11rac5 ~]# /usr/sbin/groupadd -g 506 asmdba 
  55. [root@11rac5 ~]# /usr/sbin/groupadd -g 507 asmoper 
  56. [root@11rac5 ~]# /usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid 
  57. /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle 
  58. [root@11rac5 ~]# /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle 
  59. [root@11rac5 ~]# echo "oracle"|passwd oracle --stdin 
  60. Changing password for user oracle. 
  61. passwd: all authentication tokens updated successfully. 
  62. [root@11rac5 ~]# echo "oracle"|passwd grid --stdin 
  63. Changing password for user grid. 
  64. passwd: all authentication tokens updated successfully. 
  65. [root@11rac5 ~]#  
  66. [root@11rac5 ~]# echo "192.168.100.50 11rac4 
  67. > 192.168.100.51 11rac5 
  68. >  
  69. > 192.168.100.55 11rac4-vip 
  70. > 192.168.100.56 11rac5-vip 
  71. >  
  72. > 192.168.101.50 11rac4-priv 
  73. > 192.168.101.51 11rac5-priv 
  74. >  
  75. >  
  76. > 192.168.100.59 scan">>/etc/hosts 
  77. [root@11rac5 ~]# tail -14 /etc/hosts 
  78. # that require network functionality will fail. 
  79. 127.0.0.1               localhost.localdomain localhost 
  80. ::1             localhost6.localdomain6 localhost6 
  81. 192.168.100.50 11rac4 
  82. 192.168.100.51 11rac5 
  83.  
  84. 192.168.100.55 11rac4-vip 
  85. 192.168.100.56 11rac5-vip 
  86.  
  87. 192.168.101.50 11rac4-priv 
  88. 192.168.101.51 11rac5-priv 
  89.  
  90.  
  91. 192.168.100.59 scan 
  92. [root@11rac5 ~]#  
  93. [root@11rac5 ~]# mount /dev/cdrom /media 
  94. echo " 
  95. mount: block device /dev/cdrom is write-protected, mounting read-only 
  96. [RHEL5.6] 
  97. [root@11rac5 ~]# echo " 
  98. > [RHEL5.6] 
  99. name = Enterprise Linux 5.5 DVD 
  100. > baseurl=file:///media/Server/ 
  101. > gpgcheck=0 
  102. > enabled=1">/etc/yum.repos.d/public-yum-el5.repo 
  103. [root@11rac5 ~]# tail -5 /etc/yum.repos.d/public-yum-el5.repo 
  104. [RHEL5.6] 
  105. name = Enterprise Linux 5.5 DVD 
  106. baseurl=file:///media/Server/ 
  107. gpgcheck=0 
  108. enabled=1 
  109. [root@11rac5 ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \ 
  110. > compat-libstdc++-33 \ 
  111. > elfutils-libelf \ 
  112. > elfutils-libelf-devel \ 
  113. > gcc \ 
  114. > gcc-c++ \ 
  115. > glibc \ 
  116. > glibc-common \ 
  117. > glibc-devel \ 
  118. > glibc-headers \ 
  119. > ksh \ 
  120. > libaio \ 
  121. > libaio-devel \ 
  122. > libgcc \ 
  123. > libstdc++ \ 
  124. > libstdc++-devel \ 
  125. > make \ 
  126. > sysstat \ 
  127. > unixODBC \ 
  128. > unixODBC-devel \ 
  129. > libaio-devel 
  130. yum install sysstat unixODBC unixODBC-devel libaio-develbinutils-2.17.50.0.6-14.el5 (x86_64) 
  131. compat-libstdc++-33-3.2.3-61 (x86_64) 
  132. compat-libstdc++-33-3.2.3-61 (i386) 
  133. elfutils-libelf-0.137-3.el5 (x86_64) 
  134. elfutils-libelf-0.137-3.el5 (i386) 
  135. elfutils-libelf-devel-0.137-3.el5 (x86_64) 
  136. gcc-4.1.2-50.el5 (x86_64) 
  137. gcc-c++-4.1.2-50.el5 (x86_64) 
  138. glibc-2.5-58 (x86_64) 
  139. glibc-2.5-58 (i686) 
  140. glibc-common-2.5-58 (x86_64) 
  141. glibc-devel-2.5-58 (x86_64) 
  142. glibc-devel-2.5-58 (i386) 
  143. glibc-headers-2.5-58 (x86_64) 
  144. ksh-20100202-1.el5_5.1 (x86_64) 
  145. libaio-0.3.106-5 (x86_64) 
  146. libaio-0.3.106-5 (i386) 
  147. package libaio-devel is not installed 
  148. libgcc-4.1.2-50.el5 (x86_64) 
  149. libgcc-4.1.2-50.el5 (i386) 
  150. libstdc++-4.1.2-50.el5 (x86_64) 
  151. libstdc++-4.1.2-50.el5 (i386) 
  152. libstdc++-devel-4.1.2-50.el5 (x86_64) 
  153. make-3.81-3.el5 (x86_64) 
  154. package sysstat is not installed 
  155. package unixODBC is not installed 
  156. package unixODBC-devel is not installed 
  157. package libaio-devel is not installed 
  158. [root@11rac5 ~]# yum install sysstat unixODBC unixODBC-devel libaio-devel 
  159. Loaded plugins: rhnplugin, security 
  160. This system is not registered with RHN. 
  161. RHN support will be disabled. 
  162. RHEL5.6                                                                                                                                          | 1.3 kB     00:00      
  163. RHEL5.6/primary                                                                                                                                  | 905 kB     00:00      
  164. RHEL5.6                                                                                                                                                       3229/3229 
  165. Setting up Install Process 
  166. Resolving Dependencies 
  167. --> Running transaction check 
  168. ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated 
  169. ---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated 
  170. ---> Package sysstat.x86_64 0:7.0.2-3.el5_5.1 set to be updated 
  171. ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated 
  172. ---> Package unixODBC.x86_64 0:2.2.11-7.1 set to be updated 
  173. ---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated 
  174. ---> Package unixODBC-devel.x86_64 0:2.2.11-7.1 set to be updated 
  175. --> Finished Dependency Resolution 
  176.  
  177. Dependencies Resolved 
  178.  
  179. ======================================================================================================================================================================== 
  180.  Package                                    Arch                               Version                                        Repository                           Size 
  181. ======================================================================================================================================================================== 
  182. Installing: 
  183.  libaio-devel                               i386                               0.3.106-5                                      RHEL5.6                              12 k 
  184.  libaio-devel                               x86_64                             0.3.106-5                                      RHEL5.6                              11 k 
  185.  sysstat                                    x86_64                             7.0.2-3.el5_5.1                                RHEL5.6                             174 k 
  186.  unixODBC                                   i386                               2.2.11-7.1                                     RHEL5.6                             832 k 
  187.  unixODBC                                   x86_64                             2.2.11-7.1                                     RHEL5.6                             837 k 
  188.  unixODBC-devel                             i386                               2.2.11-7.1                                     RHEL5.6                             737 k 
  189.  unixODBC-devel                             x86_64                             2.2.11-7.1                                     RHEL5.6                             793 k 
  190.  
  191. Transaction Summary 
  192. ======================================================================================================================================================================== 
  193. Install       7 Package(s) 
  194. Upgrade       0 Package(s) 
  195.  
  196. Total download size: 3.3 M 
  197. Is this ok [y/N]: y 
  198. Downloading Packages: 
  199. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  200. Total                                                                                                                                   194 MB/s | 3.3 MB     00:00      
  201. Running rpm_check_debug 
  202. Running Transaction Test 
  203. Finished Transaction Test 
  204. Transaction Test Succeeded 
  205. Running Transaction 
  206.   Installing     : unixODBC                                                                                                                                         1/7  
  207.   Installing     : unixODBC                                                                                                                                         2/7  
  208.   Installing     : unixODBC-devel                                                                                                                                   3/7  
  209.   Installing     : unixODBC-devel                                                                                                                                   4/7  
  210.   Installing     : libaio-devel                                                                                                                                     5/7  
  211.   Installing     : sysstat                                                                                                                                          6/7  
  212.   Installing     : libaio-devel                                                                                                                                     7/7  
  213.  
  214. Installed: 
  215.   libaio-devel.i386 0:0.3.106-5      libaio-devel.x86_64 0:0.3.106-5      sysstat.x86_64 0:7.0.2-3.el5_5.1   unixODBC.i386 0:2.2.11-7.1   unixODBC.x86_64 0:2.2.11-7.1   
  216.   unixODBC-devel.i386 0:2.2.11-7.1   unixODBC-devel.x86_64 0:2.2.11-7.1   
  217.  
  218. Complete! 
  219. [root@11rac5 ~]#  for i in b c d   ; 
  220. > do 
  221. > echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id -g -u -s %p\", RESULT==\"`scsi_id -g -u -s /block/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""   >> /etc/udev/rules.d/99-oracle-asmdevices.rules 
  222. > done 
  223. [root@11rac5 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules 
  224. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="SATA_VBOX_HARDDISK_VB92e83562-d3aa4e2c_"NAME="asm-diskb", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  225. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="SATA_VBOX_HARDDISK_VBdc07bc6d-ef3fd4d5_"NAME="asm-diskc", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  226. KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT==""NAME="asm-diskd", OWNER="grid"GROUP="asmadmin", MODE="0660" 
  227. [root@11rac5 ~]# start_udev 
  228. Starting udev: ls -l /dev/asm* 
  229. [  OK  ] 
  230. [root@11rac5 ~]# ls -l /dev/asm* 
  231. brw-rw---- 1 grid asmadmin 8, 16 Oct  9 22:02 /dev/asm-diskb 
  232. brw-rw---- 1 grid asmadmin 8, 32 Oct  9 22:02 /dev/asm-diskc 
  233. [root@11rac5 ~]# echo "ORACLE_BASE=/u01/app/grid; export ORACLE_BASE 
  234. > ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME 
  235. > export PATH=\$ORACLE_HOME/bin:\$PATH 
  236. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  237. > export ORACLE_SID=+ASM2 
  238. > export DISPLAY=192.168.100.1:0.0 
  239. > stty erase ^h 
  240. set -o vi 
  241. > export SHELL_HOME=\$HOME/rs 
  242. > export PATH=\$PATH:\$SHELL_HOME/bin:\$SHELL_HOME/dbmonitor:\$SHELL_HOME/asm:\$SHELL_HOME/rman:\$SHELL_HOME/tune:\$SHELL_HOME/dump:\$SHELL_HOME/event:\$SHELL_HOME/dg">>/home/grid/.bash_profile 
  243. [root@11rac5 ~]#  
  244. [root@11rac5 ~]# echo " 
  245. > ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE 
  246. > ORACLE_HOME=\$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME 
  247. > export PATH=\$ORACLE_HOME/bin:\$PATH 
  248. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  249. > export ORACLE_SID=power2 
  250. > alias bdump='cd /u01/app/oracle/diag/rdbms/orcl/ORCL/trace' 
  251. > export DISPLAY=192.168.100.1:0.0 
  252. > stty erase ^h 
  253. set -o vi 
  254. > export SHELL_HOME=\$HOME/rs 
  255. > export PATH=\$PATH:\$SHELL_HOME/bin:\$SHELL_HOME/dbmonitor:\$SHELL_HOME/asm:\$SHELL_HOME/rman:\$SHELL_HOME/tune:\$SHELL_HOME/dump:\$SHELL_HOME/event:\$SHELL_HOME/dg">>/home/oracle/.bash_profile 
  256. [root@11rac5 ~]#  
  257. [root@11rac5 ~]#  
  258. [root@11rac5 ~]#  
  259. [root@11rac5 ~]#  
  260. [root@11rac5 ~]# echo " 
  261. > ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1; export ORACLE_HOME 
  262. > export GRID_HOME=/u01/app/11.2.0/grid 
  263. > export PATH=\$ORACLE_HOME/bin:\$PATH:\$GRID_HOME/bin 
  264. > export TNS_ADMIN=\$ORACLE_HOME/network/admin 
  265. > export ORACLE_SID=power2 
  266. > export DISPLAY=192.168.100.1:0.0 
  267. > stty erase ^h 
  268. set -o vi">>~/.bash_profile 
  269. [root@11rac5 ~]# tail -7 ~/.bash_profile 
  270. export GRID_HOME=/u01/app/11.2.0/grid 
  271. export PATH=$ORACLE_HOME/bin:$PATH:$GRID_HOME\bin 
  272. export TNS_ADMIN=$ORACLE_HOME/network/admin 
  273. export ORACLE_SID=power2 
  274. export DISPLAY=192.168.100.1:0.0 
  275. stty erase ^h 
  276. set -o vi 
  277. [root@11rac5 ~]# mkdir /u01 
  278. [root@11rac5 ~]# chmod 777 /u01 

3,重启主机

注意重启主机最好是一台一台的重启,主机1重启后再重启主机2.

 

TAR包CLONE方式 安装11GR2 RAC数据库

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

TAR包CLONE方式 安装11GR2 RAC数据库 (gril软件安装)

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

TAR包CLONE方式 安装11GR2 RAC数据库 (gril软件root.sh)

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

TAR包CLONE方式 安装11GR2 RAC数据库 (rdbms部分)

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



     本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/1024788,如需转载请自行联系原作者



相关文章
|
1月前
|
SQL 关系型数据库 MySQL
【MySQL】— —熟练掌握用SQL语句实现数据库和基本表的创建。熟练掌握MySQL的安装、客户端登录方法;熟练掌握MySQL的编码、数据类型等基础知识;掌握实体完整性的定义和维护方法、掌握参照完整性
【MySQL】— —熟练掌握用SQL语句实现数据库和基本表的创建。熟练掌握MySQL的安装、客户端登录方法;熟练掌握MySQL的编码、数据类型等基础知识;掌握实体完整性的定义和维护方法、掌握参照完整性
99 1
|
1月前
|
Oracle 关系型数据库 数据库
如何利用 Docker 安装 Oracle 数据库
【2月更文挑战第14天】
89 0
|
28天前
|
关系型数据库 MySQL 数据库
rds安装数据库客户端工具
安装阿里云RDS的数据库客户端涉及在本地安装对应类型(如MySQL、PostgreSQL)的客户端工具。对于MySQL,可选择MySQL Command-Line Client或图形化工具如Navicat,安装后输入RDS实例的连接参数进行连接。对于PostgreSQL,可以使用`psql`命令行工具或图形化客户端如PgAdmin。首先从阿里云控制台获取连接信息,然后按照官方文档安装客户端,最后配置客户端连接以确保遵循安全指引。
81 1
|
23天前
|
Ubuntu 关系型数据库 MySQL
Ubuntu 中apt 安装MySQL数据库
Ubuntu 中apt 安装MySQL数据库
66 0
|
21天前
|
存储 监控 Java
InfluxDB时序数据库安装和使用
InfluxDB时序数据库安装和使用
40 2
|
1月前
|
关系型数据库 MySQL Linux
【Linux】在Linux上安装MySQL数据库的步骤
【Linux】在Linux上安装MySQL数据库的步骤
117 0
|
1月前
|
架构师 算法 关系型数据库
数据库架构师之道:MySQL安装与系统整合指南
数据库架构师之道:MySQL安装与系统整合指南
44 0
|
1月前
|
Java 数据库连接 数据库
解决docker中运行的jar包连不上数据库
解决docker中运行的jar包连不上数据库
|
1月前
|
网络协议 关系型数据库 MySQL
安卓手机termux上安装MariaDB数据库并实现公网环境下的远程连接
安卓手机termux上安装MariaDB数据库并实现公网环境下的远程连接
|
2月前
|
存储 NoSQL Linux
MongoDB详解(四)——MongoDB数据库安装
MongoDB详解(四)——MongoDB数据库安装
67 2