Solved

Database restore

Posted on 2016-09-26
8
94 Views
Last Modified: 2016-10-20
We have centralized database (SQL server 2000) where data gets consolidated from distributed databases (databases on remote branches - SQL Server 2008). Two of the remote branches are failed as the database servers are crashed and we have back up of a couple of days back (due to some issues current back up is corrupt) which we have restored and to bring the those databases on current state, we are applying the data from data transfer files sent by those databases to the centralized database. This process is taking time as the data transfer files are quite huge in numbers.

All the database servers are proper in terms of hardware requirements for normal operations but these applying of files on databases is taking time and with current rate we have estimated  around 36 hours. Our customer is not agreeing with that much down time for those branches as those are one of the critical branches for their business operations. Is there any way we can expedite the data reading and applying process of files for those databases?
0
Comment
Question by:A D
8 Comments
 
LVL 48

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 125 total points
ID: 41815547
It will help if you share with us the import process.
Are you using BCP, SSIS, Linked Servers, a 3rd party application, ...?
There are any validation and transformation tasks during the process?
The destination tables has triggers enabled?
1
 

Author Comment

by:A D
ID: 41815555
We are using a in-house developed (developed around 10 years back) VB utility which has few validations to check transfer partner id in table etc.. Yes, destination databases has triggers too. Not exactly sure what they do.
0
 
LVL 48

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 125 total points
ID: 41815563
It would worth to review the VB code. I guess isn't tuned for SQL Server 2008.
Also check what triggers do. They may do some validations and run stored procedures that can take time to execute.
1
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 26

Accepted Solution

by:
Zberteoc earned 250 total points
ID: 41816109
Simply put there is nothing you can do at this point. If you try to tweak with the import apps or SQL code you may very well do some mistakes and compromise the whole data, let alone that it may take you even more than 36 hours. I would let the process finish.

Going further I would recommend you to upgrade the centralized server, which being a 2000 version could be a problem by itself when it comes to performance. I know is a long shot but you can't wait for the disaster to happen in order to take measures. Also there is a need for some form of high availability configuration or at least a better maintenance plans in order to avoid these kind of situation with failure AND backup corruption.
1
 
LVL 35

Assisted Solution

by:David Todd
David Todd earned 125 total points
ID: 41816872
Hi,

I guess the question is: Can the data import be batched, or does the catch-up need to happen in one go? Can you put off the catch-up to the weekend where you'll have 48 hours or more?

I find that using Ola's Hallengren's maintenance script and running the integrity job before the backup a good way to find corruption before it occurrs in the backup.

HTH
  David

PS Time to upgrade off SQL 2000!
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 41837933
AD, any feedback will be appreciated.
Cheers
0
 

Author Comment

by:A D
ID: 41852009
Hi,

We have proposed to update SQL and also given most of the other inputs above to management. They are all cost induced hence will take time so currently living with the available workarounds.

Thanks a lot for all the inputs.
0
 

Author Closing Comment

by:A D
ID: 41852019
Thanks for all the inputs. During post incident review, we have used snippet from comments provided by you and presented a case to our management, as the most of the options suggested are cost induced, they may take time but certainly management is happy with the inputs provided and looked positive for the proposed changes. Hopefully situation will improve in coming future.

Thanks a lot again for your help :)
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Re-appearing SQL Server Agent jobs 7 29
CDC and AOG on MS SQL 2012 13 23
Parse this column 6 27
How to structure query with count aggregate 4 14
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question