廣告

2024 年 3 月
 123
45678910
11121314151617
18192021222324
25262728293031

彙整

交易記錄檔已滿、爆掉;截斷交易記錄檔。(The transaction log for database ‘DB1’ is full. ;Transaction Log Truncation)

最近在看SQL備份的方式,找到了這篇文章,怕有些文章會消失,固完整轉貼保存,並標明出處: http://sharedderrick.blogspot.com/2009/03/transaction-log-for-database-is-full.html

 

交易記錄檔已滿、爆掉;截斷交易記錄檔。(The transaction log for database ‘DB1’ is full. ;Transaction Log Truncation)

本文僅討論當發生交易記錄檔已滿、爆掉時的災難處理方式,並未討論如何避免發生交易記錄檔已滿的作法,請參考「管理交易記錄」等相關主題。 http://technet.microsoft.com/zh-tw/library/ms345382.aspx 如何避免 SQL Server 資料庫的交易記錄檔超出預期大小 http://support.microsoft.com/kb/873235/zh-tw

若資料庫因故造成交易記錄檔已滿、爆掉,將導致無法執行新增、刪除等作業。

遇到的錯誤訊息:

view plaincopy to clipboardprint?

訊息 9002,層級 17,狀態 2,行 2 
資料庫 ‘db1’ 的交易記錄已滿。如果要了解為何無法重複使用記錄中的空間,請參閱 sys.databases 中的 log_reuse_wait_desc 資料行。 

Msg 9002, Level 17, State 2, Line 2 
The transaction log for […]