Getting Started with Database Ingestion

Similar documents
VMware vfabric Data Director 2.5 EVALUATION GUIDE

VMware vfabric Data Director Installation Guide

Dell Storage vsphere Web Client Plugin. Version 4.0 Administrator s Guide

A: SETTING UP VMware Horizon

Getting Started with ESX Server 3i Installable Update 2 and later for ESX Server 3i version 3.5 Installable and VirtualCenter 2.5

VMware vfabric Data Director Installation Guide

VMware Horizon Migration Tool User Guide

Copilot Deeper Dive. Rasmus Rask Eilersen

Getting Started with ESX Server 3i Embedded ESX Server 3i version 3.5 Embedded and VirtualCenter 2.5

vsphere Replication for Disaster Recovery to Cloud vsphere Replication 6.5

Getting Started with VMware View View 3.1

VMware vcenter AppSpeed Installation and Upgrade Guide AppSpeed 1.2

NetBackup 7.6 Replication Director A Hands On Experience

Getting Started with ESXi Embedded

vsphere Replication for Disaster Recovery to Cloud

vsphere Replication for Disaster Recovery to Cloud vsphere Replication 8.1

Multi-Machine Guide vcloud Automation Center 5.2

Lifecycle Manager User's Guide

VMware vrealize Configuration Manager SQL Migration Helper Tool User's Guide vrealize Configuration Manager 5.8

Horizon Air 16.6 Release Notes. This document describes changes to Horizon Air for version 16.6

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2004

Data Protection Guide

VMware Infrastructure 3 Primer Update 2 and later for ESX Server 3.5, ESX Server 3i version 3.5, VirtualCenter 2.5

Notes on Using the Beta VMware Importer Tool on Your Mac VMware Importer 1 Beta 2

Installing and Configuring vcloud Connector

Using VMware vsphere Replication. vsphere Replication 6.5

vrealize Operations Manager Customization and Administration Guide vrealize Operations Manager 6.4

Migrating vrealize Automation 6.2 to 7.1

EXPLORING MONITORING AND ANALYTICS VMware Horizon

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

vsphere Replication for Disaster Recovery to Cloud

Request Manager User's Guide

How to Use a Tomcat Stack on vcloud to Develop Optimized Web Applications. A VMware Cloud Evaluation Reference Document

MBS Microsoft Oracle Plug-In 6.82 User Guide

CONFIGURING BASIC MACOS MANAGEMENT: VMWARE WORKSPACE ONE OPERATIONAL TUTORIAL VMware Workspace ONE

WHITE PAPER SEPTEMBER 2017 VCLOUD DIRECTOR 9.0. What s New

Dell DL4300 Appliance Release Notes

Configuring Single Sign-on from the VMware Identity Manager Service to Exterro E-Discovery

Image Management for View Desktops using Mirage

Redefining Data Protection. Title Page. User s Guide. for the NetVault: Backup APM for Oracle. APM Version 5.5 OAG

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

VMware Mirage Web Manager Guide

HP StoreOnce Recovery Manager Central for VMware User Guide

TECHNICAL WHITE PAPER AUGUST 2017 REVIEWER S GUIDE FOR VIEW IN VMWARE HORIZON 7: INSTALLATION AND CONFIGURATION. VMware Horizon 7 version 7.

Metalogix Essentials for Office Creating a Backup

Using the vcenter Orchestrator Perspectives Plug-In

Using the vrealize Orchestrator OpenStack Plug-In 2.0. Modified on 19 SEP 2017 vrealize Orchestrator 7.0

VMware vcloud Air User's Guide

VMware vrealize Operations for Horizon Installation. VMware vrealize Operations for Horizon 6.3

Redefining Data Protection. Title Page. User s Guide. for the NetVault:Backup APM for Oracle. APM Version 5.1 OAG

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2005

VMware vfabric AppInsight Installation Guide

