设为首页 加入收藏

TOP

Oracle 10g RAC在HP-UX v3+MC ServiceGuard环境的安装(四)
2014-11-23 18:55:08 来源: 作者: 【 】 浏览:231
Tags:Oracle 10g RAC HP-UX ServiceGuard 环境 安装
ce 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_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建库

作者“小小狗窝”
首页 上一页 1 2 3 4 下一页 尾页 4/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇一次解决DB2接口文件到Oracle无法.. 下一篇更改ORACLE归档路径及归档模式

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: