更改主機名稱或ip 導致 Oracle10G Web OEM不能正常啟動的解決過程(zt)
今天由於修改了Oracle10g 主機的名稱,導致了OEM不能正常啟動。 報錯,找不到檔案。
PDM8_NewDB$emctl start dbconsole
TZ set to ROC
OC4J Configuration issue. /u01/product/oracle/oc4j/j2ee/OC4J_DBConsole_PDM8_NewDB_wind not found.
PDM8_NewDB$
然後直接想透過複製目錄來達到目的,但是由於配置檔案中太多地方設計到主機名稱,沒有辦法一一都該。所以只有想辦法看看 emca 命令能否重新配置。 測試了一下,果然可以。 詳見下面處理過程:
第一步: $ emca -repos recreate -host PDM8_NewDB
這裡要注意 SYSMAN 的預設密碼是 oem_temp .
第二步: $ emca -config dbcontrol db
發現報錯,提示資訊 EM Agent port 1830 被佔用 .
PDM8_NewDB$emca -config dbcontrol db
STARTED EMCA at Nov 29, 2007 5:24:42 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: wind
Database Control is already configured for the database wind
You have chosen to configure Database Control for managing the database wind
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/product/oracle
Database hostname ................ PDM8_NewDB
Listener port number ................ 1521
Database SID ................ wind
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Nov 29, 2007 5:25:13 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/product/oracle/cfgtoollogs/emca/wind/emca_2007-11-29_05-24-42-PM.log.
Nov 29, 2007 5:25:14 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Nov 29, 2007 5:25:14 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5520 is already in use.
Nov 29, 2007 5:25:14 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Nov 29, 2007 5:25:14 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Nov 29, 2007 5:25:17 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Cannot start Database Control. The following ports are already in use: [EM agent port:1830].
Refer to the log file at /u01/product/oracle/cfgtoollogs/emca/wind/emca_2007-11-29_05-24-42-PM.log for more details.
Could not complete the configuration. Refer to the log file at /u01/product/oracle/cfgtoollogs/emca/wind/emca_2007-11-29_05-24-42-PM.log for more details.
第三步: 然後重新給它一個port. (具體可以檢視 emca 的幫助檔案)
PDM8_NewDB$ emca -config dbcontrol db -AGENT_PORT 3940
STARTED EMCA at Nov 29, 2007 5:33:36 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: wind
Database Control is already configured for the database wind
You have chosen to configure Database Control for managing the database wind
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: u
Invalid input.
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/product/oracle
Database hostname ................ PDM8_NewDB
Listener port number ................ 1521
Database SID ................ wind
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Nov 29, 2007 5:34:19 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/product/oracle/cfgtoollogs/emca/wind/emca_2007-11-29_05-33-36-PM.log.
Nov 29, 2007 5:34:19 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Nov 29, 2007 5:34:19 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5520 is already in use.
Nov 29, 2007 5:34:19 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Nov 29, 2007 5:34:19 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Nov 29, 2007 5:34:22 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Nov 29, 2007 5:35:57 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Nov 29, 2007 5:35:57 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 29, 2007 5:35:57 PM
PDM8_NewDB$
第四步: 最好先 emctl stop dbconsole
PDM8_NewDB$emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
第五步: emctl start dbconsole
PDM8_NewDB$emctl start dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
- An instance of Oracle Enterprise Manager 10g Database Control is already running.
PDM8_NewDB$emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
PDM8_NewDB$emctl start dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting Oracle Enterprise Manager 10g Database Control ................................. started.
------------------------------------------------------------------
Logs are generated in directory /u01/product/oracle/PDM8_NewDB_wind/sysman/log
PDM8_NewDB$
搞定 . 然後使用 訪問即可.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271283/viewspace-1002981/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 更改主機名稱或ip 導致 Oracle10G Web OEM不能正常啟動的解決過程OracleWeb
- 更改主機名後,導致db2啟動不了DB2
- 更改solaris主機名及ip地址(zt)
- 一次快速閃回區滿導致資料庫不能啟動的解決過程資料庫
- oracle 92 oem 錯誤的更改oracle sga後,導致instance無法啟動的問題解決Oracle
- owb修改主機名和IP地址啟動報錯解決方法
- 如何在Mac 上更改電腦的名稱或本地區域網主機名Mac
- 更改solaris IP地址和主機名(轉)
- RAC安裝完成後,就不能輕易更改主機名稱了
- 解決memory_target設定過小導致不能啟動資料庫的問題資料庫
- 時區錯誤導致oracle的EM不能啟動解決辦法Oracle
- [zt] oracle可執行檔案s位導致的Cluster資源組無法正常啟動的問題解決Oracle
- 5.9 TSM的客戶端(ORACLE資料庫)排程程式不能啟動導致備份不正常客戶端Oracle資料庫
- OEM GC11G OMS不能發現主機的問題解決GC
- OEM安裝報錯不是內部或外部程式的解決過程
- 升級python2.7 導致xend 不能啟動解決辦法Python
- Linux主機名修改後導致mysql重啟失敗LinuxMySql
- docker 不能正常啟動Docker
- Linux 開機引導和啟動過程詳解Linux
- Sybase資料庫日誌過大導致不能啟動(轉)資料庫
- oracle 10g CRS不能啟動解決過程(hp-ux)Oracle 10gUX
- gethostbyname() -- 用域名或主機名獲取IP地址
- 驅動導致的當機怎麼解決
- 【故障處理】修改主機名導致oracle例項無法啟動暨如何修改hostnameOracle
- 計算機啟動過程詳解計算機
- ubuntu修改主機名稱Ubuntu
- Windows啟動過程(MBR引導過程分析)Windows
- Windows XP 不能夠正常關機的解決方法(轉)Windows
- 11gR2私有ip修改錯誤導致crs無法啟動解決方法
- centOS修改主機名,重啟後無效解決CentOS
- 解決關於IIS gzip不能正常啟用的問題
- 修改域名之後的資料庫服務不能啟動的問題解決過程資料庫
- 解決不能ip:8080開啟專案
- oracle可執行檔案s位導致的Cluster資源組無法正常啟動的問題解決Oracle
- oem啟動失敗的一般解決方法
- 解決hyper v導致docker無法啟動問題Docker
- 子元素浮動不能正常顯示的解決辦法
- TNS-12500解決過程(zt)