The transaction log for database is full due to 'OLDEST_PAGE'

When I see the 'OLDEST_PAGE' in log_reuse_wait_desc column and not allowing to me to shrink the log file of database I followed the below steps

1) When you see 'OLDEST_PAGE' run CHECKPOINT on that particular database

2) Take the Transaction log backup of that particular database

3) Try to shrink the log file of database

These steps worked for me when I encountered this issue in my environment.


Comments

Popular posts from this blog

Getting SQL Server services info from multiple servers through Powershell

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out