oracle emca 配置dbcontrol時,無法上傳EM資料庫配置解決方案

來源:互聯網
上載者:User

標籤:sdn   which   通知   www   ping   網卡   日期   rom   資料包   

系統內容:

windows server 2008 R2 Ent. 64bit

在用emca配置dbcontrol時,提示:“嚴重: 將配置資料上傳到資料檔案庫時出錯”,經查是IPV6造成的。把網卡配置中的ipv6禁用掉仍然不行,後又查詢資料得知需要修改drivers/etc/下的hosts檔案。

故障現象:
C:\Users\Administrator>emca -config dbcontrol dbEMCA 開始於 2017-9-4 11:51:26EM Configuration Assistant, 11.2.0.0.2 正式版著作權 (c) 2003, 2005, Oracle。著作權所有,並保留一切權利。輸入以下資訊:資料庫 SID: orcl監聽程式 ORACLE_HOME [ E:\app\Administrator\product\11.2.0\dbhome_2 ]:SYS 使用者的口令:DBSNMP 使用者的口令:SYSMAN 使用者的口令:通知的電子郵件地址 (可選):通知的發件 (SMTP) 伺服器 (可選):-----------------------------------------------------------------已指定以下設定資料庫 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_2本地主機名稱 ................ bt-db監聽程式 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_2監聽程式連接埠號碼 ................ 1521資料庫 SID ................ orcl通知的電子郵件地址 ...............通知的發件 (SMTP) 伺服器 ...............-----------------------------------------------------------------是否繼續? [是(Y)/否(N)]: y2017-9-4 11:51:54 oracle.sysman.emcp.EMConfig perform資訊: 正在將此操作記錄到 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2017_09_04_11_51_26.log。2017-9-4 11:52:00 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository資訊: 正在將配置資料上傳到 EM 資料檔案庫 (此操作可能需要一段時間)...2017-9-4 11:55:07 oracle.sysman.emcp.EMReposConfig invoke資訊: 有關詳細資料, 請參閱 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_repos_config_<日期>.log 中的記錄檔。2017-9-4 11:55:07 oracle.sysman.emcp.EMReposConfig invoke嚴重: 將配置資料上傳到資料檔案庫時出錯2017-9-4 11:55:07 oracle.sysman.emcp.EMConfig perform嚴重: 將配置資料上傳到資料檔案庫時出錯有關詳細資料, 請參閱 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2017_09_04_11_51_26.log 中的記錄檔。無法完成配置。 有關詳細資料, 請參閱 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2017_09_04_11_51_26.log 中的記錄檔。

此時開啟cmd命令視窗ping本地主機名稱,顯示如下:

C:\Users\Administrator>ping bt-db正在 Ping bt-db [::1] 具有 32 位元組的資料:來自 ::1 的回複: 時間<1ms來自 ::1 的回複: 時間<1ms::1 的 Ping 統計資訊:    資料包: 已發送 = 2,已接收 = 2,丟失 = 0 (0% 丟失),往返行程的估計時間(以毫秒為單位):    最短 = 0ms,最長 = 0ms,平均 = 0ms

修改hosts檔案,添加一行內容:

10.13.16.34    bt-db

然後再通過ping本地主機名稱,驗證是否已不通過ipv6方式訪問主機。

C:\Users\Administrator>ping bt-db正在 Ping bt-db [10.13.16.34] 具有 32 位元組的資料:來自 10.13.16.34 的回複: 位元組=32 時間<1ms TTL=128來自 10.13.16.34 的回複: 位元組=32 時間<1ms TTL=12810.13.16.34 的 Ping 統計資訊:    資料包: 已發送 = 2,已接收 = 2,丟失 = 0 (0% 丟失),往返行程的估計時間(以毫秒為單位):    最短 = 0ms,最長 = 0ms,平均 = 0ms

最後,重新設定dbcontrol資料庫。