Veritas NetBackup for Oracle Administrator's Guide

HP Database and Middleware Automation

Oracle VM. Getting Started Guide for Release 3.2

Disaster Recovery: Restore Database from One Server to another Server when Different Location

NetBackup 7.6 for Oracle: Hands-On Lab

Web Self Service Administrator Guide. Version 1.1.2

VMware vrealize Operations for Horizon Installation. VMware vrealize Operations for Horizon 6.5

VMware vrealize Operations for Horizon Installation

Deploying the Zero Data Loss Recovery Appliance in a Data Guard Configuration ORACLE WHITE PAPER MARCH 2018

Administrator Guide. Flexible Storage

VMware View Upgrade Guide

INSTALLATION AND SETUP VMware Workspace ONE

Configuring Single Sign-on from the VMware Identity Manager Service to Bonusly

vcloud Director Administrator's Guide

Storage Considerations for VMware vcloud Director. VMware vcloud Director Version 1.0

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

vrealize Suite Lifecycle Manager 1.0 Installation and Management vrealize Suite 2017

VMware vfabric Data Director Programming Guide

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

Managing the VM Lifecycle

Cohesity DataPlatform Protecting Individual MS SQL Databases Solution Guide

APPLYING AND TROUBLESHOOTING PREDEFINED SETTINGS VMware Horizon

Configuring Single Sign-on from the VMware Identity Manager Service to Marketo

Redefining Data Protection

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 2.7.2

vsphere Host Profiles Update 1 VMware vsphere 6.5 VMware ESXi 6.5 vcenter Server 6.5

What s New (v4.0 to v5.0) Thinware vbackup 5.0.0

Kernel for Exchange Server. Installation and Configuration Guide

Data Protection Guide

Reconfiguring VMware vsphere Update Manager. Update 1 VMware vsphere 6.5 vsphere Update Manager 6.5

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 3.1 and 3.1.1

VMware vsphere Data Protection Evaluation Guide REVISED APRIL 2015

Quick Start Guide For Ipswitch Failover v9.0.1

vsphere Host Profiles 17 APR 2018 VMware vsphere 6.7 VMware ESXi 6.7 vcenter Server 6.7

Recovering Oracle Databases

NSFOCUS WAF (VM) User Guide

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 2.7.3

Configuring OneSign 4.9 Virtual Desktop Access with Horizon View HOW-TO GUIDE

Installing and Configuring vcloud Connector

VMware vrealize Operations for Horizon Administration

Using the vcenter Orchestrator Plug-In for vcloud Director 1.0

vbackup Administrator s Guide Thinware vbackup 4.0.2

Port Adapter Installation and Configuration Guide

StarWind iscsi Target for Microsoft Windows: Using StarWind iscsi Target and VMware Workstation Virtual Machines

LIVENX UPGRADE GUIDE (AIO)

Advanced Architecture Design for Cloud-Based Disaster Recovery WHITE PAPER

Setting Up Resources in VMware Identity Manager 3.1 (On Premises) Modified JUL 2018 VMware Identity Manager 3.1

Reconfiguring VMware vsphere Update Manager. 17 APR 2018 VMware vsphere 6.7 vsphere Update Manager 6.7

Transcription:

Getting Started with Database Ingestion VMware vfabric Data Director 2.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document see: http://www.vmware.com/support/pubs.

Copyright 2012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. VMware, Inc. 3401 Hillview Ave. Palo Alto, CA 94304 www.vmware.comvmware VMware, Inc. 1

