10g异机恢复后EM无法启动故障处理一例

oracle10g dbconsole无法启动 oracle10g dbconsole无法启动解决方案 立即下载
之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程:
PS:原主机名为zlm,恢复出来的主机名为bak

[root@bak ~]# su - oracle
[oracle@bak ~]$ emctl status dbconsole
TZ set to PRC
OC4J Configuration issue. /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_bak_ora10g not found. 
[oracle@bak ~]$ cd /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/
[oracle@bak j2ee]$ ll
total 24
-rw-r--r--  1 oracle oinstall  256 Aug 22 16:42 deploy_db.ini
drwxr-x--- 15 oracle oinstall 4096 Aug 22 16:29 home
drwxr-x---  9 oracle oinstall 4096 Aug 22 16:24 isqlplus
drwxr-x---  3 oracle oinstall 4096 Aug 22 16:24 oc4j_applications
drwxr-x---  5 oracle oinstall 4096 Aug 22 16:24 OC4J_DBConsole
drwxr-x---  7 oracle oinstall 4096 Aug 25 11:25 OC4J_DBConsole_zlm_ora10g

既然提示文件找不到,很显然是因为主机名变更的缘故,那么把名字变一下,用mv命令

[oracle@bak j2ee]$ mv -r OC4J_DBConsole_zlm_ora10g/ OC4J_DBConsole_bak_ora10g/
[oracle@bak j2ee]$ ll
total 24
-rw-r--r--  1 oracle oinstall  256 Aug 22 16:42 deploy_db.ini
drwxr-x--- 15 oracle oinstall 4096 Aug 22 16:29 home
drwxr-x---  9 oracle oinstall 4096 Aug 22 16:24 isqlplus
drwxr-x---  3 oracle oinstall 4096 Aug 22 16:24 oc4j_applications
drwxr-x---  5 oracle oinstall 4096 Aug 22 16:24 OC4J_DBConsole
drwxr-x---  7 oracle oinstall 4096 Oct 20 10:58 OC4J_DBConsole_bak_ora10g
[oracle@bak j2ee]$ emctl status dbconsole
TZ set to PRC
EM Configuration issue. /u01/app/oracle/product/10.2.0/db_1/bak_ora10g not found. 
[oracle@bak j2ee]$ cd /u01/app/oracle/product/10.2.0/db_1/
[oracle@bak db_1]$ ll
total 260
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:24 assistants
drwxr-xr-x  2 oracle oinstall 12288 Aug 22 16:42 bin
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:33 cdata
drwxr-x---  6 oracle oinstall  4096 Aug 25 11:08 cfgtoollogs
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:24 clone
drwxr-x---  2 oracle oinstall  4096 Aug 22 16:33 config
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:24 crs
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:33 css
drwxr-x--- 10 oracle oinstall  4096 Aug 22 16:33 ctx
drwxr-x---  2 oracle oinstall  4096 Oct 20 09:17 dbs
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 demo
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 diagnostics
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 has
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:42 hs
drwxr-x---  5 oracle oinstall  4096 Aug 25 11:27 install
-rw-r-----  1 oracle oinstall    37 Aug 22 16:24 install.platform
drwxr-x--- 12 oracle oinstall  4096 Aug 22 16:42 inventory
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:24 javavm
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:31 jdbc
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:32 jdk
drwxr-x---  2 oracle oinstall  4096 Aug 22 16:32 jlib
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 jre
drwxr-x--- 13 oracle oinstall  4096 Aug 22 16:33 ldap
drwxr-x---  3 oracle oinstall 12288 Aug 22 16:42 lib
drwxr-x--T  3 oracle oinstall  4096 Aug 25 11:24 log
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:24 md
drwxr-x---  2 oracle oinstall  4096 Aug 22 16:25 mesg
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:32 mgw
drwxr-x--- 11 oracle oinstall  4096 Aug 22 16:42 network
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:24 nls
drwxr-x--- 15 oracle oinstall  4096 Aug 22 16:42 oc4j
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:24 odbc
drwxr-x---  5 oracle oinstall  4096 Aug 22 16:24 olap
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:32 OPatch
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:32 opmn
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:24 oracore
-rw-r--r--  1 oracle oinstall    63 Aug 22 16:22 oraInst.loc
drwxr-x---  8 oracle oinstall  4096 Aug 22 16:24 ord
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:32 oui
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:24 owm
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:24 perl
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:25 plsql
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:24 precomp
drwxr-x---  7 oracle oinstall  4096 Aug 22 16:33 racg
drwxr-x--- 13 oracle oinstall  4096 Aug 22 16:42 rdbms
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:31 relnotes
-rwxr-xr-x  1 oracle oinstall  9522 Aug 22 16:42 root.sh
-rwxr-xr-x  1 oracle oinstall     0 Jun  7  2005 root.sh.old
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 slax
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 sqlj
-rw-r-----  1 oracle oinstall  9338 Aug 25 11:42 sqlnet.log
drwxr-x---  9 oracle oinstall  4096 Aug 22 16:33 sqlplus
drwxr-x--- 12 oracle oinstall  4096 Aug 22 16:33 srvm
drwxr-x--- 12 oracle oinstall  4096 Aug 22 16:33 sysman
drwxr-x---  4 oracle oinstall  4096 Aug 22 16:24 uix
drwxr-x---  3 oracle oinstall  4096 Aug 22 16:24 wwg
drwxr-x---  6 oracle oinstall  4096 Aug 22 16:30 xdk
drwxr-----  3 oracle oinstall  4096 Aug 25 11:25 zlm_ora10g

