AIX上配置ORACLE 10g RAC EM

byfree發表於2009-10-20
之前配置過Linux和windows平臺下的EM,都能十分順利的完成,但最近使用同樣的方法在AIX上確碰到一些問題。
EM使用不正常,點選某些連結時,經常會出現一些JAVA報錯,於是把現有的EM相關配置刪除:
SQL> drop user sysman cascade;
SQL> drop role MGMT_USER;
SQL> drop user MGMT_VIEW cascade;
SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
SQL> drop public synonym SETEMVIEWUSERCONTEXT;
完成後,重建EM:
$ emca -config dbcontrol db -repos create -cluster
填寫相關資訊...
完成配置,但過程中有:
Oct 15, 2009 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5541 is already in use.
Oct 15, 2009 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5521 is already in use.
Oct 15, 2009 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Oct 15, 2009 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 3938 is already in use.
把EM關閉:emctl stop dbconsole,檢視相關埠仍然被佔用,然後使用metalink中的方法:
For Unix Platforms
------------------
ps -ef|grep dbconsole | awk ' { print $2} ' | xargs kill -9
ps -ef|grep emagent (selectively remove the dbconsole's emagent process)
ps -ef|grep dbsnmp (selectively remove the dbconsole's dbsnmp process)
執行後,埠依然還是被佔用,真是沒辦法,只能換埠了。
$ emca -reconfig ports -cluster -DBCONTROL_HTTP_PORT 1159 -AGENT_PORT 3939 -RMI_PORT 5522 -JMS_PORT 5542
執行完命令後,啟動em
$ emctl start dbconsole
但還是有報錯:
ps: 0509-048 Flag -o was used with invalid list.
ps: Not a recognized flag: -
Usage: ps [-ANPaedfklmMZ] [-n namelist] [-F Format] [-o specifier[=header],...]
[-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T
pid] [ -L pidlist]
Usage: ps [aceglnsuvwxU] [t tty] [processnumber]
Starting Oracle Enterprise Manager 10g Database Control .............. started.
這時,通過metalink,找到Doc ID:758568.1,方法如下:
a) Stop DBConsole - 'emctl stop dbconsole'
b) Take backup of 'emctl.pl' from $ORACLE_HOME/bin
c) Edit emctl.pl and goto line number 1314, which is:
$ps=`ps -p $PID -o cmd --cols 1000 |grep DEMDROOT`;
Modify above line as below:
$ps=`ps -p $PID -o args | grep DEMDROOT`;
d) Save the file.
e) Start DBConsole - 'emctl start dbconsole' from $ORACLE_HOME/bin
至此EM能正常啟動了,如果不想使用https,可以emctl unsecure dbconsole取消,反之emctl secure dbconsole可配置em通過ssl訪問。

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

相關文章