C:\Users\Administrator>emca -config dbcontrol dbEMCA 開始於 2017-9-4 11:57:20EM Configuration Assistant, 11.2.0.0.2 正式版著作權 (c) 2003, 2005, Oracle。著作權所有,並保留一切權利。輸入以下資訊:資料庫 SID: orcl監聽程式 ORACLE_HOME [ E:\app\Administrator\product\11.2.0\dbhome_2 ]:SYS 使用者的口令:DBSNMP 使用者的口令:SYSMAN 使用者的口令:SYSMAN 使用者的口令: 通知的電子郵件地址 (可選):通知的發件 (SMTP) 伺服器 (可選):-----------------------------------------------------------------已指定以下設定資料庫 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_2本地主機名稱 ................ bt-db監聽程式 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_2監聽程式連接埠號碼 ................ 1521資料庫 SID ................ orcl通知的電子郵件地址 ...............通知的發件 (SMTP) 伺服器 ...............-----------------------------------------------------------------是否繼續? [是(Y)/否(N)]: y2017-9-4 11:57:45 oracle.sysman.emcp.EMConfig perform資訊: 正在將此操作記錄到 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2017_09_04_11_57_20.log。2017-9-4 11:57:46 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository資訊: 正在將配置資料上傳到 EM 資料檔案庫 (此操作可能需要一段時間)...2017-9-4 11:58:12 oracle.sysman.emcp.EMReposConfig invoke資訊: 已成功上傳配置資料2017-9-4 11:58:15 oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib資訊: 軟體庫已配置成功。2017-9-4 11:58:15 oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary資訊: 正在部署預配檔案...2017-9-4 11:58:27 oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary資訊: 預配檔案部署成功。2017-9-4 11:58:27 oracle.sysman.emcp.util.DBControlUtil secureDBConsole資訊: 正在保護 Database Control (此操作可能需要一段時間)...2017-9-4 11:58:31 oracle.sysman.emcp.util.DBControlUtil secureDBConsole資訊: 已成功保護 Database Control。2017-9-4 11:58:31 oracle.sysman.emcp.util.DBControlUtil startOMS資訊: 正在啟動 Database Control (此操作可能需要一段時間)...2017-9-4 11:59:17 oracle.sysman.emcp.EMDBPostConfig performConfiguration資訊: 已成功啟動 Database Control2017-9-4 11:59:17 oracle.sysman.emcp.EMDBPostConfig performConfiguration資訊: >>>>>>>>>>> Database Control URL 為 https://bt-db:1158/em <<<<<<<<<<<2017-9-4 11:59:19 oracle.sysman.emcp.EMDBPostConfig invoke警告:************************  WARNING  ************************管理資料檔案庫已置於安全模式下, 在此模式下將對 Enterprise Manager 資料進行加密。加密金鑰已放置在檔案 E:/app/Administrator/product/11.2.0/dbhome_2/bt-db_orcl/sysman/config/emkey.ora 中。請務必備份此檔案, 因為如果此檔案丟失, 則加密資料將不可用。***********************************************************已成功完成 Enterprise Manager 的配置EMCA 結束於 2017-9-4 11:59:19

下述內容引用其他網友的排查經驗:

在OTN上找到此問題的解釋:

   Cause
The windows machine is in an active directory and is using IPv6. When the short hostname is pinged, it is resolved via the fully qualified hostname to an IPv6 (ISATAP) address eg:-


ping machine1

Pinging machine1.uk.oracle.com [fe80::f1bb:2ed:4d5a:1732] with 32 bytes of data:
Reply from fe80::f1bb:2ed:4d5a:1732: time<1ms

Dbconsole 11.2 is built around Grid Control 10.2.0.4 and so is not IPv6 compliant. Grid Control 11.1.0.1 is IPv6 compliant.. The version of dbconsole which is built around Grid Control 11.1.0.1 will be IPv6 compliant. (the version which dbconsole is built round is shown in the output of emctl status agent).



Solution
Add entries into the host file, to force IPv4 style resolution:-

1) edit the windows\system32\drivers\etc\hosts file

2) add an entry for the machine of the format:-

<ipaddress> <fully qualified hostname> <short hostname>

eg.

138.3. 146.333 machine1.uk.oracle.com machine1

Now when pinging the short hostname, the ipv4 style ipaddress is returned.

簡單解釋:

   2008預設使用IPV 6協議解析,被ping主機名稱,它是通過完整主機名稱解析到IPv6(ISATAP)地址

   例如:  ping www.swsport.com 
 

   DBCONSOLE 11.2圍繞網格控制10.2.0.4,所以不支援IPv6相容。網格控制11.1.0.1是IPv6相容.. (哪個DBCONSOLE內建一輪的版本中所示的輸出emctl狀態劑)。

   

   也就是說作業系統用IPV 6解析地址,而你的EM確需要IPV 4解析的地址。解決方案:強行使用IPV4 解析地址

oracle emca 配置dbcontrol時,無法上傳EM資料庫配置解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.