Introduction One of the challenges faced by DBAs is the inability to easily provide a clone of the production database and to keep it up to date. Whenever there is an issue in the production environment or when a new configuration change has to be tested, it is important to have a test environment that closely mimics the production database. DBAs need a solution that enables them to: Create a golden clone of the production database running in the physical environment. Refresh the golden clone at regular intervals to keep the data current. Easily provision a test database on demand that mirrors the production database. Incrementally refresh the test database at regular intervals to keep the test environment up to date with production database. Set a retention period on test environments and delete them when the period has expired. In this exercise, we will walk through how using Data Director, DBAs can cut the time it takes to create production copies from days to minutes. Prerequisites Before you can start, the following pre-requisites must be met: The tasks in Getting Started with Database Provisioning have been completed. An existing Oracle database that you would like to use as the source database for ingestion is available. o The database must be version 11gR2 or 10gR2. The database version in the template should match the source database. o SID 1 should be the same as the database name An NFS share where the RMAN backup of the source database is stored. o This NFS share will be mounted as part of the database ingestion process, and the database will be ingested using the backups from that share. o The share must be accessible from within the database VM. 1 Oracle System ID (SID) is used to uniquely identify a particular database on a system. For this reason, you cannot have more than one database with the same SID on a computer system. VMware, Inc. 2

Familiarity with Oracle RMAN configuration and commands. Concepts In this guide, we will be creating two different types of clones from production database backups, a onetime clone, and a golden clone. One-time clone Data Director offers features that automate routine database management activities. For example, Data Director automates backup, snapshot, and restore functions. It is quite easy to set up High Availability (HA) within Data Director. For some applications, it might make sense to migrate your production database into Data Director. A one-time clone is an ideal way to migrate databases into Data Director, whether the databases are physical or virtual. Once a clone is created as a one-time clone, it is running as live database. Your application can start using the clone. A one-time clone will not be refreshed from production database. Golden clone in catalog To support various development, test and production support activities, there is a need to re-produce the production database environment. There are two challenges DBAs commonly face when it comes to providing this environment. It takes a long time to provide a clone of a production database. It is challenging to keep the clone up to date with the production database. Data Director addresses these challenges with the golden clone, self-service provisioning, and automated refresh. A golden clone is a non-running, read-only clone of a production database ingested from backup files. Based on user specified refresh intervals, Data Director attempts to refresh the golden clone with backup files stored on NFS share. Golden clones cannot be used by an application directly. You can provision clones based on the golden clone in catalog. These clones, if desired, can be refreshed at user specified intervals. Note that refresh of these clones will replace their content, and you will lose all modifications users have made to the clone. VMware, Inc. 3

Scenario Workflow The scenario consists of the following steps: 1. Create an NFS share and set up a RMAN backup from a source database. The step is external to Data Director. In this step, we will prepare an NFS share where Level 0 and Level 1 RMAN backups of the source database are stored. For a one-time clone, we also support full backup. 2. Create a one-time clone of the source database using database ingestion. In this step, you will use Data Director to create a one-time clone. 3. Create a Golden Clone of the production database and refresh the clone at regular intervals. In this step, you will create a golden clone and set a refresh interval to update the clone with the source database changes. 4. Provision a test environment from the golden clone. By the end of this session you will know how to perform the following tasks: Create a copy of a source database in Data Director. The source database can be running in a physical environment or in a virtualized environment. Create a Golden Clone that can be refreshed at regular intervals to keep it up to date with the source database. Provision a test environment from the golden clone. VMware, Inc. 4

