November 17, 2014 at 5:20 am
Hi
I am new to SQL server DBA, i am started learning SQL server 2008r2 DBA. i have one question on disaster recovery. below is the scenario.
Database: SQL Server 2008R2
1. Every sunday will take FULL database backup
2. Every Wednesday will take DIFFERENTIAL Backup
3. Every day every one hour transactional log backup.
my question is:
on Friday 9:30AM database was crashed and we need to recover the database without data loss, because on Friday 9AM log backup was completed so next log backup is 10AM.
in this scenario how can we recover the database without data loss.
please explain me on this.
Regards,
BSL
November 17, 2014 at 5:34 am
Where would you start with that one yourself? We can advise but it would be good to see how much you have already worked out.
November 17, 2014 at 5:34 am
Depends on the type of disaster.
If the log file is intact and SQL is still running, you can take a tail-log backup to get the data up to 9:30. If the log file was destroyed, then the best you can do is to restore to the last log backup.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 17, 2014 at 5:49 am
This looks like a (sample-)question for an exam. The answer is:
- take a tail log backup
- restore the last FULL backup (using NORECOVERY)
- restore the last DIFF backup (using NORECOVERY)
- restore all LOG backups since the last DIFF backup (using NORECOVERY)
- restore the TAIL backup (using RECOVERY)
November 17, 2014 at 8:19 am
HanShi (11/17/2014)
This looks like a (sample-)question for an exam. The answer is:
Yeah- that's why I didn't want to spoon-feed the answer :-D.
November 17, 2014 at 1:53 pm
Beatrix Kiddo (11/17/2014)
HanShi (11/17/2014)
This looks like a (sample-)question for an exam. The answer is:Yeah- that's why I didn't want to spoon-feed the answer :-D.
I hope the OP is learning from (researching) my answer and not blindly take it for granted
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply