Oracle的em使用下面的脚本进行em的关闭操作:
第一次安装完之后可能会存在提示环境变量ORACLE_SID未设置的问题。这个时候你只需要在windows下:
我的电脑->属性->高级->环境变量-系统变量-新建,然后在变量名中输入ORACLE_SID,变量值中输入你的Oracle实例的SID,最后一路确定即可。
这些设置好后,重新打开命令行就可以进行管理em的操作了。
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:/Documents and Settings/t>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://123456.z.t.com:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory D:/oracle/product/10.2.0/db_1/123456/sysman/log
C:/Documents and Settings/t>emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://123456.z.t.com:1158/em/console/aboutApplication
OracleDBConsoleorcl 服务正在停止..........
OracleDBConsoleorcl 服务已成功停止。
C:/Documents and Settings/t>emctl
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
Usage::
Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure <options>
emctl set ssl test|off|on em
emctl set ldap <host> <port> <user dn> <user pwd> <context dn>
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"