emoptional「emoptional word」
如何重新配置Oracle的EM Database Control
通过重新配置,来创建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.sy**an.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.sy**an.emcp.EMReposConfig invoke INFO: Dropping the EM repository (this may take a while) ……
Aug 28, 2007 11:57:16 AM oracle.sy**an.emcp.EMReposConfig invoke INFO: Repository successfully dropped Aug 28, 2007 11:57:16 AM oracle.sy**an.emcp.EMReposConfig createRepository INFO: Creating the EM repository (this may take a while) ……
Aug 28, 2007 12:08:35 PM oracle.sy**an.emcp.EMReposConfig invoke INFO: Repository successfully created Aug 28, 2007 12:08:47 PM oracle.sy**an.emcp.EMReposConfig uploadConfigDataToRepository INFO: Uploading configuration data to EM repository (this may take a while) ……
Aug 28, 2007 12:11:45 PM oracle.sy**an.emcp.EMReposConfig invoke INFO: Uploaded configuration data successfully Aug 28, 2007 12:11:51 PM oracle.sy**an.emcp.util.DBControlUtil configureSoftwareLib INFO: Software library configured successfully. Aug 28, 2007 12:11:51 PM oracle.sy**an.emcp.EMDBPostConfig configureSoftwareLibrary INFO: Deploying Provisioning archives ……
Aug 28, 2007 12:12:13 PM oracle.sy**an.emcp.EMDBPostConfig configureSoftwareLibrary INFO: Provisioning archives deployed successfully. Aug 28, 2007 12:12:13 PM oracle.sy**an.emcp.util.DBControlUtil secureDBConsole INFO: Securing Database Control (this may take a while) ……
Aug 28, 2007 12:12:39 PM oracle.sy**an.emcp.util.DBControlUtil secureDBConsole INFO: Database Control secured successfully. Aug 28, 2007 12:12:39 PM oracle.sy**an.emcp.util.DBControlUtil startOMS INFO: Starting Database Control (this may take a while) ……
Aug 28, 2007 12:14:04 PM oracle.sy**an.emcp.EMDBPostConfig performConfiguration INFO: Database Control started successfully Aug 28, 2007 12:14:04 PM oracle.sy**an.emcp.EMDBPostConfig performConfiguration INFO: The Database Control URL is :1158/em Aug 28, 2007 12:14:16 PM oracle.sy**an.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/sy**an/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. :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/sy**an/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 ]
4. 安装程序现在将验证系统是否满足安装和配置所选产品的最低要求。继续前改正任何报告的错误。检查成功完成后,单击 Next.
5. Oracle Configuration Manager 允许您将配置信息与 Metalink 帐户相关联。您可在该窗口上选择启用它。然后单击 Next.
4. 安装程序现在将验证系统是否满足安装和配置所选产品的最低要求。继续前改正任何报告的错误。检查成功完成后,单击 Next.
7. Configuration Assistants 窗口显示。
8. 正在创建数据库。
9. 创建了数据库之后,可以解锁您要使用的用户。单击 OK.
10. 您需要以 root 用户身份执行 orainstRoot.sh 和 root.sh
11. 打开终端窗口输入以下命令。按提示输入内容。
su - rootpassword cd /u01/app/oracle/oraInventory。/orainstRoot.sh cd ……/product/11.1.0/db_1。/root.sh exit
12. 切换回 Universal Installer 并单击 OK.
13. 单击 Exit.单击 Yes 确认退出。
返回主题列表
测试安装要测试安装是否成功完成,请执行以下步骤:
1. 打开一个浏览器,输入以下 URL:
;hostname:1158/em
其中 hostname 应更改为您的机器名、IP 地址或 localhost.
因为企业管理器数据库控制是一个安全站点,因此您需要一个证书。选择 Accept this certificate permanently 选项,然后单击 OK.
2. 输入 system 作为 User Name 以及 oracle 作为 Password,然后单击 Login.
3. 数据库控制主页显示。安装成功。
在win7系统上安装oracle 10g时总是出现图片中我错误信息?
ERROR 1正在检查操作系统要求...
要求的结果: 5.0,5.1,5.2,6.0 之一
实际结果: 6.1
检查完成。此次检查的总体结果为: 失败
问题: Oracle Database 11g 未在当前操作系统中经过认证。
建议案: 确保在正确的平台上安装软件。
========================================================正在检查 Service Pack 要求...
检查完成。此次检查的总体结果为: 未执行
OUI-18001: 不支持操作系统 'Windows Vista 版本 6.1'。
建议案: 请安装建议的 Service Pack。
======================================================== 解决:在安装文件中搜索refhost.xml,然后添加!--Microsoft Windows 7--
OPERATING_SYSTEM
VERSION VALUE="6.1"/
/OPERATING_SYSTEM 在安装文件中搜索oraparam.ini,然后修改为#You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE
#Windows=5.0,5.1,5.2,6.0,6.1 添加#[Windows-6.1-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300
#[Windows-6.1-optional] ERROR 2正在检查网络配置要求...
检查完成。此次检查的总体结果为: 失败
问题: 安装检测到系统的主 IP 地址是 DHCP 分配的地址。
建议案: Oracle 支持在具有 DHCP 分配的 IP 地址的系统上进行安装。但在安装之前, 必须将 Microsoft LoopBack Adapter 配置为系统的主网络适配器。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。解决:控制面板/添加硬件,在向导中选择“是,已经连接了此硬件”→“网络适配器”→“Microsoft Loopback Adapter”,添加完成,你会发现新建了个“本地连接”,用的就是这个假的“Microsoft Loopback Adapter”(因为根本就没有连接这个硬件,只是骗下Oracle而已)。把这个本地连接的IP设置一下(例如192.168.0.8)WIN7打开添加硬件的方法:CTRL+R 并运行 hdwwiz.exe ERROR3安装完后进入em后,界面提示java.lang.Exception: Exception in sending Request :: null类似的问题还有Io 异常:Unknown host specified;"Agent process exited abnormally during initialization" in system event log; 解决:这个问题是由数据库控制服务自动配置时区错误引起的,一般情况下,在文件中/config/emd.properties ,no agentTZRegion parameter或者agentTZRegion=GMT,只需要把GMT修改为我们当前的时区,重新启动OracleDBConsole_sid服务即可,如果安装了防火墙,必须保证相应的服务可以访问网络.具体操作
Oracle11g用em登陆不管怎么的都是用户名和密码无效,是不是em还得配置东西,怎么配置,只是安装好Oracl
是不是监听端口改了,监听端口不是1521,要重新配置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.sy**an.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.sy**an.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 28, 2007 11:57:16 AM oracle.sy**an.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Aug 28, 2007 11:57:16 AM oracle.sy**an.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 28, 2007 12:08:35 PM oracle.sy**an.emcp.EMReposConfig invoke
INFO: Repository successfully created
Aug 28, 2007 12:08:47 PM oracle.sy**an.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Aug 28, 2007 12:11:45 PM oracle.sy**an.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Aug 28, 2007 12:11:51 PM oracle.sy**an.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Aug 28, 2007 12:11:51 PM oracle.sy**an.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Aug 28, 2007 12:12:13 PM oracle.sy**an.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Aug 28, 2007 12:12:13 PM oracle.sy**an.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 28, 2007 12:12:39 PM oracle.sy**an.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Aug 28, 2007 12:12:39 PM oracle.sy**an.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 28, 2007 12:14:04 PM oracle.sy**an.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 28, 2007 12:14:04 PM oracle.sy**an.emcp.EMDBPostConfig performConfiguration
INFO: The Database Control URL is
Aug 28, 2007 12:14:16 PM oracle.sy**an.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/sy**an/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.
Starting Oracle Enterprise Manager 11g Database Control ........ started.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/product/11.1.0/test126.hurray.com.cn_dodd/sy**an/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 ]
-The End-
源文档 ;