Create an NFS share and setup an RMAN backup from a source database For this exercise, you will need an NFS share where the RMAN backups are available for an existing Oracle database. The backup for one-time clone should be either a full backup or a level 0 incremental backup for the ingestion to work. Golden clones only support level 0 incremental backups for ingestion to work, and both level 0 and level 1 incremental backups for data refresh to work. See the Oracle documentation for details about how to take RMAN backups. In this case we will assume that the source database name is ORCL and the NFS share is located at IP:/RMAN and the relative path is Orclbackup. You will need to replace these with the information from your environment. NOTE: Make sure that {SID}.List file is in the relative path Backup Operation Requirement You must adhere to the following rules when backing up the source database: Turn on control file auto backup and use default control file auto backup format for device type disk ('%F'). If the database is in archive log mode and open, it must include an archive log in the backup. For example, Backup INCREMENTAL LEVEL 0 database plus archivelog; ". Otherwise, do not include an archive log in the backup. The absolute path of any control files, data files, redo log files and temporary files of the source database cannot contain a space, tab, carriage return, asterisk, question mark, backslash, quote or line feed characters. The database must be included in the backup, i.e., you cannot back up only archive logs. Supply a LIST file containing information about the backup operation. See the next section for the name convention and format of the LIST file. For a one-time clone, a full backup or level 0 incremental backup is required; for a live-clone, a level 0 incremental backup is required for ingestion, and a level 0 or level 1 (either differential or cumulative) incremental backup is required for a refresh. You must have an spfile if you are not specifying pfile in LIST file. File based conventions You need to follow the following file base conventions: Backup files for one ingestion or refresh operation should have their own directory, which should be somewhere underneath the exported directory, not necessarily the exported directory. You should supply a LIST file that contains information about the backup. The naming convention for the LIST file is: database.list, where database is the name of the database. The following is an example of a LIST file: VMware, Inc. 5

controlfile=o1_mf_s_774019590_7lhv06jn_.bkp pfile=sales.pfile level=1 A controlfile field is required; it specifies the control backup file in a separate backup set. The value is a file name relative to the LIST file; it can be in the same directory as LIST file or somewhere else. Other backup files must be in the same directory as the control backup file. A pfile field is optional. A spfile is required if you don t specify the pfile. A level field is required for both golden clone creation and refresh, but it is optional for a onetime clone. Make sure the level information in the LIST file is correct. Sometimes, even when you specify a level 1 backup, RMAN actually will do a level 0 backup. Incorrect level information will result in refresh failure. Create a one-time clone of the source database using database ingestion In this scenario there is an Oracle database named Orcl running in production, and you want to provide a copy of the production database to a tester. Using Data Director, you can easily migrate, or ingest, a production database into Data Director, and provide users access to that database. To achieve this, follow this procedure: 1. Log in to Data Director as the production organization administrator. 2. Click the Manage & Monitor tab. 3. In the left pane, click on the Orcl database group. 4. Click the Databases tab. 5. Click the plus (+) icon, to bring up the Create Database wizard. 6. In Creation Type, select Ingest external Database, and click Next. 7. In Ingestion Process Settings, enter following information: Ingestion Source. Enter NFS share name and Relative path. - The NFS share name contains the NFS server IP or name and exported directory information, separated by a colon (:). - Relative path is the relative path under the exported directory on the NFS server where the LIST file mentioned in the requirements can be found. It can be empty. In that case, the LIST file should be in the exported directory. Scheduling Window. Select Run this action now to ingest the external database. 8. Click Next. 9. Upon next, you will walk through an Ingestion Source Validation step. The validation ensures that the Data Director Web Console can communicate with NFS share. If the validation fails, you will be given an option to proceed. We allow the option to proceed because the DBVM network may be on a different subnet and might still be able to communicate with the NFS share. Verify your environment settings and click Ok to proceed. 10. In Refresh Profile. Select One-time clone, and Click Next. 11. In General, enter the following information: a) Name and Description. Enter a name and description of the database. A description is optional. VMware, Inc. 6

