TAR包CLONE方式 安裝11GR2 RAC資料庫
<a href="http://luoping.blog.51cto.com/534596/1024795" target="_blank">http://luoping.blog.51cto.com/534596/1024788</a>
TAR包CLONE方式 安裝11GR2 RAC資料庫 (gril軟體安裝)
<a href="http://luoping.blog.51cto.com/534596/1024795" target="_blank">http://luoping.blog.51cto.com/534596/1024795</a>
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.
CRS-4256: Updating the profile
Successful addition of voting disk 610974bccd7a4f70bf00a9bc6c52f53e.
Successfully replaced voting disk group with +OCR.
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
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
Creating /etc/oratab file...
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
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
ora.asm
ONLINE ONLINE 11rac4 Started
ora.gsd
OFFLINE OFFLINE 11rac4
OFFLINE OFFLINE 11rac5
ora.net1.network
ora.ons
ora.registry.acfs
Cluster Resources
ora.11rac4.vip
1 ONLINE ONLINE 11rac4
ora.11rac5.vip
1 ONLINE ONLINE 11rac5
ora.LISTENER_SCAN1.lsnr
ora.cvu
ora.oc4j
ora.scan1.vip
1 ONLINE ONLINE 11rac4
5.4 還回到之前的圖形界面
<a target="_blank" href="http://blog.51cto.com/attachment/201210/230908785.png"></a>
<a target="_blank" href="http://blog.51cto.com/attachment/201210/230856407.png"></a>
這裡有報錯,是正常的,因為我沒有配置NTP與DNS。
本文轉自7343696 51CTO部落格,原文連結:http://blog.51cto.com/luoping/1024804,如需轉載請自行聯系原作者