GRID 中用tar方法安装agent

首先需要有一个已经装好的可以正常运行的agent节点,然后将这个节点下agent/目录下所有的文件打一个tar,传到需要部署的节点上,解tar,确定目录正确。

然后运行agentca -f 重新配置agent。

在agentca -f时,可能遇到错误如下:

2011年9月9日 星期五 10时59分

agentca -f 报错:
$ ./agentca -f

The ORACLE_HOME=/oracle/product/10.2.0/grid/agent10g doesn't exist in the oraInventory specified in /oracle/oraInventory, Please specify the correct oraInventory location using -i option


1.vi 检查agentca 的$ORACLE_HOME是否正确为agent的目录
2.vi agentca.pl 查找 “correct oraInventory" ,检查判断条件为:

$inventory_loc = get_inventory_loc($inv_ptr_loc);
$inventory_xml = "$inventory_loc/ContentsXML/inventory.xml";

$line = get_line_from_file($inventory_xml, "LOC="$ORACLE_HOME"");

if( $line eq "NULL" )
{
Error("The ORACLE_HOME=$ORACLE_HOME doesn't exist in the oraInventory specified in $inventory_loc, Please specify the correct oraInventory location using -i option");
}

if (! -e $emctl_file )
{
Error("ORACLE_HOME=$ORACLE_HOME is corrupted");
}

}

3.找到$inventory_loc/ContentsXML/inventory.xml,修改增加:(IDX为最大加1)

4.重新运行agentca -f

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10769731/viewspace-1054893/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10769731/viewspace-1054893/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值