您的位置:首页 > 数据库 > Oracle

Environment variable ORACLE_UNQNAME not defined

2012-05-22 14:29 507 查看
oracle11g上查看em状态时,出现错误:Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.

解决方法:

Microsoft Windows XP [版本 5.1.2600]

(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>emctl status dbconsole

Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to da

tabase unique name.

C:\Documents and Settings\Administrator>emctl status dbconsole

Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to da

tabase unique name.

C:\Documents and Settings\Administrator>SET ORACLE_UNQNAME=ORCL(orcl为SID)

C:\Documents and Settings\Administrator>emctl status dbconsole

OC4J Configuration issue. E:\app\Administrator\product\11.2.0\dbhome_1/oc4j/j2ee

/OC4J_DBConsole_HZIT-shuzx_ORCL not found.

C:\Documents and Settings\Administrator>

还是不行,

到目录 目录\product\10.2.0\db_1\oc4j\j2ee 下发现只有OC4J_DBConsole_localhost_orcl目录,并没有OC4J_DBConsole_HZIT-shuzx_orcl这样的目录,然后设置oracle_hostname:oracle_hostname=localhost

还是不行。

取消设置。

没辙了。

------------------------------------------------

但是,奇迹出现了。

点好IP原先是固定的,设置为自动获取后居然好了。

C:\Documents and Settings\Administrator>emctl start 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

Starting Oracle Enterprise Manager 11g Database Control ...请求的服务已经启动。

原来IP变了就出错了。现在把了网线再插上,重新分配了IP。

C:\Documents and Settings\Administrator>emctl start dbconsole

OC4J Configuration issue. E:\app\Administrator\product\11.2.0\dbhome_1/oc4j/j2ee

/OC4J_DBConsole_HZIT-shuzx_ORCL not found.

C:\Documents and Settings\Administrator>

又不行了。⊙﹏⊙b汗,

原来主机名或IP改变了就不行了,需要重现配置em。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