CERN IT Department CH-1211 Genève 23 Switzerland www.cern.ch/i t Using Data Guard for hardware migration UKOUG RAC & HA SIG, Feb 2008 Miguel Anjo, CERN.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
OAUG Database SIG – Oracle 11g R2 Database Upgrade for E-Business Suite 11i Oracle Open World 2010 San Francisco Presented by Kaberi Nayak Senior Oracle.
CERN - IT Department CH-1211 Genève 23 Switzerland t Backup & Recovery with RMAN LCG 3D Workshop, Bologna June 12 th, 2007 Jacek Wojcieszuk.
Oracle9i Data Guard Darl Kuhn Sun Microsystems
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.
1 Chapter 15 Duplicating Databases and Transporting Data.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
Managing an Oracle Instance
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery Part 1.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
Backup & Recovery with RMAN
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
1 © 2006 Julian Dyke Logical Standby Julian Dyke Independent Consultant juliandyke.com Web Version.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Data Guard for RAC migrations WLCG Service Reliability Workshop CERN, November.
The Oracle Recovery Manager (RMAN)
Copyright © 2009 Rolta International, Inc., All Rights Reserved Oracle High Availability - A Case Study Rama Balaji Senior Oracle Consultant.
CERN IT Department CH-1211 Genève 23 Switzerland t Recovery Exercise Wrap-up Jacek Wojcieszuk, CERN IT-DM Distributed Database Operations.
CERN IT Department CH-1211 Geneva 23 Switzerland t CERN IT Department CH-1211 Geneva 23 Switzerland t
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Database Upgrade/Migration Options & Tips Sreekanth Chintala Database Technology Strategist.
1 © 2005 Julian Dyke Oracle 10.2 RAC New Features Julian Dyke Independent Consultant Web Version juliandyke.com.
CERN IT Department CH-1211 Genève 23 Switzerland t Data Protection with Oracle Data Guard Jacek Wojcieszuk, CERN/IT-DM Distributed Database.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
Presentation #32050 Presentation #32050 Implementing Oracle9i Data Guard For Higher Availability By Daniel T. Liu First American Real Estate Solutions.
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
ORACLE 10g DATAGUARD Ritesh Chhajer Sr. Oracle DBA.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
CERN - IT Department CH-1211 Genève 23 Switzerland t Tier0 database extensions and multi-core/64 bit studies Maria Girone, CERN IT-PSS LCG.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
Installing Oracle9i RAC Release 2 on HP OpenVMS Systems.
IT Database Administration SECTION 01. Starting Up and Shutting Down the Database Database Administration Facilities – A number of tools are available.
Atlas LCG 3D Oracle cluster migration strategy at BNL Carlos Fernando Gamboa On behalf of database group Grid Group, RACF Facility, Brookhaven National.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Real Application Clusters (RAC) Techniques for implementing & running robust.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
CERN IT Department CH-1211 Genève 23 Switzerland t DBA Experience in a multiple RAC environment DM Technical Meeting, Feb 2008 Miguel Anjo.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
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.
CERN IT Department CH-1211 Genève 23 Switzerland t Streams Service Review Distributed Database Workshop CERN, 27 th November 2009 Eva Dafonte.
CERN IT Department CH-1211 Genève 23 Switzerland 1 Active Data Guard Svetozár Kapusta Distributed Database Operations Workshop November.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
SETA Central 2006 Crashes Happen - Downtime Won't with Data Guard Stephen Rea Tuesday, October 10, :30 AM.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
3 Copyright © Oracle Corporation, All rights reserved. 管理数据库事例.
Backup and Recovery.
Is 221: Database Administration
Clonedb: The quick and easy cloning solution you never knew you had.
Oracle Database Monitoring and beyond
Oracle ASM on Azure: Backup Scenarios
Duplicating a Database
RAC Backup and Recovery Lab
Performing Database Recovery
Arkansas Banner Users Group (ABUG) 2006
Oracle 12c Multitenant Database
Presentation transcript:

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 Physics Databases LCG

CERN IT Department CH-1211 Genève 23 Switzerland t Motivation Commodity hardware has small warranty periods Hardware specifications progress very fast Minimal downtime required Easy to fallback in case of error Can include – Version change – Migration to 64bit – Different hardware sizing Our use cases: migrate hardware (storage + servers) and – upgrade to – upgrade 32bit to 64bit OS+RDBMS Using Data Guard for Hardware migration - 2

CERN IT Department CH-1211 Genève 23 Switzerland t Outline I.Preparation steps – Standby DB II.Preparation steps – Primary DB III.Configuration and startup – Standby DB IV.Final steps – Primary DB V.Checks VI.Database switchover / migration completion VII.Final cleanup Using Data Guard for Hardware migration - 3

