ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 11 g rac 安裝 11.1步

11 g rac 安裝 11.1步

原创 Linux操作系统 作者:tom_xieym 时间:2011-08-05 10:53:27 0 删除 编辑
十一. 創建 ASM 磁盤組
創建ASM磁盤組很簡單,一般先安裝好oracleasm相關包,在10g 中用dbca 的時候創建,而11g則需要先安裝好oracleasm相關包,然後安裝oracle grid控制項,再使用asmca來創建ASM 磁盤組.如下圖示操作.
 
 
Apply patch
停止相關進程(在兩個node執行)
wmrac01<*+ASM1*/home/grid>$crs_stop -all
CRS-2500: Cannot stop resource 'ora.gsd' as it is not running
CRS-2500: Cannot stop resource 'ora.oc4j' as it is not running
CRS-2789: Cannot stop resource 'ora.gsd' as it is not running on server 'wmrac01'
Attempting to stop `ora.ons` on member `wmrac01`
Attempting to stop `ora.LISTENER.lsnr` on member `wmrac01`
Attempting to stop `ora.LISTENER.lsnr` on member `wmrac02`
CRS-2789: Cannot stop resource 'ora.gsd' as it is not running on server 'wmrac02'
Attempting to stop `ora.ons` on member `wmrac02`
Attempting to stop `ora.eons` on member `wmrac01`
Attempting to stop `ora.DATA.dg` on member `wmrac01`
Attempting to stop `ora.INDX.dg` on member `wmrac01`
Attempting to stop `ora.registry.acfs` on member `wmrac01`
Attempting to stop `ora.eons` on member `wmrac02`
Attempting to stop `ora.DATA.dg` on member `wmrac02`
Attempting to stop `ora.INDX.dg` on member `wmrac02`
Attempting to stop `ora.registry.acfs` on member `wmrac02`
Stop of `ora.LISTENER.lsnr` on member `wmrac02` succeeded.
Stop of `ora.LISTENER.lsnr` on member `wmrac01` succeeded.
Stop of `ora.ons` on member `wmrac01` succeeded.
Attempting to stop `ora.LISTENER_SCAN1.lsnr` on member `wmrac01`
Attempting to stop `ora.wmrac01.vip` on member `wmrac01`
Stop of `ora.ons` on member `wmrac02` succeeded.
Attempting to stop `ora.wmrac02.vip` on member `wmrac02`
Stop of `ora.wmrac01.vip` on member `wmrac01` succeeded.
Stop of `ora.registry.acfs` on member `wmrac01` succeeded.
Stop of `ora.registry.acfs` on member `wmrac02` succeeded.
Stop of `ora.wmrac02.vip` on member `wmrac02` succeeded.
Attempting to stop `ora.net1.network` on member `wmrac02`
Stop of `ora.net1.network` on member `wmrac02` succeeded.
Stop of `ora.LISTENER_SCAN1.lsnr` on member `wmrac01` succeeded.
Attempting to stop `ora.scan1.vip` on member `wmrac01`
Stop of `ora.scan1.vip` on member `wmrac01` succeeded.
Attempting to stop `ora.net1.network` on member `wmrac01`
Stop of `ora.net1.network` on member `wmrac01` succeeded.
Stop of `ora.eons` on member `wmrac02` succeeded.
Stop of `ora.eons` on member `wmrac01` succeeded.
Stop of `ora.DATA.dg` on member `wmrac02` succeeded.
Stop of `ora.DATA.dg` on member `wmrac01` succeeded.
Stop of `ora.INDX.dg` on member `wmrac02` succeeded.
Attempting to stop `ora.asm` on member `wmrac02`
Stop of `ora.INDX.dg` on member `wmrac01` succeeded.
Attempting to stop `ora.asm` on member `wmrac01`
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac01'
ORA-15097: cannot SHUTDOWN ASM instance with connected client
CRS-2675: Stop of 'ora.asm' on 'wmrac01' failed
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac02'
ORA-15097: cannot SHUTDOWN ASM instance with connected client
CRS-2675: Stop of 'ora.asm' on 'wmrac02' failed
CRS-0216: Could not stop resource 'ora.asm wmrac01 1'.
CRS-0216: Could not stop resource 'ora.asm wmrac02 1'.
CRS-0216: Could not stop resource 'ora.gsd'.
CRS-0216: Could not stop resource 'ora.gsd wmrac01 1'.
CRS-0216: Could not stop resource 'ora.gsd wmrac02 1'.
CRS-0216: Could not stop resource 'ora.oc4j'.
wmrac01<*+ASM1*/home/grid>$su
Password:
wmrac01<*+ASM1*/home/grid>$id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
wmrac01<*+ASM1*/home/grid>$crsctl stop cluster
CRS-2673: Attempting to stop 'ora.crsd' on 'wmrac01'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'wmrac01'
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac01'
CRS-2677: Stop of 'ora.asm' on 'wmrac01' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'wmrac01' has completed
CRS-2677: Stop of 'ora.crsd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'wmrac01'
CRS-2673: Attempting to stop 'ora.ctssd' on 'wmrac01'
CRS-2673: Attempting to stop 'ora.evmd' on 'wmrac01'
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac01'
CRS-2677: Stop of 'ora.cssdmonitor' on 'wmrac01' succeeded
CRS-2677: Stop of 'ora.evmd' on 'wmrac01' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'wmrac01' succeeded
CRS-2677: Stop of 'ora.asm' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'wmrac01'
CRS-2677: Stop of 'ora.cssd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'wmrac01'
CRS-2677: Stop of 'ora.diskmon' on 'wmrac01' succeeded
wmrac02<*+ASM2*/home/grid>$su
Password:
wmrac02<*+ASM2*/home/grid>$crsctl stop cluster
CRS-2673: Attempting to stop 'ora.crsd' on 'wmrac02'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'wmrac02'
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac02'
CRS-2677: Stop of 'ora.asm' on 'wmrac02' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'wmrac02' has completed
CRS-2677: Stop of 'ora.crsd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'wmrac02'
CRS-2673: Attempting to stop 'ora.ctssd' on 'wmrac02'
CRS-2673: Attempting to stop 'ora.evmd' on 'wmrac02'
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac02'
CRS-2677: Stop of 'ora.cssdmonitor' on 'wmrac02' succeeded
CRS-2677: Stop of 'ora.evmd' on 'wmrac02' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'wmrac02' succeeded
CRS-2677: Stop of 'ora.asm' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'wmrac02'
CRS-2677: Stop of 'ora.cssd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'wmrac02'
CRS-2677: Stop of 'ora.diskmon' on 'wmrac02' succeeded
wmrac02<*+ASM2*/home/grid>$whoami
root
wmrac02<*+ASM2*/home/grid>$exit
exit
升級OPatch
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$cd $ORACLE_HOME
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$su
Password:
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$tar zcvf OPatch_`date +Y%m%d`.tar.gz OPatch
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$exit
exit
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$cd /u01/packages/
wmrac01<*+ASM1*/u01/packages>$ll
total 3365912
drwxrwxr-x 8 grid oinstall       4096 Aug 21  2009 database
drwxrwxr-x 8 grid oinstall       4096 Aug 21  2009 grid
drwxrwxr-x 2 grid oinstall       4096 Jan 24 10:05 kernel
-rwxrwxr-x 1 grid oinstall 1239269270 Jan 24 09:05 linux.x64_11gR2_database_1of2.zip
-rwxrwxr-x 1 grid oinstall 1111416131 Jan 24 09:06 linux.x64_11gR2_database_2of2.zip
-rwxrwxr-x 1 grid oinstall 1052897657 Jan 24 09:09 linux.x64_11gR2_grid.zip
drwxrwxr-x 2 grid oinstall       4096 Jan 24 10:05 oracleasm
-rwxrwxr-x 1 grid oinstall   27513939 Jan 24 09:06 p6880880_x86_64.zip
-rwxrwxr-x 1 grid oinstall      65656 Jan 24 09:06 p8730312_x86_64.zip
-rwxrwxr-x 1 grid oinstall   12064953 Jan 24 09:06 p9352237_x86_64.zip
drwxrwxr-x 2 grid oinstall       4096 Jan 24 09:04 Redhat5.3
wmrac01<*+ASM1*/u01/packages>$unzip p6880880_x86_64.zip -d $ORACLE_HOME
Archive:  p6880880_x86_64.zip
 extracting: /u01/product/grid/11.2.0/OPatch/ocm/ocm.zip
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/lib/osdt_jce.jar
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/lib/osdt_core3.jar
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/lib/emocmclnt-14.jar
replace /u01/product/grid/11.2.0/OPatch/ocm/lib/emocmutl.jar? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/lib/emocmutl.jar
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/bin/emocmrsp
  inflating: /u01/product/grid/11.2.0/OPatch/ocm/ocm_platforms.txt
   creating: /u01/product/grid/11.2.0/OPatch/crs/
   creating: /u01/product/grid/11.2.0/OPatch/crs/log/
 extracting: /u01/product/grid/11.2.0/OPatch/crs/log/dummy
  inflating: /u01/product/grid/11.2.0/OPatch/crs/patch112.pl
  inflating: /u01/product/grid/11.2.0/OPatch/crs/crsdelete.pm
  inflating: /u01/product/grid/11.2.0/OPatch/crs/crspatch.pm
  inflating: /u01/product/grid/11.2.0/OPatch/crs/s_crsconfig_defs
  inflating: /u01/product/grid/11.2.0/OPatch/crs/crsconfig_lib.pm
  inflating: /u01/product/grid/11.2.0/OPatch/crs/oracss.pm
  inflating: /u01/product/grid/11.2.0/OPatch/crs/auto_patch.pl
  inflating: /u01/product/grid/11.2.0/OPatch/crs/s_crsconfig_lib.pm
  inflating: /u01/product/grid/11.2.0/OPatch/opatch
  inflating: /u01/product/grid/11.2.0/OPatch/opatchprereqs/opatch/runtime_prereq.xml
  inflating: /u01/product/grid/11.2.0/OPatch/opatchprereqs/opatch/opatch_prereq.xml
  inflating: /u01/product/grid/11.2.0/OPatch/opatchprereqs/opatch/rulemap.xml
  inflating: /u01/product/grid/11.2.0/OPatch/opatchprereqs/prerequisite.properties
  inflating: /u01/product/grid/11.2.0/OPatch/opatchprereqs/oui/knowledgesrc.xml
  inflating: /u01/product/grid/11.2.0/OPatch/opatch.ini
  inflating: /u01/product/grid/11.2.0/OPatch/emdpatch.pl
  inflating: /u01/product/grid/11.2.0/OPatch/opatch.pl
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatchprereq.jar
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatchactions.jar
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatchutil.jar
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatchfmw.jar
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatchext.jar
  inflating: /u01/product/grid/11.2.0/OPatch/jlib/opatch.jar
   creating: /u01/product/grid/11.2.0/OPatch/fmw/
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/application.py
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/main_driver.py
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/prereq.py
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/start_stop.py
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/node_manager.py
  inflating: /u01/product/grid/11.2.0/OPatch/fmw/init_def.py
  inflating: /u01/product/grid/11.2.0/OPatch/opatch.bat
  inflating: /u01/product/grid/11.2.0/OPatch/docs/Prereq_Users_Guide.txt
  inflating: /u01/product/grid/11.2.0/OPatch/docs/FAQ
  inflating: /u01/product/grid/11.2.0/OPatch/docs/Users_Guide.txt
  inflating: /u01/product/grid/11.2.0/OPatch/README.txt
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$cd $ORACLE_HOME
wmrac01<*+ASM1*/u01/product/grid/11.2.0>$cd OPatch
wmrac01<*+ASM1*/u01/product/grid/11.2.0/OPatch>$./opatch version
Invoking OPatch 11.2.0.1.3
OPatch Version: 11.2.0.1.3
OPatch succeeded.
wmrac01<*+ASM1*/u01/product/grid/11.2.0/OPatch>$cd /u01/packages/
wmrac01<*+ASM1*/u01/packages>$ll
total 3365912
drwxrwxr-x 8 grid oinstall       4096 Aug 21  2009 database
drwxrwxr-x 8 grid oinstall       4096 Aug 21  2009 grid
drwxrwxr-x 2 grid oinstall       4096 Jan 24 10:05 kernel
-rwxrwxr-x 1 grid oinstall 1239269270 Jan 24 09:05 linux.x64_11gR2_database_1of2.zip
-rwxrwxr-x 1 grid oinstall 1111416131 Jan 24 09:06 linux.x64_11gR2_database_2of2.zip
-rwxrwxr-x 1 grid oinstall 1052897657 Jan 24 09:09 linux.x64_11gR2_grid.zip
drwxrwxr-x 2 grid oinstall       4096 Jan 24 10:05 oracleasm
-rwxrwxr-x 1 grid oinstall   27513939 Jan 24 09:06 p6880880_x86_64.zip
-rwxrwxr-x 1 grid oinstall      65656 Jan 24 09:06 p8730312_x86_64.zip
-rwxrwxr-x 1 grid oinstall   12064953 Jan 24 09:06 p9352237_x86_64.zip
drwxrwxr-x 2 grid oinstall       4096 Jan 24 09:04 Redhat5.3
wmrac01<*+ASM1*/u01/packages>$unzip p9352237_x86_64.zip
wmrac01<*+ASM1*/u01/packages>$su
Password:
wmrac01<*+ASM1*/u01/packages>$id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
wmrac01<*+ASM1*/u01/packages>$$ORACLE_HOME/crs/install/roothas.pl -unlock
2011-03-01 08:29:43: Checking for super user privileges
2011-03-01 08:29:43: User has super user privileges
2011-03-01 08:29:43: Parsing the host name
Using configuration parameter file: /u01/product/grid/11.2.0/crs/install/crsconfig_params
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'wmrac01'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'wmrac01'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'wmrac01'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'wmrac01'
CRS-2677: Stop of 'ora.gpnpd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'wmrac01'
CRS-2677: Stop of 'ora.mdnsd' on 'wmrac01' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'wmrac01' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'wmrac01' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'wmrac01' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully unlock /u01/product/grid/11.2.0
wmrac01<*+ASM1*/u01/packages>$whoami
root
wmrac01<*+ASM1*/u01/packages>$exit
exit
wmrac01<*+ASM1*/u01/packages>$whoami
grid

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25850100/viewspace-704187/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 11 g rac 安裝 10步
请登录后发表评论 登录
全部评论

注册时间:2011-05-20

  • 博文量
    77
  • 访问量
    95634