RHEL5 Oracle 11G R2 RAC 靜默安裝 (二)GI靜默安裝

huyi_tony發表於2014-10-07
二,  GI靜默安裝
1, vi .bash_profile 節點一

點選(此處)摺疊或開啟

  1. export EDITOR=vi
  2. export ORACLE_SID=+ASM1
  3. export ORACLE_BASE=/u01/app/oracle
  4. export ORACLE_HOME=/u01/11.2.0/grid
  5. export GRID_HOME=/u01/11.2.0/grid
  6. export LD_LIBRARY_PATH=$ORACLE_HOME/lib
  7. export THREADS_FLAG=native
  8. export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
  9. umask 022
節點2  export ORACLE_SID=+ASM1   改成 +ASM2

2, 驗證是否滿足安裝條件 節點一操作
[grid@huy1 grid]$ ./runcluvfy.sh stage -pre crsinst -n huy1,huy2 -fixup -verbose
驗證結果

點選(此處)摺疊或開啟

  1. Performing pre-checks for cluster services setup

  2. Checking node reachability...

  3. Check: Node reachability from node \"huy1\"
  4.   Destination Node Reachable?
  5.   ------------------------------------ ------------------------
  6.   huy1 yes
  7.   huy2 yes
  8. Result: Node reachability check passed from node \"huy1\"


  9. Checking user equivalence...

  10. Check: User equivalence for user \"grid\"
  11.   Node Name Comment
  12.   ------------------------------------ ------------------------
  13.   huy2 passed
  14.   huy1 passed
  15. Result: User equivalence check passed for user \"grid\"

  16. Checking node connectivity...

  17. Checking hosts config file...
  18.   Node Name Status Comment
  19.   ------------ ------------------------ ------------------------
  20.   huy2 passed
  21.   huy1 passed

  22. Verification of the hosts config file successful


  23. Interface information for node \"huy2\"
  24.  Name IP Address Subnet Gateway Def. Gateway HW Address MTU
  25.  ------ --------------- --------------- --------------- --------------- ----------------- ------
  26.  eth0 192.168.56.102 192.168.56.0 0.0.0.0 192.168.56.1 08:00:27:70:1D:15 1500
  27.  eth1 10.10.10.102 10.10.10.0 0.0.0.0 192.168.56.1 08:00:27:60:EE:A3 1500


  28. Interface information for node \"huy1\"
  29.  Name IP Address Subnet Gateway Def. Gateway HW Address MTU
  30.  ------ --------------- --------------- --------------- --------------- ----------------- ------
  31.  eth0 192.168.56.101 192.168.56.0 0.0.0.0 192.168.56.1 08:00:27:7A:C6:9C 1500
  32.  eth1 10.10.10.101 10.10.10.0 0.0.0.0 192.168.56.1 08:00:27:EE:FD:51 1500


  33. Check: Node connectivity of subnet \"192.168.56.0\"
  34.   Source Destination Connected?
  35.   ------------------------------ ------------------------------ ----------------
  36.   huy2:eth0 huy1:eth0 yes
  37. Result: Node connectivity passed for subnet \"192.168.56.0\" with node(s) huy2,huy1


  38. Check: TCP connectivity of subnet \"192.168.56.0\"
  39.   Source Destination Connected?
  40.   ------------------------------ ------------------------------ ----------------
  41.   huy1:192.168.56.101 huy2:192.168.56.102 passed
  42. Result: TCP connectivity check passed for subnet \"192.168.56.0\"


  43. Check: Node connectivity of subnet \"10.10.10.0\"
  44.   Source Destination Connected?
  45.   ------------------------------ ------------------------------ ----------------
  46.   huy2:eth1 huy1:eth1 yes
  47. Result: Node connectivity passed for subnet \"10.10.10.0\" with node(s) huy2,huy1


  48. Check: TCP connectivity of subnet \"10.10.10.0\"
  49.   Source Destination Connected?
  50.   ------------------------------ ------------------------------ ----------------
  51.   huy1:10.10.10.101 huy2:10.10.10.102 passed
  52. Result: TCP connectivity check passed for subnet \"10.10.10.0\"


  53. Interfaces found on subnet \"192.168.56.0\" that are likely candidates for VIP are:
  54. huy2 eth0:192.168.56.102
  55. huy1 eth0:192.168.56.101

  56. Interfaces found on subnet \"10.10.10.0\" that are likely candidates for a private interconnect are:
  57. huy2 eth1:10.10.10.102
  58. huy1 eth1:10.10.10.101

  59. Result: Node connectivity check passed


  60. Check: Total memory
  61.   Node Name Available Required Comment
  62.   ------------ ------------------------ ------------------------ ----------
  63.   huy2 2.97GB (3115728.0KB) 1.5GB (1572864.0KB) passed
  64.   huy1 2.97GB (3115728.0KB) 1.5GB (1572864.0KB) passed
  65. Result: Total memory check passed

  66. Check: Available memory
  67.   Node Name Available Required Comment
  68.   ------------ ------------------------ ------------------------ ----------
  69.   huy2 2.91GB (3051936.0KB) 50MB (51200.0KB) passed
  70.   huy1 2.84GB (2979388.0KB) 50MB (51200.0KB) passed
  71. Result: Available memory check passed

  72. Check: Swap space
  73.   Node Name Available Required Comment
  74.   ------------ ------------------------ ------------------------ ----------
  75.   huy2 3GB (3145712.0KB) 2.97GB (3115728.0KB) passed
  76.   huy1 3GB (3145712.0KB) 2.97GB (3115728.0KB) passed
  77. Result: Swap space check passed

  78. Check: Free disk space for \"huy2:/tmp\"
  79.   Path Node Name Mount point Available Required Comment
  80.   ---------------- ------------ ------------ ------------ ------------ ------------
  81.   /tmp huy2 / 2.49GB 1GB passed
  82. Result: Free disk space check passed for \"huy2:/tmp\"

  83. Check: Free disk space for \"huy1:/tmp\"
  84.   Path Node Name Mount point Available Required Comment
  85.   ---------------- ------------ ------------ ------------ ------------ ------------
  86.   /tmp huy1 / 8.71GB 1GB passed
  87. Result: Free disk space check passed for \"huy1:/tmp\"

  88. Check: User existence for \"grid\"
  89.   Node Name Status Comment
  90.   ------------ ------------------------ ------------------------
  91.   huy2 exists passed
  92.   huy1 exists passed
  93. Result: User existence check passed for \"grid\"

  94. Check: Group existence for \"oinstall\"
  95.   Node Name Status Comment
  96.   ------------ ------------------------ ------------------------
  97.   huy2 exists passed
  98.   huy1 exists passed
  99. Result: Group existence check passed for \"oinstall\"

  100. Check: Group existence for \"dba\"
  101.   Node Name Status Comment
  102.   ------------ ------------------------ ------------------------
  103.   huy2 exists passed
  104.   huy1 exists passed
  105. Result: Group existence check passed for \"dba\"

  106. Check: Membership of user \"grid\" in group \"oinstall\" [as Primary]
  107.   Node Name User Exists Group Exists User in Group Primary Comment
  108.   ---------------- ------------ ------------ ------------ ------------ ------------
  109.   huy2 yes yes yes yes passed
  110.   huy1 yes yes yes yes passed
  111. Result: Membership check for user \"grid\" in group \"oinstall\" [as Primary] passed

  112. Check: Membership of user \"grid\" in group \"dba\"
  113.   Node Name User Exists Group Exists User in Group Comment
  114.   ---------------- ------------ ------------ ------------ ----------------
  115.   huy2 yes yes yes passed
  116.   huy1 yes yes yes passed
  117. Result: Membership check for user \"grid\" in group \"dba\" passed

  118. Check: Run level
  119.   Node Name run level Required Comment
  120.   ------------ ------------------------ ------------------------ ----------
  121.   huy2 5 3,5 passed
  122.   huy1 5 3,5 passed
  123. Result: Run level check passed

  124. Check: Hard limits for \"maximum open file descriptors\"
  125.   Node Name Type Available Required Comment
  126.   ---------------- ------------ ------------ ------------ ----------------
  127.   huy2 hard 65536 65536 passed
  128.   huy1 hard 65536 65536 passed
  129. Result: Hard limits check passed for \"maximum open file descriptors\"

  130. Check: Soft limits for \"maximum open file descriptors\"
  131.   Node Name Type Available Required Comment
  132.   ---------------- ------------ ------------ ------------ ----------------
  133.   huy2 soft 1024 1024 passed
  134.   huy1 soft 1024 1024 passed
  135. Result: Soft limits check passed for \"maximum open file descriptors\"

  136. Check: Hard limits for \"maximum user processes\"
  137.   Node Name Type Available Required Comment
  138.   ---------------- ------------ ------------ ------------ ----------------
  139.   huy2 hard 16384 16384 passed
  140.   huy1 hard 16384 16384 passed
  141. Result: Hard limits check passed for \"maximum user processes\"

  142. Check: Soft limits for \"maximum user processes\"
  143.   Node Name Type Available Required Comment
  144.   ---------------- ------------ ------------ ------------ ----------------
  145.   huy2 soft 2047 2047 passed
  146.   huy1 soft 2047 2047 passed
  147. Result: Soft limits check passed for \"maximum user processes\"

  148. Check: System architecture
  149.   Node Name Available Required Comment
  150.   ------------ ------------------------ ------------------------ ----------
  151.   huy2 i686 x86 passed
  152.   huy1 i686 x86 passed
  153. Result: System architecture check passed

  154. Check: Kernel version
  155.   Node Name Available Required Comment
  156.   ------------ ------------------------ ------------------------ ----------
  157.   huy2 2.6.18-194.el5 2.6.18 passed
  158.   huy1 2.6.18-194.el5 2.6.18 passed
  159. Result: Kernel version check passed

  160. Check: Kernel parameter for \"semmsl\"
  161.   Node Name Configured Required Comment
  162.   ------------ ------------------------ ------------------------ ----------
  163.   huy2 250 250 passed
  164.   huy1 250 250 passed
  165. Result: Kernel parameter check passed for \"semmsl\"

  166. Check: Kernel parameter for \"semmns\"
  167.   Node Name Configured Required Comment
  168.   ------------ ------------------------ ------------------------ ----------
  169.   huy2 32000 32000 passed
  170.   huy1 32000 32000 passed
  171. Result: Kernel parameter check passed for \"semmns\"

  172. Check: Kernel parameter for \"semopm\"
  173.   Node Name Configured Required Comment
  174.   ------------ ------------------------ ------------------------ ----------
  175.   huy2 100 100 passed
  176.   huy1 100 100 passed
  177. Result: Kernel parameter check passed for \"semopm\"

  178. Check: Kernel parameter for \"semmni\"
  179.   Node Name Configured Required Comment
  180.   ------------ ------------------------ ------------------------ ----------
  181.   huy2 128 128 passed
  182.   huy1 128 128 passed
  183. Result: Kernel parameter check passed for \"semmni\"

  184. Check: Kernel parameter for \"shmmax\"
  185.   Node Name Configured Required Comment
  186.   ------------ ------------------------ ------------------------ ----------
  187.   huy2 536870912 536870912 passed
  188.   huy1 536870912 536870912 passed
  189. Result: Kernel parameter check passed for \"shmmax\"

  190. Check: Kernel parameter for \"shmmni\"
  191.   Node Name Configured Required Comment
  192.   ------------ ------------------------ ------------------------ ----------
  193.   huy2 4096 4096 passed
  194.   huy1 4096 4096 passed
  195. Result: Kernel parameter check passed for \"shmmni\"

  196. Check: Kernel parameter for \"shmall\"
  197.   Node Name Configured Required Comment
  198.   ------------ ------------------------ ------------------------ ----------
  199.   huy2 2097152 2097152 passed
  200.   huy1 2097152 2097152 passed
  201. Result: Kernel parameter check passed for \"shmall\"

  202. Check: Kernel parameter for \"file-max\"
  203.   Node Name Configured Required Comment
  204.   ------------ ------------------------ ------------------------ ----------
  205.   huy2 6815744 6815744 passed
  206.   huy1 6815744 6815744 passed
  207. Result: Kernel parameter check passed for \"file-max\"

  208. Check: Kernel parameter for \"ip_local_port_range\"
  209.   Node Name Configured Required Comment
  210.   ------------ ------------------------ ------------------------ ----------
  211.   huy2 between 9000 & 65500 between 9000 & 65500 passed
  212.   huy1 between 9000 & 65500 between 9000 & 65500 passed
  213. Result: Kernel parameter check passed for \"ip_local_port_range\"

  214. Check: Kernel parameter for \"rmem_default\"
  215.   Node Name Configured Required Comment
  216.   ------------ ------------------------ ------------------------ ----------
  217.   huy2 262144 262144 passed
  218.   huy1 262144 262144 passed
  219. Result: Kernel parameter check passed for \"rmem_default\"

  220. Check: Kernel parameter for \"rmem_max\"
  221.   Node Name Configured Required Comment
  222.   ------------ ------------------------ ------------------------ ----------
  223.   huy2 4194304 4194304 passed
  224.   huy1 4194304 4194304 passed
  225. Result: Kernel parameter check passed for \"rmem_max\"

  226. Check: Kernel parameter for \"wmem_default\"
  227.   Node Name Configured Required Comment
  228.   ------------ ------------------------ ------------------------ ----------
  229.   huy2 262144 262144 passed
  230.   huy1 262144 262144 passed
  231. Result: Kernel parameter check passed for \"wmem_default\"

  232. Check: Kernel parameter for \"wmem_max\"
  233.   Node Name Configured Required Comment
  234.   ------------ ------------------------ ------------------------ ----------
  235.   huy2 1048586 1048576 passed
  236.   huy1 1048586 1048576 passed
  237. Result: Kernel parameter check passed for \"wmem_max\"

  238. Check: Kernel parameter for \"aio-max-nr\"
  239.   Node Name Configured Required Comment
  240.   ------------ ------------------------ ------------------------ ----------
  241.   huy2 1048576 1048576 passed
  242.   huy1 1048576 1048576 passed
  243. Result: Kernel parameter check passed for \"aio-max-nr\"

  244. Check: Package existence for \"make-3.81\"
  245.   Node Name Available Required Comment
  246.   ------------ ------------------------ ------------------------ ----------
  247.   huy2 make-3.81-3.el5 make-3.81 passed
  248.   huy1 make-3.81-3.el5 make-3.81 passed
  249. Result: Package existence check passed for \"make-3.81\"

  250. Check: Package existence for \"binutils-2.17.50.0.6\"
  251.   Node Name Available Required Comment
  252.   ------------ ------------------------ ------------------------ ----------
  253.   huy2 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6 passed
  254.   huy1 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6 passed
  255. Result: Package existence check passed for \"binutils-2.17.50.0.6\"

  256. Check: Package existence for \"gcc-4.1.2\"
  257.   Node Name Available Required Comment
  258.   ------------ ------------------------ ------------------------ ----------
  259.   huy2 gcc-4.1.2-48.el5 gcc-4.1.2 passed
  260.   huy1 gcc-4.1.2-48.el5 gcc-4.1.2 passed
  261. Result: Package existence check passed for \"gcc-4.1.2\"

  262. Check: Package existence for \"gcc-c++-4.1.2\"
  263.   Node Name Available Required Comment
  264.   ------------ ------------------------ ------------------------ ----------
  265.   huy2 gcc-c++-4.1.2-48.el5 gcc-c++-4.1.2 passed
  266.   huy1 gcc-c++-4.1.2-48.el5 gcc-c++-4.1.2 passed
  267. Result: Package existence check passed for \"gcc-c++-4.1.2\"

  268. Check: Package existence for \"libgomp-4.1.2\"
  269.   Node Name Available Required Comment
  270.   ------------ ------------------------ ------------------------ ----------
  271.   huy2 libgomp-4.4.0-6.el5 libgomp-4.1.2 passed
  272.   huy1 libgomp-4.4.0-6.el5 libgomp-4.1.2 passed
  273. Result: Package existence check passed for \"libgomp-4.1.2\"

  274. Check: Package existence for \"libaio-0.3.106\"
  275.   Node Name Available Required Comment
  276.   ------------ ------------------------ ------------------------ ----------
  277.   huy2 libaio-0.3.106-5 libaio-0.3.106 passed
  278.   huy1 libaio-0.3.106-5 libaio-0.3.106 passed
  279. Result: Package existence check passed for \"libaio-0.3.106\"

  280. Check: Package existence for \"glibc-2.5-24\"
  281.   Node Name Available Required Comment
  282.   ------------ ------------------------ ------------------------ ----------
  283.   huy2 glibc-2.5-49 glibc-2.5-24 passed
  284.   huy1 glibc-2.5-49 glibc-2.5-24 passed
  285. Result: Package existence check passed for \"glibc-2.5-24\"

  286. Check: Package existence for \"compat-libstdc++-33-3.2.3\"
  287.   Node Name Available Required Comment
  288.   ------------ ------------------------ ------------------------ ----------
  289.   huy2 compat-libstdc++-33-3.2.3-61 compat-libstdc++-33-3.2.3 passed
  290.   huy1 compat-libstdc++-33-3.2.3-61 compat-libstdc++-33-3.2.3 passed
  291. Result: Package existence check passed for \"compat-libstdc++-33-3.2.3\"

  292. Check: Package existence for \"elfutils-libelf-0.125\"
  293.   Node Name Available Required Comment
  294.   ------------ ------------------------ ------------------------ ----------
  295.   huy2 elfutils-libelf-0.137-3.el5 elfutils-libelf-0.125 passed
  296.   huy1 elfutils-libelf-0.137-3.el5 elfutils-libelf-0.125 passed
  297. Result: Package existence check passed for \"elfutils-libelf-0.125\"

  298. Check: Package existence for \"elfutils-libelf-devel-0.125\"
  299.   Node Name Available Required Comment
  300.   ------------ ------------------------ ------------------------ ----------
  301.   huy2 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125 passed
  302.   huy1 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125 passed
  303. Result: Package existence check passed for \"elfutils-libelf-devel-0.125\"

  304. Check: Package existence for \"glibc-common-2.5\"
  305.   Node Name Available Required Comment
  306.   ------------ ------------------------ ------------------------ ----------
  307.   huy2 glibc-common-2.5-49 glibc-common-2.5 passed
  308.   huy1 glibc-common-2.5-49 glibc-common-2.5 passed
  309. Result: Package existence check passed for \"glibc-common-2.5\"

  310. Check: Package existence for \"glibc-devel-2.5\"
  311.   Node Name Available Required Comment
  312.   ------------ ------------------------ ------------------------ ----------
  313.   huy2 glibc-devel-2.5-49 glibc-devel-2.5 passed
  314.   huy1 glibc-devel-2.5-49 glibc-devel-2.5 passed
  315. Result: Package existence check passed for \"glibc-devel-2.5\"

  316. Check: Package existence for \"glibc-headers-2.5\"
  317.   Node Name Available Required Comment
  318.   ------------ ------------------------ ------------------------ ----------
  319.   huy2 glibc-headers-2.5-49 glibc-headers-2.5 passed
  320.   huy1 glibc-headers-2.5-49 glibc-headers-2.5 passed
  321. Result: Package existence check passed for \"glibc-headers-2.5\"

  322. Check: Package existence for \"libaio-devel-0.3.106\"
  323.   Node Name Available Required Comment
  324.   ------------ ------------------------ ------------------------ ----------
  325.   huy2 libaio-devel-0.3.106-5 libaio-devel-0.3.106 passed
  326.   huy1 libaio-devel-0.3.106-5 libaio-devel-0.3.106 passed
  327. Result: Package existence check passed for \"libaio-devel-0.3.106\"

  328. Check: Package existence for \"libgcc-4.1.2\"
  329.   Node Name Available Required Comment
  330.   ------------ ------------------------ ------------------------ ----------
  331.   huy2 libgcc-4.1.2-48.el5 libgcc-4.1.2 passed
  332.   huy1 libgcc-4.1.2-48.el5 libgcc-4.1.2 passed
  333. Result: Package existence check passed for \"libgcc-4.1.2\"

  334. Check: Package existence for \"libstdc++-4.1.2\"
  335.   Node Name Available Required Comment
  336.   ------------ ------------------------ ------------------------ ----------
  337.   huy2 libstdc++-4.1.2-48.el5 libstdc++-4.1.2 passed
  338.   huy1 libstdc++-4.1.2-48.el5 libstdc++-4.1.2 passed
  339. Result: Package existence check passed for \"libstdc++-4.1.2\"

  340. Check: Package existence for \"libstdc++-devel-4.1.2\"
  341.   Node Name Available Required Comment
  342.   ------------ ------------------------ ------------------------ ----------
  343.   huy2 libstdc++-devel-4.1.2-48.el5 libstdc++-devel-4.1.2 passed
  344.   huy1 libstdc++-devel-4.1.2-48.el5 libstdc++-devel-4.1.2 passed
  345. Result: Package existence check passed for \"libstdc++-devel-4.1.2\"

  346. Check: Package existence for \"sysstat-7.0.2\"
  347.   Node Name Available Required Comment
  348.   ------------ ------------------------ ------------------------ ----------
  349.   huy2 sysstat-7.0.2-3.el5 sysstat-7.0.2 passed
  350.   huy1 sysstat-7.0.2-3.el5 sysstat-7.0.2 passed
  351. Result: Package existence check passed for \"sysstat-7.0.2\"

  352. Check: Package existence for \"unixODBC-2.2.11\"
  353.   Node Name Available Required Comment
  354.   ------------ ------------------------ ------------------------ ----------
  355.   huy2 unixODBC-2.2.11-7.1 unixODBC-2.2.11 passed
  356.   huy1 unixODBC-2.2.11-7.1 unixODBC-2.2.11 passed
  357. Result: Package existence check passed for \"unixODBC-2.2.11\"

  358. Check: Package existence for \"unixODBC-devel-2.2.11\"
  359.   Node Name Available Required Comment
  360.   ------------ ------------------------ ------------------------ ----------
  361.   huy2 unixODBC-devel-2.2.11-7.1 unixODBC-devel-2.2.11 passed
  362.   huy1 unixODBC-devel-2.2.11-7.1 unixODBC-devel-2.2.11 passed
  363. Result: Package existence check passed for \"unixODBC-devel-2.2.11\"

  364. Check: Package existence for \"ksh-20060214\"
  365.   Node Name Available Required Comment
  366.   ------------ ------------------------ ------------------------ ----------
  367.   huy2 ksh-20100202-1.el5 ksh-20060214 passed
  368.   huy1 ksh-20100202-1.el5 ksh-20060214 passed
  369. Result: Package existence check passed for \"ksh-20060214\"

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

  372. Check: Current group ID
  373. Result: Current group ID check passed
  374. Checking Core file name pattern consistency...
  375. Core file name pattern consistency check passed.

  376. Checking to make sure user \"grid\" is not in \"root\" group
  377.   Node Name Status Comment
  378.   ------------ ------------------------ ------------------------
  379.   huy2 does not exist passed
  380.   huy1 does not exist passed
  381. Result: User \"grid\" is not part of \"root\" group. Check passed

  382. Check default user file creation mask
  383.   Node Name Available Required Comment
  384.   ------------ ------------------------ ------------------------ ----------
  385.   huy2 0022 0022 passed
  386.   huy1 0022 0022 passed
  387. Result: Default user file creation mask check passed

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

  389. NTP Configuration file check started...
  390. 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

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


  392. Pre-check for cluster services setup was successful.
