ZDBIntegration.pdf

(4559 KB) Pobierz
HP OpenView Storage Data Protector ZDB Integration Guide
HP OpenView Storage Data Protector
Zero Downtime Backup Integration
Guide
for
Oracle
SAP R/3
Microsoft SQL Server
Microsoft Exchange Server
Microsoft Volume Shadow Copy Service
Manual Edition: November 2007
Manufacturing Part Number: B6960-96013
Release A.06.00
© Copyright 2007 Hewlett-Packard Development Company, L.P.
67156125.004.png 67156125.005.png
Legal Notices
©Copyright 2007 Hewlett-Packard Development Company, L.P.
Hewlett-Packard Company makes no warranty of any kind with regard
to this material, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose. Hewlett-Packard
shall not be liable for errors contained herein or for incidental or
consequential damages in connection with the furnishing, performance,
or use of this material.
This document contains proprietary information, which is protected by
copyright. No part of this document may be photocopied, reproduced, or
translated into another language without the prior written consent of
Hewlett-Packard. The information contained in this document is subject
to change without notice.
Microsoft® and MS Windows®, Windows® and Windows NT® are U.S.
registered trademarks of Microsoft Corporation.
Oracle® is a registered U.S. trademark of Oracle Corporation, Redwood
City, California.
UNIX® is a registered trademark of The Open Group
Hewlett-Packard Company shall not be liable for technical or editorial
errors or omissions contained herein. The information is provided “as is”
without warranty of any kind and is subject to change without notice.
The warranties for Hewlett-Packard Company products are set forth in
the express limited warranty statements for such products. Nothing
herein should be construed as constituting an additional warranty.
ii
67156125.006.png 67156125.007.png
Contents
1. Data Protector Oracle ZDB Integration
In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Backup and Restore Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Integration Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Oracle Backup Set ZDB Concept. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Backup Process for Oracle Backup Set ZDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Oracle Proxy-Copy ZDB Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Backup Process—Oracle Proxy-Copy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Configuring the Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Cluster-Aware Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Linking Oracle with the Data Protector Oracle Integration Media Management
Library (MML) on UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configuring Oracle Users on UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Configuring Oracle Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Checking the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Switching Between Oracle Backup Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Configuring an Oracle ZDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Creating a Data Protector Oracle ZDB Backup Specification . . . . . . . . . . . . . . . . . . 54
Editing the Oracle RMAN Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Backing Up an Oracle Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Scheduling a Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Running an Interactive Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Restoring an Oracle Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Restoring from Backup Media to the Application System on LAN . . . . . . . . . . . . . . 81
Restoring Oracle Using the Data Protector GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Duplicating an Oracle Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Restore, Recovery, and Duplicate Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Restoring Oracle Using RMAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Restoring Oracle Using CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Restoring Using Another Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Instant Recovery and Database Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Using Oracle After Removing the Data Protector Oracle Integration on UNIX Systems
124
iii
67156125.001.png
Contents
Removing the Data Protector Oracle Integration Link on HP-UX Systems . . . . . . 124
Removing the Data Protector Oracle Integration Link on Solaris. . . . . . . . . . . . . . 125
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Verifying the Prerequisites (Oracle Side) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Verifying the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Verifying the Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Verifying Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Configuration and Backup Problems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Restore Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
2. Data Protector SAP R/3 ZDB Integration
In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Backup and Restore Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Prerequisites and Limitations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
SAP R/3 Integration Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
SAP R/3 ZDB Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Backup Process for SAP R/3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Data Protector SAP R/3 Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Setting, Retrieving, Listing, and Deleting Data Protector SAP R/3 Configuration
File Parameters Using the CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Configuring the Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Configuring an SAP R/3 Backup Owner in Data Protector on UNIX Systems . . . . 169
Configuring the Data Protector SAP R/3 Integration. . . . . . . . . . . . . . . . . . . . . . . . 170
Configuring the SAP R/3 Oracle Database on the Application System . . . . . . . . . . 170
Mounting the SAPBACKUP Directory on the Backup System . . . . . . . . . . . . . . . . 177
Configuring a Data Protector SAP R/3 Client on the Application System . . . . . . . 178
Configuring an SAP R/3 ZDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Creating a Data Protector SAP R/3 ZDB Backup Specification. . . . . . . . . . . . . . . . 192
SAP R/3 Specific Backup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Creating or Modifying the Parameter File on the SAP R/3 Database Server . . . . . 208
Backing Up an SAP R/3 Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Scheduling a Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Running an Interactive Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Restoring an SAP R/3 Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
iv
67156125.002.png
Contents
Finding Information Needed for Restore. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Restoring Using the Data Protector GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Instant Recovery and Database Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
General Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Verifying the Prerequisites (Oracle Side) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Verifying the Prerequisites (SAP R/3 Side). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Verifying the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Verifying the Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Verifying Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Configuration and Backup Problems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Restore Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Examples of SAP R/3 Database Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Preparing the SAP R/3 Database for Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Example of Full Database Restore and Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Example of Partial Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Example of Lost Files Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Example of Archive Log Files Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
3. Data Protector Microsoft SQL Server ZDB Integration
In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Backup and Restore Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Prerequisites and Limitations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Integration Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Data Protector Microsoft SQL Server Configuration File . . . . . . . . . . . . . . . . . . . . . . 259
Configuring the Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Configuring Microsoft SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Configuring a Microsoft SQL Server ZDB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Backing Up Microsoft SQL Server Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Scheduling a Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Running an Interactive Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Restoring a Microsoft SQL Server Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Restoring from Backup Media to the Application System on LAN . . . . . . . . . . . . . 281
Restore Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Instant Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
v
67156125.003.png
Zgłoś jeśli naruszono regulamin