Database Upgrade/Migration Options & Tips Sreekanth Chintala Database Technology Strategist.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

© ViSolve.com All rights reserved. Privacy Statement April Oracle Disaster Recovery Implementation A Non-Technical Overview.
Cloud Computing: Theirs, Mine and Ours Belinda G. Watkins, VP EIS - Network Computing FedEx Services March 11, 2011.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
1 Dbvisit Software Ltd. Dbvisit Overview. 2www.dbvisit.com Agenda Dbvisit Software Ltd. Overview Dbvisit Standby Dbvisit Replicate Customer Successes.
Introduction to DBA.
1 Storage Today Victor Hatridge – CIO Nashville Electric Service (615)
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
© 2015 Dbvisit Software Limited | dbvisit.com An Introduction to Dbvisit Standby.
1 Chapter 15 Duplicating Databases and Transporting Data.
Database Backup and Recovery
CHAPTER 17 Configuring RMAN. Introduction to RMAN RMAN was introduced in Oracle 8.0. RMAN is Oracle’s tool for backup and recovery. RMAN is much more.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Data Guard for RAC migrations WLCG Service Reliability Workshop CERN, November.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
Introduction to Oracle Backup and Recovery
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Simplify your Job – Automatic Storage Management Angelo Session id:
© 2009 Oracle Corporation. S : Slash Storage Costs with Oracle Automatic Storage Management Ara Vagharshakian ASM Product Manager – Oracle Product.
Backup & Recovery Concepts for Oracle Database
High Availability & Oracle RAC 18 Aug 2005 John Sheaffer Platform Solution Specialist
1 Data Guard Basics Julian Dyke Independent Consultant Web Version - February 2008 juliandyke.com © 2008 Julian Dyke.
Selling the Database Edition for Oracle on HP-UX November 2000.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
© ViSolve.com All rights reserved. Privacy Statement April Oracle Disaster Recovery Implementation A Non-Technical Overview.
Welcome from Dbvisit Licensing Overview June 2015.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
Oracle Advanced Compression – Reduce Storage, Reduce Costs, Increase Performance Session: S Gregg Christman -- Senior Product Manager Vineet Marwah.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
1 Data Guard. 2 Data Guard Reasons for Deployment  Site Failures  Power failure  Air conditioning failure  Flooding  Fire  Storm damage  Hurricane.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Marcin Blaszczyk, Zbigniew Baranowski – CERN Outline Overview & Architecture Use Cases for Our experience with ADG and lessons learned Conclusions.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
11g The Perfection of a Masterpiece A presentation about new features of 11g you may not have noticed Christo Kutrovsky The Pythian Group 2007 October.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
CERN IT Department CH-1211 Genève 23 Switzerland 1 Active Data Guard Svetozár Kapusta Distributed Database Operations Workshop November.
Database CNAF Barbara Martelli Rome, April 4 st 2006.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
BMC Software Copyright 2001 Distributed Data Management Recovery Solution Petri Tumppila Presales Manager.
CommVault Architecture
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration UKOUG RAC & HA SIG, Feb 2008 Miguel Anjo, CERN.
Oracle Database High Availability
Database recovery contd…
Backup & Recovery of Physics Databases
Lead SQL BankofAmerica Blog: SQLHarry.com
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Maximum Availability Architecture Enterprise Technology Centre.
Briefing: Leverage HPE Storage Solutions in Windows/Hyper-V
Creating an Oracle Database
Oracle Database High Availability
Introduction of Week 6 Assignment Discussion
Oracle Cloud Migration Methods
Introduction.
Presentation transcript:

Database Upgrade/Migration Options & Tips Sreekanth Chintala Database Technology Strategist

Global Marketing 2Confidential Agenda Very high level overview of Migration/Upgrade options No technical details

Global Marketing 3Confidential About the Speaker 3 West Virginia University (M.S) Supporter of UT Longhorns 11+ Yrs of Oracle, 17+ years in IT RACSIG Web chair ( ) Presenter at OIUG, OOW, Local user groups Technical Editor

Global Marketing 4Confidential Database Upgrade Moving DB from one version to another on the same server It is NOT: Upgrading the Server Upgrading the OS Upgrading the Storage

Global Marketing 5Confidential Database Upgrade 10gR1 11gR2

Global Marketing 6Confidential Database Migrations Move to another Server Move to another Data Center Move to another (later) Version Migrations are typically done as part of End-of- Life refresh, usually followed by Database Upgrade

Global Marketing 7Confidential Database Upgrade Methods Database Upgrade Assistant GUI Uses GUI to upgrade The DBUA performs pre-upgrade checks Manual Upgrade Performed via SQL-Plus Commands Use pre-upgrade script to validate Modify Cluster Registry entries for RAC Databases.profile changes, environment variables Tips Use GUI method, especially for RAC Databases Take a backup before the upgrade Check news groups to be aware of any known issues

Global Marketing 8Confidential Factors Source & Target DB Version Acceptable Downtime Size of the database Source & target Operating Systems

Global Marketing 9Confidential Concerns Downtime Performance Data Field Conversions Upgrade Issues Fallback / Backout Training

Global Marketing 10Confidential Database Migration Options Complete Downtime Export and Import using Data Pump (or exp/imp) CTAS Backup & Restore Transportable Tablespaces Minimal Downtime Logical/Physical Standby EMC SRDF Copy ASM Rebalance Near Zero Downtime Oracle Streams Golden Gate

Global Marketing 11Confidential Export / Import Database needs to be down or open read only Take an export on the source system Copy the export dump to destination system Import into the database Advantages Simple to use, proven track record Works well for smaller DB sizes (say < 50GB) Gotcha’s Size of the database dictates the amount of downtime needed Import time is 3-4 times longer than export time Older Unix system may have 2G file size limitations.