驗證透過

3, 編寫 response檔案  靜默安裝,沒有圖形化安裝的 人機互動的機會,必須把圖形安裝的那些輸入值 用 response檔案傳進去
 安裝包解壓後,response檔案的模板在response目錄下的 crs_install.rsp。可以借用它來修改。
我的response檔案如下。( 圖形安裝配置結束時,可以儲存當前配置 到 response檔案。以後也可以基於這個response檔案來調整)

點選(此處)摺疊或開啟

  1. ###############################################################################
  2. ## Copyright(c) Oracle Corporation 1998,2008. All rights reserved. ##
  3. ## ##
  4. ## Specify values for the variables listed below to customize ##
  5. ## your installation. ##
  6. ## ##
  7. ## Each variable is associated with a comment. The comment ##
  8. ## can help to populate the variables with the appropriate ##
  9. ## values.                             ##
  10. ## ##
  11. ## IMPORTANT NOTE: This file contains plain text passwords and ##
  12. ## should be secured to have read permission only by oracle user ##
  13. ## or db administrator who owns this installation. ##
  14. ## ##
  15. ###############################################################################

  16. ###############################################################################
  17. ## ##
  18. ## Instructions to fill this response file ##
  19. ## To install and configure \'Grid Infrastructure for Cluster\' ##
  20. ## - Fill out sections A,B,C,D,E,F and G ##
  21. ## - Fill out section G if OCR and voting disk should be placed on ASM ##
  22. ## ##
  23. ## To install and configure \'Grid Infrastructure for Standalone server\' ##
  24. ## - Fill out sections A,B and G ##
  25. ## ##
  26. ## To install software for \'Grid Infrastructure\' ##
  27. ## - Fill out sections A,B and C ##
  28. ## ##
  29. ## To upgrade clusterware and/or Automatic storage management of earlier ##
  30. ## releases ##
  31. ## - Fill out sections A,B,C,D and H ##
  32. ## ##
  33. ###############################################################################
  34. #------------------------------------------------------------------------------
  35. # Do not change the following system generated value.
  36. #------------------------------------------------------------------------------
  37. oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0

  38. ###############################################################################
  39. # #
  40. # SECTION A - BASIC #
  41. # #
  42. ###############################################################################

  43. #-------------------------------------------------------------------------------
  44. # Specify the hostname of the system as set during the install. It can be used
  45. # to force the installation to use an alternative hostname rather than using the
  46. # first hostname found on the system. (e.g., for systems with multiple hostnames
  47. # and network interfaces)
  48. #-------------------------------------------------------------------------------
  49. ORACLE_HOSTNAME=huy1

  50. #-------------------------------------------------------------------------------
  51. # Specify the location which holds the inventory files.
  52. #-------------------------------------------------------------------------------
  53. INVENTORY_LOCATION=/u01/app/oraInventory

  54. #-------------------------------------------------------------------------------
  55. # Specify the languages in which the components will be installed.
  56. #
  57. # en : English ja : Japanese
  58. # fr : French ko : Korean
  59. # ar : Arabic es : Latin American Spanish
  60. # bn : Bengali lv : Latvian
  61. # pt_BR: Brazilian Portuguese lt : Lithuanian
  62. # bg : Bulgarian ms : Malay
  63. # fr_CA: Canadian French es_MX: Mexican Spanish
  64. # ca : Catalan no : Norwegian
  65. # hr : Croatian pl : Polish
  66. # cs : Czech pt : Portuguese
  67. # da : Danish ro : Romanian
  68. # nl : Dutch ru : Russian
  69. # ar_EG: Egyptian zh_CN: Simplified Chinese
  70. # en_GB: English (Great Britain) sk : Slovak
  71. # et : Estonian sl : Slovenian
  72. # fi : Finnish es_ES: Spanish
  73. # de : German sv : Swedish
  74. # el : Greek th : Thai
  75. # iw : Hebrew zh_TW: Traditional Chinese
  76. # hu : Hungarian tr : Turkish
  77. # is : Icelandic uk : Ukrainian
  78. # in : Indonesian vi : Vietnamese
  79. # it : Italian
  80. #
  81. # Example : SELECTED_LANGUAGES=en,fr,ja
  82. #-------------------------------------------------------------------------------
  83. SELECTED_LANGUAGES=en

  84. #-------------------------------------------------------------------------------
  85. # Specify the installation option.
  86. # Allowed values: CRS_CONFIG or HA_CONFIG or UPGRADE or CRS_SWONLY
  87. # CRS_CONFIG - To configure Grid Infrastructure for cluster
  88. # HA_CONFIG - To configure Grid Infrastructure for stand alone server
  89. # UPGRADE - To upgrade clusterware software of earlier release
  90. # CRS_SWONLY - To install clusterware files only (can be configured for cluster
  91. # or stand alone server later)
  92. #-------------------------------------------------------------------------------
  93. oracle.install.option=CRS_CONFIG

  94. #-------------------------------------------------------------------------------
  95. # Specify the complete path of the Oracle Base.
  96. #-------------------------------------------------------------------------------

  97. ORACLE_BASE=/u01/app/oracle

  98. #-------------------------------------------------------------------------------
  99. # Specify the complete path of the Oracle Home.
  100. #-------------------------------------------------------------------------------
  101. ORACLE_HOME=/u01/11.2.0/grid

  102. ################################################################################
  103. # #
  104. # SECTION B - GROUPS #
  105. # #
  106. # The following three groups need to be assigned for all GI installations. #
  107. # OSDBA and OSOPER can be the same or different. OSASM must be different #
  108. # than the other two. #
  109. # #
  110. ################################################################################
  111. #-------------------------------------------------------------------------------
  112. # The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
  113. #-------------------------------------------------------------------------------
  114. oracle.install.asm.OSDBA=asmdba

  115. #-------------------------------------------------------------------------------
  116. # The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
  117. #-------------------------------------------------------------------------------
  118. oracle.install.asm.OSOPER=asmoper

  119. #-------------------------------------------------------------------------------
  120. # The OSASM_GROUP is the OS group which is to be granted OSASM privileges. This
  121. # must be different than the previous two.
  122. #-------------------------------------------------------------------------------
  123. oracle.install.asm.OSASM=asmadmin

  124. ################################################################################
  125. # #
  126. # SECTION C - SCAN #
  127. # #
  128. ################################################################################
  129. #-------------------------------------------------------------------------------
  130. # Specify a name for SCAN
  131. #-------------------------------------------------------------------------------
  132. oracle.install.crs.config.gpnp.scanName=huy-scan

  133. #-------------------------------------------------------------------------------
  134. # Specify a unused port number for SCAN service
  135. #-------------------------------------------------------------------------------
  136. oracle.install.crs.config.gpnp.scanPort=1521

  137. ################################################################################
  138. # #
  139. # SECTION D - CLUSTER & GNS #
  140. # #
  141. ################################################################################
  142. #-------------------------------------------------------------------------------
  143. # Specify a name for the Cluster you are creating.
  144. #
  145. # The maximum length allowed for clutername is 15 characters. The name can be
  146. # any combination of lower and uppercase alphabets (A - Z), (0 - 9), hyphen(-)
  147. # and underscore(_).
  148. #-------------------------------------------------------------------------------
  149. oracle.install.crs.config.clusterName=huy-cluster

  150. #-------------------------------------------------------------------------------
  151. # Specify \'true\' if you would like to configure Grid Naming Service(GNS), else
  152. # specify \'false\'
  153. #-------------------------------------------------------------------------------
  154. oracle.install.crs.config.gpnp.configureGNS=false

  155. #-------------------------------------------------------------------------------
  156. # Applicable only if you choose to configure GNS
  157. # Specify the GNS subdomain and an unused virtual hostname for GNS service
  158. # Additionally you may also specify if VIPs have to be autoconfigured
  159. #-------------------------------------------------------------------------------
  160. oracle.install.crs.config.gpnp.gnsSubDomain=
  161. oracle.install.crs.config.gpnp.gnsVIPAddress=
  162. oracle.install.crs.config.autoConfigureClusterNodeVIP=false

  163. #-------------------------------------------------------------------------------
  164. # Specify a list of public node names, and virtual hostnames that have to be
  165. # part of the cluster.
  166. #
  167. # The list should a comma-separated list of nodes. Each entry in the list
  168. # should be a colon-separated string that contains 2 fields.
  169. #
  170. # The fields should be ordered as follows:
  171. # 1. The first field is for public node name.
  172. # 2. The second field is for virtual host name
  173. # (specify as AUTO if you have chosen \'auto configure for VIP\'
  174. # i.e. autoConfigureClusterNodeVIP=true)
  175. #
  176. # Example: oracle.install.crs.config.clusterNodes=node1:node1-vip,node2:node2-vip
  177. #-------------------------------------------------------------------------------
  178. oracle.install.crs.config.clusterNodes=huy1:huy1-vip,huy2:huy2-vip

  179. #-------------------------------------------------------------------------------
  180. # The value should be a comma separated strings where each string is as shown below
  181. # InterfaceName:SubnetMask:InterfaceType
  182. # where InterfaceType can be either \"1\" or \"2\"(2 indicates private, and 1 indicates public)
  183. #
  184. # For example: eth0:140.87.24.0:1,eth1:140.87.40.0:2,eth2:140.87.52.0:1
  185. #
  186. #-------------------------------------------------------------------------------
  187. oracle.install.crs.config.privateInterconnects=eth0:192.168.56.0:1,eth1:10.10.10.0:2

  188. ################################################################################
  189. # #
  190. # SECTION E - STORAGE #
  191. # #
  192. ################################################################################

  193. #-------------------------------------------------------------------------------
  194. # Specify the type of storage to use for Oracle Cluster Registry(OCR) and Voting
  195. # Disks files
  196. # - ASM_STORAGE
  197. # - FILE_SYSTEM_STORAGE
  198. #-------------------------------------------------------------------------------
  199. oracle.install.crs.config.storageOption=ASM_STORAGE


  200. #-------------------------------------------------------------------------------
  201. # THIS PROPERTY NEEDS TO BE FILLED ONLY IN CASE OF WINDOWS INSTALL.
  202. # Specify a comma separated list of strings where each string is as shown below:
  203. # Disk Number:Partition Number:Drive Letter:Format Option
  204. # The Disk Number and Partition Number should refer to the location which has to
  205. # be formatted. The Drive Letter should refer to the drive letter that has to be
  206. # assigned. \"Format Option\" can be either of the following -
  207. # 1. SOFTWARE - Format to place software binaries.
  208. # 2. DATA - Format to place the OCR/VDSK files.
  209. #
  210. # For example: 1:2:P:DATA,1:3:Q:SOFTWARE,1:4:R:DATA,1:5:S:DATA
  211. #
  212. #-------------------------------------------------------------------------------
  213. oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=

  214. #-------------------------------------------------------------------------------
  215. # These properties are applicable only if FILE_SYSTEM_STORAGE is chosen for
  216. # storing OCR and voting disk
  217. # Specify the location(s) and redundancy for OCR and voting disks
  218. # Multiple locations can be specified, seprated by commas.
  219. # In case of windows, mention the drive location that is specified to be
  220. # formatted for DATA in the above property.
  221. # Redundancy can be one of these:
  222. # NORMAL - one(1) location should be specified for OCR and voting disk
  223. # EXTERNAL - three(3) locations should be specified for OCR and voting disk
  224. #-------------------------------------------------------------------------------
  225. oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
  226. oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
  227. oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
  228. oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
  229.                    
  230. ################################################################################
  231. # #
  232. # SECTION F - IPMI #
  233. # #
  234. ################################################################################

  235. #-------------------------------------------------------------------------------
  236. # Specify \'true\' if you would like to configure Intelligent Power Management interface
  237. # (IPMI), else specify \'false\'
  238. #-------------------------------------------------------------------------------
  239. oracle.install.crs.config.useIPMI=false

  240. #-------------------------------------------------------------------------------
  241. # Applicable only if you choose to configure IPMI
  242. # i.e. oracle.install.crs.config.useIPMI=true
  243. # Specify the username and password for using IPMI service
  244. #-------------------------------------------------------------------------------
  245. oracle.install.crs.config.ipmi.bmcUsername=
  246. oracle.install.crs.config.ipmi.bmcPassword=

  247. ################################################################################
  248. # #
  249. # SECTION G - ASM #
  250. # #
  251. ################################################################################
  252. #-------------------------------------------------------------------------------
  253. # Specify a password for SYSASM user of the ASM instance
  254. #-------------------------------------------------------------------------------
  255. oracle.install.asm.SYSASMPassword=

  256. #-------------------------------------------------------------------------------
  257. # The ASM DiskGroup
  258. #
  259. # Example: oracle.install.asm.diskGroup.name=data
  260. #
  261. #-------------------------------------------------------------------------------
  262. oracle.install.asm.diskGroup.name=OCR_VOTE

  263. #-------------------------------------------------------------------------------
  264. # Redundancy level to be used by ASM.
  265. # It can be one of the following
  266. # - NORMAL
  267. # - HIGH
  268. # - EXTERNAL
  269. # Example: oracle.install.asm.diskGroup.redundancy=NORMAL
  270. #
  271. #-------------------------------------------------------------------------------
  272. oracle.install.asm.diskGroup.redundancy=NORMAL

  273. #-------------------------------------------------------------------------------
  274. # List of disks to create a ASM DiskGroup
  275. #
  276. # Example: oracle.install.asm.diskGroup.disks=/oracle/asm/disk1,/oracle/asm/disk2
  277. #
  278. #-------------------------------------------------------------------------------
  279. oracle.install.asm.diskGroup.disks=ORCL:OCR_VOTE1,ORCL:OCR_VOTE2,ORCL:OCR_VOTE3

  280. #-------------------------------------------------------------------------------
  281. # The disk discovery string to be used to discover the disks used create a ASM DiskGroup
  282. #
  283. # Example: oracle.install.asm.diskGroup.diskDiscoveryString=/oracle/asm/*
  284. #
  285. #-------------------------------------------------------------------------------
  286. oracle.install.asm.diskGroup.diskDiscoveryString=

  287. #-------------------------------------------------------------------------------
  288. # oracle.install.asm.monitorPassword=password
  289. #-------------------------------------------------------------------------------
  290. oracle.install.asm.monitorPassword=

  291. ################################################################################
  292. # #
  293. # SECTION H - UPGRADE #
  294. # #
  295. ################################################################################
  296. #-------------------------------------------------------------------------------
  297. # Specify nodes for Upgrade.
  298. # Example: oracle.install.crs.upgrade.clusterNodes=node1,node2
  299. #-------------------------------------------------------------------------------
  300. oracle.install.crs.upgrade.clusterNodes=

  301. #-------------------------------------------------------------------------------
  302. # For RAC-ASM only. oracle.install.asm.upgradeASM=true/false
  303. #-------------------------------------------------------------------------------
  304. oracle.install.asm.upgradeASM=false

