如何重新配置Oracle的EM Database Control

 我来答
千锋教育
2016-11-24 · 做真实的自己 用良心做教育
千锋教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
展开全部
通过重新配置,来创建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 ]

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:
https://<hostname>:1158/em
其中 <hostname> 应更改为您的机器名、IP 地址或 localhost.
因为企业管理器数据库控制是一个安全站点,因此您需要一个证书。选择 Accept this certificate permanently 选项,然后单击 OK.

2. 输入 system 作为 User Name 以及 oracle 作为 Password,然后单击 Login.

3. 数据库控制主页显示。安装成功。
ZESTRON
2024-09-04 广告
在Dr. O.K. Wack Chemie GmbH,我们高度重视ZESTRON的表界面分析技术。该技术通过深入研究材料表面与界面的性质,为提升产品质量与可靠性提供了有力支持。ZESTRON的表界面分析不仅涵盖了相变化、化学反应、吸附与解吸... 点击进入详情页
本回答由ZESTRON提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式