If I have a log shipping scenario where a report runs for 30 minutes and the log shipping is set up for not killing the connection, and because of that, the restore will fail, the question is if all the accumulated transaction logs will be restored the next time the db is available for that (no connections open) ?
Sql-server – Accumulated logs – Log shipping SQL Server
high-availabilitylog-shippingsql server
Related Question
- SQL Server – Transaction Log Shipping Not Using Latest Log
- SQL Server – Combining Log Shipping and Regular Log File Backups
- Sql-server – Strange Log Shipping Error Message
- Sql-server – Problem Configuring Log Shipping for DR Server
- Sql-server – Log Shipping always fails, after a while
- SQL Server Log Shipping – Log Shipping Confusion
- Sql-server – Log Shipping Standby mode
- SQL Server Log Shipping Retention – Managing Log Shipping Retention in SQL Server
Best Answer
The log-shipping process includes 3 steps.
If we use stand-by, there are 2 option available disconnect user or go without disconnecting it. If we don't disconnect active sessions restore wouldn't begin until there's no active connection with the database.
In this case, steps 1 & 2 (backup & copy) will execute normally but restore will fail.
The log-shipping process wouldn't delete any backup file until it's older than the defined threshold.
Once there's no connection with the database it will restore all transaction log file greater then last LSN.
Thanks!