4, 開始靜默安裝   節點一操作
[grid@huy1 grid]$ ./runInstaller -ignorePrereq -silent -force -responseFile /home/grid/grid.rsp
反饋資訊如下

點選(此處)摺疊或開啟

  1. Starting Oracle Universal Installer...

  2. Checking Temp space: must be greater than 80 MB. Actual 8521 MB Passed
  3. Checking swap space: must be greater than 150 MB. Actual 3071 MB Passed
  4. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-11_04-04-17PM. Please wait ...[grid@huy1 grid]$ Xlib: connection to \"localhost:10.0\" refused by server
  5. Xlib: SSH gateway: X11 authentication failed.

  6. [grid@huy1 grid]$ [WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
  7.    CAUSE: Oracle recommends that the SYS password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  8.    ACTION: Provide a password that conforms to the Oracle recommended standards.
  9. [WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
  10.    CAUSE: Oracle recommends that the ASMSNMP password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  11.    ACTION: Provide a password that conforms to the Oracle recommended standards.
  12. [WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
  13.    CAUSE: Oracle recommends that the SYS password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  14.    ACTION: Provide a password that conforms to the Oracle recommended standards.
  15. [WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
  16.    CAUSE: Oracle recommends that the ASMSNMP password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  17.    ACTION: Provide a password that conforms to the Oracle recommended standards.
  18. You can find the log of this install session at:
  19.  /u01/app/oraInventory/logs/installActions2014-09-11_04-04-17PM.log
  20. The following configuration scripts need to be executed as the \"root\" user.
  21.  #!/bin/sh
  22.  #Root scripts to run

  23. /u01/app/oraInventory/orainstRoot.sh
  24. /u01/11.2.0/grid/root.sh
  25. To execute the configuration scripts:
  26.          1. Open a terminal window
  27.          2. Log in as \"root\"
  28.          3. Run the scripts
  29.          4. Return to this window and hit \"Enter\" key to continue

  30. Configuration assistants have not been run. This can happen for following reasons - either root.sh is to be run before config or Oracle Universal Installer was invoked with the -noConfig option.
  31. \"/u01/11.2.0/grid/cfgtoollogs/configToolAllCommands\" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.


  32. Successfully Setup Software.

  33. [grid@huy1 grid]$ /u01/11.2.0/grid/cfgtoollogs/configToolAllCommands
  34. Setting the invPtrLoc to /u01/11.2.0/grid/oraInst.loc

  35. perform - mode is starting for action: configure


  36. perform - mode finished for action: configure

  37. You can see the log file: /u01/11.2.0/grid/cfgtoollogs/oui/configActions2014-09-11_04-20-21-PM.log
安裝過程中,在兩邊的節點都用root執行 /u01/app/oraInventory/orainstRoot.sh  /u01/11.2.0/grid/root.sh 兩個指令碼。跟圖形安裝一樣的。

5, 編寫配置指令碼的 response檔案 節點一操作
[grid@huy1 ~]$ vi /u01/11.2.0/grid/cfgrsp.properties          內容填寫

點選(此處)摺疊或開啟

  1. oracle.assistants.server|S_SYSPASSWORD=oracle
  2. oracle.assistants.server|S_SYSTEMPASSWORD=oracle
  3. oracle.assistants.server|S_SYSMANPASSWORD=oracle
  4. oracle.assistants.server|S_DBSNMPPASSWORD=oracle
  5. oracle.assistants.server|S_HOSTUSERPASSWORD=oracle
  6. oracle.assistants.server|S_ASMSNMPPASSWORD=oracle
6, 執行配置指令碼 節點一操作
[grid@huy1 ~]$ /u01/11.2.0/grid/cfgtoollogs/configToolAllCommands  RESPONSE_FILE=/u01/11.2.0/grid/cfgrsp.properties

驗證結果
監聽配置

點選(此處)摺疊或開啟

  1. [grid@huy1 grid]$ lsnrctl

  2. LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2014 16:20:34

  3. Copyright (c) 1991, 2009, Oracle. All rights reserved.

  4. Welcome to LSNRCTL, type \"help\" for information.

  5. LSNRCTL> status
  6. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
  7. STATUS of the LISTENER
  8. ------------------------
  9. Alias LISTENER
  10. Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
  11. Start Date 11-SEP-2014 16:20:28
  12. Uptime 0 days 0 hr. 0 min. 7 sec
  13. Trace Level off
  14. Security ON: Local OS Authentication
  15. SNMP OFF
  16. Listener Parameter File /u01/11.2.0/grid/network/admin/listener.ora
  17. Listener Log File /u01/app/oracle/diag/tnslsnr/huy1/listener/alert/log.xml
  18. Listening Endpoints Summary...
  19.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  20.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1521)))
  21.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.201)(PORT=1521)))
  22. Services Summary...
  23. Service \"+ASM\" has 1 instance(s).
  24.   Instance \"+ASM1\", status READY, has 1 handler(s) for this service...
  25. The command completed successfully