这次是找不到zlm_ora10g目录,同样的,也mv为bak_ora10g

[oracle@bak db_1]$ mv zlm_ora10g bak_ora10g
[oracle@bak db_1]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://zlm:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log 
[oracle@bak j2ee]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://zlm:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .................................. started. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log 

无法启动,看到url里的信息是原主机zlm,分析一下提示的错误日志

[oracle@bak j2ee]$ cd /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log
[oracle@bak log]$ ll
total 1656
-rw-r----- 1 oracle oinstall    180 Aug 25 11:28 emagentfetchlet.log
-rw-r----- 1 oracle oinstall    180 Aug 25 11:28 emagentfetchlet.trc
-rw-r----- 1 oracle oinstall    500 Oct 20 11:06 emagent.log
-rw-r----- 1 oracle oinstall  42010 Oct 20 11:14 emagent.trc
-rw-r----- 1 oracle oinstall   9816 Oct 20 11:05 emdb.nohup
-rw-r----- 1 oracle oinstall   4096 Oct 20 11:05 emdb.nohup.lr
-rw-r----- 1 oracle oinstall      0 Aug 25 11:25 emdctl.log
-rw-r----- 1 oracle oinstall   7330 Oct 20 11:14 emdctl.trc
-rw-r----- 1 oracle oinstall 802261 Aug 25 11:45 emoms.log
-rw-r----- 1 oracle oinstall 802261 Aug 25 11:45 emoms.trc
[oracle@bak log]$ cat emoms.log
2014-08-25 11:26:23,952 [Orion Launcher] WARN  jdbc.ConnectionCache _getConnection.303 - Got a fatal exeption when getting a connection; Error code = 17002; Cleaning up cache and retrying
2014-08-25 11:26:23,991 [Orion Launcher] WARN  jdbc.ConnectionCache _getConnection.306 - Io exception: The Network Adapter could not establish the connection
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:493)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:767)
        at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:324)
        at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:114)
        at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:694)
        at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:540)
        at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:346)
        at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:324)
        at oracle.sysman.util.jdbc.ConnectionCache._getConnection(ConnectionCache.java:296)
        at oracle.sysman.util.jdbc.ConnectionCache.getUnwrappedConnection(ConnectionCache.java:423)
        at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:156)
        at oracle.sysman.emSDK.svc.conn.ConnectionService.getPrivateConnection(ConnectionService.java:605)
        at oracle.sysman.emSDK.svc.conn.ConnectionService.getRepositoryVersionAndMode(ConnectionService.java:368)
        at oracle.sysman.emSDK.svc.conn.ConnectionService.verifyRepositoryEx(ConnectionService.java:395)
        at oracle.sysman.emSDK.svc.conn.ConnectionService.verifyRepository(ConnectionService.java:450)
        at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:174)
        at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:807)
        at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:533)
        at com.evermind.server.Application.getHttpApplication(Application.java:886)
        at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
        at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
        at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
        at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
        at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
        at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2330)
        at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1503)
        at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
        at java.lang.Thread.run(Thread.java:534)
