HP 7450 Application Software Suite Microsoft SQL Media LTU Performing a Point-of-Failure Recovery

Page 70

NOTE: Point-of-failure recovery only supports a file copy restore at the database level.

Determining Whether You Can Perform a Point-of-Failure Recovery

You can perform a point-of-failure recovery, in which a database is completely recovered up to the point of the failure, if the following are all true:

You have performed a full backup of the SQL database.

You have subsequently used the SQL backup utility to perform one or more transaction log backups.

You have access to undamaged transaction log backups and active transaction logs (i.e., even if one or more transaction log backups are damaged, undamaged copies of these backups exist).

NOTE: A transaction log backup is a copy of all the log records written to the live transaction log after the last full database backup or the last transaction log backup. If any transaction log backups within the sequence are missing, the database can only be restored to the last consecutive backup that exists in the sequence, and you cannot perform a full recovery.

For more information on how to roll a database forward using a transaction log, see:

http://msdn.microsoft.com/en-us/library/ms189596.aspx

Performing a Point-of-Failure Recovery

When you apply the backed-up transaction log to a database that has been restored using a virtual copy, the system uses the STOPAT option to roll forward the database to a specific point in time.

To roll forward the transaction log, you can use either SQL Server Management Studio or a command line tool such as OSQL. For example:

To perform a point-of-failure recovery:

1.Locate the most recent consistent full backup and determine the following information:

Timestamp (e.g., 010106000000)

Server name (e.g., SQLserver01)

SQL instance name (e.g., SQLInstan01)

Database name (e.g., northwind)

2.At the command prompt, enter the following:

RMSql.exe restore -s server name -i SQL instance name -d database name -t timestamp -norecovery

For example:

RMSql.exe restore -sSQLserver01 -iSQLInstan01 -dnorthwind -t010106000000 -norecovery

70 Recovery for Microsoft SQL Server

Image 70
Contents User’s Guide Documentation Contents Configuring Backup Software Using the Recovery Manager GUIRemote Copy for Recovery Manager Using the Recovery Manager CLIRecovery for Microsoft SQL Server Troubleshooting Event MessagesRelated Documents IntroductionTypographical Conventions Advisories Windows Server Requirements Overview of Recovery ManagerSystem Requirements Additional System RequirementsRecovery Manager Requirements Running Recovery Manager on a Japanese OSFeatures Supported Features Not Supported Microsoft Volume Shadow Copy ServiceSupported VSS Components How HP 3PAR VSS Software Works with Microsoft SQL ServerRecovery Manager Layout Overview of Recovery Manager Upgrading to Recovery Manager 4.2.0 for SQL Installation and DeinstallationPre-Installation Steps Installing Recovery Manager Verifying the Installation Understanding the RegistryDeinstalling Recovery Manager Configuring the SQL Database Configuring Recovery ManagerConfiguring Recovery Manager Configuring Mount Functionality Configuring Recovery Manager PoliciesGrouping Volumes into Autonomic Groups Testing SQL Connectivity Volume SetsConfiguring the Host Computer and the HP 3PAR Storage System Troubleshooting SQL ConnectivityFormatting Partitions on a New HP 3PAR Vlun Windows ServerOverview Configuring Backup SoftwareSetting Up Symantec NetBackup Before You BeginSetting Up HP Data Protector Cell Manager Access Configuring HP Data ProtectorSetting Up the HP Data Protector Backup Specification RequirementsUsing HP Data Protector Using Your Backup SoftwareUsing Symantec NetBackup RM installation location\log\nbulog\databasetimestamp.logOpening the Recovery Manager GUI Using the Recovery Manager GUIOverview of the Recovery Manager GUI Closing the Recovery Manager GUIUpdating Registration after Server Modification How Recovery Manager Policies Work Setting the Recovery Manager PolicyUnregistering a SQL Server Instance Setting Recovery Manager Policies Retention Time RestrictionsConfiguring Email Notifications Modifying the Policy for a Virtual CopyHow Virtual Copy Creation Works Deleting Email ConfigurationsCreating Virtual Copies Manually Creating a Virtual CopyCreating Remote Virtual Copies Scheduling Automatic Virtual CopiesAutomating Tasks Scheduling Automated Tasks with Task SchedulerMounting a Virtual Copy Managing Automated Tasks with Task ManagerUnmounting a Virtual Copy Manually Creating Backups at the Instance or Database LevelBacking Up a Virtual Copy Scheduling Automatic Backups of an Instance or Database Restoring Instances, Databases, and Volumes Removing a Backup from the RepositoryCreating a Backup of a Virtual Copy Restoring an Instance or Database with Volume Restore Restoring an Instance or Database with File Copy RestoreRestoring an Instance or Database from a Backup Analyzing and Synchronizing the RepositoryRemoving a Virtual Copy Viewing Event Message DescriptionsRecovery Manager for SQL Server Command Line Interface CLI Using the Recovery Manager CLIRecovery Manager Commands SQL Server RMSql analyzeRMSql analyze -s SQL server -sync -f SyncRMSql backup Example RMSql create RMSql create -s SQLServer -d test RMSql create -s SQLVirtualServer -d testUsing the Recovery Manager CLI RMSql deletebackup RMSql deletebackup -s server1 -d db1 -tRMSql display RMSql display -s server1RMSql listbackup RMSql mount Database virtual copy limit RMSql policyInstance virtual copy limit RMSql policy -n 5 -s SQL server Retain timehHdDRMSql policy -exp 30d -s SQL server Recovery Manager Commands RMSql portconfig -n RMSql portconfigRMSql portconfig -n number -s WindowsHost RMSql portconfig -n 9999 -s WindowsHostRMSql remove RMSql remove -s SQL server -t timestampWindowsHost RMSql reportRMSql report -s WindowsHost -output OutputDirectory RMSql report -s Grampus -output c\MyReportRMSql repository -a alter location -r RMSql repositoryRMSql repository -a d\3parvv SystemDrive\3parSnapshot by default RMSql restoreAltLocation RMSql restore -snap -s server1 -d testdb -t NorecoveryRMSql restore -s server1 -d testdb -t SnapUsing the Recovery Manager CLI RMSql setvc RMSql setvc -s server1 -t 020409162103 -exp 2h RMSql setvc -s server1 -t 020409162103 -exp 30dRMSql timeconfig -prt RMSql timeconfigRMSql timeconfig RMSql timeconfig -bktRMSql unmount Running Recovery Manager as a Scheduled JobScheduling an Automated Task in Windows RMSql unmount -s SQL server -t timestampFor example Recovering Data with HP 3PAR Recovery Manager Recovery for Microsoft SQL ServerMicrosoft SQL Server Recovery Models Preparing for the Recovery ProcessRecovering All Data with Point-of-Failure Recovery Performing a Point-of-Failure Recovery Recovering All Data with Point-of-Failure Recovery Remote Copy for Recovery Manager How Remote Copy WorksSetting Up Remote Copy Support for Remote Copy Modes and Policies Setting Up Remote Copy Volume GroupsSetting Up a Remote Copy Volume Group for Databases Support for GeoCluster for Microsoft WindowsRecovering a SQL Database from a Remote Copy Backup Server Setting Up a Remote Copy Volume Group for InstancesServer Virtualization Environments VMWare and EgeneraTroubleshooting Installpath\NetBackup\db\ Installpath\NetBackup\db\altnames\No.RestrictionsEvent Messages Event ID Event ID Event ID Event ID Provcfg conn -syncrc Yes