PowerProtect: Oracle 예약 백업에 대한 addon.cfg 구성 파일의 구문 분석 오류 해결

Summary: Oracle 데이터베이스 백업과 함께 Dell EMC PPDM(PowerProtect Data Manager)을 사용하는 고객의 경우 예약 백업과 관련된 문제가 보고되었습니다. 그러나 임시 수동 백업은 문제없이 작동합니다. 근본 원인은 addon.cfg 파일([])의 빈 섹션으로 식별되었으며, 이는 getInstallOracleSidUser() 함수가 특정 commandco의 출력을 올바르게 처리하지 못한 결과입니다. 이 문제는 향후 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 Cyber 명령줄에서 제공됨 * 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 Cyber 명령은 잘 포함되어 있습니다.

Resolution

예약된 Oracle 백업 관련 문제의 경우 해결 방법으로 수동 백업을 수행할 수 있습니다. 이 문제는 Python이 "[]"와 같은 빈 섹션이 있는 INI 형식 구성 파일을 처리할 수 없기 때문에 발생합니다. 이 문제는 빈 섹션이 포함된 addon.cfg 파일로 거슬러 올라갈 수 있습니다. 수정 사항은 19.18 릴리스 및 다음 19.17 패치 릴리스에서 사용할 수 있습니다. 19.16 릴리스를 사용 중이고 업그레이드할 계획이 없는 경우 Dell 지원에 문의하여 추가 지원을 요청하거나 핫픽스를 요청하십시오. 

Affected Products

PowerProtect Software
Article 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.