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

OEM status|start|stop的更多相关文章

  1. DBA_Oralce Enterprise Manager OEM管理应用介绍(案例)

    2014-08-16 BaoXinjian

  2. oracle 配置 oem

    1.启动命令是[oracle@yoon ~]$ cd $ORACLE_HOME/bin [oracle@yoon ~]$ ./emctl start dbconsole 停止命令是[oracle@yo ...

  3. ORACLE创建OEM是老爱报的错误【weber出品】

    还是采用静默安装,手工建库完成后.在安装的OEM的时候一直报这个错误.这里稍微记载以下解决方案: Database connection through listener failed. Fix th ...

  4. Oracle 12c(12.1.0.5)OEM server agent 安装配置

    注意: 此文档为生产上操作文档,省略了IP,oracle用户server,agent 端至少需要sudo,ping,ssh,创建目录权限. 一.安装要求 1.1. 系统情况一览 IP 数据库 OEM ...

  5. Oracle 12c(12.1.0.5) oem agent silent install(静默安装agent)

    注释: 文章自oracle support 文档 ID 1360083.1,静默安装agent采用的是把OMS服务端(即oem server端)的agent用压缩包download,远程传到agent ...

  6. 静默安装oracle后,启动oem报错,解决方法!

    一.手工重建EM Oracle 的gridcontrol 由两部分组成:dbcontrol 和repository. 我们可以对某一部分进行操作,也可以同时进行操作. 这里先看一个因为修改hostna ...

  7. Oracle中OEM的启动与关闭

    我已经选择安装了,但安装后发现开始菜单里并没有OEM,在哪里可以打开呢? 从Oracle10g开始,Oracle极大的增强了OEM工具,并通过服务器端进行EM工具全面展现.在10g中,客户端可以不必安 ...

  8. 【OEM】OEM安装维护

    [OEM]OEM安装维护 一.1  BLOG文档结构图       一.2  前言部分   一.2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道 ...

  9. http status code

    属于转载 http status code:200:成功,服务器已成功处理了请求,通常这表示服务器提供了请求的网页 404:未找到,服务器未找到 201-206都表示服务器成功处理了请求的状态代码,说 ...

随机推荐

  1. UML 小结(3)- UML的结构及各个阶段的应用

    UML的结构: 其中各个图的作用如下:     用例图:用来描述用户的需求,从用户的角度描述系统的功能,并指出各功能的执行者,强调谁在使用系统,系统为执行者完成哪些功能. 静态图包括类图跟对象图 类图 ...

  2. Android crop image size

    private void performCrop() { try { //call the standard crop action intent (the user device may not s ...

  3. Unity物理优化的一个小问题

    为了性能优化,Unity会计算场景中所有的体积,包括静态的碰撞器并把 这些信息存在“Cash”中,对于静止物体而言,有了这些信息,就不需要 再每帧重新进行计算了.若移动,拉伸后或旋转了静态物体时,就是 ...

  4. 多线程学习之AsyncOperation实现线程间交互

    1.首先我们要实现如下图的效果:                                                          a.主线程A运行方法段1时创建子线程B b.然后子线 ...

  5. ETL Pentaho Data Integration (Kettle) 插入/更新 问题 etl

    Pentaho Data Integration (Kettle) 使用此工具 按 索引  做 插入更新操作时,也可能报 索引重复 的错误, 解决方法:  匹配的索引字段可能有null值,会导致此错误 ...

  6. mysql 执行流程

    mysql 执行流程 我们可以人为的把mysql 的主要功能分为如下模块. 1.初始化模块 mysql启动的时候执行初始化工作,如读取配置文件,分配一些全局变量(sql_model,catch buf ...

  7. 【POJ】【2420】A Star not a Tree?

    模拟退火 Orz HZWER 这题的题意是在二维平面内找一点,使得这点到给定的n个点的距离和最小……0.0 模拟退火算法请戳这里 //POJ 2420 #include<ctime> #i ...

  8. Jsonp 前后端交互操作

    今天,因为项目的需要,研究了一下JSONP,特在此记录一下 ,希望可以帮助那些有疑惑的朋友们,本人也是刚学,高手略过即可. 关于Jsonp的定义就不说了,网上一片,大家可以自己查询.我就在此直接进入正 ...

  9. 2014 Multi-University Training Contest 10

    官方解题报告:http://blog.sina.com.cn/s/blog_6bddecdc0102v01l.html A simple brute force problem. http://acm ...

  10. 设置go语言语法高亮

    1. 将$GOROOT/misc/vim/go.vim文件拷贝到-/.vim/syntax/目录下 2. 添加下面代码到~/.vimrc文件中 let mysyntaxfile = "XXX ...