【原】oracle11gR2 dbconsole修改主机无法登陆问题解决办法

作者:david_zhang@sh 【转载时请以超链接形式标明文章】

链接:http://www.cnblogs.com/david-zhang-index/archive/2012/03/19/2406337.html

 一、启动和关闭

以下是启动过程:
[oracle@sql ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://sql:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ............ started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/sql_orcl/sysman/log
 以下是关闭过程:
[oracle@sql ~]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://sql:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ......  Stopped.

修改主机名为sqlq后,在第一次启动的时候,会遇到报错

[oracle@sql ~]$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_sqlq_orcl not found.

处理方法:

[oracle@sql ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee
处理方法:mv OC4J_DBConsole_sql_orcl OC4J_DBConsole_sqlq_orcl

再次启动:

 

[oracle@sqlq ~]$ emctl start dbconsole
EM Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/sqlq_orcl not found.
[oracle@sql ~] cd /u01/app/oracle/product/11.2.0/dbhome_1
处理方法:mv sql_orcl sqlq_orcl

 

二、登录OEM问题

启动的时候会有提示登录地址,只要按照这个登录地址就可以了。例如我的地址就是:
如果OEM已经启动了,可以通过emctl status dbconsole命令来查看:
[oracle@sql ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://sql:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/sql_orcl/sysman/log
还可以通过以下文件查看Oracle的所有端口设置:
[oracle@sql ~]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/install/portlist.ini 
Enterprise Manager Console HTTP Port (orcl) = 1158
Enterprise Manager Agent Port (orc) = 3938 
三、emctl的乱码问题
请参考
Oracle10g EM乱码之快速解决
作者:eygle |English Version 【转载时请以超链接形式标明文章出处和作者信息及本声明】
链接:
http://www.eygle.com/archives/2006/03/oracle10g_em_font_change.html 
备注:如果系统未安装中文字符集,请将浏览器设置成英文 
上一篇:Android开发优化之——使用软引用和弱引用


下一篇:在Access中实现类似视图的功能