HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____...

33
HP OpenView Storage Data Protector _____________________________________________________________________ HP OpenView Storage Data Protector 5.1 HP-UX Oracle9i Real Application Clusters (RAC) with HP StorageWorks Disk Array XP Zero Downtime Backup (ZDB) and Instant Recovery (IR) Version 1.0 ____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments 1

Transcript of HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____...

Page 1: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

HP OpenView Storage Data Protector 5.1

HP-UX Oracle9i Real Application Clusters (RAC) with HP StorageWorks Disk Array XP

Zero Downtime Backup (ZDB) and Instant Recovery (IR)

Version 1.0

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

1

Page 2: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

1. Introduction...........................................................................................................3

2. Overview of Oracle9i RAC Example Environment .............................................4

3. Installing Data Protector Agents on RAC Cluster Nodes ...................................6

4. Preparing the HP Storage Works Disk Array XP Environment.........................7

5. Preparing the HP-UX and Oracle9i RAC Environment .....................................8

5.1. Requirements................................................................................................8

5.2. Raw Logical Volumes ..................................................................................8

5.3. Oracle Archived Log Files.........................................................................11

5.4. Oracle RMAN Snapshot Control File ......................................................12

5.5. Oracle Configuration Example of init.ora...............................................13

5.6. Oracle Configuration Example of RMAN...............................................14

6. Oracle9i RAC Integration and Configuration...................................................16

6.1. Configuring the Oracle Server .................................................................16

6.2. Creating Backup Specifications................................................................16

7. Oracle9i RAC ZDB+IR Backup and Recovery..................................................21

7.1. Oracle9i RAC ZDB+IR Backup Example ...............................................21

7.2. Oracle9i RAC Instant Recovery Example...............................................29

8. Appendices...........................................................................................................33

8.1. List of related documents ..........................................................................33

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

2

Page 3: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

1. Introduction This white paper provides complementary information for how to configure HP OpenView Storage Data Protector in HP-UX Oracle9i Real Application Clusters (RAC) for Zero Downtime Backup (ZDB) and Instant Recovery (IR) in HP StorageWorks Disk Array XP environments. It describes essential steps necessary for the installation and configuration in this type of an environment. The white paper starts with an overview about the architecture of the example environment, which is used throughout this paper. NOTE: The white paper describes only the HP-UX Oracle9i Real Application Clusters together with Zero Downtime Backup and Instant Recovery in HP StorageWorks Disk Array XP environments. The necessary Oracle Proxy Copy feature is only used in Data Protector ZDB environments. Non-ZDB HP-UX RAC environments are configured as RMAN Oracle integrations, which are not focus of this document.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

3

Page 4: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

2. Overview of Oracle9i RAC Example Environment The following chapter will explain the environment setup. It will explain the different hard- and software components used for this integration. It is based on the HP MC/ServiceGuard Extension for RAC (formerly called MC/ServiceGuard OPS Edition) which allows multiple servers to be configured as a highly available enterprise cluster that supports Oracle9i Real Application Clusters. In the example environment, all connections to the database are through the primary node called “uranos“ with local database instance “RAC21“. The secondary node, called “thor” with local database instance “RAC22“, could also be configured. NOTE: The network service “RAC2” is neither a database instance nor can it be configured for backups. This is due to the RAC load-balancing feature, which would start backups on any node. Data Protector configured tape devices in RAC environments are host-based and do not swap over. The reading of the database data on one node and saving to tape on another node would result in a network backup.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

4

Page 5: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

The figure below shows a high-level view of the Oracle9i example environment:

uranos Instance RAC21

Cluster Interconnect

SharedAccess

SharedAccess

RedoRedoRedo Thread1

RedoRedoRedo Thread2

HP-UX 11.x with SLVM Raw Devices

MC/ServiceGuard plus ServiceGuard Extension for RAC

Oracle9i EE plus RAC option

HP-UX 11.x with SLVM Raw Devices

MC/ServiceGuard plus ServiceGuard Extension for RAC

Oracle9i EE plus RAC option

thor Instance RAC22

HP-UX 11.x withData Protector 5.1

HP-UX 11.x withOracle RMAN

Catalog DatabaseInstance OEMCAT

dpuxcell wotan

P-Vol

S-Vol

Shared Database RAC

RAC2

Figure 1 – High-Level View of Oracle9i RAC Example

The Data Protector server “dpuxcell” is responsible for backing up the split-mirror data from disk array volume “S-VOL” to tape. The archived log files, which are locally written by each database server instance, are backed up from MC/ServiceGuard NFS-shared archived log destinations. The Oracle recovery catalog database instance “OEMCAT” must not be installed on RAC servers. In this setup, the recovery catalog database is installed on server “wotan”.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

5

Page 6: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

3. Installing Data Protector Agents on RAC Cluster Nodes To back up a RAC Cluster, Data Protector integration software has to be installed on the servers in the RAC environment. The HP StorageWorks XP Agent has be installed on:

• RAC server “uranos” with database instance RAC21 • RAC server “thor” with database instance RAC22 • Backup server “dpuxcell” with access to split-mirror S-Vol disks and tape drives

The Oracle8 Integration Agent has been installed on:

• RAC server “uranos” with database instance RAC21 • RAC server “thor” with database instance RAC22 • RMAN catalog server “wotan” with recovery catalog database instance

OEMCAT

