码迷,mamicode.com
首页 > 数据库 > 详细

Oracle中OEM的启动与关闭

时间:2015-08-15 18:05:04      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:

我已经选择安装了,但安装后发现开始菜单里并没有OEM,在哪里可以打开呢?

从Oracle10g开始,Oracle极大的增强了OEM工具,并通过服务器端进行EM工具全面展现。
在10g中,客户端可以不必安装任何Oracle客户端工具,仅凭浏览器就可以调用强大的EM工具。

在一些时候我通过查看portlist.ini,来确定安装oracle打开那些端口来启动相应的服务,可以通过此文件确定

$ORACLE_HOEM/install/portlist.ini

2.下面主要介绍dbconsole的启动与关闭

在Server端,可以通过如下命令启动EM工具控制台:

emctl start dbconsole

 


启动之后我们就可以通过在浏览器端输入以下url访问:

技术分享

同样停止OEM可以输入如下命令:

 

emctl stop dbconsole



以下是停止过程:

[oracle@danaly ~]$ 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://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ......  Stopped. 


也可以直接键入emctl查看emctl支持的选项:

[oracle@danaly ~]$ 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 

       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"

 

 以下是启动过程:

 

[oracle@danaly ~]$ 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://danaly.hurrray.com.cn:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .......................... started. 
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/product/10.2.0/danaly.hurrray.com.cn_danaly/sysman/log 

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

出处:http://blog.csdn.net/warden2010/article/details/6269497


启动EM
要确保OracleDBConsole<SID>服务已经启动。
启动服务:emctl start dbconsole
关闭服务:emctl stop dbconsole
访问EM:http://服务器名称或IP地址:端口号/em
端口号可在$ORACLE_HOME/install/protlist.ini中找到

出处:http://zhidao.baidu.com/link?url=PjRfAMeEfChw4qQJEEsPqrUNqrA-6Ligh0TdTzQALMl7DVVMVxqQJJFVkji8qa6_4ViqaRfHw2jCreVbuvk2__

==


错误分析

在Windows下的命令行窗口输入emctl可以查看emctl支持的选项,但是输入后回车,提示如下:

Environment variable ORACLE_SID not defined. Please define it.

说明环境变量没有设置SID,在当前窗口中临时重新设置如下:

C:\>set ORACLE_SID=orcl
C:\>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"
C:\>

 上图说明我们可以正常使用emctl命令了,下面就可以启动或停止dbconsole服务了

C:\>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://jack-9888bad62d:1158/em/console/aboutApplication
OracleDBConsoleorcl 服务正在停止..............
OracleDBConsoleorcl 服务已成功停止。

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://jack-9888bad62d:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl
服务正在启动 ................
OracleDBConsoleorcl 服务已经启动成功。

C:\>

Oracle中OEM的启动与关闭

标签:

原文地址:http://www.cnblogs.com/mq0036/p/4732649.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!