oracledbconsoleorcl无法启动,oem管理网页无法打开

在doc窗口下输入:emctl status dbconsole
返回结果为:Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.


在oracle安装目录中找到类似此路径:C:\app\Administrator\product\11.2.0\dbhome_1
然后寻找类似localhost_orcl的文件夹
如附件所示
其中的localhost是用户名
orcl就是唯一标识

然后再执行一下内容:
C:\>set ORACLE_HOSTNAME=localhost

C:\>set ORACLE_UNQNAME=orcl

C:\>emctl status dbconsole

返回结果:
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
https://localhost:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory C:\app\McLaughlinM\product\11.2.0\dbhome_1/localhost_orcl/sysman/log


执行完成后再打开页面看看,已经能看到管理界面了!
参考网址:http://blog.mclaughlinsoftware.com/2012/08/23/whats-oracle_unqname/

猜你喜欢

转载自yh-fly.iteye.com/blog/2273504