--EM的管理架构:

OEM管理数据库_em

通过IE连接EM,EM通过监听找到Oracle!


查看em状态

[oracle@centos-fuwenchao ~]$ emctl status dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
[oracle@centos-fuwenchao ~]$ echo $ORACLE_UNQNAME
[oracle@centos-fuwenchao ~]$ export ORACLE_UNQNAME=wenchaodb
[oracle@centos-fuwenchao ~]$ 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://centos-fuwenchao:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/centos-fuwenchao_wenchaodb/sysman/log

-----

查看listener状态

[oracle@centos-fuwenchao ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-FEB-2014 10:25:52
Copyright (c) 1991, 2009, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=centos-fuwenchao)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                19-FEB-2014 17:42:01
Uptime                    0 days 16 hr. 43 min. 51 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/centos-fuwenchao/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=centos-fuwenchao)(PORT=1521)))
Services Summary...
Service "wenchaodb" has 1 instance(s).
  Instance "wenchaodb", status READY, has 1 handler(s) for this service...
Service "wenchaodbXDB" has 1 instance(s).
  Instance "wenchaodb", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@centos-fuwenchao ~]$

可以看到,监听找到了数据库,进而EM可以根据监听找到数据库!


如果监听没有认识到数据库,可以执行命令

sqlpuls / as sysdba;

alter system register;

exit

--


使用EM登录数据库

https://10.13.2.115:1158/em

账户sys 密码****** 角色sysdba

OEM管理数据库_Oracle_02


em出了问题可以删除重建    





关闭顺序:em listener oracle

启动顺序  listener Oracle em


emctl start|stop dbconsole

lsnrctl start|stop

sqlplus / as sysdba ; shutdown immediate|startup




em一旦建立好了之后,Linux服务器的主机名字不要改变,否则em重建




链接:

企业管理器(OEM)介绍: Grid Control 和 Database Control

http://blog.csdn.net/tianlesoftware/article/details/5704374


http://blogimg.chinaunix.net/blog/upfile/070418083337.pdf


配置oracle11g EM db control

http://dongdongdong.blog.51cto.com/1113291/842507


oracle EM 管理以及诊断 总结

http://dbua.iteye.com/blog/838411


http://www.oracle.com/technetwork/cn/oem/arch-deploy/index.html?ssSourceSiteId=otnen



http://hi.baidu.com/jmcczlnhhabklos/item/65f4b733f3888ace382ffa53



ORACLE 11G EM 配置命令及问题处理

http://blog.csdn.net/zftang/article/details/6189760



http://snkcxy.iteye.com/blog/1930506