2014-08-25 11:26:23,999 [Orion Launcher] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = Io exception: The Network Adapter could not establish the connection
2014-08-25 11:26:26,673 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
2014-08-25 11:26:27,386 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
2014-08-25 11:26:27,676 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
2014-08-25 11:26:27,915 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
2014-08-25 11:26:27,918 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
2014-08-25 11:26:27,932 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
2014-08-25 11:26:27,934 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
2014-08-25 11:26:27,937 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.reports.em.RepIntg
2014-08-25 11:26:27,940 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
2014-08-25 11:26:27,945 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
2014-08-25 11:26:27,948 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
2014-08-25 11:26:27,970 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
2014-08-25 11:26:27,975 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
2014-08-25 11:26:27,978 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration

刷屏了,中间省略相同错误一堆,按Ctrl+C才终止的

2014-08-25 11:29:24,713 [HttpRequestHandler-23603795] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = Io exception: The Network Adapt

怀疑是否是因为监听没起来的缘故,先启动监听

[oracle@bak log]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-OCT-2014 11:15:26

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@bak log]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-OCT-2014 11:15:29

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bak)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                20-OCT-2014 11:15:29
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bak)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@bak log]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-OCT-2014 11:16:17

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                20-OCT-2014 11:15:29
Uptime                    0 days 0 hr. 0 min. 48 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bak)(PORT=1521)))
Services Summary...
Service "ora10g" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10gXDB" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10g_XPT" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@bak log]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://zlm:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log 

显然,EM启动不了不是监听的问题,那么重新配置一下EM是否会有效呢?

[oracle@bak log]$ emca -config dbcontrol db

STARTED EMCA at Oct 20, 2014 11:22:43 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:    --注意,此处信息需要手动输入
Database SID: ora10g
Database Control is already configured for the database ora10g
You have chosen to configure Database Control for managing the database ora10g
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:  
Password for SYSMAN user: oEmail address for notifications (optional):      
Invalid email.
Email address for notifications (optional): 
Outgoing Mail (SMTP) server for notifications (optional): 
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

Database hostname ................ bak
Listener port number ................ 1521
Database SID ................ ora10g
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... 

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 20, 2014 11:24:36 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2014-10-20_11-22-43-AM.log.
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Oct 20, 2014 11:25:53 AM oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for bak
Oct 20, 2014 11:26:15 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Cannot start Database Control. The following ports are already in use: [EM agent port:3938].
Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2014-10-20_11-22-43-AM.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2014-10-20_11-22-43-AM.log for more details.
[oracle@bak log]$ cat /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2014-10-20_11-22-43-AM.log

发现也是一堆报错,其中有一段是这样的,显示地主机命名还是之前旧的信息(原来的主机名为zlm,现在的为bak):

CONFIG: emdProps: /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/config/emd.properties url: http://zlm:1158/em
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.EMDBPreConfig isDBControlSecure
CONFIG:  isDbcSecure: false
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'IS_DBCONSOLE_SECURED' set to false
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [DISPLAY=, NEED_EXIT_CODE=1, ORACLE_SID=ora10g, PATH=/usr/sbin:/u01/app/oracle/product/10.2.0/db_1/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:/usr/local/mysql/bin:/home/oracle/bin, TZ=]
Oct 20, 2014 11:24:49 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /u01/app/oracle/product/10.2.0/db_1/bin/emctl stop dbconsole 
Oct 20, 2014 11:25:43 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
Oct 20, 2014 11:25:43 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /u01/app/oracle/product/10.2.0/db_1/bin/emctl stop dbconsole  completed successfully
Oct 20, 2014 11:25:43 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://zlm:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ... 
 ...  Stopped. 

