Computer Associates SQLSTQ99000600 Microsoft SQL Guide - Page 68
Perform an Offline Torn Restore Using Microsoft SQL Server 2005 or 2008
UPC - 757943257441
View all Computer Associates SQLSTQ99000600 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 68 highlights
Perform an Offline Torn Page Restore Using Microsoft SQL Server 2005 or 2008 Perform an Offline Torn Page Restore Using Microsoft SQL Server 2005 or 2008 Microsoft SQL Server 2005 and 2008 have the ability to detect when the data in the database has been damaged and isolate the damage at the data page level. You can find the current list of known damaged pages in the [suspect_pages] table of system database [msdb], at any point of time. In addition to torn page detection and isolation, SQL 2005 also introduces the ability to perform a restore in which only those data pages which are damaged are overwritten. This will allow you to bring a database which is slightly damaged back into operation quickly. Note: Do NOT take the database offline before you start this procedure. To perform an offline torn page restore using Microsoft SQL Server 2005 1. Change to Full Recovery Model, if the database is using the Simple Recovery Model. 2. (Optional) Perform a Database Consistency Check (DBCC CheckDB) on the database to locate any additional damaged pages beyond the one already reported. This can be done as part of step #4. 3. Disconnect all clients using the database. (Otherwise, the following step will fail). 4. Perform a Transaction Log backup with the Backup only the log tail and leave the database in an unrecovered mode (Log Tail) option. If you have not performed step 2 separately, you should also select the Database Consistency Check Before Backup option and Continue Backup if DBCC Fails option. 5. Perform an Offline Torn Page Repair Restore of the database as follows: a. Open the Restore Manager. b. On the Source tab, use the Restore By Tree view to find and select the database. c. Open Agent Option. d. Confirm that Automatic Selection is selected. e. Under Subset, select Torn Page Repair - Offline. f. Under Recovery Completion State, select Leave database operational. g. (Optional) You may select a Database Consistency Check after the restore. h. Click OK. i. On the Destination tab, select Restore to Original Location, if it is not selected. 68 Agent for Microsoft SQL Server Guide