PowerProtect:解決 Oracle 排定備份的 addon.cfg 組態檔案中的剖析錯誤
Summary: 針對使用 Dell EMC PowerProtect Data Manager (PPDM) 搭配 Oracle 資料庫備份的客戶,已回報排程備份發生問題。但是,臨時手動備份可以正常工作。根本原因已識別為 addon.cfg 檔案 ([]) 中的空白區段,這是由於 getInstallOracleSidUser() 函數未正確處理特定命令的輸出所導致。此問題已在即將推出的 19.18 版本和下一個 19.17 修補程式版本中解決。不想升級的客戶可以要求 19.16 版本的修補程式。 ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
* Oracle 備份排程出現問題 * 臨時手動備份可以工作 * Python 無法處理 INI 格式配置檔的空部分,例如“[]” * 在 addon.cfg 檔中添加了空部分 * 地圖中添加了雜訊資訊導致空部分 * 雜訊資訊來自 Imperva 網络命令行 * Imperva Oracle 資料庫的網路發現會干擾備份過程。
我們可以在記錄中看到以下錯誤訊息:
[2024-07-28 17:00:17,742 GMT| 2024-07-29 01:00:17,743555 +08| APPBACKUPASSETS_89AE63F6DB2D6224| PID-77095| TID-140512660902656| ERROR| TraceContext-TRACE_ID:89ae63f6db2d6224;EXEC_ID:a631207817a80e3d] /opt/dpsapps/agentsvc/tmp/_MEIng5l7D/AddOnManager/AddOnManager.pyc-getAllAddOnsMap()-Line 140- Exception Source contains parsing errors: '/opt/dpsapps/agentsvc/AddOns/D2B24128_9482_44D2_8723_6D211DB49BFB/addon.cfg' [line 26]: '[]\n' in getAllAddOnsMap.Traceback (most recent call last): File "AddOnManager/AddOnManager.py", line 126, in getAllAddOnsMap File "AddOnManager/AddOnManager.py", line 96, in __add2modules File "AddOnManager/AddOnManager.py", line 87, in instantiateMainClass File "nsr/AppAgentService/AddOns/D2B24128_9482_44D2_8723_6D211DB49BFB/AddOnMain.py", line 42, in get_instance File "nsr/AppAgentService/AddOns/D2B24128_9482_44D2_8723_6D211DB49BFB/AddOnMain.py", line 63, in __init__ File "nsr/AppAgentService/AddOns/D2B24128_9482_44D2_8723_6D211DB49BFB/AddOnBase.py", line 1319, in parseConfigFile File "configparser.py", line 713, in read File "configparser.py", line 1132, in _readconfigparser.ParsingError: Source contains parsing errors: '/opt/dpsapps/agentsvc/AddOns/D2B24128_9482_44D2_8723_6D211DB49BFB/addon.cfg' [line 26]: '[]\n'
我們可以看到 addon.cfg 中自動有 []。
Cause
Python 無法處理 INI 格式的組態檔案中的空白區段,例如「[]」。如果設定如以下範例所示,則無法剖析:
[+APX1] agent_user = oragrid [ASMCR5R] agent_user = oracloud []
因此,我們可以知道問題來自 addon.cfg 檔中的空部分“[]”。
噪音資訊來自客戶使用的Imperva Cyber。一旦 Imperva Cyber 與應用程式系統發現同時運行,空白部分“[]”將被添加到 addon.cfg 檔中。Imperva Cyber 命令列看起來如下:
sh -c /opt/imperva/ragent/bin/db-discovery.sh -d Oracle -f /opt/imperva/ragent/bin/ -r "tnslsnr" -i _pmon_ -e "false" -s "oracle+ASM[A-Za-z0-9]{0,}|asm_d[000-999]|ora_d[000-999]" -a "false" -p 9999 -o /opt/imperva/ragent/var/db_discovery_oracle.txt -ipc 2>>/opt/imperva/ragent/var/stderr_db_discovery.txt
/bin/bash /opt/imperva/ragent/bin/db-discovery.sh -d Oracle -f /opt/imperva/ragent/bin/ -r tnslsnr -i _pmon_ -s oracle+ASM[A-Za-z0-9]{0,}|asm_d[000-999]|ora_d[000-999] -a "false" -p 9999 -o /opt/imperva/ragent/var/db_discovery_oracle.txt -ipc
基本上,Imperva Cyber使用相同的方式來發現Oracle資料庫,但它將關鍵字{}pmon_{_}放在命令行中,並且我們的函數不處理包含Imperva Networks命令的輸出井。
Resolution
針對排定的 Oracle 備份問題,您可以執行手動備份作為因應措施。出現此問題的原因是 Python 無法處理具有空節的 INI 格式配置檔,例如“[]”。此問題可以追溯到 addon.cfg 檔案,其中包含空白區段。19.18 版本和下一個 19.17 修補程式版本中將會提供修正。如果您使用的是 19.16 版本且不打算升級,請聯絡 Dell 支援以取得進一步協助並要求修補程式。
Affected Products
PowerProtect SoftwareArticle Properties
Article Number: 000228923
Article Type: Solution
Last Modified: 13 Feb 2025
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.