看来仅仅重新配置一下EM资料库是不行的,需要重建一下(先删除,后创建)

[oracle@bak log]$ emca -repos recreate 
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.

该错误表示 getcwd 命令无法定位到当前工作目录。一般来说是因为 cd 到了某个目录之后又rm 了这个目录
这时去执行某些命令就会报 getcwd 错误​,只需要 cd 到任何一个实际存在的目录下在执行命令即可。
出现这种现象的原因还有,当前用户没有当前目录的可执行权限,如没有正确设置ORACLE_SID环境变量,我这里属于这种情况。

[oracle@bak log]$ set ORACLE_SID=ora10g
[oracle@bak log]$ emca -repos recreate

STARTED EMCA at Oct 20, 2014 11:49:36 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: ora10g
Listener port number: 1521
Password for SYS user:  
Password for SYSMAN user:  
Password for SYSMAN user:  
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 20, 2014 11:49:59 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2014-10-20_11-49-36-AM.log.
Oct 20, 2014 11:50:01 AM oracle.sysman.emcp.EMReposConfig dropRepository    --删除
INFO: Dropping the EM repository (this may take a while) ...
Oct 20, 2014 11:54:25 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Oct 20, 2014 11:54:25 AM oracle.sysman.emcp.EMReposConfig createRepository    --创建
INFO: Creating the EM repository (this may take a while) ...
Oct 20, 2014 11:59:58 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 20, 2014 11:59:58 AM

可以看到3个successfully,重建后并把em配置也重新刷了一遍

[oracle@bak log]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://bak:1158/em/console/aboutApplication    --重建EM资料库后,现在的主机名已经更正为“bak”了
Oracle Enterprise Manager 10g is not running.

再次重新启动EM

[oracle@bak log]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://bak:1158/em/console/aboutApplication
Agent Version     : 10.1.0.4.1
OMS Version       : Unknown
Protocol Version  : 10.1.0.2.0
Agent Home        : /u01/app/oracle/product/10.2.0/db_1/bak_ora10g
Agent binaries    : /u01/app/oracle/product/10.2.0/db_1
Agent Process ID  : 29136
Parent Process ID : 28566
Agent URL         : http://zlm:3938/emd/main    --agent还是有原主机残留信息,没有更新,不过不影响登陆EM
Started at        : 2014-10-20 11:05:11
Started by user   : oracle
Last Reload       : 2014-10-20 11:05:11
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :       40
Size of XML files pending upload(MB)         :     5.84
Available disk space on upload filesystem    :     5.14%
Agent is already started. Will restart the agent 
Stopping agent ... stopped.
Starting Oracle Enterprise Manager 10g Database Control ........ started. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log 
[oracle@bak log]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://bak:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/bak_ora10g/sysman/log 
[oracle@bak log]$ 

通过重建EM后,就可以用web浏览器登陆EM管理界面了,新的url为:http://bak:1158/em

总结:

遇到各种原因造成的EM无法登陆的问题,通常是因为旧的EM资料库配置有问题,或者是因为改变了主机或IP地址所造成,可以使用emca -repos recreate重建,就能直接解决问题,仅仅通过emca -config dbconsole db来重新配置是不够彻底的,因为还会有之前错误信息的残留,除了这几个命令外,emca还有很多其他参数,可以通过emca --help查看,这里就不列举了。





Android wifi源码分析(二) Wifi关闭流程 接着上一篇,这篇说一下Wifi的关闭流程。 由上一篇可以知道,framework层提供的wifi开关接口都是**setWifiEnabled**,只是参数不同而已。*true*表示开启wifi、*false*表示关闭wifi。 阅读详情