口令檔案

點選(此處)摺疊或開啟

  1. [grid@huy1 ~]$ cd $ORACLE_HOME/dbs
  2. [grid@huy1 dbs]$ ls
  3. ab_+ASM1.dat hc_+ASM1.dat init.ora orapwd+ASM peshm_+ASM_1

crs 資源狀態

點選(此處)摺疊或開啟

  1. [grid@huy1 dbs]$ crs_stat -t
  2. Name Type Target State Host
  3. ------------------------------------------------------------
  4. ora....ER.lsnr ora....er.type ONLINE ONLINE huy1
  5. ora....N1.lsnr ora....er.type ONLINE ONLINE huy1
  6. ora....VOTE.dg ora....up.type ONLINE ONLINE huy1
  7. ora.asm ora.asm.type ONLINE ONLINE huy1
  8. ora.eons ora.eons.type ONLINE ONLINE huy1
  9. ora.gsd ora.gsd.type OFFLINE OFFLINE
  10. ora....SM1.asm application ONLINE ONLINE huy1
  11. ora....Y1.lsnr application ONLINE ONLINE huy1
  12. ora.huy1.gsd application OFFLINE OFFLINE
  13. ora.huy1.ons application ONLINE ONLINE huy1
  14. ora.huy1.vip ora....t1.type ONLINE ONLINE huy1
  15. ora....SM2.asm application ONLINE ONLINE huy2
  16. ora....Y2.lsnr application ONLINE ONLINE huy2
  17. ora.huy2.gsd application OFFLINE OFFLINE
  18. ora.huy2.ons application ONLINE ONLINE huy2
  19. ora.huy2.vip ora....t1.type ONLINE ONLINE huy2
  20. ora....network ora....rk.type ONLINE ONLINE huy1
  21. ora.oc4j ora.oc4j.type OFFLINE OFFLINE
  22. ora.ons ora.ons.type ONLINE ONLINE huy1
  23. ora....ry.acfs ora....fs.type ONLINE ONLINE huy1
  24. ora.scan1.vip ora....ip.type ONLINE ONLINE huy1

