安装完oms服务器,并升级到10.2.0.5后,想通过oms服务器进行客户端的agent的远程安装,首先需要从oms下载agentDownload.linux文件.
在使用wget命令下载agentDownload.linux文件时发生了"403 Forbidden"的错误,本文描述了解决这个错误的方法和步骤.
[@more@]一. 问题描述:
REPOSITORY DB:
[oracle@ocmdb1 agent10g]$ wget http://ocmdb2:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux
--2010-08-09 15:24:05-- http://ocmdb2:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux
Resolving ocmdb2... 12.18.12.181
Connecting to ocmdb2|12.18.12.181|:4889... connected.
HTTP request sent, awaiting response... 403 Forbidden
2010-08-09 15:24:05 ERROR 403: Forbidden.
OMS DB:
$opmnctl status
[oracle@ocmdb2 config]$ opmnctl status
Processes in Instance: EnterpriseManager0.ocmdb2
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
HTTP_Server | HTTP_Server | 11189 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 11190 | Alive
OC4J | OC4J_EM | 11191 | Alive
OC4J | OC4J_EMPROV | 11198 | Alive
WebCache | WebCache | 11222 | Alive
WebCache | WebCacheAdmin | 11199 | Alive
DSA | DSA | N/A | Down
opmn的状态是没有问题的,开始怀疑是HTTP_Server的问题.然后在oms自己的主机上运行同样的wget命令,仍然存在权限不足的问题
二. 问题解决
$cd $ORACLE_HOME/sysman/config
$vi httpd_em.conf
Modify:
Order deny,allow
Deny from all
Allow from localhost
TO:
Order deny,allow
Deny from none
Allow from all
$opmctl stopproc ias-component=HTTP_Server
$opmnctl startproc ias-component=HTTP_Server
重新停止,启动一下HTTP_Server进程
如果彻底一点可以opmnctl stopall,opmnctl startall 重新停止,启动所有opmn进程,
三. 结果
[oracle@ocmdb1 agent10g]$ wget http://ocmdb2:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux
--2010-08-09 15:49:15-- http://ocmdb2:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux
Resolving ocmdb2... 12.18.12.181
Connecting to ocmdb2|12.18.12.181|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34136 (33K) [text/plain]
Saving to: `agentDownload.linux.1'
100%[======================================>] 34,136 --.-K/s in 0.001s
2010-08-09 15:49:15 (61.2 MB/s) - `agentDownload.linux.1' saved [34136/34136]
wget 命令执行完成,文件成功下载。