Data Replication in HP DMA

Similar documents
Achieve Patch Currency for Microsoft SQL Server Clustered Environments Using HP DMA

Standardize Microsoft SQL Server Cluster Provisioning Using HP DMA

Configure High Availability and Disaster Recovery Solutions with HP DMA Using PostgreSQL Database

HP 3PAR OS MU1 Patch 11

HP D6000 Disk Enclosure Direct Connect Cabling Guide

Customizing Incremental ETL for Operational Reporting

HP ALM Client MSI Generator

Oracle Streams: Step by Step

Insight Control server provisioning How to Create an OS Build Plan for Installing Windows 2012 R2

HP Database and Middleware Automation

External Devices User Guide

Upgrading Oracle 9i Database to Oracle 10g Database with Near-Zero Downtime

HP Data Protector A disaster recovery support for Microsoft Windows 7 and Windows Server 2008 R2

HP 3PAR OS MU3 Patch 18 Release Notes

HP Integration with Incorta: Connection Guide. HP Vertica Analytic Database

External Devices. User Guide

HP Operations Orchestration Software

HP Operations Orchestration Software

HPE Security ArcSight Connectors

HP 3PAR OS MU3 Patch 17

HP Velocity User Guide for Thin Clients

HP Data Protector Integration with Autonomy IDOL Server

Sales Certifications

External Devices User Guide

HPE ALM Client MSI Generator

HPE Aruba Airwave Installation and Startup Service

HP StorageWorks Enterprise Virtual Array 4400 to 6400/8400 upgrade assessment

External Media Cards User Guide

HP Business Availability Center

HPE 3PAR OS MU5 Patch 49 Release Notes

Project management integrated into Outlook

HPE Knowledge Article

External Devices User Guide

HP Storage Mirroring Application Manager 4.1 for Exchange white paper

HP AutoPass License Server

Configuring LDAP Authentication for HPE OBR

HPE File Data Migration Service

HP Service Health Reporter

Generating Unique System IDs (SIDs) after Disk Duplication using Altiris Deployment Solution

HP Web Jetadmin 8.0 Credential Store Feature

Enabling High Availability for SOA Manager

HP Data Protector A support for Microsoft Exchange Server 2010

QuickSpecs. What's New. Models. ProLiant Essentials Server Migration Pack - Physical to ProLiant Edition. Overview

HPE Security ArcSight Connectors

Configuring RAID with HP Z Turbo Drives

Achieving regulatory compliance with reports from ProCurve PCM, IDM, and NIM

HPE 3PAR OS MU3 Patch 24 Release Notes

HP Operations Orchestration Software

HPE Data Replication Solution Service for HPE Business Copy for P9000 XP Disk Array Family

HP Mobile Remote Control (Select Models Only) User Guide

Project and Portfolio Management Center

HPE 3PAR OS MU2 Patch 36 Release Notes

HPE 3PAR Remote Copy Extension Software Suite Implementation Service

QuickSpecs. HP Data Protector for Notebooks & Desktops software part numbers HP Data Protector for Notebooks & Desktops100 Pack

UCMDB Zeus History. Copyright 2012 Hewlett-Packard Development Company, L.P.

External Media Cards. User Guide

HPE ilo mobile app for ios

HP Insight Control for Microsoft System Center Installation Guide

External Media Cards User Guide

Advanced HP Application Lifecycle Management 12.x.Software

Copying Data Between Similar HPE Vertica Clusters

HPE 3PAR OS GA Patch 12

HPE StoreEver MSL6480 Tape Library CLI Utility Version 1.0 User Guide

HPE ConvergedSystem 700 for Hyper-V Deployment Accelerator Service

Data Protector. Software Version: Zero Downtime Backup Integration Guide

Register for this Exam You need an HPE Learner ID and a Pearson VUE login and password.

HPE ALM Excel Add-in. Microsoft Excel Add-in Guide. Software Version: Go to HELP CENTER ONLINE

HP Device Manager 4.7

HP Identity Driven Manager Software Series

System information update for system board replacement events

HP Virtual Connect Enterprise Manager

HP Fortify Scanning Plugin for Xcode

HP Data Center Automation Appliance

HP Image and Application Services

IDE Connector Customizer Readme

Configuring Embedded LDAP Authentication

HP 3PAR OS MU2 Patch 11

QuickSpecs. HP IMC Branch Intelligent Management Software. Models HP IMC Branch Intelligent Management System Software Module w/50-node E-LTU

HPE Knowledge Article

HP OpenView Storage Data Protector A.05.10

ALM. What's New. Software Version: Go to HELP CENTER ONLINE

HP LF Printing Knowledge Center

Modem Command Guidelines HP Notebook Series

HP Operations Orchestration

HP Service Test Management

HP ALM. Software Version: Tutorial

ALM. Tutorial. Software Version: Go to HELP CENTER ONLINE

Oracle User Administration

HPE 3PAR StoreServ Data Migration Service

Oracle Streams Extended Examples. 18c

HP BLc Intel 4X QDR InfiniBand Switch Release Notes. Firmware Version

HP OfficeJet 200 Mobile Printer series. Bluetooth Setup Guide

HP StorageWorks Data Protector Express ProLiant Edition 3.1 SP4. Overview

HP Intelligent Management Center v7.1

Visual Business Configuration with SAP TM

This guide describes features that are common to most models. Some features may not be available on your computer.

HPE Recovery Manager Central Integration Service

HP Network Node Manager ispi Performance for Quality Assurance Software

Management and Printing User Guide

ADM505. Oracle Database Administration COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

Transcription:

Technical white paper Data Replication in HP DMA HP Database and Middleware Automation version 10.00 Data Replication and HP DMA To help HP Database and Middleware Automation (HP DMA) extend across broader geographical regions, you can build multiple HP DMA servers and use Oracle Streams replication between those servers. This ensures that your HP DMA solution packs, policies, and deployments all HP DMA automation items except your scheduler are identical between the servers. There are many ways to achieve Oracle replication. This paper shows you two examples of setting up Oracle Streams using the Data Pump method of moving data. The first example uses two active HP DMA databases, where replication must function in both directions. The second example assumes that the replicated database will only be used for read operations and to serve as a standby database for disaster recovery purposes. Example 1 Both databases are active In this example, both the source and destination databases are active, and replication must function in both directions. Prerequisites Both databases have archive logging enabled. The Oracle Streams initiation parameters are set as follows: STREAMS_POOL_SIZE is set to 100M (if you are not using Automatic Memory Management or Automatic Shared Memory Management) SESSIONS and PROCESSES are increased by 50 GLOBAL_NAMES is set to true UNDO_RETENTION is set to 3600 The database links in the strmadmin schema for both databases are set up such that the source and destination databases connect to each other using the strmadmin login. The source database is already set up and is running as the HP DMA server. The schema for the HP DMA tables in the destination database has been built and is ready for tables to be imported. Step 1: Set up the streams administrator account to manage streams Run these commands on both the source and destination databases note that these are examples and should be changed to match your environment: CREATE TABLESPACE streams_tbs DATAFILE u01apporadataorclstreams_tbs.dbf' SIZE 25M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED; CREATE USER strmadmin IDENTIFIED BY password DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs; GRANT DBA TO strmadmin; DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( grantee => 'strmadmin', grant_privileges => TRUE); END; CREATE DIRECTORY strmadmin.streams_dir AS 'u01apporacleadminstreams'; 1

