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


Suspect production database


Suspect production database

Author
Message
coolchaitu
coolchaitu
SSCertifiable
SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)

Group: General Forum Members
Points: 7089 Visits: 1506

Good Morning Experts,

We have a production database that has gone into suspect state. What are the step-by-step process to fix it without any data loss. Thanks in advance


ALZDBA
ALZDBA
SSC Guru
SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)SSC Guru (107K reputation)

Group: General Forum Members
Points: 107146 Visits: 9299
First of all: keep calm
- What's registered in the SQLServer errorlog file ?

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
NorthernSoul
NorthernSoul
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4603 Visits: 7734
Do you have good backups including transaction logs?

Thanks
GilaMonster
GilaMonster
SSC Guru
SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)

Group: General Forum Members
Points: 833048 Visits: 48499
Restore from backups (full + log should get you back up with no data loss)

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


coolchaitu
coolchaitu
SSCertifiable
SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)

Group: General Forum Members
Points: 7089 Visits: 1506
GilaMonster - Tuesday, September 12, 2017 1:17 AM
Restore from backups (full + log should get you back up with no data loss)

Hi Gail,
I am not able to take tail log backup. So , there will be data loss, correct?

Steve Jones
Steve Jones
SSC Guru
SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)SSC Guru (534K reputation)

Group: Administrators
Points: 534809 Visits: 20701
Potentially. If you can't take a tail log backup, any changes not in data files will be lost.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)

Group: General Forum Members
Points: 783327 Visits: 45901
coolchaitu - Tuesday, September 12, 2017 1:21 AM
GilaMonster - Tuesday, September 12, 2017 1:17 AM
Restore from backups (full + log should get you back up with no data loss)

Hi Gail,
I am not able to take tail log backup. So , there will be data loss, correct?


Why not. What's the problem there?

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
coolchaitu
coolchaitu
SSCertifiable
SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)SSCertifiable (7.1K reputation)

Group: General Forum Members
Points: 7089 Visits: 1506
Jeff Moden - Tuesday, September 12, 2017 8:47 AM
coolchaitu - Tuesday, September 12, 2017 1:21 AM
GilaMonster - Tuesday, September 12, 2017 1:17 AM
Restore from backups (full + log should get you back up with no data loss)

Hi Gail,
I am not able to take tail log backup. So , there will be data loss, correct?


Why not. What's the problem there?

Hi Jeff,
Can we take tail log backup when the database is in suspect state?

GilaMonster
GilaMonster
SSC Guru
SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)SSC Guru (833K reputation)

Group: General Forum Members
Points: 833048 Visits: 48499
Have you tried?

Or tried a search? https://www.sqlskills.com/blogs/paul/disaster-recovery-101-backing-up-the-tail-of-the-log/

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


Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)SSC Guru (783K reputation)

Group: General Forum Members
Points: 783327 Visits: 45901
coolchaitu - Tuesday, September 12, 2017 8:56 AM
Jeff Moden - Tuesday, September 12, 2017 8:47 AM
coolchaitu - Tuesday, September 12, 2017 1:21 AM
GilaMonster - Tuesday, September 12, 2017 1:17 AM
Restore from backups (full + log should get you back up with no data loss)

Hi Gail,
I am not able to take tail log backup. So , there will be data loss, correct?


Why not. What's the problem there?

Hi Jeff,
Can we take tail log backup when the database is in suspect state?


A really old post from Gail Shaw appears to suggest that you can (I've not had and am not looking forward to the opportunity to test it BigGrin ). I hope she shows up on this thread to confirm. The thread is 7 years old.
https://www.sqlservercentral.com/Forums/1027027/Tail-log-backup-is-failing

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
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