• OEM status|start|stop


    OEM一旦建立以后,LINUX的主机名(hosts)就不要去改变。

    [oracle@redhat4 ~]$ emctl start dbconsole
    OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_redhat4.7_ORCL not found.
    [oracle@redhat4 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/
    [oracle@redhat4 j2ee]$ ls -l
    total 72
    -rw-r--r--   1 oracle oinstall 1006 Oct  6 16:20 deploy_db_wf.ini
    drwxr-xr-x  14 oracle oinstall 4096 Oct  6 16:17 home
    drwxr-xr-x   3 oracle oinstall 4096 Oct  6 16:15 oc4j_applications
    drwxr-x---   6 oracle oinstall 4096 Oct  6 16:15 OC4J_DBConsole
    drwxr-x---  10 oracle oinstall 4096 Oct  6 17:36 OC4J_DBConsole_redhat4.7_ora11g
    drwxr-x---  10 oracle oinstall 4096 Oct  6 16:27 OC4J_DBConsole_redhat4.7_orcl
    drwxr-xr-x   5 oracle oinstall 4096 Oct  6 16:15 OC4J_Workflow_Component_Container
    drwxr-xr-x   5 oracle oinstall 4096 Oct  6 16:15 OC4J_Workflow_Management_Container
    drwxr-xr-x   2 oracle oinstall 4096 Oct  6 16:17 utilities
    [oracle@redhat4 ~]$ vi .bash_profile

    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi

    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin

    export PATH
    unset USERNAME

    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    export ORACLE_SID=orcl
    #export ORACLE_SID2=ora11g
    export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
    export PATH=$PATH:$ORACLE_HOME/bin:.
    export ORACLE_UNQNAME=$ORACLE_SID

    [oracle@redhat4 ~]$ source .bash_profile
    [oracle@redhat4 ~]$ emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://redhat4.7:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    ------------------------------------------------------------------
    Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_orcl/sysman/log

    [oracle@redhat4 ~]$ export ORACLE_SID=ora11g
    [oracle@redhat4 ~]$ emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://redhat4.7:5500/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    ------------------------------------------------------------------
    Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_ora11g/sysman/log

    https://redhat4.7:1158/em/

    https://redhat4.7:5500/em/

    [oracle@redhat4 ~]$ netstat -tulnp|grep 1158  #port
    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    tcp        0      0 :::1158                     :::*                        LISTEN      9936/java
    [oracle@redhat4 ~]$ netstat -tulnp|grep 5500   #port
    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    tcp        0      0 :::5500                     :::*                        LISTEN      22639/java


    [oracle@redhat4 ~]$ w
    21:06:10 up  7:43,  4 users,  load average: 0.05, 0.06, 0.07
    USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
    root     192.168. 192.168.10.1     13:28    0.00s  0.00s  0.13s /usr/bin/gnome-session
    root     :0       -                14:22   ?xdm?  16:10   0.06s /usr/bin/gnome-session
    root     pts/1    192.168.10.1:0.0 19:40    4:25   0.07s  0.07s -bash
    root     pts/2    192.168.10.1     20:59    0.00s  0.00s  0.00s w

  • 相关阅读:
    树状数组
    #135. 二维树状数组 3:区间修改,区间查询
    poj 2155 (二维树状数组 区间修改 求某点值)
    #133. 二维树状数组 1:单点修改,区间查询
    poj 3468 (区间修改 区间查询)
    树状数组 模板
    1535:【例 1】数列操作
    最通俗全面理解application context中的context是什么意思
    牛客哈理工小乐乐下象棋(深度理解bfs好题)
    牛客哈理工小乐乐打游戏(bfs深度理解好题)
  • 原文地址:https://www.cnblogs.com/quanweiru/p/4928752.html
Copyright © 2020-2023  润新知