HP Software manual Drop invalid databases and database devices, Restore the msdb database

Page 61

4.If login IDs or devices have been added to or dropped from the master database since the last backup, those changes must be reapplied. Restart the server and reapply the changes manually or from saved batch files.

5.If databases have been created, expanded or shrunk since the last dump of master, those databases must be dropped and then restored.

6.If you have made many changes and have no recent dump, it is possible that by reloading master in some cases you can regain data in user databases that has been lost. This technique requires the use of DISK REINIT and DISK REFIT and can involve manual modifications to the master database tables.

Use DISK REINIT to recreate rows in sysdevices for all database devices that have been added after the most recent dump. DISK REINIT updates sysdevices just as DISK INIT does, but it does not format the physical disk file, so existing data is preserved.

Use DISK REFIT to recreate rows in sysusages and sysdatabases for all CREATE and ALTER DATABASE statements that were performed after the most recent dump.

DISK REFIT scans the physical file associated with each space that is allocated to databases. It also adds the corresponding sysdatabases entries. Some of the information is not reconstructed perfectly.

For example, the original virtual device number is not assigned, because it is not known. Instead, virtual device numbers are assigned sequentially. The database owner is not extracted while scanning the physical files; ownership is set to the system administrator. It is also not possible to determine how many sysusages entries originally existed. DISK REFIT inserts a separate entry for each different segment type.

When this is done, correct the entries made by DISK REFIT to sysdatabases and sysusages (if desired) and also add to syslogins any login IDs that were not retained. Then shut down and restart SQL Server.

CAUTION: Capturing the latest changes made to a database by using DISK REFIT and DISK REINIT to recreate the master database is possible, but it is preferable to keep the master database current by dumping it after creating or altering databases. Using DISK REFIT and DISK REINIT is a complicated process that can result in data loss because many of the changes made to a database often must be reconstructed manually in the master database. If you feel this technique is necessary, contact your primary support provider before beginning the recovery process.

Drop invalid databases and database devices

Use the SQL Enterprise manager to drop any invalid database devices and databases from the newly restored master database.

NOTE: If you are recovering from a disaster where you have lost a database device file, the master database you have just restored still contains a reference to it. Data Protector Express will not be able to restore any databases contained on the database device until the file is restored or the database device is dropped. If the database device is dropped, Data Protector Express will automatically recreate the device when a database contained on the device is restored.

Restore the msdb database

When restoring the msdb database, keep the following considerations in mind:

The msdb database supports SQL Executive and provides a storage area for scheduling information. The schedules that you implement using SQL Enterprise Manager are maintained in the msdb database. This includes such things as the tasks that you schedule from the Task Scheduling window, the automatic backups you schedule from the Database Backup/Restore

Working with Microsoft SQL Server 61

Image 61
Contents Data Protector Express User Guide Acknowledgments Contents Index Disaster RecoveryConcepts OverviewTerminology Overview Simple, Immediate Backup Restore to a Different Location Restore to a Different Location Using the Administrator Administering BackupMain Window Property Pages Missing FeaturesOpening Property Pages Viewing Data Protector Express status Using Quick Access from TaskbarManaging Data Protector Express Managing JobsMonitoring jobs SettingsManaging Alerts Managing LogsOther Commands About the Data Protector Express ServiceMicrosoft Windows and the Data Protector Express Server Linux and the Data Protector Express DaemonAbout the Data Protector Express Service Selecting Files Configuring Backup JobsSelecting Devices Schedule Settings ConfigurationEncryption Backup mode Mode SettingsAuto verify mode Type of Fixed RotationSplit File Write modeAuto format mode Interval SettingsScheduled Dates Media to be usedAdvanced Options Advanced SettingsLog Options Settings for WindowsExecution Barcode FilterSelecting Files Configuring Restore and Verify JobsSelecting Versions Restoring a file with a new name Restoring foldersRestoring files and folders to a different folder Advanced Restore Options Execution Options Advanced Verify OptionsBarcode Filter Options Selecting Devices for Jobs Working With DevicesDevice Properties Element status Device CommandsWorking With Devices Device Commands Working with Tape Libraries Installation and ConfigurationBarcode Filters Barcodes and MIC memory in cartridgeInitialization Process Media Management Sharing storage devices on a SANScheduling, Rotations, and Media Management Backup Schedule ConsiderationsMedia Sets Scheduling ConceptsIntervals Implications for Restoring Data Media Rotation Types Comparing rotation types Running Jobs with RotationsEncryption Encryption and CompressionCryptographic Algorithms Encryption Options PassphraseCompression Key ManagementWorking with Third-Party Applications Configuring a Microsoft Exchange ServerMicrosoft Exchange Server Supported PlatformsBacking up Microsoft Exchange Server Restoring Microsoft Exchange Databases System-level Disaster Recovery Disaster Recovery with Microsoft Exchange ServerPreparing to Restore the Microsoft Exchange Server Restoring the Microsoft Exchange MTA Database Mailbox Backup and RecoveryRestoring Microsoft Exchange Databases Backing Up Mailboxes ConfigurationRestoring Mailboxes RequirementsWorking with Microsoft SQL Server PowerShell AccessSupported Exchange Server versions Mailbox PermissionsMicrosoft SQL server concepts Configuring the Microsoft SQL ServerBacking up Microsoft SQL Server Restoring Microsoft SQL Server Microsoft SQL Server Databases and the backup modeRestoring Microsoft SQL Server user databases Restoring Microsoft SQL Server 2000 master databases Restoring Microsoft SQL Server master databasesCreate Database Alter Database Stop the Data Protector Express and SQL Server servicesRestore the master database from the most recent backup Restart SQL Server in single-user modeRebuild the master database Drop invalid databases Apply changes to the master databaseRestore the msdb database Start the Data Protector Express and SQL Server servicesRestoring Microsoft SQL Server 7 master databases Disk Mirror Disk Unmirror Disk Remirror Restart Microsoft SQL Server in single-user mode Drop invalid databases and database devices Windows SharePoint Services protection concepts Protecting Microsoft Windows SharePoint ServicesProtecting Windows SharePoint Services Restoring SharePoint Services Using Disaster Recovery with Windows SharePoint Services Working with Certificate ServicesBoot Media Disaster RecoveryImportant guidelines Preparing For a Disaster Advantage of Bootable Backup DevicesRestoring to dissimilar hardware Create bootable media Configuring Backups to Support Disaster RecoveryTest the media Disaster Recovery with Libraries Recovering From a DisasterDisaster Recovery Disaster recovery for Windows 2003, Windows XP and earlier Disaster recovery for LinuxLimitations Completing the Data RestoreMail Settings Backup Domain ConfigurationPerformance Settings Alert SettingsSetting a User Password Client Upgrade SettingsDomain Security OptionsJob Log options Advanced Job OptionsLog Type Log file formatsPre Execution Commands Job Pre-Post Execution CommandsMail log AuditingBarcode Filters for Jobs Post Execution CommandsLogs Advanced Job Options Contacting HP Support and other resourcesRelated information Typographic conventionsDocumentation feedback Index Index VSS
Related manuals
Manual 1 pages 61.46 Kb Manual 1 pages 6.39 Kb