如果資料庫封存記錄組態為空白,Avamar DB2 線上備份會失敗,db2diag.log 會顯示 SQL2413N
Summary: 如果線上 Avamar DB2 備份的任何目標資料庫尚未準備封存記錄組態,備份會失敗並顯示錯誤。 在一個範例中,預設的 DB2「SAMPLE」測試資料庫已新增至資料集。資料庫尚未針對線上備份做好準備,且未包含任何使用者資料。
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
db2diag.log 可能包含 SQL2413N 訊息,指出其中一個目標資料庫處於不正確的線上備份狀態。
使用此命令檢查封存記錄的資料庫組態:
2023-04-10-11.30.14.627550+480 E1599095A1002
水準:嚴重 PID:38404382 TID:3604 PROC:db2sysc 0
實例:db2inst1 節點:000 DB:範例 APPHDL:0-14367
PPID:*LOCAL.db2inst1.230410033043 AUTHID:DB2INST1 HOSTNAME:db2host
EDUID:3604 EDUNAME:db2agent (SAMPLE) 0
功能:DB2 UDB、資料庫公用程式、sqlubInitCheck、probe:928
消息:不允許使用 SQL2413N 線上備份,因為資料庫無法復原或備份擱置中狀況有效。
使用此命令檢查封存記錄的資料庫組態:
db2 get db cfg for | grep -i logarchmeth
第一個記錄封存方法 (LOGARCHMETH1) = 關閉
logarchmeth1 (LOGARCHOPT1) 的選項 =
第二個記錄封存方法 (LOGARCHMETH2) = 關閉
logarchmeth2 的選項 (LOGARCHOPT2) =Cause
未遵循 DB2 指南中「準備資料庫備份」的步驟。
DB2 包含不應包含在備份中的「SAMPLE」資料庫。使用者可能已準備主要資料庫,但不是這個範例資料庫。
在這種情況下,記錄會顯示 SAMPLE 作為目標:
DB2 包含不應包含在備份中的「SAMPLE」資料庫。使用者可能已準備主要資料庫,但不是這個範例資料庫。
在這種情況下,記錄會顯示 SAMPLE 作為目標:
2023-04-10 14:23:13 avdb2 Info : target[15]=db2inst1/SAMPLE
Resolution
除非使用者希望備份目標,否則請從目標清單中移除 SAMPLE 資料庫。
使用 Avamar DB2 指南的步驟來設定所有目標資料庫記錄設定,然後再試一次備份。請參閱「準備備份資料庫」一節。
如果備份持續失敗,請收集下列內容以供 Dell 技術支援部門檢閱:
使用 Avamar DB2 指南的步驟來設定所有目標資料庫記錄設定,然後再試一次備份。請參閱「準備備份資料庫」一節。
如果備份持續失敗,請收集下列內容以供 Dell 技術支援部門檢閱:
- 另一組備份記錄
- 顯示資料庫 記錄組態 參數已設定的輸出
- 另一個 db2diag.log
Affected Products
Avamar Plug-in for IBM DB2, Avamar ServerArticle Properties
Article Number: 000212572
Article Type: Solution
Last Modified: 02 Jun 2023
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.