Team,
We have logshipping configued with generic setup. And when the restore job is running against standby database;only a portion of the log backups are being restored and the standby database is coming back from restoring mode to standby mode in
middle of restoe and the restore job is failing as all backups are not being restore. below is the log file of the restore job; can anyone help me out here ?
----- Log file -----
Microsoft (R) SQL Server Log Shipping Agent
[Assembly Version = 10.0.0.0, File Version = 10.0.5500.0 ((govi_PCU_Main).110922-0336 )]
Microsoft Corporation. All rights reserved.
2016-03-31 23:26:29.33
----- START OF TRANSACTION LOG RESTORE -----
2016-03-31 23:26:29.55
Starting transaction log restore. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:26:29.56
Retrieving restore settings. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:26:29.60
Retrieved common restore settings. Primary Server: 'REMSQLCLUS', Primary Database: 'JKCFlow', Backup Destination Directory: '\\CMSI-UADPRD01\Logshipping_JKCFlow', File Retention Period: 10080 minute(s)
2016-03-31 23:26:29.61
Retrieved database restore settings. Secondary Database: 'JKCFlow', Restore Delay: 0, Restore All: True, Restore Mode: Standby, Disconnect Users: True, Last Restored File: \\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325130000.trn,
Block Size: Not Specified, Buffer Count: Not Specified, Max Transfer Size: Not Specified
2016-03-31 23:26:29.86
Disconnecting users. Secondary DB: 'JKCFlow'
2016-03-31 23:26:34.86
Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325131501.trn'
2016-03-31 23:26:41.67
Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325133000.trn'
2016-03-31 23:28:27.14
Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325201500.trn'
2016-03-31 23:28:47.17
*** Error: Could not apply log backup file '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325203001.trn' to secondary database 'JKCFlow'.(Microsoft.SqlServer.Management.LogShipping) ***
2016-03-31 23:28:47.17
*** Error: Exclusive access could not be obtained because the database is in use.
RESTORE LOG is terminating abnormally.(.Net SqlClient Data Provider) ***
2016-03-31 23:28:47.98
*** Error: The log backup file '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325203001.trn' was verified but could not be applied to secondary database 'JKCFlow'.(Microsoft.SqlServer.Management.LogShipping)
***
2016-03-31 23:28:48.04
Deleting old log backup files. Primary Database: 'JKCFlow'
2016-03-31 23:28:49.13
The restore operation completed with errors. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:28:49.21
----- END OF TRANSACTION LOG RESTORE -----
Exit Status: 1 (Error)