# halted.
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
test_return 52
}
# END OF CUSTOMER DEFINED FUNCTIONS
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# chmod +x /etc/cmcluster/pkg_ora1/pkg_ora1.cntl
# chmod 700 /etc/cmcluster/pkg_ora1
在备机上
# mkdir /etc/cmcluster/pkg_ora1
# chmod 700 /etc/cmcluster/pkg_ora1
回主机上
# rcp /etc/cmcluster/pkg_ora1/pkg_ora1.cntl hp2:/etc/cmcluster/pkg_ora1/
# cmcheckconf -C /etc/cmcluster/cmcluster.ascii
# cmcheckconf -P /etc/cmcluster/pkg_ora1/pkg_ora1.conf
# cmhaltcl -v -f
# cmapplyconf -v -C /etc/cmcluster/cmcluster.ascii -P /etc/cmcluster/pkg_ora1/pkg_ora1.conf
# cmruncl -v -f
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
6. 增加第二个包
# mkdir /etc/cmcluster/pkg_ora2
# cmmakepkg -p /etc/cmcluster/pkg_ora2/pkg_ora2.conf
# vi /etc/cmcluster/pkg_ora2/pkg_ora2.conf
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PACKAGE_NAME pkg_ora2
NODE_NAME hpdb2 #只加节点2.
RUN_SCRIPT /etc/cmcluster/pkg_ora2/pkg_ora2.cntl
HALT_SCRIPT /etc/cmcluster/pkg_ora2/pkg_ora2.cntl
MONITORED_SUBNET 222.3.25.0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# cmmakepkg -s /etc/cmcluster/pkg_ora2/pkg_ora2.cntl
# vi /etc/cmcluster/pkg_ora2/pkg_ora2.cntl
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
VGCHANGE="vgchange -a s" # RAC模式
VG[0]="datavg" #需要激活的包,lockvg不需要添加。
#IP[0]="222.3.25.123" #HA模式需要,RAC模式不需要。
#SUBNET[0]="222.3.25.0" #HA模式需要,RAC模式不需要。
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
test_return 51
}
# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, after the service is
# halted.
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
test_return 52
}
# END OF CUSTOMER DEFINED FUNCTIONS
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# chmod +x /etc/cmcluster/pkg_ora2/pkg_ora2.cntl
# chmod 700 /etc/cmcluster/pkg_ora2
在备机上
# mkdir /etc/cmcluster/pkg_ora2
# chmod 700 /etc/cmcluster/pkg_ora2
回主机上
# rcp /etc/cmcluster/pkg_ora2/pkg_ora2.cntl hp2:/etc/cmcluster/pkg_ora2
# cmcheckconf -P /etc/cmcluster/pkg_ora2/pkg_ora2.conf
# cmapplyconf -v -P /etc/cmcluster/pkg_ora2/pkg_ora2.conf
# cmhaltcl -v -f
# cmruncl -v -f
/etc/rc.config.d/cmcluster中AUTOSTART_CMCLD=1自动启动MC,一般设为AUTOSTART_CMCLD=0。
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
7.安装CRS
需要用runInstaller –ignoreSysPrereqs跳过操作系统检查。
分别在两个节点运行下面脚本:
/oracle/oraInventory/orainstRoot.sh
然后分别在两个节点运行下面脚本:
/oracle/product/10.2.0/crs_1/root.sh
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
8.安装DB
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
9.打10.2.0.4补丁。
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10.
创建VIP vipca
创建监听 netca
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
11.DBCA建库