NOTE: On RAC servers “uranos” and “thor” the Data Protector variable “SSEA_IR_VGCHANGE_A” in file “/opt/omni/.omnirc” must be modified for the shared raw device environment:

SSEA_IR_VGCHANGE_A=vgchange -a s For further information on installation procedures, please refer to:

• HP OpenView Storage Data Protector HP Storage Works Disk Array XP Integration Guide

• HP OpenView Storage Data Protector Installation and Licensing Guide

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

6

Page 7: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

4. Preparing the HP Storage Works Disk Array XP Environment All RAC servers and the single backup server should be connected to the same HP StorageWorks Disk Array XP. The primary LDEVs (P-Vols) should be connected to the RAC servers and should have paired disks assigned. The mirrored LDEVs (S-Vols) should be connected to the backup server. For further information on HP StorageWorks Disk Array XP configuration procedures, please refer to:

• HP OpenView Storage Data Protector HP Storage Works Disk Array XP Integration Guide

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

7

Page 8: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

5. Preparing the HP-UX and Oracle9i RAC Environment This chapter gives complimentary information to the following documentation:

• HP OpenView Storage Data Protector HP Storage Works Disk Array XP Integration Guide

• Oracle9i Real Application Clusters Administration Release 2 (9.2) • Oracle9i Real Application Clusters (RAC) on HP-UX – available at the