相关推荐

PT100精密测温电路设计:四线制接法、比例法与ADC选型全解析

温度测量是工业控制与仪器仪表中的基础需求,而铂电阻PT100凭借其良好的稳定性和线性度,成为高精度测温的主流选择。然而,真正实现精密测温并非简单接入ADC即可,信号链路中每一点微小误差都会影响最终结果。理解PT100的电阻-温度特性与恒流源激励原理,是设计高稳定模拟前端的前提。工程实践中,采用比例法可有效抵消电流源漂移,配合四线制开尔文连接彻底消除导线电阻影响,再选用24位Σ-Δ ADC与低温漂参考电阻,即可构建出可靠的高分辨率测量系统。此类设计广泛应用于实验室仪表、精密温控设备及工业现场变送器。本文从底层

weixin_29189381的博客 351

是德科技 ADS EM 仿真的问题

ADS EM仿真问题

ymyuestc的博客 3715

WRF和WPS模型在Ubuntu系统上的安装与常见问题解决指南

本文详细介绍了在Ubuntu系统上安装WRF和WPS模型的完整教程,涵盖系统环境配置、依赖库安装、源代码编译以及常见问题的解决方案。重点解决了WPS编译中intmath.f文件的修改、环境变量设置和编译器兼容性等关键难点,帮助用户高效部署气象研究与预报模型。

weixin_29213525的博客 388

em 启动提示 OC4J Configuration issue. .... not found.

在执行emctl ststus dbconsole时,出现如下提示 经过查询。发现我在设置环境变量ORACLE_SID时,指定的数据库名称与我现在正在使用的SID不一致, vi /home/username/.bash_profile   修改里面的ORACLE_SID为现在正在使用的数据库名称。再执行查看状态命名,问题解决

面朝阳光,心向大海 的专栏 1168

Windows Server 2016 下载

Windows Server 2016 下载 简介: Windows Server 2016是微软于2016年10月13日正式发布的最新服务器操作系统。基于Win10 1607(LTSB)内核所开发。 Windows Server 2016 Essentials edition(精华版) Windows Server 2016 Essentials版是专为小型企业而设计的。它对应于Win...

StudyOgre的博客 2万+

OpenTitan开源安全芯片:RISC-V架构的硬件信任根实践

安全芯片是构建可信计算环境的核心硬件基础,其本质是通过物理隔离、密钥保护与安全启动建立不可篡改的信任根。OpenTitan作为全球首个全栈开源的安全芯片项目,基于RISC-V指令集(Ibex核)实现极致精简与时间恒定性,结合OTP一次性编程存储、KMAC硬件认证引擎及活性物理防护网络,从架构层抵御侧信道、故障注入与物理攻击。其技术价值在于将安全能力从黑盒厂商依赖转向可审计、可验证、可定制的工程现实,广泛适用于物联网设备安全启动、医疗数据完整性保障、工业边缘AI密钥管理等高保障场景。本文聚焦OpenTitan

weixin_33910191的博客 343

【转】EM Configuration issue 报错解决办法

EM Configuration issue 报错解决办法。今天 修改linux系统 IP 后,启动oracle 10gR2时就提示下面错误。[oracle@yupan root]$ emctl dbconsole startE...

crrcoo9093的博客 806

矩形口径喇叭天线设计——参数设置

我们建立好矩形口径喇叭天线的模型后(模型建立可参考B站相关视频或者李明洋的《HFSS天线设计》),如何修改参数达到我们的指标呢?

m0_57263863的博客 1万+

Exception in thread "main" java.lang.NoClassDefFoundError,找不着主方法 (eclipse 类加载器找不到)

什么程序都运行不了,连System.out都不行了。 报告异常:Exception in thread "main" java.lang.NoClassDefFoundError 貌似是类加载器出毛病了,换个workspace就好了。具体原因不详 解决方法: project --> clean 一切ok 而不要重新做workspace

psiitoy的专栏 877

医学图像处理实战:利用OpenSlide解析病理SVS切片的完整解决方案

