C:\Users\Administrator>emctl status dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database uniquename.
C:\Users\Administrator>emctl stop dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database uniquename.
C:\Users\Administrator>set oracle_unqname=$orcl
C:\Users\Administrator>emctl status dbconsole
OC4J Configuration issue. E:\app\CQ\product\11.2.0\dbhome_1/oc4j/j2ee/OC4J_DBConsole_CQ-PC_$orcl not found.
C:\Users\Administrator>set oracle_unqname=orcl
C:\Users\Administrator>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 E:\app\Administrator\product\11.2.0\dbhome_1/Administrator_orcl/sysman/log
總之,一句話,set oracle_unqname=orcl。註:orcl是SID。
本文出自 “aini” 部落格,請務必保留此出處http://bugou.blog.51cto.com/5122874/1302353