Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

假設您的資料庫在 Microsoft SQL Server 2014 中有一個記憶體優化的檔組。 事務記錄記錄可能會持續變大,而且您無法截斷或收縮記錄。 如果您遇到這個問題,您會看到下列問題:

  • Sys. 資料庫目錄視圖報告 log_reuse_wait_desc 為「XTP_CHECKPOINT」。

    Select name, log_reuse_wait_desc from sys.databases where name='<DatabaseName>'
  • 受影響的資料庫上的手動檢查點操作會失敗,而且您會收到下列錯誤訊息:

    Msg 41315、Level 16、State 4、資料行 NCheckpoint 操作在資料庫 <資料庫名稱> 中失敗。

  • 您找不到與受影響的資料庫對應的離線檢查點執行緒。

    Select db_name(database_id) as DatabaseName, * from sys.dm_exec_requests where command = 'XTP_OFFLINE_CKPT'
  • 查詢受影響之資料庫的記憶體中 OLTP 檢查點作業的統計資料每一欄都會傳回0 :

    Select * from sys.dm_db_xtp_checkpoint_stats

解決方案

此問題首先是在 SQL Server 的下列累積更新中修正:

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 我們建議您下載並安裝最新的 SQL Server 累積更新:

因應措施

若要解決此問題,請將受影響的資料庫設為離線,然後重新連線,或回收 SQL Server 的實例。注意事務記錄記錄可能會被截斷或 shrank。 不過,這個問題可能會在套用修正程式後再次發生。

狀態

Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×