Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Professional SQL Server High Availability and Disaster Recovery

You're reading from  Professional SQL Server High Availability and Disaster Recovery

Product type Book
Published in Jan 2019
Publisher Packt
ISBN-13 9781789802597
Pages 564 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Ahmad Osama Ahmad Osama
Profile icon Ahmad Osama
Toc

Table of Contents (9) Chapters close

Professional SQL Server High Availability and Disaster Recovery
Preface
1. Getting Started with SQL Server HA and DR 2. Transactional Replication 3. Monitoring Transactional Replication 4. AlwaysOn Availability Groups 5. Managing AlwaysOn Availability Groups 6. Configuring and Managing Log Shipping Appendix

Troubleshooting Common Log Shipping Issues


In this section, we'll look at few of the common problems that can occur in a log shipping environment and their solutions.

Exercise 70: Problem 1 – Middle of a Restore Error

Consider the following error:

Msg 927, Level 14, State 6, Line 9
Database 'Sales' cannot be opened. It is in the middle of a restore.

This issue occurs when the log shipping is configured in Standby mode with the Disconnect users at restore operation option enabled.

When a user transaction tries to read from the Standby secondary database, and at that time the restore job is restoring the transaction log, the user transaction terminates with this error.

Setup

To simulate the error, follow these steps:

  1. Execute the following query to change the database state of the Sales database at the secondary DPLHA, from NoRecovery to Standby mode. The query is the same as mentioned in the Changing the Database State at the Secondary section:

    -- To be run at the secondary - DPLHA
    -- Get the restore...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime