Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Gaps in tlogs Expand / Collapse
Author
Message
Posted Saturday, August 3, 2013 9:19 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 11:14 AM
Points: 19, Visits: 22
Ok, so here's the issue. We have a report server database that has been correctly been updating tlogs for years. A couple days ago, we shrunk the live database/log, and now we continue to receive "gaps" in the tlogs. Does anyone have any suggestions on how to resolve this? Should we somehow restore the entire report server database with the live database...and the tlog shipping will just kick in from there??
Post #1480694
Posted Saturday, August 3, 2013 2:25 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 42,812, Visits: 35,931
What do you mean by 'gaps in the tlogs'?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1480723
Posted Saturday, August 3, 2013 2:43 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, August 21, 2014 3:52 PM
Points: 5,988, Visits: 12,923
how did you shrink the log, what commands did you issue?

Are you saying log shipping is now broken due to missing lsns?

If so and you have not issued a full backup of the live database since the log truncate you can restart log shipping using a differential backup, else you will need to restore the secondary from a full backup (with norecovery), log shipping will then pick up again.


---------------------------------------------------------------------

Post #1480725
Posted Saturday, August 3, 2013 3:04 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 11:14 AM
Points: 19, Visits: 22
You hit the nail on the head. I ended up taking the full backup of the live DB (that occurred last night), restoring it to the report server DB, then restoring the log files up to the present. All seems good now! I'll keep an eye on it.

FYI: For me, the real secret was to RESTORE WITH STANDBY!!
Post #1480728
Posted Saturday, August 3, 2013 3:09 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, August 21, 2014 3:52 PM
Points: 5,988, Visits: 12,923
j2cagle (8/3/2013)
You hit the nail on the head. I ended up taking the full backup of the live DB (that occurred last night), restoring it to the report server DB, then restoring the log files up to the present. All seems good now! I'll keep an eye on it.

FYI: For me, the real secret was to RESTORE WITH STANDBY!!

thought I might have, The first log restore run via the log shipping jobs would have put the database into whatever mode you had set before (restoring or standby mode).


---------------------------------------------------------------------

Post #1480729
Posted Saturday, August 3, 2013 3:16 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 11:14 AM
Points: 19, Visits: 22
george sibbald (8/3/2013)
The first log restore run via the log shipping jobs would have put the database into whatever mode you had set before (restoring or standby mode).


I was thinking that it would do that, but I was impatient so forced it myself...
Post #1480730
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse