Environment variable ORACLE_UNQNAME not defined错误问题解决
查看dbconsole状态的时候报错:
C:\WINDOWS\system32>emctl status dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
其实就是
oracle_unqname没有设置
Windows下执行:
set oracle_unqname=$ORACLE_SID
如
C:\WINDOWS\system32>set oracle_unqname=orcl
再次运行即可:
C:\WINDOWS\system32>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://A00263.hongsin.cn:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory E:\app\mahl01\product\11.2.0\dbhome_1/A00263.hongsin.cn_orcl/sysman/log
如果是Linux下需要设置ORACLE_UNQNAME和ORACLE_HOSTNAME:
export ORACLE_UNQNAME=$ORACLE_SID
export ORACLE_HOSTNAME=localhost
最后更新于 2018-06-27 14:38:45 并被添加「dbconsole UNQNAME defined」标签,已有 15 位童鞋阅读过。
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处