如何定位“Operating system error 32(failed to retrieve text for this error. Reason: 15105)”錯...
之前在這篇 “ ofollow,noindex"> Operating system error 32(failed to retrieve text for this error. Reason: 15105)” 部落格裡面,介紹了因為AWS的DMS的相關會話程序在讀取事務日誌備份中內容(跟普通的Replication有點不同),導致事務日誌備份出現Operating system error 32錯誤(The process cannot access the file because it is being used by another process)。最近又遇到了這個錯誤,那麼怎麼定位是那個事務日誌備份檔案被程序佔用了呢?
有兩種方式可以定位到那個事務日誌檔案被佔用,如下所示:
1: “ 資源監視器 ” (Resource Monitor)定位問題:
開啟 “ 工作管理員 ” , 在 “ 效能 ” 裡面選擇 “ 資源監視器 ” (Resource Monitor),在CPU模組,在 “ 關聯控制代碼 ” (Associated Handles)裡面搜尋對應資料庫名,就可以找到那個備份的事務日誌檔案被佔用了。不過能定位PID,但是定位不到對應的Windows thread ID
2: Process Explorer 定位
process Exploerer可以從官方網址下載,使用也額if簡單,如下所示,也能定位到那個檔案(這裡是事務日誌備份檔案被賬號),如下截圖所示,不過遺憾的是,這個工具也不能定位對應的Windows thread ID。
參考資料:
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer