您的位置:首页 > 博客中心 > 数据库 >

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)

时间:2022-03-05 17:24



技术分享

2)检查安装环境

技术分享

出现警告提示:对于AIX 6100-09,Oracle 10gR2不支持,不用理会,继续安装就可以


3)配置节点

技术分享


4)配置OCR 和 Vote Disk

技术分享

技术分享


5)安装

技术分享

6)运行Script

技术分享


在运行脚本前可以通过dd,清理ocr和vote disk:

node1:

[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#/u01/crs_1/root.sh

WARNING: directory ‘/u01‘ is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory ‘/u01‘ is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix203 aix203-priv aix203
node 2: aix204 aix204-priv aix204
Creating OCR keys for user ‘root‘, privgrp ‘system‘..
Operation successful.
Now formatting voting device: /dev/rrac_vote
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        aix203
CSS is inactive on these nodes.
        aix204
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.

node2:
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in
2560+0 records out
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix204 /]#/u01/crs_1/root.sh

WARNING: directory ‘/u01‘ is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory ‘/u01‘ is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix203 aix203-priv aix203
node 2: aix204 aix204-priv aix204
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        aix203
        aix204
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)

Running vipca(silent) for configuring nodeapps
The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.

7)运行vipca配置CRS资源

[root@aix204 /]#cd /u01/crs_1/bin
[root@aix204 bin]#./vipca

技术分享

技术分享

技术分享


三、查看CRS服务及资源
[root@aix203 /]#crsctl check crs

CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix203 /]#crs_stat -t

Name           Type           Target    State     Host        
------------------------------------------------------------
ora.aix203.gsd application    ONLINE    ONLINE    aix203      
ora.aix203.ons application    ONLINE    ONLINE    aix203      
ora.aix203.vip application    ONLINE    ONLINE    aix203      
ora.aix204.gsd application    ONLINE    ONLINE    aix204      
ora.aix204.ons application    ONLINE    ONLINE    aix204      
ora.aix204.vip application    ONLINE    ONLINE    aix204

[root@aix204 bin]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix204 bin]#crs_stat -t

Name           Type           Target    State     Host        
------------------------------------------------------------
ora.aix203.gsd application    ONLINE    ONLINE    aix203      
ora.aix203.ons application    ONLINE    ONLINE    aix203      
ora.aix203.vip application    ONLINE    ONLINE    aix203      
ora.aix204.gsd application    ONLINE    ONLINE    aix204      
ora.aix204.ons application    ONLINE    ONLINE    aix204      
ora.aix204.vip application    ONLINE    ONLINE    aix204

---- 至此,CRS安装配置成功 !


------未完,待续 !

本文出自 “” 博客,请务必保留此出处

本类排行

今日推荐

热门手游