修復 Domino 中損毀的 “Archive Profile” 文件
在使用 IBM Domino 的過程中,有時會遇到封存郵件時出現問題,例如錯誤訊息 “Document has been deleted”(文件已被刪除)或 “notes error file cannot be created”(無法建立 Notes 錯誤檔案)(Revove, n.d.; Experts-Exchange, 2007)。這些問題通常與損毀的 “Archive Profile”(封存設定檔) 文件有關。本篇文章將介紹如何透過刪除並重新建立該設定檔來解決此問題。
問題根源
根本原因在於 “Archive Profile” 文件損毁,導致封存功能異常 (Revove, n.d.)。常見的錯誤包括封存時顯示文件已被刪除,或是無法建立用來記錄錯誤的檔案。
臨時解決方案
雖然 IBM 官方未提供自動修復工具,但可以透過手動方式刪除並重新建立 “Archive Profile” 文件,以此來修復問題。以下步驟描述了如何操作:
- 建立新郵件
開啟 Lotus Notes 客戶端,建立一份新的郵件文件。 - 添加按鈕
在郵件文件中,使用 “CREATE | HOTSPOT | BUTTON” 添加一個按鈕。 - 編寫 LotusScript
將以下 LotusScript 代碼複製到按鈕的 Click 事件中:Sub Click(Source As Button) Set session= New NotesSession Set ws = New NotesUIWorkspace Dim db As notesdatabase Set db = session.currentdatabase Set profile = db.GetProfileDocument("Archive Profile") If Not profile Is Nothing Then Call profile.Remove(True) End If Messagebox "損毀封存設定檔已移除,下次開啟郵件資料庫時將自動重建。", 0, "已完成" End Sub - 儲存並關閉郵件
儲存郵件並關閉。 - 點擊按鈕
開啟剛才建立的郵件,點擊添加的按鈕。此操作将会删除现有的 “Archive Profile” 文件。 - 重新啟動郵件資料庫
關閉並重新開啟郵件資料庫。Domino 会自动重建 “Archive Profile” 文件。
注意:此方法未經官方支援,請在使用前備份您的資料,並確認您了解 Lotus Notes/Domino 的基本管理知識。
進階優化及維護 (選擇性)
除了重新建立 “Archive Profile” 之外,執行以下維護任務可以進一步優化郵件資料庫,避免類似問題再次發生:
- 執行郵件資料庫維護
在 Domino 伺服器上執行資料庫維護任務,例如使用 `ncompact -c` 指令壓縮資料庫 (Revove, n.d.)。 - 維護本機資料庫
在 Notes 的安裝目錄下,使用命令提示列執行以下指令:
ncompact -i -K mail.nsf
(其中 `mail.nsf` 是您的郵件資料庫檔案名稱)。
Lotus/HCL 官方的回應
根據 APAR LO40422 的資訊,這個問題已被回報給 Lotus (現在的 HCL) (IBM, 2010)。雖然最初的狀態是 “CLOSED UR5″,表示未完全重現問題,但這顯示官方已經知曉 “Archive Profile” 文件可能存在損毀的情形。對於那些遇到問題的使用者,上述的手動修復方法仍然有效。
结论
虽然 “Archive Profile” 文件的损坏问题并非普遍现象,但知道如何手动修复它可以帮助您快速恢复邮件封存功能。希望 Lotus/HCL 未来能在 Domino 的升级过程中加入自动修复机制,简化用户的维护工作。
參考文獻
- Revove. (n.d.). Fix Notes Error File Cannot Created When Attempting to Archive. Retrieved from https://www.revove.com/blog/fix-notes-error-file-cannot-created-when-attempting-to-archive/
- IBM. (2010). LO40422: ARCHIVE PROFILE DOCUMENT IS NEVER CREATED UNLESS USER CLICKS ON ACTION-ARCHIVE-SETTINGS. Retrieved from https://www.ibm.com/support/pages/apar/LO40422
- Experts-Exchange. (2007). Problems archiving on Lotus Notes error entry not found in index. Retrieved from https://www.experts-exchange.com/questions/21924438/Problems-archiving-on-Lotus-Notes-error-entry-not-found-in-index.html
“`


