|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, September 27, 2012 8:23 AM
Points: 19,
Visits: 69
|
|
Hi,
We have a log-shipping set up on the production server for reporting purpose. Unknowingly, I have set up a backup strategy which also includes trans-log backups. So, my log-shipping failed. Restoration job on the second server failed.
Is there any way I can get back the secondary database on Server2. Secondary Database is in (StandBy mode/Readonly)
Can anyone help me getting back my secondary server database back?
(I will be getting a daily full back up at 12AM and Tran-log backup for every hour)
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 5:05 PM
Points: 3,051,
Visits: 1,364
|
|
jjohnsqldba (9/7/2012) Hi,
We have a log-shipping set up on the production server for reporting purpose. Unknowingly, I have set up a backup strategy which also includes trans-log backups. So, my log-shipping failed. Restoration job on the second server failed.
Is there any way I can get back the secondary database on Server2. Secondary Database is in (StandBy mode/Readonly)
Can anyone help me getting back my secondary server database back?
(I will be getting a daily full back up at 12AM and Tran-log backup for every hour)
If you want to get your Log Shipping back and Running you may need to restore a Full backup again. In case you have all the transaction log backups from the moment your Secondary run out of synch, you can try restoring all the transaction log backups from your backup strategy combined with the log backups from Log Shipping. You should consider taking the transaction log backups out of your backup strategy and use the transaction log backups from Log Shipping. By using both you will need both log backups in case of a disaster (the ones from your backup strategy and the ones from Log Shipping).
Why would you like to backup the secondary database?
 My blog
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 6,826,
Visits: 11,951
|
|
Taking a differential backup from the primary and restoring it to the secondary will re-establish your log chain, just remember to supply the proper option on the restore (STANDBY or NORECOVERY). After the differential is applied to the secondary your existing setup will continue per the usual LS backup, LS copy and LS restore job schedules.
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 5:05 PM
Points: 3,051,
Visits: 1,364
|
|
opc.three (9/7/2012) Taking a differential backup from the primary and restoring it to the secondary will re-establish your log chain, just remember to supply the proper option on the restore (STANDBY or NORECOVERY). After the differential is applied to the secondary your existing setup will continue per the usual LS backup, LS copy and LS restore job schedules.
That will only work if he didn't take any full backups since he started with Log Shipping!
 My blog
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 6,826,
Visits: 11,951
|
|
Ignacio A. Salom Rangel (9/7/2012)
opc.three (9/7/2012) Taking a differential backup from the primary and restoring it to the secondary will re-establish your log chain, just remember to supply the proper option on the restore (STANDBY or NORECOVERY). After the differential is applied to the secondary your existing setup will continue per the usual LS backup, LS copy and LS restore job schedules.That will only work if he didn't take any full backups since he started with Log Shipping! Agreed. It sounds like he is in the midst of the issue though.
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 5:05 PM
Points: 3,051,
Visits: 1,364
|
|
opc.three (9/7/2012)
Ignacio A. Salom Rangel (9/7/2012)
opc.three (9/7/2012) Taking a differential backup from the primary and restoring it to the secondary will re-establish your log chain, just remember to supply the proper option on the restore (STANDBY or NORECOVERY). After the differential is applied to the secondary your existing setup will continue per the usual LS backup, LS copy and LS restore job schedules.That will only work if he didn't take any full backups since he started with Log Shipping! Agreed. It sounds like he is in the midst of the issue though.
I'm not sure about that, but if he has not make any new full backups your advice will save him some time
 My blog
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 6,826,
Visits: 11,951
|
|
Ignacio A. Salom Rangel (9/7/2012)
opc.three (9/7/2012)
Ignacio A. Salom Rangel (9/7/2012)
opc.three (9/7/2012) Taking a differential backup from the primary and restoring it to the secondary will re-establish your log chain, just remember to supply the proper option on the restore (STANDBY or NORECOVERY). After the differential is applied to the secondary your existing setup will continue per the usual LS backup, LS copy and LS restore job schedules.That will only work if he didn't take any full backups since he started with Log Shipping! Agreed. It sounds like he is in the midst of the issue though. I'm not sure about that, but if he has not make any new full backups your advice will save him some time  And if he has, your advice will be the way to go
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, September 27, 2012 8:23 AM
Points: 19,
Visits: 69
|
|
| Thank you for your time and particiapation. i restore the full backup and went on with your advice. it is back on action now. Thank you one more time.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 5:05 PM
Points: 3,051,
Visits: 1,364
|
|
jjohnsqldba (9/7/2012) Thank you for your time and particiapation. i restore the full backup and went on with your advice. it is back on action now. Thank you one more time.
You are very welcome!
 My blog
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:36 AM
Points: 5,242,
Visits: 11,263
|
|
Differentials can indeed be used to repair a LS scenario
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|