AIX上配置ORACLE 10g RAC EM
之前配置過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使用不正常,點選某些連結時,經常會出現一些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.
$ 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)
執行後,埠依然還是被佔用,真是沒辦法,只能換埠了。
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.
執行完命令後,啟動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
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 10g RAC on AIXAI
- AIX 5.3 Install Oracle 10g RAC 錯誤集錦AIOracle 10g
- oracle 11g rac配置em dbconsole ORA-12514Oracle
- Oracle 10g RAC故障處理Oracle 10g
- oracle aix平臺19c rac互信不通案例OracleAI
- Oracle 10g RAC 資料儲存更換Oracle 10g
- oracle RAC手動配置互信Oracle
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- oracle EM 優化Oracle優化
- 【RAC】Oracle RAC上線測試場景介紹Oracle
- 【NETWORK】Oracle RAC 心跳地址配置說明Oracle
- Oracle 19C EMOracle
- Oracle VM上實施Oracle 12cR2 RACOracle
- 防火牆在RAC上的配置防火牆
- AIX 5.3/6.1環境下安裝Oracle 10gR2 RAC常見報錯AIOracle 10g
- 【BUILD_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(二)詳細配置步驟UIOracleASMFilter
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(五)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(四)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(三)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(二)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(一)Oracle
- oracle xtts遷移 AIX to LinuxOracleTTSAILinux
- oracle RACOracle
- oracle資料庫跨平臺(AIX)從RAC恢復至(linux)下的單例項Oracle資料庫AILinux單例
- Oracle RAC Cache Fusion 系列十七:Oracle RAC DRMOracle
- Solaris 10下遷移10G RAC (二)
- Solaris 10下遷移10G RAC (七)
- Solaris 10下遷移10G RAC (三)
- Solaris 10下遷移10G RAC (一)
- Solaris 10下遷移10G RAC (五)
- Solaris 10下遷移10G RAC (六)
- Solaris 10下遷移10G RAC (八)
- Solaris 10下遷移10G RAC (四)
- oracle 10g flashback databaseOracle 10gDatabase
- 【ASK_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(一)ASMFD簡介OracleASMFilter
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- Oracle 11.2.0.4 rac for aix acfs異常環境的克隆環境ASM磁碟組掛載緩慢OracleAIASM
- Oracle RAC CacheFusion 系列十五:Oracle RAC CRServer Part TwoOracleServer
- aix安裝oracle客戶端AIOracle客戶端