CERN IT Department CH-1211 Genève 23 Switzerland t Configure new hw: OS, storage, oracle account Install clusterware (latest version if upgrading) Install rdbms software (exactly same version) – Use cloning from primary/source: sudo tar cfpz rdbms_PRE_migr.tgz $ORACLE_HOME/rdbms on standby/destination untar: tar xfp ; edit/remove instance specific files: minimal set is $ORACLE_HOME/dbs + $ORACLE_HOME/network/admin Configure listeners (netca) Configure ASM instances, create diskgroups Don’ t create database Using Data Guard for Hardware migration - 4

CERN IT Department CH-1211 Genève 23 Switzerland t Needs to be in ARCHIVE LOG mode Set force logging Copy $ORACLE_HOME/network/admin/ + spfile to stage directory in Standby DB Make at least level 1 backup after setting force logging Save service definitions for later recreation Using Data Guard for Hardware migration - 5

CERN IT Department CH-1211 Genève 23 Switzerland t Change tnsnames.ora copied from primary with standby hosts – Add new possible nodes – Add entry old_db pointing to primary database – Copy on all standby nodes (also sqlnet.ora ) Create password file (SYS pw needs to be the same as in primary) Change pfile copied from primary with dataguard parameters – log_archive_dest_2, standby_file_management, fal_server, fal_client – If diskgroup names are different, set also conversion parameters and location of FRA – Add new nodes ( instance_name, instance_nu,ber, thread, undo_tablespace, local_listener ) Create dump directories Using Data Guard for Hardware migration - 6

CERN IT Department CH-1211 Genève 23 Switzerland t Create controlfile directory in ASM Create DB spfile (and pfiles) SQL> startup nomount; Configure RMAN/backups Start DB duplication with RMAN: $ rman target auxiliary / nocatalog RUN { ALLOCATE AUXILIARY CHANNEL t1 DEVICE TYPE sbt_tape; ALLOCATE AUXILIARY CHANNEL t2 DEVICE TYPE sbt_tape; DUPLICATE TARGET DATABASE FOR STANDBY; } Using Data Guard for Hardware migration - 7

CERN IT Department CH-1211 Genève 23 Switzerland t Start redo apply: SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; Register with clusterware the DB, instances and services srvctl add database -d {DB_NAME} -o $ORACLE_HOME srvctl add instance -d {DB_NAME} -i {INSTANCE_NAME} -n {NODE_NAME} srvctl modify instance -d {DB_NAME} -i {INSTANCE_NAME} -s {ASM_INSTANCE_NAME} srvctl add service -d {DB_NAME} -s {SERVICE_NAME} -R {PREF_NODES} –a {AV_NODES} Add entries on /etc/oratab on all nodes Using Data Guard for Hardware migration - 8

CERN IT Department CH-1211 Genève 23 Switzerland t Add entry in tnsnames.ora on all nodes pointing to standby DB Modify Dataguard parameters SQL> alter system set log_archive_dest_2 ='service=standbydb valid_for=(online_logfiles,primary_role)' scope=both sid='*'; SQL> alter system set standby_file_management =auto scope=both sid='*'; Using Data Guard for Hardware migration - 9

CERN IT Department CH-1211 Genève 23 Switzerland t V - Checks Using Data Guard for Hardware migration - 10

CERN IT Department CH-1211 Genève 23 Switzerland t Shutdown all services on primary Shutdown all instances but one On running instance set primary to standby role SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN; SQL> SHUTDOWN IMMEDIATE SQL> STARTUP MOUNT Using Data Guard for Hardware migration - 11

CERN IT Department CH-1211 Genève 23 Switzerland t Verify switchover_status on v$database (should be TO_PRIMARY ) Switch to primary role SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY; SQL> ALTER DATABASE OPEN; Do any necessary upgrade, patchset to target system Start up other nodes of new primary DB Using Data Guard for Hardware migration - 12

CERN IT Department CH-1211 Genève 23 Switzerland t VII – Final clean-up Disable archivelog mode and force logging, if applicable Remove DataGuard parameters from spfile Grant sysdba privileges to any specific user Backups: – Crosscheck backups, delete expired ones, do full backup – If no backups needed, remove ones created for migration Remove pointers to old db on tnsnames.ora Shutdown primary cluster Add RAC nodes to new setup – Redologs, undo tablespaces, add to CRS, public tnsnames.ora Using Data Guard for Hardware migration - 13

CERN IT Department CH-1211 Genève 23 Switzerland t Questions? …and answers Work done mostly by Jacek Wojcieszuk and Dawid Wojcik with collaboration of Eva DaFonte, Luca Canali and Miguel Anjo Thanks, Using Data Guard for Hardware migration - 14