从10g开始,Oracle极大的增强了OEM工具,并在服务器端对EM工具进行了全面的展现。
在10g中,客户端可以不必安装任何Oracle客户端工具,就凭浏览器就可以调用功能强大的EM工具了。
在Oracle 10g的Server端,可以通过如下一些命令启动停止EM工具控制台:
查看emctl可以支持哪些个选项
[oracle@ljw-hit-vm1 etc]$ emctl
TZ set to PRC
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"
[oracle@ljw-hit-vm1 etc]$
停止emctl的过程如下:
停止的命令是:emctl stop dbconsole
[oracle@ljw-hit-vm1 etc]$ emctl stop dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 oracle Corporation. All rights reserved.
http://ljw-hit-vm1:1158/em/console/aboutApplication
Stopping oracle Enterprise Manager 10g Database Control ...
... Stopped.
[oracle@ljw-hit-vm1 etc]$
停止后的emctl状态如下
[oracle@ljw-hit-vm1 ~]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 oracle Corporation. All rights reserved.
http://ljw-hit-vm1:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/oracle/product/10.2.0/ljw-hit-vm1_oractl/sysman/log
启动emctl的过程如下:
启动的命令是:emctl start dbconsole
[oracle@ljw-hit-vm1 etc]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 oracle Corporation. All rights reserved.
http://ljw-hit-vm1:1158/em/console/aboutApplication
Starting oracle Enterprise Manager 10g Database Control ......... started.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/oracle/product/10.2.0/ljw-hit-vm1_oractl/sysman/log
启动后的状态如下:
[oracle@ljw-hit-vm1 ~]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 oracle Corporation. All rights reserved.
http://ljw-hit-vm1:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/oracle/product/10.2.0/ljw-hit-vm1_oractl/sysman/log
在浏览器中输入http://ljw-hit-vm1:1158/em/console/aboutApplication
这个URL就可出现Login to Database:oractl的提示让你输入用户名和密码了。就可尽情使用oem的强大的功能了。