Step 2: Run this PLSQL code Run the following anonymous block of code from a SQLPLUS session connected as strmadmin on the source database. Replace the names of the source and destination servers, and modify the directory names, if necessary, for your environment. DECLARE tables DBMS_UTILITY.UNCL_ARRAY; tab_count number := 1; src_dir varchar(30) := ' strmadmin.streams_dir '; dest_dir varchar(30) := ' strmadmin.streams_dir '; src_db varchar(30) := 'dma.src'; dest_db varchar(30) := 'dma.dest'; cursor tables_cur is select owner '.' table_name as table_name from dba_tables where table_name like 'DMA%' and table_name not like '%QRTZ%'; for i in tables_cur loop tables(tab_count) := i.table_name; execute immediate('alter table ' i.table_name ' add supplemental log data (all) columns') tab_count := tab_count + 1; end loop; dbms_streams_adm.maintain_tables( table_names => tables, source_directory_object => src_dir, destination_directory_object => dest_dir, source_database => src_db, destination_database => dest_db, capture_name => 'capture_dma', capture_queue_table capture_queue_name apply_name => 'apply_dma', apply_queue_table apply_queue_name bi_directional => TRUE, instantiation => DBMS_STREAMS_ADM.INSTANTIATION_TABLE); end; Step 3: Track progress The block of code in Step 2 will take some time to complete, and the time will vary depending on the systems you are using. To track progress, run this query on the Destination database to see how many rules have been set up in Oracle Streams: select count(*) from DBA_STREAMS_TABLE_RULES where table_name like 'DMA%'; When the code is complete, the count should be 264 rules. Step 4: Initialize the quartz tables on the destination database After you have configured Oracle Streams, you must connect to the destination database as the HP DMA user that you have configured and run the following script to initialize the quartz tables that handle scheduling for HP DMA. @opthpdmaserverdb_sqldma-oraclehpdma_schema-qrtz.sql 2

Example 2 Second database is only for reading In this example, the destination database is used only for read operations and as a standby for disaster recovery purposes. Prerequisites The source database has archive logging enabled. The Oracle Streams initiation parameters are set as follows: STREAMS_POOL_SIZE is set to 100M (if you are not using Automatic Memory Management or Automatic Shared Memory Management) SESSIONS and PROCESSES are increased by 50 GLOBAL_NAMES is set to true UNDO_RETENTION is set to 3600 The database links in the strmadmin schema for the source database are set up such that the source database connects to the destination database using strmadmin. The source database is already set up and is running as the HP DMA server. The schema for the HP DMA tables in the destination database has been built and is ready for tables to be imported. Step 1: Set up the streams administrator account to manage streams NOTE: Run these commands on both the source and destination databases. CREATE TABLESPACE streams_tbs DATAFILE u01apporadataorcl streams_tbs.dbf' SIZE 25M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED; CREATE USER strmadmin IDENTIFIED BY password DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs; GRANT DBA TO strmadmin; DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( grantee => 'strmadmin', grant_privileges => TRUE); END; CREATE DIRECTORY strmadmin.streams_dir AS 'u01apporacleadminstreams'; Step 2: Run this PLSQL code Run the following anonymous block of code from a SQLPLUS session connected as strmadmin on the source database. Replace the names of the source and destination servers, and modify the directory names, if necessary, for your environment. DECLARE tables DBMS_UTILITY.UNCL_ARRAY; tab_count number := 1; src_dir varchar(30) := ' strmadmin.streams_dir '; dest_dir varchar(30) := ' strmadmin.streams_dir '; src_db varchar(30) := 'dma.src'; dest_db varchar(30) := 'dma.dest'; cursor tables_cur is select owner '.' table_name as table_name from dba_tables where table_name like 'DMA%'; for i in tables_cur loop tables(tab_count) := i.table_name; execute immediate('alter table ' i.table_name ' add supplemental log data (all) columns') tab_count := tab_count + 1; end loop; 3

dbms_streams_adm.maintain_tables( table_names => tables, source_directory_object => src_dir, destination_directory_object => dest_dir, source_database => src_db, destination_database => dest_db, capture_name => 'capture_dma', capture_queue_table capture_queue_name apply_name => 'apply_dma', apply_queue_table apply_queue_name bi_directional => FALSE, instantiation => DBMS_STREAMS_ADM.INSTANTIATION_TABLE); end; 4

Resources For service overview, data sheets, ordering guide and technical overview hp.comgodma Related www.hp.comgobsa www.hp.comgoautomateyourit www.hp.comgobsablog Get connected hp.comgogetconnected Current HP driver, support, and security alerts delivered directly to your desktop Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. Oracle is a registered trademark of Oracle andor its affiliates. Created December 2012 5