0

我已经在 Oracle linux 7.2 上安装了 oracle 数据库 11gR2。但是,oracle 企业管理器无法正常工作。我试图弄清楚我们出了什么问题,经过长时间的搜索,我发现了一个建议我应该重新配置 EM 的博客。使用以下命令

#emca -config dbcontrol db -repos recreate

此命令启动良好,但在保护数据库控制台时失败,并出现以下错误。

保护 Database Control 时出错,Database Control 已在非安全模式下启动。要保护数据库控制,请执行以下命令:

 1) Set the environment variable ORACLE_SID to orcl    

 2) /u01/app/oracle/product/11.2.0.4/db_1/bin/emctl stop dbconsole   

 3) /u01/app/oracle/product/11.2.0.4/db_1/bin/emctl config emkey -repos

 4) -sysman_pwd < Password for SYSMAN user            /u01/app/oracle/product/11.2.0.4/db_1/bin/emctl secure dbconsole
  -sysman_pwd < Password for SYSMAN user >    

 5) /u01/app/oracle/product/11.2.0.4/db_1/bin/emctl start dbconsole

 To secure Em Key, run /u01/app/oracle/product/11.2.0.4/db_1/bin/emctl config       emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
 Aug 3, 2016 3:48:30 PM oracle.sysman.emcp.EMConfig perform

问题在于执行上面的步骤(4)。每次我运行第 4 步的命令时,我都会收到以下错误

*[04-08-2016 12:00:39] USERINFO ::DBCONSOLE already stopped...   Done.
[04-08-2016 12:00:39] USERINFO ::Failed to stop agent...*

无法识别命令emctl stop agent以及emctl start agent

下面是一些日志文件的内容

1. **emagent.log**
 *2016-08-03 16:00:48,520 Thread-1268766464 target {orcl.cc, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2016-08-03 16:00:48,648 Thread-1268766464 enable collector (00407)
2016-08-03 16:00:49,678 Thread-1262466816 <Upload Manager> Exceeded Max allowed Upload data - No of files: 139, Size of upload data: 129.344502MB, Pct(%) of Disk used: 42.30%, Disabling collections (00852)
2016-08-03 16:00:49,678 Thread-1262466816 Disable collector (00406)
2016-08-03 16:20:29,822 Thread-1268766464 target {orcl.cc, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2016-08-03 16:20:29,950 Thread-1268766464 enable collector (00407)
2016-08-03 16:20:30,980 Thread-1256167168 <Upload Manager> Exceeded Max allowed Upload data - No of files: 144, Size of upload data: 137.557024MB, Pct(%) of Disk used: 42.32%, Disabling collections (00852)
2016-08-03 16:20:30,980 Thread-1256167168 Disable collector (00406)
2016-08-04 11:08:31,475 Thread-1275066112 enable collector (00407)
2016-08-04 11:22:21,057 Thread-977835840 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0.4/db_1 (00701)
2016-08-04 11:22:21,058 Thread-977835840 <Agent Startup> : Startup of HTTP LISTENER failure (00716)
2016-08-04 11:59:13,322 Thread-3109705536 running as user 0, not 54321 (00005)
2016-08-04 11:59:13,323 Thread-3109705536 <Agent Startup> : The Agent was started by a user who does not own emd.properties - aborting startup (00709)
2016-08-04 12:00:59,562 Thread-1832347456 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0.4/db_1 (00701)
2016-08-04 12:00:59,563 Thread-1832347456 <Agent Startup> : Startup of HTTP LISTENER failure (00716)
2016-08-04 12:18:03,609 Thread-2117162816 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0.4/db_1 (00701)
2016-08-04 12:18:03,609 Thread-2117162816 <Agent Startup> : Startup of HTTP LISTENER failure (00716)
2016-08-04 12:20:30,742 Thread-404399936 Starting Agent 10.2.0.4.2 from /u01/app/oracle/product/11.2.0.4/db_1 (00701)
2016-08-04 12:20:30,743 Thread-404399936 <Agent Startup> : Startup of HTTP LISTENER failure (00716) *

我的代理版本是 10.2.0.4.0

我的数据库控制版本是 11.2.0.1.0

我不能停止也不能启动代理。这使我无法继续在互联网上获得任何帮助,因为它需要启动和停止代理。

当我运行命令*#emctl status agent*时,我得到以下输出

*Oracle Enterprise manager 11g DB Control 版本 11.2.0.1.0

版权所有 (C) 1996、2009 甲骨文公司。保留所有权利。*

请我在过去的 5 天里一直在尝试解决这个问题,但是当有任何涉及启动或停止代理的步骤时,我总是被卡住。所以我客人我的主要问题是代理。

4

1 回答 1

0

要在 Oracle Linux 7.x 上启用 Oracle Enterprise Manager,您需要将 Oracle 数据库服务器和 Oracle 数据库升级到版本 11.2.0.4.0。之后,必须安装 Oracle 补丁“19692824:OEL 7 上未提供 DBCONTROL”以升级 OEM 代理的版本。

最后,您可以使用以下命令启用带有 HTTPS 的 OEM:

emca -config dbcontrol db -repos create

注意:补丁 19692824 与 Oracle 数据库服务器 11.2.0.3.0 不兼容

于 2018-11-27T17:06:16.390 回答