日期:2014-05-17  浏览次数:21112 次

emctl status doconsole出问题
[oracle@localhost install]$ emctl status doconsole
EM Configuration issue. /home/oracle/u01/app/product/11.1.0/db_1/localhost.localdomain_ORCL not found.
确实找不到这个文件,只有localhost_orcl这个文件。

一下操作貌似也不行
[oracle@localhost install]$ emca -config dbcontrol db

STARTED EMCA at Sep 23, 2011 11:19:41 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: ORCL
Listener port number: 1521
Listener ORACLE_HOME [ /home/oracle/u01/app/product/11.1.0/db_1 ]: y
Password for SYS user:  
Password for DBSNMP user:  
Invalid username/password.
Password for DBSNMP user:  
Invalid username/password.
Password for DBSNMP user:  
Invalid username/password.
Password for DBSNMP user:  
Password for SYSMAN user:  
Password for SYSMAN user: Invalid username/password.
Password for SYSMAN user:  
Password for SYSMAN user: Invalid username/password.
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 ................ /home/oracle/u01/app/product/11.1.0/db_1

Local hostname ................ localhost.localdomain
Listener ORACLE_HOME ................ y
Listener port number ................ 1521
Database SID ................ ORCL
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... 

-----------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 23, 2011 11:29:04 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/u01/app/cfgtoollogs/emca/orcl/emca_2011_09_23_11_19_39.log.
Sep 23, 2011 11:29:14 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Failed to unlock all EM-related accounts
Sep 23, 2011 11:29:14 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to unlock all EM-related accounts
Refer to the log file at /home/oracle/u01/app/cfgtoollogs/emca/orcl/emca_2011_09_23_11_19_39.log for more details.
Could not complete the configuration. Refer to the log file at /home/oracle/u01/app/cfgtoollogs/emca/orcl/emca_2011_09_23_11_19_39.log for more details.

但是这个日志我又找不到
[oracle@localhost install]$ cat /home/oracle/u01/app/cfgtoollogs/emca/orcl/emca_2011_09_23_11_19_39.log.
cat: /home/oracle/u01/app/cfgtoollogs/emca/orcl/emca_2011_09_23_11_19_39.log.: No such file or directory

emca -repos recreate这个操作也一样不行

------解决方案--------------------
那就重建OEM吧。
手工重新配置dbconsole的步骤
1,修改DBSNMP密码:
重新配置DBCONSOLE,需要输入DBSNMP密码,但任何密码都会显示错误,需要预先修改。
sql>alter user dbsnmp identified by xxx;
2,删除早期DBCONSOLE创建的用户:
sql>drop role MGMT_USER;
sql>drop user MGMT_VIEW cascade;
sql>drop user sysman cascade;
3,删除早期DBCONSOLE创建的对象:
sql>drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
sql>drop public synonym SETEMVIEWUSERCONTEXT;
4,重新创建DBCONSOLE:(如果是在windows下,要先到注册表删除DBCONSOLE的服务,重启电脑)
$emca -config dbcontrol db -repos create
根据提示,先输入SID,再输入Y继续;
输入端口1521,输入SYS密码,输入DBSNMP密码,输入SYSMAN 密码,输入Y继续
完成。

DBCONSOLE服务启动后如果还打不开OEM,则有可能是端口号的问题,