OC4J Instance Configuration Assistant失敗(10.2)

環境

RedHat Linux ES4
Enterprise Manager 10.2.0.3
Enterprise Manager Repository Database 10.2.0.1

現象

Configure AssistantでOC4J Instance Configuration Assistantは失敗した。
ons.logは以下となる。

09/06/29 19:34:17 [4] ONS server initiated
09/06/29 19:37:08 [4] ONS server initiated
09/06/29 19:37:08 [2] BIND (Address already in use)
09/06/29 19:37:08 [2] 127.0.0.1:6101 - listener BIND failed
09/06/29 19:37:08 [4] Listener thread -201913440: 127.0.0.1:6101 (0x442) terminating

原因

OPMN 起動時に Port6101 を使用しようとしているが、既にPort6101 が使用されているため OPMN の起動に失敗した。
$ORACLE_HOME/opmn/conf/ons.configは下記のとおり。

localport=6101
remoteport=6200
loglevel=3

DBのリスナーが使用する ONS のポートとOC4J Instance Configuration Assistant で設定されるポートが共に6101であり、競合している。

対処方法

1. DBのリスナーを停止する。
2. DB側の$ORACLE_HOME/opmn/conf/ons.configをバックアップする。
3. DB側の$ORACLE_HOME/opmn/conf/ons.configの"localport"と"remoteport"に設定しているポートを OPMN 側の ONS が使用するポート("local"と"remote")以外に設定する。

修正前
-----------------
localport=6101 
remoteport=6200 
loglevel=3
-----------------
修正後
-----------------
localport=6115 
remoteport=6215 
loglevel=3
-----------------

4. DBのリスナーを起動する。
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License