Global Marketing 12Confidential Export / Import 10gR1 11gR2 Export Copy Export Copy Tips Use NFS mount that can be accessed from both source and destination Data Pump provides many features Review the nature of data. Bring over the static tables, partitions ahead of time, reduce the total downtime In case of RAC instances, leverage all instances to import different tables Indexes can be re-built on the destination. No need to import them Collect stats after the import Beware of security and password changes

Global Marketing 13Confidential SQL Plus-CTAS Database needs to be down or open read only Copy the Tables via DB Link Gotchas Size of the database and the network throughput dictates the amount of downtime needed Don’t use it on Live tables Advantages No intermediate storage needed Operations can be performed in parallel for non-related tables

Global Marketing 14Confidential CTAS 10gR1 11gR2 Tips Review the nature of data. Bring over the static tables, partitions ahead of time, reduce the total downtime In case of RAC instances, leverage all instances to import different tables Indexes can be re-built on the destination. No need to import them Collect stats after the import DB Link

Global Marketing 15Confidential Backup / Restore RMAN incremental backups can reduce the downtime Copy the backups to destination system Restore into the database Gotchas Heavy DML operations may prolong the “Restore-Sync” time Going through “Tape” can significantly add time to backup and restore Typically few restore (tape) resources are allocated Advantages Primary Database is up and running Can use RMAN compression, parallel operations RMAN only backups the changes and restores the needed files Tips Use a shared disk (NFS) between the target server If you have to go to tape, request dedicated backup channels until the restore is complete

Global Marketing 16Confidential Transportable Tablespaces Create the empty database Create the Metadata of the source database in the new database Database files are moved from existing database to the other system Gotchas Source and target systems should have the same character set and national character set Limitations on indexes ( Function based/domain ) Limitations on snapshot/replication Tables and indexes to be part of the self contained set All the partitions of a partitioned table needs to be moved as a set Advantages Use this option to move the databases across different platforms Faster because it bypasses usual data extract and load processes Efficient than export/import

Global Marketing 17Confidential Logical/Physical Standby Option Available for and above Very minimal downtime( time to switchover ) Must setup a Data Guard environment Gotchas Need to modify Primary to setup Logical/Physical Standby OS must be the same ( family) between primary and standby Primary needs to be shut down for DB Upgrade on the target SQL Apply reapplies the transactions. Heavy OLTP systems are not a good candidate for Logical Standby Doesn’t work for cross platform Advantages Proven technology Changes to the production are copied over to the standby Newer versions, you can use it to test the performance using snapshot standby Protection from Physical Corruption

Global Marketing 18Confidential Only available for EMC Storage - Symmetrix Remote Data Facility Manages real time copies of data volumes ( at the storage level) Gotchas EMC solution for Symmetrix storage Physical corruption will get carried over to the other side The target (individual) Lun size should be equal to or larger than source Lun Advantages Most simple solution to copy multi-terra byte DBs Most of the work is on the storage team to setup SRDF SRDF can copy the incremental block changes after initial setup SRDF Copy Option

Global Marketing 19Confidential ASM Rebalance Option Leverage ASM rebalance feature to off-load data from one storage array to another Gotchas Will require downtime to bring up the new system Will require downtime to perform DB upgrades Advantages No disruption to primary database during rebalance No monitoring or governance during the operation

Global Marketing 20Confidential ASM Rebalance Option Storage Arrays 1. Add the New LUNs on the OLD system (OS) 2. Add the LUNs to the Disk Group 3. Perform Rebalance 4. Shutdown Old System 1. Create CRS,DB,ASM on new system 2. Copy SPFILEs (DB,ASM) 3. Add the New LUNs on the New system (OS) 4. Bring up the database

Global Marketing 21Confidential Oracle Streams Little or no downtime Source and Targets can be any version to any platform Gotchas Limitations on some data types ( CLOB/BLOB) Extremely complex to implement & maintain Longer development cycles Need highly skilled DBAs Advantages Can be used to migrate between different platforms and versions

Global Marketing 22Confidential Golden Gate Option Little or no downtime Source and Targets can be any version to any platform Gotchas Requires Golden Gate License investment of intermediate platform when moving from one OS Family to another Advantages Moderately complex to implement Provides Fall back options You can leverage the infrastructure many times Best near Zero Downtime Option

Global Marketing 8i & 9i  10g/11g Migration Overview Goldengate Capture to Trails Create Clone DB via RMAN 8i/9i ASM Storage XTTS – Transport Tablespace Goldengate Apply from Trails Real-Time Replication Fail back!Reverse Replication Server & Storage Provisioning DBA Begins Migration Production App Testing Switchover to RAC Database Fail back Strategy Post-Migration

Global Marketing 24Confidential In place Migrations of OS Complete Downtime to the server being upgraded Data Guard can be up and running while the migration is taking place Operating System Upgraded wipes out internal drives Newer Cluster Version wipes out the Clusterware drives Data Luns inside ASM are intact.

Global Marketing 25Confidential In place Migration Steps DBA 1. Create and save (elsewhere) pfile from the spfile Linux Engineer 1. Re-image all cluster nodes to new OS 2. Post-build steps an 11g RAC cluster. 3. Check and validate if the cluster is healthy and operational DBA 1. Restore the saved pfile configuration files and start ASM. 2. Mount the expected ASM disk groups and start the DB. 3. By starting the DB under the 11g binaries, this converted the 10gR2/64 DB to 11g. Run DB Upgrade script