7, 建立其他ASM磁碟組

點選(此處)摺疊或開啟

  1. [grid@huy1 dbs]$ sqlplus \'/as sysasm\'

  2. SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 11 16:36:59 2014

  3. Copyright (c) 1982, 2009, Oracle. All rights reserved.


  4. Connected to:
  5. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  6. With the Real Application Clusters and Automatic Storage Management options

  7. SQL> select instance_name, host_name, status from v$instance;

  8. INSTANCE_NAME
  9. ----------------
  10. HOST_NAME STATUS
  11. ---------------------------------------------------------------- ------------
  12. +ASM1
  13. huy1 STARTED


  14. SQL> select instance_name, host_name, status from gv$instance;

  15. INSTANCE_NAME
  16. ----------------
  17. HOST_NAME STATUS
  18. ---------------------------------------------------------------- ------------
  19. +ASM1
  20. huy1 STARTED

  21. +ASM2
  22. huy2 STARTED

  23. SQL> select name, state, type, total_mb, free_mb from v$asm_diskgroup;

  24. NAME STATE TYPE TOTAL_MB FREE_MB
  25. ------------------------------ ----------- ------ ---------- ----------
  26. OCR_VOTE MOUNTED NORMAL 2892 1966

  27. SQL> create diskgroup DATA external redundancy disk \'/dev/oracleasm/disks/DATA1\',\'/dev/oracleasm/disks/DATA2\';

  28. Diskgroup created.

  29. SQL> create diskgroup RCY normal redundancy failgroup fg1 disk \'/dev/oracleasm/disks/RCY1\'
  30.   2 failgroup fg2 disk \'/dev/oracleasm/disks/RCY2\';

  31. Diskgroup created.

  32. SQL> select name, state, type, total_mb, free_mb from v$asm_diskgroup;

  33. NAME STATE TYPE TOTAL_MB FREE_MB
  34. ------------------------------ ----------- ------ ---------- ----------
  35. OCR_VOTE MOUNTED NORMAL 2892 1966
  36. DATA MOUNTED EXTERN 9554 9502
  37. RCY MOUNTED NORMAL 5976 5874

  38. SQL> show parameter asm

  39. NAME TYPE VALUE
  40. ------------------------------------ ----------- ------------------------------
  41. asm_diskgroups string DATA, RCY
  42. asm_diskstring string /dev/oracleasm/disks/*
  43. asm_power_limit integer 1
  44. asm_preferred_read_failure_groups string
  45. SQL>







來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12238525/viewspace-1290619/,如需轉載,請註明出處,否則將追究法律責任。

相關文章