WGET command is getting 403 forbidden response when remote install gc agent,Troubleshooting

djb1008發表於2010-08-09

安裝完oms伺服器,並升級到10.2.0.5,想透過oms伺服器進行客戶端的agent的遠端安裝,首先需要從oms下載agentDownload.linux檔案.

在使用wget命令下載agentDownload.linux檔案時發生了"403 Forbidden"的錯誤,本文描述瞭解決這個錯誤的方法和步驟.

[@more@]

. 問題描述:

REPOSITORY DB:

[oracle@ocmdb1 agent10g]$ wget

--2010-08-09 15:24:05--

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

--2010-08-09 15:49:15--

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 命令執行完成,檔案成功下載。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1036527/,如需轉載,請註明出處,否則將追究法律責任。

相關文章