TAR包CLONE方式 安装11GR2 RAC数据库
http://luoping.blog.51cto.com/534596/1024788
TAR包CLONE方式 安装11GR2 RAC数据库 (gril软件安装)
http://luoping.blog.51cto.com/534596/1024795
5.root.sh用户执行root.sh脚本
那个主机先执行ASM1就在那个主机上面
5.1 节点1上面执行
整个过程可能有10分钟
- 主机1上面
- [root@11rac4 ~]# /u01/app/11.2.0/grid/root.sh
- Check /u01/app/11.2.0/grid/install/root_11rac4_2012-10-09_22-59-10.log for the output of root script
- [root@11rac4 ~]# cat /u01/app/11.2.0/grid/install/root_11rac4_2012-10-09_22-59-10.log
- Running Oracle 11g root script...
- The following environment variables are set as:
- ORACLE_OWNER= grid
- ORACLE_HOME= /u01/app/11.2.0/grid
- Entries will be added to the /etc/oratab file as needed by
- Database Configuration Assistant when a database is created
- Finished running generic part of root script.
- Now product-specific root actions will be performed.
- Relinking oracle with rac_on option
- Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
- LOCAL ADD MODE
- Creating OCR keys for user 'root', privgrp 'root'..
- Operation successful.
- OLR initialization - successful
- root wallet
- root wallet cert
- root cert export
- peer wallet
- profile reader wallet
- pa wallet
- peer wallet keys
- pa wallet keys
- peer cert request
- pa cert request
- peer cert
- pa cert
- peer root cert TP
- profile reader root cert TP
- pa root cert TP
- peer pa cert TP
- pa peer cert TP
- profile reader pa cert TP
- profile reader peer cert TP
- peer user cert
- pa user cert
- Adding daemon to inittab
- ACFS-9200: Supported
- ACFS-9300: ADVM/ACFS distribution files found.
- ACFS-9307: Installing requested ADVM/ACFS software.
- ACFS-9308: Loading installed ADVM/ACFS drivers.
- ACFS-9321: Creating udev for ADVM/ACFS.
- ACFS-9323: Creating module dependencies - this may take some time.
- ACFS-9327: Verifying ADVM/ACFS devices.
- ACFS-9309: ADVM/ACFS installation correctness verified.
- CRS-2672: Attempting to start 'ora.mdnsd' on '11rac4'
- CRS-2676: Start of 'ora.mdnsd' on '11rac4' succeeded
- CRS-2672: Attempting to start 'ora.gpnpd' on '11rac4'
- CRS-2676: Start of 'ora.gpnpd' on '11rac4' succeeded
- CRS-2672: Attempting to start 'ora.cssdmonitor' on '11rac4'
- CRS-2672: Attempting to start 'ora.gipcd' on '11rac4'
- CRS-2676: Start of 'ora.cssdmonitor' on '11rac4' succeeded
- CRS-2676: Start of 'ora.gipcd' on '11rac4' succeeded
- CRS-2672: Attempting to start 'ora.cssd' on '11rac4'
- CRS-2672: Attempting to start 'ora.diskmon' on '11rac4'
- CRS-2676: Start of 'ora.diskmon' on '11rac4' succeeded
- CRS-2676: Start of 'ora.cssd' on '11rac4' succeeded
- ASM created and started successfully.
- Disk Group OCR created successfully.
- clscfg: -install mode specified
- Successfully accumulated necessary OCR keys.
- Creating OCR keys for user 'root', privgrp 'root'..
- Operation successful.
- CRS-4256: Updating the profile
- Successful addition of voting disk 610974bccd7a4f70bf00a9bc6c52f53e.
- Successfully replaced voting disk group with +OCR.
- CRS-4256: Updating the profile
- CRS-4266: Voting file(s) successfully replaced
- ## STATE File Universal Id File Name Disk group
- -- ----- ----------------- --------- ---------
- 1. ONLINE 610974bccd7a4f70bf00a9bc6c52f53e (/dev/asm-diskb) [OCR]
- Located 1 voting disk(s).
- CRS-2672: Attempting to start 'ora.asm' on '11rac4'
- CRS-2676: Start of 'ora.asm' on '11rac4' succeeded
- CRS-2672: Attempting to start 'ora.OCR.dg' on '11rac4'
- CRS-2676: Start of 'ora.OCR.dg' on '11rac4' succeeded
- ACFS-9200: Supported
- ACFS-9200: Supported
- CRS-2672: Attempting to start 'ora.registry.acfs' on '11rac4'
- CRS-2676: Start of 'ora.registry.acfs' on '11rac4' succeeded
- Configure Oracle Grid Infrastructure for a Cluster ... succeeded
5.2 节点2执行
- 主机2
- [root@11rac5 ~]# /u01/app/11.2.0/grid/root.sh
- Check /u01/app/11.2.0/grid/install/root_11rac5_2012-10-09_23-06-13.log for the output of root script
- [root@11rac5 ~]# cat /u01/app/11.2.0/grid/install/root_11rac5_2012-10-09_23-06-13.log
- Running Oracle 11g root script...
- The following environment variables are set as:
- ORACLE_OWNER= grid
- ORACLE_HOME= /u01/app/11.2.0/grid
- Creating /etc/oratab file...
- Entries will be added to the /etc/oratab file as needed by
- Database Configuration Assistant when a database is created
- Finished running generic part of root script.
- Now product-specific root actions will be performed.
- Relinking oracle with rac_on option
- Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
- LOCAL ADD MODE
- Creating OCR keys for user 'root', privgrp 'root'..
- Operation successful.
- OLR initialization - successful
- Adding daemon to inittab
- ACFS-9200: Supported
- ACFS-9300: ADVM/ACFS distribution files found.
- ACFS-9307: Installing requested ADVM/ACFS software.
- ACFS-9308: Loading installed ADVM/ACFS drivers.
- ACFS-9321: Creating udev for ADVM/ACFS.
- ACFS-9323: Creating module dependencies - this may take some time.
- ACFS-9327: Verifying ADVM/ACFS devices.
- ACFS-9309: ADVM/ACFS installation correctness verified.
- CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node 11rac4, number 1, and is terminating
- An active cluster was found during exclusive startup, restarting to join the cluster
- Configure Oracle Grid Infrastructure for a Cluster ... succeeded
5.3 查看资源状态
- [root@11rac4 ~]# crsctl status resource -t
- --------------------------------------------------------------------------------
- NAME TARGET STATE SERVER STATE_DETAILS
- --------------------------------------------------------------------------------
- Local Resources
- --------------------------------------------------------------------------------
- ora.LISTENER.lsnr
- ONLINE ONLINE 11rac4
- ONLINE ONLINE 11rac5
- ora.OCR.dg
- ONLINE ONLINE 11rac4
- ONLINE ONLINE 11rac5
- ora.asm
- ONLINE ONLINE 11rac4 Started
- ONLINE ONLINE 11rac5
- ora.gsd
- OFFLINE OFFLINE 11rac4
- OFFLINE OFFLINE 11rac5
- ora.net1.network
- ONLINE ONLINE 11rac4
- ONLINE ONLINE 11rac5
- ora.ons
- ONLINE ONLINE 11rac4
- ONLINE ONLINE 11rac5
- ora.registry.acfs
- ONLINE ONLINE 11rac4
- ONLINE ONLINE 11rac5
- --------------------------------------------------------------------------------
- Cluster Resources
- --------------------------------------------------------------------------------
- ora.11rac4.vip
- 1 ONLINE ONLINE 11rac4
- ora.11rac5.vip
- 1 ONLINE ONLINE 11rac5
- ora.LISTENER_SCAN1.lsnr
- 1 ONLINE ONLINE 11rac4
- ora.cvu
- 1 ONLINE ONLINE 11rac4
- ora.oc4j
- 1 ONLINE ONLINE 11rac4
- ora.scan1.vip
- 1 ONLINE ONLINE 11rac4
5.4 还回到之前的图形界面
这里有报错,是正常的,因为我没有配置NTP与DNS。
本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/1024804,如需转载请自行联系原作者