SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Recovery database in critical situation?


Recovery database in critical situation?

Author
Message
SQL Galaxy
SQL Galaxy
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2538 Visits: 3465
Hi,

I want to know about database recovery in critical situation.

Configured full back-up on daily basis at 12:00 PM.

1. I have full back-up on Monday and followed by Transaction log

2 .Unfortunately I missed Tuesday full back-up. But I have transaction log till Tuesday at 3:00 PM.

Server was some issues at 3:30 PM, and data file not able to access due to disk level corruption happened and not able to take backup also.

In this scenario, how can we recovery database in point-in-time?

Thanks
ananda
GilaMonster
GilaMonster
SSC Guru
SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)

Group: General Forum Members
Points: 88288 Visits: 45277
Do you have every single transaction log backup from the Monday full backup up to now? Every single one without a gap?
Has the database been set to simple recovery at any point between the monday full backup and now?

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

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


SQL Galaxy
SQL Galaxy
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2538 Visits: 3465
Let me explain more details about data recovery in critical situation

As per backup Plan
1. Daily one Full backups at 12:00 AM configured
2. Every 30 minutes Transaction log backup configured

Critical situation 1

I have two set of full backup file (Monday and Tuesday) and on Tuesday transaction log backup file available till at 3:00 PM

On Tuesday, Server was some issues at 3:30 PM, and database not able access also not able take Tail log backup at event of server failure.

In this scenario, how can we recovery database in point-in-time?
For the data recovery, first restore Tuesday full backup and followed restore the all TLOG backup file till 3:00 PM.
So we accepted 30 minutes data loss and can able to restore the data till 3:00 PM only. Am I correct?

Critical situation 2

1. Unfortunately Tuesday full backup file missed.
2. Monday I have all transaction log backup and Full back-up, on Tuesday I have only transaction log backup’s till 3:00 PM.

On Tuesday, Server was some issues at 3:30 PM, and data file not able to access due to disk level corruption happened and database can accessible. But not able to take full and Tail log backups

In this scenario, how can we recovery database in point-in-time?

For the data recovery, LSN chain was broken due to Tuesday full backup. So how can restore the Tuesday TLOG backup’s files on followed by restore the Monday full backup.

Thanks
ananda
GilaMonster
GilaMonster
SSC Guru
SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)

Group: General Forum Members
Points: 88288 Visits: 45277
Case 1, correct. If you can't take a tail-log backup, then you can only restore to the last log backup you have.

Case 2, Full backups DO NOT and NEVER have broken the log chain. Ever. Restore Monday's full then all log backups up to the last one you have.

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

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


SQL Galaxy
SQL Galaxy
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2538 Visits: 3465
Thank you for confirmation,

Case 2. we can restore point in time recovery by using perivious day full backup also apply all second day tlogs backups file even if lost second day full backup.

So in this case 2. I have to take care all Sequential log backup files. so i could't resotre point in time If log chain broken between.

what could be reason log chain will be broken?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)

Group: General Forum Members
Points: 88288 Visits: 45277
SQL Galaxy (8/13/2014)
what could be reason log chain will be broken?


Missing log backup file (deleted) or the DB was switched to simple recovery sometime during that time period.

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

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


enriquemallon
enriquemallon
SSC Journeyman
SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)

Group: General Forum Members
Points: 91 Visits: 54
In such critical situation you must go with reliable and effortless recover tool.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search