HP/Oracle Cooperative Technology Center (http://otn.oracle.com/products/oracle9i/htdocs/9iRAChp.html)

5.1. Requirements

Please check that the following requirements are met before installing and configuring the Oracle9i RAC environment:

• System requirements • HP-UX operating system patches • Kernel parameters • Asynchronous I/O

5.2. Raw Logical Volumes

Data Protector makes use of the Oracle Proxy Copy feature, which creates a list of all necessary files for backups. This list of files is actually a list of symbolic links, which point to the database raw logical volumes. After the raw logical volume creation it is necessary to create symbolic links for each raw file on all RAC nodes:

# cd /oracle/RAC/ (directory where you want to have the links) # ln -s /dev/vg_rac/rac_raw_system_400 rac2_system # ln -s /dev/vg_rac/rac_raw_user_120 rac2_user etc.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

8

Page 9: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

File system list example:

uranos:root- # ll /oracle/RAC lrwxrwxrwx 1 oracle dba 35 Aug 15 12:29 rac2_control01 -> /dev/vg_rac2/rRAC2_raw_control01_50 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:29 rac2_control02 -> /dev/vg_rac2/rRAC2_raw_control02_50 lrwxrwxrwx 1 oracle dba 32 Aug 15 12:30 rac2_drsys -> /dev/vg_rac2/rRAC2_raw_drysys_90 lrwxrwxrwx 1 oracle dba 34 Aug 15 12:32 rac2_example -> /dev/vg_rac2/rRAC2_raw_example_160 lrwxrwxrwx 1 oracle dba 30 Aug 15 12:32 rac2_indx -> /dev/vg_rac2/rRAC2_raw_indx_70 lrwxrwxrwx 1 oracle dba 32 Aug 15 12:33 rac2_oemrep -> /dev/vg_rac2/rRAC2_raw_oemrep_20 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:33 rac2_redo1_01 -> /dev/vg_rac2/rRAC2_raw_redo1_01_100 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:33 rac2_redo1_02 -> /dev/vg_rac2/rRAC2_raw_redo1_02_100 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:34 rac2_redo2_01 -> /dev/vg_rac2/rRAC2_raw_redo2_01_100 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:34 rac2_redo2_02 -> /dev/vg_rac2/rRAC2_raw_redo2_02_100 lrwxrwxrwx 1 oracle dba 31 Aug 15 12:34 rac2_spfile -> /dev/vg_rac2/rRAC2_raw_spfile_5 lrwxrwxrwx 1 oracle dba 37 Aug 15 12:35 rac2_srvmconfig -> /dev/vg_rac2/rRAC2_raw_srvmconfig_100 lrwxrwxrwx 1 oracle dba 33 Aug 15 12:35 rac2_system -> /dev/vg_rac2/rRAC2_raw_system_400 lrwxrwxrwx 1 oracle dba 31 Aug 15 12:35 rac2_temp -> /dev/vg_rac2/rRAC2_raw_temp_100 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:35 rac2_undo1_01 -> /dev/vg_rac2/rRAC2_raw_undo1_01_100 lrwxrwxrwx 1 oracle dba 35 Aug 15 12:36 rac2_undo2_01 -> /dev/vg_rac2/rRAC2_raw_undo2_01_100 lrwxrwxrwx 1 oracle dba 31 Aug 15 12:36 rac2_user -> /dev/vg_rac2/rRAC2_raw_user_120

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

9

Page 10: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

Volume group list example:

uranos:root- # ll /dev/vg_rac2 crw-rw-rw- 1 root sys 64 0x070000 Aug 14 19:16 group brw-r----- 1 oracle dba 64 0x070013 Aug 15 17:42 DP_controlfile brw-r----- 1 root sys 64 0x070009 Aug 14 19:16 RAC2_raw_control01_50 brw-r----- 1 root sys 64 0x07000a Aug 14 19:16 RAC2_raw_control02_50 brw-r----- 1 root sys 64 0x070008 Aug 14 19:16 RAC2_raw_drysys_90 brw-r----- 1 root sys 64 0x070011 Aug 14 19:16 RAC2_raw_example_160 brw-r----- 1 root sys 64 0x070007 Aug 14 19:16 RAC2_raw_indx_70 brw-r----- 1 root sys 64 0x070006 Aug 14 19:16 RAC2_raw_oemrep_20 brw-r----- 1 root sys 64 0x07000b Aug 14 19:16 RAC2_raw_redo1_01_100 brw-r----- 1 root sys 64 0x07000c Aug 14 19:16 RAC2_raw_redo1_02_100 brw-r----- 1 root sys 64 0x07000d Aug 14 19:16 RAC2_raw_redo2_01_100 brw-r----- 1 root sys 64 0x07000e Aug 14 19:16 RAC2_raw_redo2_02_100 brw-r----- 1 root sys 64 0x07000f Aug 14 19:16 RAC2_raw_spfile_5 brw-r----- 1 root sys 64 0x070010 Aug 14 19:16 RAC2_raw_srvmconfig_100 brw-r----- 1 root sys 64 0x070001 Aug 14 19:16 RAC2_raw_system_400 brw-r----- 1 root sys 64 0x070003 Aug 14 19:16 RAC2_raw_temp_100 brw-r----- 1 root sys 64 0x070004 Aug 14 19:16 RAC2_raw_undo1_01_100 brw-r----- 1 root sys 64 0x070005 Aug 14 19:16 RAC2_raw_undo2_01_100 brw-r----- 1 root sys 64 0x070002 Aug 14 19:16 RAC2_raw_user_120 crw-r----- 1 oracle dba 64 0x070013 Aug 15 17:42 rDP_controlfile crw-r----- 1 oracle dba 64 0x070009 Aug 14 19:16 rRAC2_raw_control01_50 crw-r----- 1 oracle dba 64 0x07000a Aug 14 19:16 rRAC2_raw_control02_50 crw-r----- 1 oracle dba 64 0x070008 Aug 14 19:16 rRAC2_raw_drysys_90 crw-r----- 1 oracle dba 64 0x070011 Aug 14 19:16 rRAC2_raw_example_160 crw-r----- 1 oracle dba 64 0x070007 Aug 14 19:16 rRAC2_raw_indx_70 crw-r----- 1 oracle dba 64 0x070006 Aug 14 19:16 rRAC2_raw_oemrep_20 crw-r----- 1 oracle dba 64 0x07000b Aug 14 19:16 rRAC2_raw_redo1_01_100 crw-r----- 1 oracle dba 64 0x07000c Aug 14 19:16 rRAC2_raw_redo1_02_100 crw-r----- 1 oracle dba 64 0x07000d Aug 14 19:16 rRAC2_raw_redo2_01_100 crw-r----- 1 oracle dba 64 0x07000e Aug 14 19:16 rRAC2_raw_redo2_02_100 crw-r----- 1 oracle dba 64 0x07000f Aug 14 19:16 rRAC2_raw_spfile_5 crw-r----- 1 oracle dba 64 0x070010 Aug 14 19:16 rRAC2_raw_srvmconfig_100 crw-r----- 1 oracle dba 64 0x070001 Aug 14 19:16 rRAC2_raw_system_400 crw-r----- 1 oracle dba 64 0x070003 Aug 14 19:16 rRAC2_raw_temp_100 crw-r----- 1 oracle dba 64 0x070004 Aug 14 19:16 rRAC2_raw_undo1_01_100 crw-r----- 1 oracle dba 64 0x070005 Aug 14 19:16 rRAC2_raw_undo2_01_100 crw-r----- 1 oracle dba 64 0x070002 Aug 14 19:16 rRAC2_raw_user_120

Change the permission of the database volume group “vg_rac” to “777”. Additionally, change the permissions of all raw logical volumes to “660” and the owner to “oracle:dba”:

# chmod 777 /dev/vg_rac # chmod 660 /dev/vg_rac/r* # chown oracle:dba /dev/vg_rac/r*

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

10

Page 11: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

5.3. Oracle Archived Log Files

Saving archived redo logs in Oracle Real Application Clusters environments causes special problems and must be carefully considered. In this example environment, the archived log files cannot be on a shared disk because all shared disks are raw devices. Therefore, file systems have to be created on each node. This setup results in local written archived log files, which must be saved from each local database instance. It is possible to save archived log files by:

• Backing up from each node with two backup jobs. Two single backup specification are used.

• Backing up from each node with one backup job and SQL-remote-connect statements: ”allocate channel c1 type sbt connect ...@node1;” ”allocate channel c2 type sbt connect ...@node2;”

• Saving NFS-cross-mounted file systems with one backup job. Uniquely named local directories are NFS-soft-mounted to all other nodes.

NOTE: All above described solutions are not recommended due to the low reliability. The major disadvantages are:

• In a media recovery scenario, you must configure the node performing recovery for remote access so it can read the archived log files in the archiving directories on the other nodes.

• This local backup has a single point of failure. If one node fails after the most recent backup, then the archived logs on this node that were generated after the backup are lost. If you are in a recovery situation and do not have all available logs, then you are forced to perform an incomplete recovery up to the first missing archived log sequence number.

The best solution is to use NFS implemented for high availability. This solution makes use of the exported NFS directory stored on the shared disks of the cluster. One node is the primary node that is used to give access to the archived log files. If this node fails, a failover process alters the access path to a backup node that also has access to the shared disks.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

11

Page 12: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

In the example environment, the archived log file system are mounted from the virtual hostname “nfspkg.sss.bbn.hp.com”:

uranos # bdf Filesystem kbytes used avail %used Mounted on nfspkg1.sss.bbn.hp.com:/export/oracle/RAC2/admin/arch_1 4194304 3439896 707288 83%

/oracle/RAC2/admin/arch_1 nfspkg2.sss.bbn.hp.com:/oracle/RAC2/admin/arch_2 4194304 3044944 1077576 74%

/oracle/RAC2/admin/arch_2 thor # bdf Filesystem kbytes used avail %used Mounted on nfspkg1.sss.bbn.hp.com:/export/oracle/RAC2/admin/arch_1 4194304 3439896 707288 83%

/oracle/RAC2/admin/arch_1 nfspkg2.sss.bbn.hp.com:/oracle/RAC2/admin/arch_2 4194304 3044944 1077576 74%

/oracle/RAC2/admin/arch_2 For further information on archived log file backups in RAC environments, please refer to the following documentation:

• Oracle Recovery Manager User’s Guide Release 2 (9.2) • Oracle9i Real Application Clusters Administration Release 2 (9.2)

5.4. Oracle RMAN Snapshot Control File

In Real Application Clusters, identical copies of the snapshot control file have to exist on every node that performs backups. Therefore, make sure that the same destination directory for a snapshot control file exists on all nodes used for backups. In the example environment, the unique snapshot control file directory “/oracle/9.2.0/dbs/scf” is mounted on node “thor” from node “uranos”, which executes ZDB database backups:

thor # bdf Filesystem kbytes used avail %used Mounted on uranos.sss.bbn.hp.com:/oracle/9.2.0/dbs/scf 4194304 3439896 707288 83%

/oracle/9.2.0/dbs/scf

NOTE: The snapshot controlfile location must be configured after the database creation with the RMAN “CONFIGURE SNAPSHOT CONTROLFILE NAME” command.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

12

Page 13: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

5.5. Oracle Configuration Example of init.ora

The configuration file init.ora was modified based on standard Oracle9i RAC configuration procedures:

control_files = (/oracle/RAC/rac2_control01, /oracle/RAC/rac2_control02) background_dump_dest = /oracle/RAC2/admin/bdump core_dump_dest = /oracle/RAC2/admin/cdump user_dump_dest = /oracle/RAC2/admin/udump RAC21.instance_name = 'RAC21' RAC22.instance_name = 'RAC22' RAC21.instance_number = 1 RAC22.instance_number = 2 RAC21.thread = 1 RAC22.thread = 2 RAC21.undo_tablespace = 'UNDO10' RAC22.undo_tablespace = 'UNDO20' *.cluster_database = true *.cluster_database_instances = 2 *.undo_management = 'AUTO' *.service_names = 'RAC2' *.db_name='RAC2' *.db_domain='' db_block_size = 8192 db_cache_size = 100000000 compatible = 9.2.0 # tuning parameters db_files = 80 db_file_multiblock_read_count = 8 shared_pool_size = 100000000 Open_cursors = 500 max_enabled_roles = 100 disk_asynch_io=true db_writer_processes = 1 sort_area_retained_size=100000000 sort_area_size=100000000 log_checkpoint_interval = 9999999999 log_checkpoint_timeout=0 processes = 200 dml_locks = 200 enqueue_resources = 200 log_buffer = 2048000 max_dump_file_size = 10240 timed_statistics = TRUE log_checkpoints_to_alert = true

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

13

Page 14: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

remote_login_passwordfile = EXCLUSIVE CURSOR_SPACE_FOR_TIME = TRUE SESSION_CACHED_CURSORS = 4000 log_archive_start=true LOG_ARCHIVE_FORMAT = "LOG%s_%t.ARC" RAC21.LOG_ARCHIVE_DEST_1='LOCATION=/oracle/RAC2/admin/arch_1' RAC22.LOG_ARCHIVE_DEST_1='LOCATION=/oracle/RAC2/admin/arch_2'

5.6. Oracle Configuration Example of RMAN

The RMAN configuration was modified based on the Oracle9i RAC configuration procedures:

uranos:oracle:home/oracle rman target ****/****@RAC21 Recovery Manager: Release 9.2.0.3.0 - 64bit Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. connected to target database: RAC2 (DBID=447039346) RMAN> show all; using target database controlfile instead of recovery catalog RMAN configuration parameters are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default CONFIGURE BACKUP OPTIMIZATION OFF; # default CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9.2.0/dbs/scf/snap_prod.scf'; RMAN> uranos:oracle:home/oracle rman target ****/****@RAC22 Recovery Manager: Release 9.2.0.3.0 - 64bit Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. connected to target database: RAC2 (DBID=447039346) RMAN> show all;

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

14

Page 15: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

using target database controlfile instead of recovery catalog RMAN configuration parameters are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default CONFIGURE BACKUP OPTIMIZATION OFF; # default CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9.2.0/dbs/scf/snap_prod.scf'; RMAN>

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

15

Page 16: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

6. Oracle9i RAC Integration and Configuration

The following steps are executed after the Oracle9i software installation and database creation. This chapter gives complimentary information to the following documentation:

• HP OpenView Storage Data Protector UNIX Integration Guide • HP OpenView Storage Data Protector HP Storage Works Disk Array XP

Integration Guide

6.1. Configuring the Oracle Server

The following example describes the integration with the CLI “util_oracle8.exe”:

uranos:oracle:oracle/9.2.0 /opt/omni/lbin/util_oracle8.exe \ -CONFIG_SMB RAC21 /oracle/9.2.0 /oracle/9.2.0/dbs/initRAC21.ora \ /dev/vg_rac2/rDP_controlfile <user>/<password>@RAC21 \ <user>/<password>@OEMCAT

Note: Some Oracle9i RAC installations are configured with binary server parameter files, which are located on raw logical volumes and shared by all RAC instances. This results in non-existing init.ora files, which are essential for the Data Protector Oracle integration. In this case, the binary server parameter file must be converted in a text-initialization parameter file (init.ora) with the SQL-command:

“CREATE PFILE=‘/oracle/9.2.0/dbs/initRAC21.ora’ from SPFILE ; ”

6.2. Creating Backup Specifications

Backup specifications must be separately created for database and archived log file backups. Note: Archived log files cannot be saved together with the ZDB feature and must be saved with a separate backup specification. It is recommended to create an additional backup specification for another RAC node, which could be used in case of a single node failure.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

16

Page 17: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

The following example describes the backup from RAC instance “RAC21” to Mirror Unit (MU) numbers “0-1”. Example from a GUI created backup specification “RAC21-ZDB-TAPE” for backup to disk and tape:

Figure 2 – Screenshot of RAC21 ZDB Backup Options

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

17

Page 18: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

BARLIST "RAC21-ZDB-TAPE" OWNER "oracle" "dba" "uranos.sss.bbn.hp.com" DESCRIPTION "Split mirror / Snapshot backup of the database and controlfile used for Oracle 8i/9i." DYNAMIC 1 5 BACKUP_TYPE SplitMirror SureStoreEXP { MIRROR local MIRRORS "0-1" APPLICATION_SYSTEM uranos.sss.bbn.hp.com BACKUP_SYSTEM dpuxcell.sss.bbn.hp.com -split -instant_restore -keep_version -start_on_app } DEVICE "dpuxcell_drive1" { -sync } CLIENT "RAC21" uranos.sss.bbn.hp.com { -exec ob2rman.exe -args { "-backup" } -input { "run {" "allocate channel 'dev_0' type 'sbt_tape'" "parms 'ENV=(OB2BARTYPE=Oracle8pc,OB2APPNAME=RAC21,OB2BARLIST=RAC21-ZDB-TAPE,OB2SMB=1)';" "allocate channel 'dev_1' type 'sbt_tape'" "parms 'ENV=(OB2BARTYPE=Oracle8pc,OB2APPNAME=RAC21,OB2BARLIST=RAC21-ZDB-TAPE,OB2SMB=1)';" "backup incremental level <incr_level> filesperset 2" "format 'RAC21-ZDB-TAPE<RAC21_%s:%t:%p>.dbf'" "proxy only" "database" "include current controlfile" ";" "}" } }

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

18

Page 19: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

The following example describes an additional backup specification for the second instance “RAC22”, which is saved from server “thor” to Mirror Unit (MU) number “2”:

Time Backup 12 am RAC21 MU 0 to disk 6 pm RAC21 MU 1 to disk 10 pm RAC22 MU 2 to disk and tape

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

19

Page 20: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

Figure 3 – Screenshot of RAC22 ZDB Backup Options

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

20

Page 21: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

7. Oracle9i RAC ZDB+IR Backup and Recovery This chapter documents backup and recovery sessions which are based on standard procedures. Please refer to the following documentation:

• HP OpenView Storage Data Protector UNIX Integration Guide • HP OpenView Storage Data Protector HP Storage Works Disk Array XP

Integration Guide

7.1. Oracle9i RAC ZDB+IR Backup Example The backup flow depends on the configuration of the backup configuration and the status of the Mirror Units:

Data Protector SMB XP[xp_zdb.ppt] 36

backup flow

Resolve

Split

Yes

Alloc. MU#

PAIR

Back up

-establish

Resync

Yes

No

-leave_enabled_BS

Disable BS

Resync next MU#

No

-instant_restore

Yes

Log IR info

Yes

-split

Enable BS

-splitNo

Yes

No

No

No

End SMB

Yes

Begin SMB

-keep_versionYes

No

Note: The special options –disable_as and –enable_rw_bs are missing on this diagram. Please see workbook for information on these two options.

Figure 4 – ZDB+IR Backup Flow

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

21

Page 22: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

The RAC ZDB+IR backup example was in “split” mode before and after the backup. It was started with the GUI:

Figure 5 – Screenshot of RAC ZDB Backup Start

The following session report gives an example of a ZDB+IR backup session to disk and tape:

[Normal] From: [email protected] "RAC21-ZDB-TAPE" Time: 12.09.2003 10:55:52 OB2BAR application on "uranos.sss.bbn.hp.com" successfully started. Started with arguments: -backup -full [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:02 Checking if the Production Database has automatic archival enabled... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:02 The Production Database is in recovery mode. [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:02 Making list of database data files of the Production Database .... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:03 The list of data files of the Production Database has been made. The file list: /oracle/RAC/rac2_system /oracle/RAC/rac2_undo1_01 /oracle/RAC/rac2_user /oracle/RAC/rac2_undo2_01 /oracle/RAC/rac2_redo1_01 /oracle/RAC/rac2_redo1_02 /oracle/RAC/rac2_redo2_01

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

22

Page 23: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

/oracle/RAC/rac2_redo2_02 [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:03 Making list of database control files of the Production Database .... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:03 The list of database control files of the Production Database has been made. The file list: /oracle/RAC/rac2_control01 /oracle/RAC/rac2_control02 /dev/vg_rac2/rDP_controlfile [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:03 Starting resolve of mirror disks with database data and backup control files... [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:03 Starting agent on uranos. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:00 Starting agent on dpuxcell.sss.bbn.hp.com. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:03 Resolving backup objects on the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:03 Resolving backup objects on the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:04 Resolving of backup objects on the application system completed. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:04 The following disks were successfully mapped from character device path names to LDEVs: Disk Target Lun SEQ# Port LDEV ------------------------------------------------------- c7t1d1 1 1 20033 CL2-B 15Eh (350) ------------------------------------------------------- [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:04 Successfully attached to the command device /dev/rdsk/c8t15d6 with instance number 301. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:31 The following BC pairs will be used in current session: SEQ# LDEV Port TID LUN MU# Status SEQ# LDEV ----------------------------------------------------- -------------------- 20033 015Eh ( 350) CL1-B 0 97 0 STAT_PSUS 20033 0160h ( 352) ----------------------------------------------------- -------------------- [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:31

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

23

Page 24: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

Resolving of backup objects on the application system completed. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:29 Successfully attached to the command device /dev/rdsk/c16t0d0 with instance number 301. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:33 Synchronizing disks! 99 % completed! [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:38 Issuing ALTER SYSTEM SWITCH LOGFILE on the Production Database ... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:39 Issuing ALTER TABLESPACE ... BEGIN BACKUP on the Production Database ... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:41 Issuing ALTER DATABASE BACKUP CONTROLFILE TO ... for the Production Database ... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:41 The Production Database is in backup mode. Backup Control file is at "/dev/vg_rac2/rDP_controlfile" [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:41 Starting split of mirror disks with database data and backup control files... [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 Preparing the application system for splitting of disks. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 Disabling the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 The application system was successfully disabled. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 The application system is prepared for splitting of disks. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:38 Splitting disks. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:38 Splitting of disks completed. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 Resuming the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 10:57:41 The application system was successfully resumed. [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:41 Split of mirror disks succeeded.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

24

Page 25: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

[Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:41 Issuing ALTER TABLESPACE ... END BACKUP for the Production Database ... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:42 The Production Database is in non-backup mode. [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 10:57:43 Starting prepare of mirror disks with database data and backup control files... [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Preparing the backup system: 1) Creating volume groups 2) Activating volume groups 3) Mounting filesystems [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 The following disks were successfully mapped from LDEVs to character device path names of disks: SEQ# Port LDEV Target Lun Disk -------------------------------------------------------- 20033 CL1-B 160h (352) 15 110 c16t0d4 -------------------------------------------------------- [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Resolving backup objects on the backup system. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Resolving of backup objects on the backup system completed. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Disabling the backup system. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Volume group /dev/vg_rac2 has been successfully deactivated. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Volume group /dev/vg_rac2 has been successfully exported. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 The backup system was successfully disabled. [Normal] From: [email protected] "" Time: 12.09.2003 10:56:39 Preparing the backup system. [Normal] From: [email protected] "" Time: 12.09.2003 11:01:56 Volume group /dev/vg_rac2 has been successfully created. [Normal] From: [email protected] "" Time: 12.09.2003 11:01:56 Volume group /dev/vg_rac2 has been successfully activated. [Normal] From: [email protected] "" Time: 12.09.2003 11:01:56 The backup system was successfully prepared.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

25

Page 26: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

[Normal] From: [email protected] "" Time: 12.09.2003 11:01:56 Preparation of the backup system completed. Recovery Manager: Release 9.2.0.3.0 - 64bit Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. RMAN> connected to target database: RAC2 (DBID=447039346) RMAN> connected to recovery catalog database RMAN> RMAN> run { 2> allocate channel 'dev_0' type 'sbt_tape' 3> parms 'ENV=(OB2BARTYPE=Oracle8pc,OB2APPNAME=RAC21,OB2BARLIST=RAC21-ZDB-TAPE,OB2SMB=1)'; 4> allocate channel 'dev_1' type 'sbt_tape' 5> parms 'ENV=(OB2BARTYPE=Oracle8pc,OB2APPNAME=RAC21,OB2BARLIST=RAC21-ZDB-TAPE,OB2SMB=1)'; 6> backup incremental level 0 filesperset 2 7> format 'RAC21-ZDB-TAPE<RAC21_%s:%t:%p>.dbf' 8> proxy only 9> database 10> controlfilecopy '/dev/vg_rac2/rDP_controlfile' 11> ; 12> } allocated channel: dev_0 channel dev_0: sid=19 devtype=SBT_TAPE channel dev_0: Data Protector A.05.10/NSMbb50105_2 allocated channel: dev_1 channel dev_1: sid=20 devtype=SBT_TAPE channel dev_1: Data Protector A.05.10/NSMbb50105_2 Starting backup at 09/12/2003 [11:03:03] channel dev_0: starting incremental level 0 proxy datafile backup at 09/12/2003 [11:03:03] channel dev_0: specifying datafile(s) for proxy backup input datafile fno=00001 name=/oracle/RAC/rac2_system proxy file handle=RAC21-ZDB-TAPE<RAC21_276:504529383:1>.dbf input datafile fno=00003 name=/oracle/RAC/rac2_user proxy file handle=RAC21-ZDB-TAPE<RAC21_276:504529383:2>.dbf input datafile fno=00002 name=/oracle/RAC/rac2_undo1_01 proxy file handle=RAC21-ZDB-TAPE<RAC21_276:504529383:3>.dbf input datafile fno=00004 name=/oracle/RAC/rac2_undo2_01 proxy file handle=RAC21-ZDB-TAPE<RAC21_276:504529383:4>.dbf channel dev_1: starting incremental level 0 datafile backupset channel dev_1: specifying datafile(s) in backupset including current controlfile in backupset channel dev_1: starting piece 1 at 09/12/2003 [11:03:04] [Normal] From: [email protected] "dpuxcell_drive1" Time: 12.09.2003 11:02:05

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

26

Page 27: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

STARTING Media Agent "dpuxcell_drive1" [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:02:05 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_system // Oracle8 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:02:05 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_user // Oracle8 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:02:05 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_undo1_01 // Oracle8 [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:03:09 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:RAC21-ZDB-TAPE<RAC21_277:504529384:1>.dbf // Oracle8 [Normal] From: [email protected] "dpuxcell_drive1" Time: 12.09.2003 11:02:06 Loading medium from slot 7 to device /dev/rmt/8mn [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:04:13 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:RAC21-ZDB-TAPE<RAC21_277:504529384:1>.dbf // Oracle8 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:03:09 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_undo2_01 // Oracle8 channel dev_1: finished piece 1 at 09/12/2003 [11:04:19] piece handle=RAC21-ZDB-TAPE<RAC21_277:504529384:1>.dbf comment=API Version 2.0,MMS Version 65.5.0.0 channel dev_1: backup set complete, elapsed time: 00:01:15 channel dev_1: starting incremental level 0 datafile backupset channel dev_1: specifying datafile(s) in backupset input controlfilecopy name=/dev/vg_rac2/rDP_controlfile channel dev_1: starting piece 1 at 09/12/2003 [11:04:19] [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:03:21 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_undo1_01 // Oracle8 [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:04:25 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:RAC21-ZDB-TAPE<RAC21_278:504529459:1>.dbf // Oracle8 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:03:23 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_user // Oracle8 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:03:23 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_undo2_01 // Oracle8 [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:04:27

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

27

Page 28: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:RAC21-ZDB-TAPE<RAC21_278:504529459:1>.dbf // Oracle8 channel dev_1: finished piece 1 at 09/12/2003 [11:04:34] piece handle=RAC21-ZDB-TAPE<RAC21_278:504529459:1>.dbf comment=API Version 2.0,MMS Version 65.5.0.0 channel dev_1: backup set complete, elapsed time: 00:00:15 [Normal] From: [email protected] "RAC21" Time: 12.09.2003 11:03:36 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:/RAC21.TABLESPACE/oracle/RAC/rac2_system // Oracle8 channel dev_0: proxy copy complete, elapsed time: 00:01:38 Finished backup at 09/12/2003 [11:04:41] released channel: dev_0 released channel: dev_1 RMAN> **end-of-file** RMAN> Recovery Manager complete. [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 11:04:42 Oracle8 RMAN successfully finished. [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 11:04:42 Starting backup of the Oracle Recovery Catalog Database ... [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 11:04:43 Getting NLS_LANG and setting it into the environment .... AMERICAN_AMERICA.WE8ISO8859P1 Default exp binary is used on path /oracle/9.2.0/bin/exp [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 11:04:54 Export of the Recovery Catalog succeeded. Proceeding to backup. [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:04:54 Starting OB2BAR Backup: 05 uranos.sss.bbn.hp.com:Oracle Recovery Backup Catalog // Oracle8 [Normal] From: OB2BAR@uranos "RAC21" Time: 12.09.2003 11:04:57 Completed OB2BAR Backup: 05 uranos.sss.bbn.hp.com:Oracle Recovery Backup Catalog // Oracle8 [Normal] From: ob2rman.exe@uranos "RAC21" Time: 09/12/03 11:04:57 Backup of the Oracle Catalog Database succeeded. [Normal] From: [email protected] "RAC21-ZDB-TAPE" Time: 12.09.2003 11:03:53 OB2BAR application on "uranos.sss.bbn.hp.com" disconnected. [Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 Resuming the backup system. [Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 Disabling the backup system: 1) Dismounting filesystems, 2) Deactivating volume groups.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

28

Page 29: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

[Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 Volume group /dev/vg_rac2 has been successfully deactivated. [Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 Disabling of the backup system completed. [Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 The backup system was successfully resumed. [Normal] From: [email protected] "" Time: 12.09.2003 11:03:53 COMPLETED SSEA-Backup Agent on dpuxcell.sss.bbn.hp.com. [Normal] From: SSEA@uranos "" Time: 12.09.2003 11:04:57 COMPLETED SSEA-Application Agent on uranos. [Normal] From: [email protected] "dpuxcell_drive1" Time: 12.09.2003 11:04:36 /dev/rmt/8mn Medium header verification completed, 0 errors found [Normal] From: [email protected] "dpuxcell_drive1" Time: 12.09.2003 11:04:51 Unloading medium to slot 7 from device /dev/rmt/8mn [Normal] From: [email protected] "dpuxcell_drive1" Time: 12.09.2003 11:05:09 COMPLETED Media Agent "dpuxcell_drive1" [Normal] From: [email protected] "RAC21-ZDB-TAPE" Time: 12.09.2003 11:05:09 Backup Statistics: Session Queuing Time (hours) 0,10 ---------------------------------------- Completed Disk Agents ........ 7 Failed Disk Agents ........... 0 Aborted Disk Agents .......... 0 ---------------------------------------- Disk Agents Total ........... 7 ======================================== Completed Media Agents ....... 1 Failed Media Agents .......... 0 Aborted Media Agents ......... 0 ---------------------------------------- Media Agents Total .......... 1 ======================================== Mbytes Total ................. 745 MB Used Media Total ............. 1 Disk Agent Errors Total ...... 0

7.2. Oracle9i RAC Instant Recovery Example

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

29

Page 30: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

The instant recovery example restores the database directly from the S-Vols:

Data Protector SMB XP[xp_zdb.ppt] 48

instant recovery flow

Begin IR

AS disabled?

Resolve P-Vol

Resolve S-Vols

Disable AS

End IR

pairresync -restore

-keep_version

pairsplit

Enable AS

Proper config?-check_configYes

Yes

Yes

Yes

No

No

No No

Figure 6 – Instant Recovery Flow

The following session report gives an example of an instant recovery session from disk which was started from GUI:

[Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:28 Starting agent on uranos. [Normal] From: [email protected] "" Time: 12.09.2003 12:45:24 Starting agent on dpuxcell.sss.bbn.hp.com. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:28 Resolving objects for Instant Recovery. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:28 Successfully attached to the command device /dev/rdsk/c8t15d6 with instance number 301. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:55 The following BC pairs will be used in current session: SEQ# LDEV Port TID LUN MU# Status SEQ# LDEV ----------------------------------------------------- --------------------

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

30

Page 31: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

20033 015Eh ( 350) CL1-B 0 97 0 STAT_PSUS 20033 0160h ( 352) ----------------------------------------------------- -------------------- [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 Objects for Instant Recovery successfully resolved. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 Disabling the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 Volume group /dev/vg_rac2 has been successfully deactivated. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 The application system was successfully disabled. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 Starting Instant Recovery. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:46:58 Synchronizing disks! 99 % completed! [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:47:03 Resuming the application system. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:47:03 Volume group /dev/vg_rac2 has been successfully activated. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:47:03 The application system was successfully resumed. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:47:03 Instant Recovery successfully completed. [Normal] From: [email protected] "" Time: 12.09.2003 12:45:59 COMPLETED SSEA-Backup Agent on dpuxcell.sss.bbn.hp.com. [Normal] From: SSEA@uranos "" Time: 12.09.2003 12:47:03 COMPLETED SSEA-Application Agent on uranos. ============================================================================ Session completed successfully! ============================================================================

The restored database must be additionally recovered by RMAN:

uranos:oracle:9.2.0/dbs sqlplus "sys/sys as sysdba" SQL*Plus: Release 9.2.0.3.0 - Production on Fri Sep 12 12:50:15 2003 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to an idle instance.

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

31

Page 32: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

SQL> startup mount ORACLE instance started. Total System Global Area 271363400 bytes Fixed Size 736584 bytes Variable Size 167772160 bytes Database Buffers 100663296 bytes Redo Buffers 2191360 bytes Database mounted. SQL> exit Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options JServer Release 9.2.0.3.0 - Production uranos:oracle:9.2.0/dbs rman target ****/****@RAC21 rcvcat ****/****@OEMCAT cmdfile=/tmp/re> Recovery Manager: Release 9.2.0.3.0 - 64bit Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. connected to target database: RAC2 (DBID=447039346) connected to recovery catalog database RMAN> run{ 2> allocate channel 'dev_0' type 'sbt_tape' 3> parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=RAC21)'; 4> recover database; 5> sql 'alter database open'; 6> release channel dev_0; 7> } 8> allocated channel: dev_0 channel dev_0: sid=19 devtype=SBT_TAPE channel dev_0: Data Protector A.05.10/NSMbb50105_2 Starting recover at 12-SEP-03 starting media recovery media recovery complete Finished recover at 12-SEP-03 sql statement: alter database open released channel: dev_0 Recovery Manager complete. uranos:oracle:9.2.0/dbs

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

32

Page 33: HP OpenView Storage Data Protector 5 - Techworld openview...HP OpenView Storage Data Protector _____ 1. Introduction This white paper provides complementary information for how to

HP OpenView Storage Data Protector

_____________________________________________________________________

8. Appendices

8.1. List of related documents

• HP OpenView Storage Data Protector UNIX Integration Guide • HP OpenView Storage Data Protector HP Storage Works Disk Array XP

Integration Guide • Oracle9i Real Application Clusters Administration Release 2 (9.2) • Oracle9i Real Application Clusters (RAC) on HP-UX – available at the

HP/Oracle Cooperative Technology Center (http://otn.oracle.com/products/oracle9i/htdocs/9iRAChp.html)

4AA0-7017ENW

____________________________________________________________________________________________ Integration of HP-UX Oracle9i RAC in XP ZDB and IR Environments

33