ORACLE_SID环境变量设置的问题

明明在注册表里存在环境变量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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值