首先需要有一个已经装好的可以正常运行的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/