Oracle Linux 7.2 に Oracle データベース 11gR2 をインストールしました。ただし、Oracle Enterprise Manager は機能していませんでした。何が間違っていたのかを突き止めようと長い間検索した結果、EM を再構成する必要があることを示唆するブログに出くわしました。次のコマンドを使用して
#emca -config dbcontrol db -repos recreate
このコマンドはうまく起動しましたが、DB コンソールを確保する時点で次のエラーで失敗しました。
Database Control の保護中にエラーが発生しました。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 です
私のDBコントロールのバージョンは11.2.0.1.0です
エージェントを停止または開始できません。これにより、エージェントを開始および停止する必要があるため、インターネットで得た支援を続行できなくなります。
コマンド*#emctl status agent*
を実行すると、次の出力が得られます
*Oracle Enterprise Manager 11g DB Control バージョン 11.2.0.1.0
Copyright (C) 1996, 2009 Oracle Corporation. 予約済み*
私は過去 5 日間、この問題を解決しようとしてきましたが、エージェントの開始または停止に関するステップがあると、いつも行き詰まります。私の主な問題はエージェントです。