I have configured LS for 39 databases and scheduled to restore daily once in DR server and kept secondary DB in standby mode.All of sudden 5 databases started giving below errors and failing to restore after two days of configuration.And all 5 databases are now in restoring state.Tried restoring manually with standby mode but no luck. And these 5 databases cnages are not happening/rarely happening.2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 Skipping log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160925194230.trn' for secondary database 'QA_14_STG' because the file could not be verified.2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: Could not apply log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160926194230.trn' to secondary database 'QA_14_STG'.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 Skipping log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160926194230.trn' for secondary database 'QA_14_STG' because the file could not be verified.2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 The restore operation was successful. Secondary Database: 'QA_14_STG', Number of log backup files restored: 02016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 Deleting old log backup files. Primary Database: 'QA_14_STG'2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 The restore operation was successful. Secondary ID: 'e2f94e04-04d2-40e3-8f9d-7721425f949d'2016-09-26 23:02:06.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.39 *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not apply log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160923194230.trn' to secondary database 'QA_14_STG'.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: An error occurred while processing the log for database 'QA_14_STG'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.An error occurred during recovery, preventing the database 'QA_14_STG' (7:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.RESTORE LOG is terminating abnormally.Processed 0 pages for database 'QA_14_STG', file 'QA_14_STG' on file 1.Processed 0 pages for database 'QA_14_STG', file 'QA_14_STG_DF1' on file 1.Processed 1 pages for database 'QA_14_STG', file 'QA_14_STG_log' on file 1.(.Net SqlClient Data Provider) ***2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 Skipping log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160923194230.trn' for secondary database 'QA_14_STG' because the file could not be verified.2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not apply log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160924194230.trn' to secondary database 'QA_14_STG'.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 Skipping log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160924194230.trn' for secondary database 'QA_14_STG' because the file could not be verified.2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***2016-09-26 23:02:06.36 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***2016-09-26 23:02:06.36 *** Error: Could not apply log backup file 'd:\copy\QA_14_STG\QA_14_STG_20160925194230.trn' to secondary dataMsg 9004, Level 16, State 6, Line 1An error occurred while processing the log for database 'OLAP'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.Msg 3167, Level 16, State 1, Line 1RESTORE could not start database 'OLAP'.Msg 3013, Level 16, State 1, Line 1RESTORE DATABASE is terminating abnormally.Msg 3414, Level 21, State 1, Line 1An error occurred during recovery, preventing the database 'OLAP' (10:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
↧