本文介绍了使用openslide处理病理SVS切片的完整流程,从基础安装到科研应用。主要内容包括:1)SVS切片特点及openslide工具简介;2)环境配置与软件安装;3)基础操作:读取切片、查看信息、可视化不同层级图像;4)进阶操作:坐标裁剪与批量处理;5)科研方向拓展:结合AI模型进行病理分割分类、量化分析及可视化报告。教程提供了完整的代码示例,帮助毕业设计学生快速掌握病理图像分析的核心技能。

m0_71589036的博客 333

[特殊字符] RK3588 平台上基于 Panfrost 的 Mesa 驱动编译全过程

摘要: 本文详细记录了在RK3588平台(Ubuntu 20.04 aarch64)上编译基于Panfrost的Mesa驱动的全过程。内容包括:1)系统依赖安装;2)libdrm编译;3)Mesa配置参数优化;4)LLVM 15与SPIRV工具链的安装方法;5)SPIRV-Tools版本问题的解决方案;6)最终编译命令及常见错误处理。关键点在于正确设置工具链路径(PKG_CONFIG_PATH)和版本匹配(LLVM 15对应SPIRV-LLVM-Translator v15.0.0),推荐将组件安装在/op

梁俊星的博客 949

大家来参考。10g异机恢复后EM无法启动故障处理一例

之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程: PS:原主机名为zlm,恢复出来的主机名为bak [root@bak ~]# su - oracle [oracle@bak ~]$ emctl status dbconsole TZ set to PRC OC4J Configu

w5223336的专栏 1586

A Macro- and Micro-Hierarchical Transfer Learning Frameworkfor Cross-Domain Fake News Detection

近年来,社交媒体上假新闻的快速和广泛传播对人们的日常生活构成了越来越大的威胁[6, 14, 19]。为了有效打击假新闻,自动检测假新闻变得至关重要[39]。新闻内容[11, 16, 20, 27]和用户互动(即用户互动)[1, 24, 34]。基于这些类型的数据,提出了单领域假新闻检测,它从新闻文章、用户互动或两者中提取有效特征,以识别单个新闻领域内新闻的真实性(即新闻是真是假)(例如,政治新闻或娱乐新闻)。

qq_52053775的博客 164

oracle故障一例,Oracle 10g异机恢复后EM无法启动故障处理一例

之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程:PS:原主机名为zlm,恢复出来的主机名为bak[root@bak ~]# su - Oracle[oracle@bak ~]$emctl status dbconsoleTZ set to PRCOC4J Configuration issue. /u01/app/oracl...

weixin_33772892的博客 669

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

oracle无法启动 恢复,Oracle10g异机恢复后EM无法启动故障处理一例

遇到各种原因造成的EM无法登陆的问题,通常是因为旧的EM资料库配置有问题,或者是因为改变了主机或IP地址所造成,可以使用emca -之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程:PS:原主机名为zlm,恢复出来的主机名为bak[root@bak ~]# su - Oracle[oracle@bak ~]$ emctl sta...

weixin_30039395的博客 199

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

关于Java的错误:Exception in thread "main" java.lang.NoClassDe...

<br />对于我们这些初学者来说,虽然环境配置成功。但是我们对这些变量到底什么意思并不清楚。<br />  三个环境变量:JAVA_HOME、PATH 和 CLASSPATH。<br /> JAVA_HOME:该环境变量的值就是 Java 所在的目录,一些 Java 版的软件和一些 Java 的工具需要用到该变量,设置 PATH 和 CLASSPATH 的时候,也可以使用该变量以方便设置。<br /> PATH:指定一个路径列表,用于搜索可执行文件的。执行一个可执行文件时,如果该文件不能在当前路径下找到,

一样的路,可以走出不同的人生 1万+

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

Exception in thread “main“ java.lang.NoClassDefFoundError

原来是在写静态代码块类中发现在获取资源的时候,经常要运用到Class.getResource()、ClassLoader.getResource()源码解读,发现是自己在写的时候对这两个的误解,当对于两者的读取理解路径有所不同,所以会导致读取路径会返回null。对于上面的的问题所提示的,我也查了很多的解决方法,比如:1.druid.properties文件位置不对应,2.或则找不到类定义是因为使用了静态代码块一次性使用引起的,然后pass静态代码块,运用方法进行修改。

qq_52615472的博客 1574

Oracle Database 11gR2 OEM故障排除案例

客户的OEM出现故障,打开登录页面显示如下: 查看数据库状态与服务都是正常的。 解决问题最好的办法当然是查看后台日志报了什么错,EM的日志在什么地方呢?其实很明显: [ora...

congxinlan3332的博客 342

Oracle11g下无法启动EM

执行:emca start dbconsole提示:EM Configuration issue:........not found的错误信息 重新配置: emca -repos drop emca -repos create emca -config dbcontrol db 上面命令执行后,运行期间如果出现failure,查看信息中的日志,根据错误信息排错,我遇到的是用户密码不正确。

232

oracle用户sysman过期,sysman密码过期导致oem无法使用

由于SYSMAN用户密码过期导致OEM(ORACLE 企业管理器)无法正常工作处理方案首页 → 数据库技术背景:阅读新闻sysman密码过期导致oem无法使用[日期:2014-01-03]来源:Linux社区作者:weijunkai[字体:]2013-09-29 09:29:47,309 [HTTPThreadGroup-5] ERROR eml.OMSHandshake processFailu...

weixin_42509803的博客 465

报错信息:Invalid configuration information - please run SETUP program

项目场景: 错误原因:我在B站发现了一个Java学习视频,可是作者只是转载,在视频下方说了,侵权删除 。于是我就想着下载一下这个视频,可是呢,这个视频有点太多了,每一集倒是很短,可是很长。于是我就想着我可不可以下载一款软件呢,于是我就从网上找到了一款 我想从B站上下载一个集数很多的视频,所以找到了一款个人制作的软件。这款软件下载方式可以是IDM下载,于是我就改成了IDM,下载一个单独的视频是没有任何问题的。可是当我下载第一集的时候IDM一直在整合那个视频,我想着你别整合了,我不用你了,可是仍然无法删除。最后

林炫的博客 3万+

show status. oracle,Enterprise Manager show database status is unavailable

客户的一套11.2.0.1 RAC数据库部署了 Enterprise Manager 11g以方便管理,但系统运行一段时间后EM就变得无法正常使用了,页面显示"the database status is currently unavailable.......",但实际上数据库和监听都处于正常可用的状态。作为乙方来说对Enterprise Manager并不太熟悉,虽然EM是一个十分强大的图形化...

weixin_34205814的博客 378

EM Configuration issue. /u01/oracle/db_1/mysql2_orcl not found

EM Configuration issue. /u01/oracle/db_1/mysql2_orcl not found: 可以使用emca命令重新创建资料库: 1. emca -repos drop 删除原来的资料库 2.emca -repos create 创建新的资料库 3.emca -config dbcontrol db 配置资料库 4 .[ora10g@m

龙神add-走向数据架构师的路 2347

oracle enterprise manager 11g 下载,Starting Oracle Enterprise Manager 11g Database Control ...failed...

plus:emdctl.trc2010-01-26 18:57:53,873 Thread-3043346112 ERROR main: nmectla_agentctl: Error connecting to https://linux1:3938/emd/main. Returning status code 12010-01-26 18:57:56,772 Thread-304362464...

weixin_39755824的博客 465

emctl start dbconsole失败问题的解决

1、为了启动em,使用命令emctl start dbconsole。 [oracle@localhost DBOracle]$ emctl start dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation.  A...

weixin_34348111的博客 424
上一篇: 无法用指定MySQL客户端登陆服务器的案例分析
下一篇: AIX6.1/11.2.0.3数据库上关于SWAP的一个BUG
aaron8219
博客等级 码龄16年 65粉丝 116原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值