Click here to Skip to main content
15,887,676 members
Home / Discussions / Database
   

Database

 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 1:42
Member 1026351910-Jan-14 1:42 
QuestionRe: stored procedures in mysql Pin
GuyThiebaut10-Jan-14 1:51
professionalGuyThiebaut10-Jan-14 1:51 
AnswerRe: stored procedures in mysql Pin
Wayne Gaylard10-Jan-14 1:50
professionalWayne Gaylard10-Jan-14 1:50 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 18:24
Member 1026351910-Jan-14 18:24 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 18:26
Member 1026351910-Jan-14 18:26 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 19:16
Member 1026351910-Jan-14 19:16 
GeneralRe: stored procedures in mysql Pin
GuyThiebaut10-Jan-14 23:26
professionalGuyThiebaut10-Jan-14 23:26 
QuestionLog shipping of SQL2012 databases failing Pin
Chris Quinn8-Jan-14 22:33
Chris Quinn8-Jan-14 22:33 
In my environment I have two servers that host several production databases each - for this example I shall call them PROD1 and PROD2

I also have two servers that host logshipped copies of the production databases - one for reporting by users, the second for report development by the IT team. These I shall call REP1 and REP2.

The setup is as follows:
PROD1 - Logships 4 databases to REP1, logships same 4 databases to REP2 - databases on REP1 and REP2 set to Restore with Standby
PROD2 - Logships 4 other databases to REP1, logships same 4 databases to REP2 - databases on REP1 and REP2 set to Restore with Standby

Logshipping copy jobs are set to copy the transaction logs to a NAS device, to different folders for each of the reporting servers.

REP1 and REP2 therefore each host 8 logshipped copies of the production databases, set to Standby/Readonly

Recently, 2 of the logshipping restore jobs from PROD1 to REP1 have started to fail on a regular basis, and the equivalent two jobs, plus two of the jobs from PROD2 to REP2 have started failing on REP2.

The job histories for the failing jobs don't show aas failed jobs, as the database connection of the jobs seems to be lost, meaning that logging of the rrors fails.

The error in the history are as follows:

Date		09/01/2014 07:30:00
Log		Job History (LSRestore_PROD1_dBFirst)

Step ID		1
Server		REP1
Job Name		LSRestore_PROD1_dBFirst
Step Name		Log shipping restore log job step.
Duration		00:01:56
Sql Severity	0
Sql Message ID	0
Operator Emailed	
Operator Net sent	
Operator Paged	
Retries Attempted	0

Message
2014-01-09 07:31:55.93	*** Error: Could not apply log backup file '\\nas2\dbbackups\TransactionLog\DBFirst_20140108210000.trn' to secondary database 'ReportdbFirst'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-01-09 07:31:55.93	*** Error: An error occurred while processing the log for database 'ReportdbFirst'.  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 'ReportdbFirst' (13: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 'ReportdbFirst', file 'livesystem_Data' on file 1.
Processed 1 pages for database 'ReportdbFirst', file 'livesystem_Log' on file 1.(.Net SqlClient Data Provider) ***
2014-01-09 07:31:55.93	*** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-01-09 07:31:55.93	*** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-01-09 07:31:55.93	Skipping log backup file '\\nas2\dbbackups\TransactionLog\dbFirst_20140108210000.trn' for secondary database 'ReportdbFirst' because the file could not be verified.
2014-01-09 07:31:55.93	*** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-01-09 07:31:55.93	*** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***


The database is left in "Restoring" mode and cannot then be used for reporting.

I have tried all sorts of things - introducing delays between the copy and restore jobs, moving the copy locatios to physical drives on the servers etc, but it still happens at least once per day, meaning I have to backup and restore the production databases manually to allow users/developers to work with the data.

Anyone any ideas? I have googled extensively and found several people reporting the same problems, but no working solutions.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================

AnswerRe: Log shipping of SQL2012 databases failing Pin
jschell12-Jan-14 9:17
jschell12-Jan-14 9:17 
GeneralRe: Log shipping of SQL2012 databases failing Pin
Chris Quinn12-Jan-14 20:55
Chris Quinn12-Jan-14 20:55 
GeneralRe: Log shipping of SQL2012 databases failing Pin
jschell13-Jan-14 9:07
jschell13-Jan-14 9:07 
QuestionQuery in SQL Server or Oracles Pin
mrkeivan8-Jan-14 22:22
mrkeivan8-Jan-14 22:22 
QuestionRe: Query in SQL Server or Oracles Pin
Jörgen Andersson8-Jan-14 22:34
professionalJörgen Andersson8-Jan-14 22:34 
AnswerRe: Query in SQL Server or Oracles Pin
mrkeivan9-Jan-14 10:28
mrkeivan9-Jan-14 10:28 
GeneralRe: Query in SQL Server or Oracles Pin
Mycroft Holmes9-Jan-14 11:42
professionalMycroft Holmes9-Jan-14 11:42 
AnswerRe: Query in SQL Server or Oracles Pin
Jörgen Andersson11-Jan-14 10:00
professionalJörgen Andersson11-Jan-14 10:00 
GeneralRe: Query in SQL Server or Oracles Pin
mrkeivan14-Jan-14 11:48
mrkeivan14-Jan-14 11:48 
Questionhow to use sub report in rdlc Pin
mhd.sbt6-Jan-14 22:12
mhd.sbt6-Jan-14 22:12 
Question[solved] unknown syntax of stored procedure Pin
delosb6-Jan-14 4:33
delosb6-Jan-14 4:33 
AnswerRe: unknown syntax of stored procedure Pin
Peter Leow6-Jan-14 5:00
professionalPeter Leow6-Jan-14 5:00 
GeneralRe: unknown syntax of stored procedure Pin
delosb6-Jan-14 5:12
delosb6-Jan-14 5:12 
GeneralRe: unknown syntax of stored procedure Pin
Peter Leow6-Jan-14 5:20
professionalPeter Leow6-Jan-14 5:20 
Questioni want to write a optimal query for a complex problem Pin
mhd.sbt5-Jan-14 22:32
mhd.sbt5-Jan-14 22:32 
QuestionRe: i want to write a optimal query for a complex problem Pin
Jörgen Andersson6-Jan-14 1:41
professionalJörgen Andersson6-Jan-14 1:41 
QuestionHow to loop or something a temp distinct table to sum up the totals Pin
jkirkerx3-Jan-14 10:38
professionaljkirkerx3-Jan-14 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.