NOTE: The name must be the same as the source database name. b) Database type. Select Oracle. c) Base DB Template, Select Oracle template. d) Database group. Select the Orcl database group, if not already selected. e) Click Next 12. In Configuration, enter following information: a) Resource Template. Select the medium template. b) Data disk allocation. The storage allocation must be larger than the existing database size. Provide an additional 5 GB of storage on top of the source database size. c) Backup template. Disabled d) PITR disk allocation: Set as recommended e) Click Next 13. In Options, enter following information: a) Expiration. Set it to not expire. b) Leave others as default c) Click Next 14. In Summary, review the database information. 15. Click Finish to start ingestion. Provisioning and ingestion of the database begins. On completion, you will have a running database that you can use for your application. Using Data Director, you can see how easily you can migrate your production database into Data Director. Another common scenario is reproducing a production database for test, development, or production support use. Moreover, the database often has to be refreshed with the latest changes from production. DBAs achieve this today by recreating the database. One of the problems with that approach is that it makes the existing provisioned environment useless, and forces users to reconfigure states, tools, and so on. We will now look at how Data Director addresses this problem. Create a golden clone of the production database and refresh the clone Data Director allows you to create a golden clone of a production (source) database. This clone is a readonly copy that can be: Refreshed incrementally at regular intervals. Used to provision additional copies of the production database. The steps to create a golden clone are very similar to creating a one-time clone. 1. Login to Data Director as the production organization administrator. 2. Click the Manage & Monitor tab. 3. On the left pane, click on the Oracle database group. 4. Click the Databases tab. 5. Click the plus (+) icon to start the Create Database wizard. VMware, Inc. 7

6. In Creation Type, select Ingest External Database, and click Next. 7. In Ingestion Process Settings, enter following information: a) Ingestion Source, enter NFS share name and Relative path. - For NFS Share Name, type: IP:/RMAN. For the relative path, type: Orclbackup NOTE: The above parameters are just for illustration use the corresponding parameters from your environment. - NFS share name contains the NFS server IP or name and exported directory information, separated by a colon (:). Relative path is the relative path under the exported directory on the NFS server where the LIST file, mentioned in requirements above, can be found. It can be empty. In that case, the LIST file should be in the exported directory. - Because this is a golden clone, it is required that the share contain level 1 backups that can be continuously applied. b) Scheduling Window, select Run this action now. c) Click Next. 8. In Refresh Profile, select Golden clone in catalog. a) Set the Automatic refresh frequency. b) Click Next. 9. In General, enter following information: a) Name and Description. Enter a name and optionally, a description of the database. NOTE: The name MUST be the same as the source database name. b) Database type. Oracle. c) Base DB template. Select the Oracle template. d) Database group. Select the Oracle database group, if not already selected. e) Click Next. 10. In Configuration, enter following information: a) Resource Template. Select the medium template. b) Data disk allocation. The storage allocation must be larger than the existing database size. Provide enough storage to account for the database growth during refresh. c) Backup template. Disabled. d) PITR disk allocation. Default. 11. In Options, leave all as default and click Next. 12. In Summary, click Finish to start ingestion. The golden clone will be created as a catalog database under organization. To verify the catalog in Data Director: 1. Click on the production organization. 2. On the center pane, select the Catalog tab. 3. You will see the golden clone listed there as catalog database with a status of creating and once it is created you will see the status change to ready. VMware, Inc. 8

Provision a test environment from the golden clone Now that you have a golden clone, you can easily provision test environments. To provision a database using the golden clone, follow this procedure: 1. Log in to Data Director as the production organization admin. 2. Click the Manage & Monitor tab. 3. On the left pane, click on the Oracle database group. 4. Click the Databases tab. 5. Click the plus (+) icon to start the Create Database wizard. 6. Select Create Database from Catalog, click Next. 7. Select the golden clone from the catalog. 8. Select the Linked Clone option and click Next. 9. On the General page, type a name for the database, and click Next. 10. On the IP Whitelist page, leave the defaults and click Next. 11. Click Finish. A new database will be provisioned. This database will be automatically refreshed with the new changes as the golden clone is refreshed. Summary The scenario walkthrough demonstrated how, using vfabric Data Director, you can Migrate a production database into Data Director using database ingestion. Use the golden clone to quickly create a copy of the production database. Use automated refresh to keep the golden clone current with the production database. Provision and refresh test environments from the golden clone and have an up to date environment for testing and troubleshooting. VMware, Inc. 9