明明在注册表里存在环境变量ORACLE_SID的设置,可执行emctl时却提示:
C:>emctl
Environment variable ORACLE_SID not defined. Please define it.
C:>
在系统环境变量增加ORACLE_SID的设置之后可以解决这个问题。
[@more@]在系统环境变量增加ORACLE_SID的设置之后再次执行emctl发现不会出现提示:Environment variable ORACLE_SID not defined. Please define it
印象中记得asmcmd也有这样的问题(记不太清楚了),oracle的有些命令为什么不去注册表中读取oracle_sid?
C:>emctl start dbconsoe
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Invalid arguments
Unknown command option start
Usage::
Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure
emctl set ssl test|off|on em
emctl set ldap
emctl blackout options can be listed by typing "emctl blackout"
emctl config options can be listed by typing "emctl config"
emctl secure options can be listed by typing "emctl secure"
emctl ilint options can be listed by typing "emctl ilint"
emctl deploy options can be listed by typing "emctl deploy"
C:>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://XYS:5500/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl
服务正在启动 ...
OracleDBConsoleorcl 服务已经启动成功。
C:>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19602/viewspace-1027181/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/19602/viewspace-1027181/