zoukankan      html  css  js  c++  java
  • Oracle中OEM的启动与关闭

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

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

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

    $ORACLE_HOEM/install/portlist.ini

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

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

    emctl start dbconsole


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

    Oracle10g OEM

    同样停止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:>
    
  • 相关阅读:
    BZOJ:4219: 跑得比谁都快 3007: 拯救小云公主
    BZOJ:4816: [Sdoi2017]数字表格
    BZOJ:4333: JSOI2012 智者的考验
    BZOJ:3911: SGU383 Caravans(三角剖分)
    bzoj:2595: [Wc2008]游览计划
    ZOJ3602:Count the Trees
    A Dangerous Maze (II) LightOJ
    Where to Run LightOJ
    Lights inside 3D Grid LightOJ
    Snakes and Ladders LightOJ
  • 原文地址:https://www.cnblogs.com/mq0036/p/4732649.html
Copyright © 2011-2022 走看看