`
blueyanghualong
  • 浏览: 225301 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

如何重新配置Oracle的EM Database Control

阅读更多

 

如何重新配置Oracle的EM Database Control

今天打算启用一下Oracle Database 11g的Database Control,发现初始并未安装:

[oracle@test126 ~]$ emctl start
EM Configuration issue. /opt/oracle/product/11.1.0/test126.hurray.com.cn_dodd not found.

 

遇到这类问题,可以通过重新配置,来创建EM的配置文件:

[oracle@test126 11.1.0]$ emca -config dbcontrol db -repos recreate

 

STARTED EMCA at Aug 28, 2007 11:54:40 AM
EM Configuration Assistant, Version 11.1.0.5.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: dodd
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Email address for notifications (optional): eygle@eygle.com
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/product/11.1.0

Local hostname ................ test126.hurray.com.cn
Listener port number ................ 1521
Database SID ................ dodd
Email address for notifications ............... eygle@eygle.com
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 28, 2007 11:56:58 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/dodd/emca_2007_08_28_11_54_40.log.
Aug 28, 2007 11:57:01 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 28, 2007 11:57:16 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Aug 28, 2007 11:57:16 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...


Aug 28, 2007 12:08:35 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Aug 28, 2007 12:08:47 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Aug 28, 2007 12:11:45 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Aug 28, 2007 12:11:51 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Aug 28, 2007 12:11:51 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Aug 28, 2007 12:12:13 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Aug 28, 2007 12:12:13 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 28, 2007 12:12:39 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Aug 28, 2007 12:12:39 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 28, 2007 12:14:04 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 28, 2007 12:14:04 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://test126.hurray.com.cn:1158/em <<<<<<<<<<<
Aug 28, 2007 12:14:16 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /opt/oracle/product/11.1.0/test126.hurray.com.cn_dodd/sysman/config/emkey.ora. Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 28, 2007 12:14:16 PM

 

Oracle 10g中,配置方法与此相同。
配置完成之后就可以启动EM了:

[oracle@test126 11.1.0]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://test126.hurray.com.cn:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ........ started.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/product/11.1.0/test126.hurray.com.cn_dodd/sysman/log

 

如果是Linux环境,你可能还需要在iptables中开放1158端口,增加如下一行:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1158 -j ACCEPT

重新启动防火墙之后就可以通过IE在远端连接EM的Database Control了:

[root@test126 sysconfig]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_ns [ OK ]

 

 

分享到:
评论

相关推荐

    Oracle\oracle_EM无法正常登陆解决方案

    - **删除Database Control配置**:`emca –deconfigdbcontroldb` - **重新配置dbcontrol和agent端口**:`emca –reconfigports` - **启动EM Console服务**:`emctl start dbconsole` - **停止EM Console服务**:`...

    emca配置database control

    5. 删除Database Control配置: ``` emca -deconfig dbcontrol db ``` 6. 重新配置DB Control的端口(默认HTTP端口为1158,Agent端口为3940): ``` emca -reconfig ports -dbcontrol_http_port 1160 emca -...

    [原创]Guide: Installing Oracle Enterprise Manager Grid Control 10.2.0.5 on Oracle Database 11gR2 and RHEL Linux 5.4

    本指南详细介绍了如何在Red Hat Enterprise Linux (RHEL) 5.4上安装并配置Oracle Enterprise Manager (EM) Grid Control 10.2.0.5版本,同时适用于Oracle Database 11g Release 2 (11gR2)。该文档不仅包含了...

    Oracle_EM无法启动_解决方案

    - **命令解释**:`emca-configdbcontroldb-reposrecreate` 命令用于重新创建EM资料库并配置Database Control。 - **输入参数**: - 数据库SID:指定要配置的数据库实例的系统标识符(SID),例如 `orcl`。 - ...

    XP安装Oracle 10时实例化EM配置文件时出错解决方案

    在创建资料档案库的过程中,虽然命令行显示“已成功创建资料档案库”,但在后续启动Database Control时出现了警告:“无法创建DatabaseControl快捷方式”。 ### 解决方案 #### 步骤1:彻底清理旧配置 确保彻底...

    oracle 10G EM 配置总结

    在10G版本中,EM分为两个主要组件:Database Control(DBControl)和Grid Control。DBControl专注于单一数据库的管理,而Grid Control则可以管理多个数据库实例,甚至包括集群环境。 配置Oracle 10G EM DBControl的...

    oracle10g em 重新配置

    确保在进行EM重新配置之前已经设置了正确的环境变量,特别是`ORACLE_SID`。这一步非常重要,因为EM的许多命令都需要知道当前正在操作的是哪个数据库实例。 **步骤:** 1. 设置`ORACLE_SID`环境变量。 2. 确认环境...

    oracle重建EM

    这时,你需要使用EM Configuration Assistant (EMCA)来重新创建仓库(-repos recreate)和配置数据库控制(-config dbcontrol db)。在命令行中,先设置环境变量`oracle_sid`,例如`set oracle_sid=ora10g`,然后...

    Oracle EM 的启动错误

    oracle.sysman.emcp.exception.EMConfigException: 启动 Database Control 时出错 at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:649) at oracle.sysman.emcp.EMDBPostConfig....

    oracle更改IP后重建EM

    - 检查并确认最终配置设置无误后,继续操作。 4. **启动EM控制台**: - 使用`emctl`命令启动EM控制台,例如: ``` emctl start dbconsole ``` - 若出现“服务已经启动成功”的提示,则表示EM重建成功。 ####...

    Oracle Database Database Administrator’s Guide - 2116页

    书中将介绍如何使用EM Cloud Control和其他监控工具来识别和解决性能问题。 九、数据库升级与迁移 随着技术的发展,数据库升级和迁移是不可避免的。指南提供了从旧版本到12.2版本的升级路径,以及数据迁移的最佳...

    oracleEM重建

    - **保护Database Control**:对EM进行安全性配置,确保EM的安全性。 - **启动Database Control**:完成配置后,启动EM服务。 - 完成上述步骤后,EM控制台会成功配置并启动。可以通过访问`...

    环境变量ORACLE_UNQNAME未定义问题

    环境变量 ORACLE_UNQNAME 未定义问题 ...环境变量 ORACLE_UNQNAME 未定义问题可以通过正确地设置环境变量和重新配置 EMCA 来解决。同时,还需要注意其他相关的配置和设置,以便正确地管理数据库。

    手工配置Oracle_10G_Enterprise_Manager过程

    - 若要完全删除EM资料库和Database Control配置,使用 `emca -deconfig dbcontrol db -reposdrop` 。 #### 五、注意事项 - 在进行EM配置时,确保网络连接稳定,以免配置过程中断。 - EM的启动通常需要特定的服务...

    Oracle10g DBA 两日速成自学材料2

    **Oracle Enterprise Manager (EM) Database Control** 是一款强大的基于Web的管理工具,旨在帮助DBA(数据库管理员)和IT专业人员高效地管理和监控Oracle数据库实例及相关组件。它通过一个直观的图形化用户界面提供...

    Oracle® Database Concepts 11r2

    ### Oracle® Database Concepts 11g Release 2 (11.2) 关键知识点解析 #### 一、Oracle Database 概述 Oracle Database 11g Release 2(简称 Oracle 11r2)是Oracle公司发布的一个重要的数据库管理系统版本。它在...

    oracle_database_11gR2_概念手册_官方文档

    - **定义**:Oracle EM Grid Control 是一套集成的工具集,用于监控和管理整个数据中心环境中的所有Oracle组件。 - **功能**: - 性能监控:提供全面的性能指标监控。 - 故障诊断:自动检测问题并提供解决方案...

    Oracle Database 10g基础教程(第二版)PPT和示例代码

    Oracle Database 10g是Oracle公司推出的一款关系型数据库管理系统,是企业级数据管理的重要工具。本教程聚焦于Oracle 10g的基础知识,旨在帮助初学者理解和掌握数据库管理的基本概念、操作及应用。通过配套的PPT和...

    oracle dba 两日速成课程 第 3 章:oracle enterprise manager 入门

    通过上述步骤,你可以快速启动并使用 Oracle Enterprise Manager Database Control,同时也能了解如何管理用户权限,确保安全高效地使用 EM 控制台。Oracle Enterprise Manager Database Control 不仅简化了 Oracle ...

    [oracle数据库11G初学者指南].Oracle.Database.11g,A.Beginner's.Guide

    Oracle Database 11g的安装涉及多个步骤,包括选择适当的安装类型(如典型安装或定制安装)、配置数据库实例、设置网络服务等。安装后,还需要进行初始化参数设置、安全策略配置以及数据文件的规划。 三、SQL基础 ...

Global site tag (gtag.js) - Google Analytics