Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ace upgrade and_migrate

4,942 views

Published on

Oracle Migration Database 12c and Migration methods

Published in: Technology, Business

Ace upgrade and_migrate

  1. 1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  2. 2. Different Ways to Upgrade, Migrate & Consolidate with Oracle Database 12c Mike Dietrich Senior Principal Technologist Database Upgrade Oracle Corporation
  3. 3. Database Upgrade Group Roy Swonger Senior Director Software Dev. & Product Management Carol Tagliaferri Senior Manager Software Dev. Cindy Lim Principal Member Technical Staff Joseph Errede Principal Member Technical Staff Mike Dietrich 3 Eric Wittenberg Senior Principal Technologist Principal Software Engineer Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  4. 4. $> whoami Mike Dietrich – Based near Munich/Germany – @Oracle since December 1996 – 6 yrs RDBMS Mission Critical Support – 5.5 yrs Presales Core Tech (Data Guard, Upgrades) – 5.5 yrs Server Tech Upgrade Development Interlink between customers and development – 50% working mostly in reference projects onsite/remotely – 50% running workshops worldwide – 25% development work and other stuff ☺ 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  5. 5. Upgrade Blog: blogs.oracle.com/UPGRADE Scroll down to go to the slides 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  6. 6. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  7. 7. Supported Versions 2025 2024 2023 2022 2021 2020 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2019 JUL 2010 ! JUL 2013 AUG 2012 AUG 2015 JAN 2015 JAN 2018 JUN 2018 (GA: Jun 2013) 7 2018 JAN 2012 Oracle 12.1 Premier Support 2017 (GA: Sep 2009) 2016 Oracle 11.2 2015 (GA: Aug 2007) 2014 Oracle 11.1 2013 (GA: Jul 2005) 2012 JUL 2010 JAN 2009 Oracle 10.2 2011 (GA: Jan 2004) 2010 Oracle 10.1 2009 JAN 2007 2008 2007 2006 2005 2004 (GA: Jul 2002) 2003 2002 Oracle 9.2 today Extendend Support Waived Extendend Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c JUN 2021 Sustaining Support
  8. 8. Database Patch Set Roadmap Release Schedule of Current Database Releases Note.742060.1 1x 3x 1x 11.1.0.7 8 11.2.0.2 11.2.0.3 11.2.0.4 12.1.0.2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  9. 9. Terminology: Upgrade vs. Migration Database Upgrade – Dictionary only – No data will be touched, changed or moved Migration – Move to new hardware, a new OS, another character set 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  10. 10. Upgrade/Migrate Older Oracle Releases Oracle 5/6/7/8 Oracle 8i Oracle 9i exp/imp Less Downtime? Transportable Tablespaces Oracle 9.2 Oracle 10.1 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Near-Zero Downtime? Golden + Gate
  11. 11. Upgrade Options to Oracle Database 12c expdp/impdp Less Downtime? DBUA Oracle 10.2 Transient Standby HW Oracle 11.1 Logical Standby catctl.pl Oracle 11.2.0.1/2 Oracle 11.2.0.3/4 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Near-Zero Downtime? Golden Gate + Transportable Tablespaces Full Transportable Exp/Imp Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c RMAN +Inc Bck
  12. 12. Migration Options to Oracle Database 12c Oracle 10.2 Less Downtime? expdp/impdp Near-Zero Downtime? CTAS, COPY Oracle 11.1 SQL*Loader Oracle 11.2.0.1/2 Oracle 11.2.0.3/4 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. TDB Only same Endianness Transportable Tablespaces Full Transportable Exp/Imp Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Golden Gate + RMAN +Inc Bck
  13. 13. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  14. 14. Upgrade/Migration Strategies? Step-by-Step vs Big Bang – Upgrade/migration in pieces over a period of time Considered as risk mitigating – Everything in one downtime window Sometimes necessary due to dependencies Least critical systems first vs most critical system first – Learn more with every step vs: – Learn about almost all from the beginning 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  15. 15. Project Approach? Plan your upgrades as early as possible Application testing is important Have valid test systems Think about the fallback ... before you start! Try to streamline Talk to us (Oracle) to avoid pitfalls – Get our Best Practice slides ☺ 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  16. 16. Project Phases • Documentation Phase 1 • The more you know the better it is! • Test Phase 2 • Use tools such as RAT • Upgrade/Migration Phase 3 • Relax ... • Go-Live Phase 4 • Keep an extra eye on performance • Future Phase 5 16 • It's not over now ... It just started!!! Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  17. 17. How to approach a large project? Phase 1: Data collection and documentation – Application owner? Version, dependencies, certification, timeframe, budget – Database owner? Downtime When? – Database size & version, OS version, Gateways etc 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  18. 18. How to approach a large project? Phase 2: Test phase – 1:1 test systems – Network bandwidth – Documentation!!! – Performance information from PROD – Testing tools such as Real Application Testing – Check especially for batches, long-ops etc – Multiple successful test runs – Be prepared for performance issues – Be open to patches – Test your fallback strategy 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  19. 19. How to approach a large project? Phase 3: Upgrade/migration phase – Make sure everybody is informed – Relax ... ☺ – Don't overtestoteronize 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  20. 20. How to approach a large project? Phase 4: Go-Live phase – Check performance In case of performance issues use the collected plans from PROD – Open an SR with Oracle Support if something does not work as expected – Don't tell people too early about the successful go-live ☺ 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  21. 21. How to approach a large project? Phase 5: Future phase – Don't lean back – it's not over now – Plan your patching cycle Apply future PSUs (Patch Set Updates) asap – Implement and adopt useful new features Many features come at no extra costs but will be really helpful – Target your future upgrades 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  22. 22. Preparation Checklist In the SOURCE environment: Clean Up Empty the recycle bin Check for INVALID objects in SYS/SYSTEM Check for duplicate objects in SYS/SYSTEM Remove outdated parameters Components Check for INVALID components Check for necessary components Remove obsolete components Performance Preserve performance statistics Check network performance Optional 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Perform Integrity checks Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  23. 23. Preparation Check List In the TARGET environment: Checks Software Certification Information Installation Requirements Download Software and Patch Sets CPUs, PSUs and Bundle Patches Single Patches Settings 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Parameter Recommendations Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  24. 24. Installation of the new Software Patch Set / Base Release Install newest PATCH SET (full install release since Oracle Database 11.2) or Install base release into a new Oracle home (if there's no patch set available yet) PSU/BP Patches Upgrade 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Apply newest available Patch Set Update (PSU) or Apply recommended (bundled) patches (BP) Apply Interim Patches for known issues Now: Start the database upgrade/migration!!! Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  25. 25. Example: Patch Set 11.2.0.3 Download patch set 11.2.0.3 from support.oracle.com: 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  26. 26. Patching Notes by Release ? MOS Note:161818.1 Oracle 11.2.0 » Click on the releases number « ? Oracle 12.1.0 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MOS Note:880782.1 Known Issues and Alerts in 11.2.0.x » Click on "Availability and Known Issues" for your patch releases « MOS Note:1348336.1 Availability and Known Issues in 11.2.0.3 Recommended Patches Alerts Notable Fixes Issues Introduced MOS Note:756671.1 Recommended Database Patches MOS Note:1565065.1 Known Issues and Alerts in 12.1.0.x MOS Note:1565082.1 Availability and Known Issues in 12.1.0.1 » Click on "Availability and Known Issues" for your patch releases « MOS Note:756671.1 Recommended Database Patches Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Check for: Check for: Recommended Patches Alerts Notable Fixes Issues Introduced
  27. 27. Important Alerts and One-Off-Patches? Check for important alerts: Note:161818.1 ‘click’ 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  28. 28. Upgrade Information / Alerts Known issues in 11.2.0.x? See Note:880782.1 ‘click’ 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  29. 29. Upgrade Information / Alerts Recommended Patches for 11.2.0.3? Note:1348336.1 − See also Recommended Database Patches Note:756671.1 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  30. 30. Upgrade Information / Alerts Alerts and new issues with 11.2.0.3? Note:1348336.1 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  31. 31. Upgrade Information / Alerts Alerts and new issues with 11.2.0.3? Note:1348336.1 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  32. 32. Important Optimizer Issues and Fixes Things to consider before upgrade to Oracle Database 11.2.0.3 to avoid Poor Performance or Wrong Results: MOS Note:1392633.1 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  33. 33. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  34. 34. Upgrade to Oracle Database 12c Oracle 7.3.4 Oracle 7.3 (GA: 1996) Oracle 8.0 (GA: 1997 Oracle 8.0.6 Oracle 8.1.7.4 Oracle ≥9.0.1.4 7.3.4 Oracle 9.2.0.8 Oracle 10.1.0.5 Oracle 10.2.0.5 Oracle 11.1.0.7 Oracle ≥11.2.0.2 9.2.0.8 Oracle 8.1 (GA: 1998) Oracle 9.0 (GA: 2001) Oracle 9.2 (GA: Jul 2002) Oracle 10.1 (GA: Jan 2004) ≥11.2.0.2 11.2.0.2 9.2.0.8 8.0.6 Oracle 12.1.0.1 ≥11.2.0.2 11.2.0.2 8.1.7.4 10.2.0.5 9.0.1.4 10.2.0.5 9.2.0.8 11.2.0.2 ≥11.2.0.2 10.1.0.5 Oracle 10.2 ≥11.2.0.2 11.2.0.2 10.2.0.5 (GA: Jul 2005) Oracle 11.1 DIRECT 11.1.0.7 (GA: Aug 2007) Oracle 11.2 DIRECT ≥11.2.0.2 11.2.0.2 (GA: Sep 2009) DIRECT Oracle 12.1 (GA: Jun 2013) Please note: This graph will apply to database upgrades only! 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  35. 35. Upgrade SQL Automation New Pre-Upgrade Script preupgrd.sql Executes pre-upgrade checks Runs in source environment Generates fixup scripts – preupgrade_fixups.sql – postupgrade_fixups.sql MOS Note:884522.1 35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  36. 36. Faster Upgrade – Less Downtime catctl.pl New Parallel Upgrade catctl.pl Runs database upgrade in parallel Up to 40% faster upgrade Used and proven by selected Oracle Database 11g customers script1.sql script2.sql script4.sql script7.sql script9.sql script5.sql script8.sql script10.sql script6.sql script6.sql 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. script3.sql Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c script11.sql
  37. 37. “The new parallel upgrade script promises to drastically reduce downtime due to planned maintenance. We saw a 37% improvement over the previous upgrade process in our environment.” Harald Stefan Leiter Datenbanken Payback GmbH 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  38. 38. Faster Upgrade – Less Downtime New Parallel Upgrade $> $ORACLE_HOME/perl/bin/perl catctl.pl -n 8 catupgrd.sql 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  39. 39. Simplified Upgrade Database Upgrade Assistant Pre-Upgrade Automation Parallel Upgrade RMAN Integration Guaranteed Restore Points Activity and Alert Log 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  40. 40. Enterprise Manager Mass and RAC Upgrades EM Cloud Control Mass Upgrades Grid Infrastructure Upgrades RAC Database Upgrades Standby Database Upgrades 40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  41. 41. Differences Upgrade 11.2 vs Upgrade 12c Upgrade to Oracle Database 11.2 Upgrade to Oracle Database 12c Preupgrade script utlu112i.sql Preupgrade script preupgrd.sql Status information Detailled status information and recommendations No fixup scripts Fixup scripts catupgrd.sql drives upgrade serially catctl.pl drives upgrade parallel No parallel execution Up to 8 parallel threads – default: 4 41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  42. 42. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  43. 43. Look Before You Leap! ☺ Some well-known concepts will change – Around 150 pages new documentation in the Administrator’s Guide 43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  44. 44. The earth is still a sphere ☺ You don't have to use pluggable databases ... not yet Oracle Database 12c non-CDB works as expected – But you can also use the new features and this will require changing old habits 44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  45. 45. Oracle Multitenant – Implementation Multitenant container database – Administration from CDB PDB$ SEED A CDB can contain one or many pluggable databases PDB1 PDB2 CDB1 – Data and code in PDBs – Applications connect to PDBs Simple and fast provisioning, cloning, plugin, patching and upgrade 45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. PDB$ SEED Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c PDB1 CDB2 PDB3
  46. 46. Oracle Multitenant – Behind the scenes One SGA One set of background processes One SPFILE Redo Control Flashback spfile PDB$ SEED PDB1 CDB 46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c PDB2 PDB3
  47. 47. Creation of a CDB Two options: – DBCA Highly recommended – Command line CREATE DATABASE Not recommend as all options will have to be created CREATE DATABASE cdb12 [...] ENABLE PLUGGABLE DATABASE SEED FILE_NAME_CONVERT=('/oradata/cdb12/','/oradata/pdbseed/') SYSTEM DATAFILES SIZE 125M AUTOEXTEND ON NEXT 10M MAXSIZE […] 47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  48. 48. Command Line Creation of a CDB Scripts have to be started via catcon.pl: $> perl catcon.pl -u SYS -d $ORACLE_HOME/rdbms/admin -e -s -b catalog catdb.sql – catdb.sql will run all scripts for all options Bug 17033183 - MISSING FILE CATCDB.SQL IN $ORACLE_HOME/RDBMS/ADMIN – Most useful catcon.pl options: -u -d Directory containing the script to execute (default: current directory) -e Echo on -s Spools the output of every script -l Directory to write logfiles into (default: current directory) -b 48 Username and optionally password Base name for logfiles (mandatory option) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  49. 49. CDB-PDB: Who's who? After plugging a PDB into a CDB: – Data resides in the PDB – References will get created in the CDB – In exchange access to dictionary objects from within the PDB OBJ$ TAB$ SOURCE$ PDB PDB$SEED OBJ$ TAB$ SOURCE$ CDB$ROOT 49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c EMP DEPT
  50. 50. CDB-PDB: Who's who? Tablespaces – Global UNDO and TEMP in CDB$ROOT – PDBs can have their own TEMP – All PDBs will share CDB's UNDO SYSTEM SYSAUX SYSTEM SYSAUX PDB$SEED SYSTEM SYSAUX 50 TEMP UNDO Copyright © 2013, Oracle and/or its affiliates. All rights reserved. PDB TEMP_PDB CDB$ROOT Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c DATA1 DATA2
  51. 51. CDB-PDB: Who's who? Common user – Exists in the CDB and every current and future PDBs – All Oracle supplied users are common users CDB1> create user c##adm identified by topsecret; Local user APP – Exists in a PDB only PDB$SEED HUGO CDB$ROOT C##ADM SYS SYS C##BOSS C##ADM C##BOSS 51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c PDB
  52. 52. Patching Two options: – Patch the CDB including all PDBs PDB$SEED Oracle 12.1.0.1 PDB$SEED PDB1 Oracle 12.1.0.1 CDB$ROOT Patch Oracle 12.1.0.2 PDB1 Oracle 12.1.0.2 CDB$ROOT – Patch by plug out, plug in PDB$SEED Oracle 12.1.0.1 PDB1 2 PDB$SEED Oracle 12.1.0.1 CDB$ROOT 52 Oracle 12.1.0.2 CDB$ROOT Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  53. 53. Resource Manager and CDBs/PDBs Set resource consumption for: – CPU – Session – Parallel servers Policy definition for shares and limits – Example with CPU_COUNT=24 on CDB level: PDB Guaranteed CPU Limit Maximum CPU A 12 12/24 = 50% ??? 100% B 6 6/24 = 25% 50% 50% C 53 Shares 6 6/24 = 25% ??? 100% Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  54. 54. Plug into Oracle Multitenant Roads to Pluggable Databases Creation of a new PDB Cloning a PDB Upgrade and plugin as PDB Full Transportable Export/Import 54 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  55. 55. Creation of a New Pluggable Database Fast provisioning from PDB$SEED create pluggable database PDB1 PDB$ SEED admin user adm1 identified by pwd; – PDB_FILE_NAME_CONVERT Import data with impdp – Dump file or NETWORK_LINK – imp for ≤ Oracle 9i 55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c PDB1 i m CDB p d p
  56. 56. Plug into Oracle Multitenant Roads to Pluggable Databases Creation of a new PDB Cloning a PDB Upgrade and plugin as PDB Full Transportable Export/Import 56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  57. 57. Cloning of a Pluggable Database Fast cloning of a PDB – Local: create pluggable database PDB2 from PDB1; PDB$ SEED PDB1 PDB2 CDB1 – Remote: create pluggable database PDB1 from PDB1@CDB1; Planned for a future patch set or release PDB$ SEED PDB1 CDB2 57 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  58. 58. Plug into Oracle Multitenant Roads to Pluggable Databases Creation of a new PDB Cloning a PDB Upgrade and plugin as PDB Full Transportable Export/Import 58 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  59. 59. Upgrade and Plugin as PDB Database upgrade Start database read-only Create XML description file PDB$ SEED exec DBMS_PDB.DESCRIBE('PDB1.xml'); PDB1 CDB Shutdown database Plugin database create pluggable database PDB1 using ('PDB1.xml') nocopy tempfile reuse; Sanity operations Copyright © 2013, Oracle and/or its affiliates. All rights reserved. DB1 Read Only start ?/rdbms/admin/noncdb_to_pdb.sql 59 PDB1 xml Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  60. 60. Plug into Oracle Multitenant Roads to Pluggable Databases Creation of a new PDB Cloning a PDB Upgrade and plugin as PDB Full Transportable Export/Import 60 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  61. 61. Traditional Transportable Tablespaces Rebuild meta information (views, synonyms, trigger, roles etc) SOURCE Database 10.2.0.4 DESTINATION Database 11.2.0.3 VIEWS VIEWS Read Only APP HUGO 61 SYSTEM SYSAUX UNDO TEMP Copyright © 2013, Oracle and/or its affiliates. All rights reserved. CODE APP PRIVS HUGO Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c SYSTEM SYSAUX UNDO TEMP CODE PRIVS
  62. 62. Full Transportable Export/Import Combining: – Transportable Tablespaces with – Data Pump taking care on all meta information with optional – RMAN incremental backups to decrease downtime This works: – Cross platform – With or without Oracle Multitenant – Source can be Oracle 11.2.0.3 – Target must be at least Oracle 12.1.0.1 62 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  63. 63. Full Transportable Export/Import with Copies SOURCE Database 11.2.0.3 DESTINATION Database 12.1.0.1 VIEWS VIEWS Read Only APP HUGO 63 SYSTEM SYSAUX UNDO CODE PRIVS Data Pump HUGO TEMP Copyright © 2013, Oracle and/or its affiliates. All rights reserved. APP Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c SYSTEM SYSAUX UNDO TEMP CODE PRIVS
  64. 64. Full Transportable Export/Import with Backups Convert and apply backups SOURCE Database 11.2.0.3 DESTINATION Database 12.1.0.1 VIEWS VIEWS Read Only APP HUGO 64 SYSTEM SYSAUX UNDO CODE PRIVS Data Pump HUGO TEMP Copyright © 2013, Oracle and/or its affiliates. All rights reserved. APP Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c SYSTEM SYSAUX UNDO TEMP CODE PRIVS
  65. 65. Full Transportable Export/Import Create a fresh database/PDB Create database link to source Tablespaces read-only – downtime! Copy datafiles to destination Run impdp on NETWORK_LINK PDB$ SEED impdp oow/passwd@PDB1 NETWORK_LINK=DB1 VERSION=12 FULL=Y TRANSPORTABLE=ALWAYS METRICS=Y LOGFILE=oow_dir:src112fullimp.log TRANSPORT_DATAFILE='/oradata/ts1.dbf' … 65 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c PDB1 Database Link impdp CDB Read Only DB1
  66. 66. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 66 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  67. 67. Automatic Data Optimization New Features Extreme Availability Security Features Remarkable Enhancements 67 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  68. 68. Automatic Data Optimization Simplifying the life cycle of data In-memory heat map tracks access to segments and blocks SQL> alter system set heat_map='ON'; – y lic Po 68 1 Feature is currently not available with Oracle Multitenant Attach policies to tables to compress or tier data Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  69. 69. Automatic Data Optimization Add compression and tiering policies to tables 2 icy ol P y1 lic Po Compress Partitions with Hybrid Columnar Compression if they haven’t been modified from in 180 days Compress Partitions with Advanced Compression if they haven’t been modified in 30 days Most Recent Data Oldest Data 69 69 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  70. 70. Automatic Data Optimization A heat map tracks the activity of segments and blocks 2 icy ol P y1 lic Po Most Recent Data Oldest Data 70 70 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  71. 71. Automatic Data Optimization: Heat Map Future Enterprise Manager screens - WIP 71 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  72. 72. Automatic Data Optimization Policies are automatically applied to tables 2 icy ol P y1 lic Po If after 30 days partitions haven’t be modified they will be compressed using advanced row compression Most Recent Data Oldest Data 72 72 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  73. 73. Automatic Data Optimization Policies are automatically applied to tables 2 icy ol P y1 lic Po Oldest Data 73 73 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. After 180 days of no modification, the oldest partition is identified to be compressed using Hybrid Most Recent Data Columnar compression Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  74. 74. Automatic Data Optimization Policies are automatically applied to tables 2 icy ol P y1 lic Po Oldest Data 74 74 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Most Recent Data Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  75. 75. Automatic Data Optimization Reduce storage footprint, read compressed data faster 2 icy ol P y1 lic Po Oldest Data 75 75 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Most Recent Data Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  76. 76. Automatic Data Optimization Automatically tier data to lower cost storage y3 lic Po y2 lic Po y1 lic Po Oldest Data 76 76 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. If the tablespace is nearly full then compress the oldest partition with Archive Hybrid Columar Compression and moveMostto Tier 2 Storage it Recent Data Confidential – Oracle Restricted Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  77. 77. Automatic Data Optimization New Features Extreme Availability Security Features Remarkable Enhancements 77 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  78. 78. Zero Data Loss Challenge Trade-off between Zero Data Loss and Performance Commit Ack Network Ack Network Send Commit Primary Standby The longer the distance, the larger the performance impact 78 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  79. 79. Active Data Guard Far Sync Example, New York London Far Sync Instance Far Sync Instance (Active) (Idle) Async London Primary Reading Bridgeport New York 79 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Standby
  80. 80. Fine-grained Table Recovery From Backup Simple RECOVER TABLE command to recover one or more tables (most recent or older version) from an RMAN backup 101 01 010 1 1 101001 1 011011110 0 0 1 0 1 00 0 0 1001101 1010 01 RMAN Backups 80 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Eliminates time and complexity associated with manual restore, recover & export Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  81. 81. Oracle ASM 12c – Overview Oracle ASM 12c Standard Deployment RAC Cluster Database Instance One to One Mapping of ASM Instances to Servers DBA DBA ASM Instance DBB DBB DBB DBC ASM Instance Node1 ASM Node2 ASM Node3 ASM Node4 ASM Node5 ASM ASM Cluster Pool of Storage Shared Disk Groups Disk Group A Disk Group B Wide File Striping 81 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c ASM Disk
  82. 82. Introducing Oracle Flex ASM Removal of One to One Mapping and HA RAC Cluster Database Instance Databases share ASM instances DBA DBA ASM Instance DBB DBB DBB DBC ASM Instance Node1 Node2 ASM Node3 ASM Node4 Node2 Node1 runs as runs as ASM ASM Client to Client to Node3 Node4 Node2 ASM Cluster Pool of Storage Shared Disk Groups Disk Group A 82 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Node5 Node5 runs as ASM Client to Node4 Disk Group B Wide File Striping ASM ASM Disk
  83. 83. Automatic Data Optimization New Features Extreme Availability Security Features Remarkable Enhancements 83 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  84. 84. Redaction of Sensitive Data Displayed Preventive Control for Oracle Database 12c Oracle Advanced Security Real-time sensitive data redaction based on database session context Credit Card Numbers 4451-2172-9841-4368 5106-8395-2095-5938 7830-0032-0294-1827 Library of redaction policies and pointand-click policy definition Consistent enforcement, policies applied to data Redaction Policy xxxx-xxxx-xxxx-4368 4451-2172-9841-4368 Transparent to applications, users, and operational activities Call Center Application 84 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Billing Department
  85. 85. Redacting Sensitive Data Mask Application Data Dynamically Call Center Operator Policy enforced redaction of sensitive data Payroll Processing Soc. Sec. # DOB PIN 115-69-3428 11/06/71 5623 Call Centers Decision Support Systems Systems with PII, PHI, PCI data 85 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  86. 86. Discover Use of Privileges and Roles Administrative Control for Oracle Database 12c Oracle Database 12c EE Turn on privilege capture mode DBMS_PRIVILEGE_CAPTURE Create Drop Modify DBA role APPADMIN role Report on actual privileges and roles used in the database Helps revoke unnecessary privileges Enforce least privilege and reduce risks Increase security without disruption 86 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Privilege Analysis Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  87. 87. Automatic Data Optimization New Features Extreme Availability Security Features Remarkable Enhancements 87 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  88. 88. Online Move of Datafiles Rename or relocate datafiles online – Move from one type of storage to another, or into ASM – Examples: Rename: ALTER DATABASE MOVE DATAFILE '/data/user1.dbf' TO '/data/user001.dbf'; Relocate: ALTER DATABASE MOVE DATAFILE '/data/user1.dbf' TO '/test/user1.dbf'; Copy: ALTER DATABASE MOVE DATAFILE '/data/user1.dbf' TO '/test/user1.dbf' KEEP; 88 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  89. 89. IDENTITY Example: Create a table where the id column is always populated by Oracle CREATE TABLE t1 (id NUMBER GENERATED AS IDENTITY, first_name varchar2(30)); INSERT INTO t1(first_name) values ('Hugo'); ID FIRST_NAME ----- -----------1 Hugo Create a table where the id column is populated by Oracle when not provided CREATE TABLE t2 (id NUMBER GENERATED BY DEFAULT AS IDENTITY (START WITH 100 INCREMENT BY 10), first_name varchar2(30)); 89 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  90. 90. Row Limit Example: Select only the first 5 rows SELECT employee_id, last_name FROM employees ORDER BY employee_id FETCH FIRST 5 ROWS ONLY; Select the first 5% of rows and those whose salary “ties” with the lowest of the 5% SELECT employee_id, last_name, salary FROM employees ORDER BY salary FETCH FIRST 5 PERCENT ROWS WITH TIES; 90 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  91. 91. 32K VARCHAR2 / NVARCHAR2 Example: Enable 32k support in the Oracle Database 12c ALTER SYSTEM set MAX_STRING_SIZE=EXTENDED scope=SPFILE; SHUTDOWN IMMEDIATE STARTUP UPGRADE @?/rdbms/admin/utl32k.sql Create table with 32k varchar2 CREATE TABLE Applicants (id NUMBER GENERATED AS IDENTITY, first_name varchar2(30), last_name varchar2(30), application date, CV varchar2(32767) ); 91 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  92. 92. Enterprise Manager Express 92 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  93. 93. Enterprise Manager Cloud Control 12c Plug-in "Enterprise Manager For Oracle Database (DB) 12.1.0.3" already released via EM Self-Update – Supports Oracle Database 12.1.0.1 – Discovers CDBs and PDBs 93 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  94. 94. Enterprise Manager Cloud Control 12c Discovered Oracle Database 12c targets: 94 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  95. 95. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 95 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  96. 96. Optimizing Transaction and Query Performance Row Format Databases versus Column Format Databases SALES Transactions run faster on row format ORDER Row – Insert or query a sales order – Fast processing few rows, many columns SALES Column S T A T E Analytics run faster on column format – Report on sales totals by state – Fast accessing few columns, many rows Oracle 12c: Stores Data in Both Formats Simultaneously 96 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  97. 97. Breakthrough: Dual Format In-Memory Database Memory BOTH row and column in-memory formats for same table OLTP Simultaneously active and transactionally consistent Memory Sales Row Format Sales Column Format Analytics & reporting use New Column format OLTP uses row format 97 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c Analytics
  98. 98. Oracle In-Memory Columnar Technology Memory Pure in-memory format with no logging Near zero overhead on changes – even for OLTP Pure Columnar New memory-optimized compression format – 2x to 10x Data loaded in-memory for active tables or partitions On startup or first access 98 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  99. 99. OLTP is Slowed Down by Analytic Indexes Most Indexes in mixed-use OLTP (e.g. ERP) databases are only used for analytics Table 1 to 3 OLTP Indexes Indexes work well for known access patterns both in-memory and on-disk But every change to the table requires changing all analytic indexes – Slow! 99 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c 5 to 15 Analytics Indexes
  100. 100. Column Store Replaces Analytic Indexes In-Memory Column Store replaces analytic indexes and removes their overhead for tables that fit in memory Table 1 to 3 OLTP Indexes In-Memory Column Store Both predefined and ad-hoc analytic queries run fast OLTP & batch run up to 300% faster Less tuning & admin 100 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  101. 101. Demonstration at Engineered System Showcase 101 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  102. 102. Oracle In-Memory is Trivial to Deploy 1. Configure Memory Capacity inmemory_area = XXXX GB 2. Configure tables or partitions to be in memory alter table | partition … inmemory; 3. Later drop analytic indexes to speed up OLTP 102 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  103. 103. Oracle In-Memory is Transparent to Applications Full Functionality Trivial to Implement Fully Compatible - No restrictions on SQL - No migration of data or change of product - All existing applications run unchanged DB as a Service Ready - Oracle Multitenant in-memory Uniquely Achieves All In-Memory Benefits With No Application Changes 103 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  104. 104. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies 104 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  105. 105. Fallback Strategy – Strategy Never start an upgrade or migration without evaluating and testing your options for going back ... Complete RMAN Online Backup is always a must Clarify: – Fallback requirements in minutes/hours/days – How to deal with issues happening during the upgrade – How to deal with issues hours/days after the upgrade – Will you get additional downtime to change COMPATIBLE? 105 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  106. 106. Parameter COMPATIBLE Minimum COMPATIBLE in Oracle Database 12c: 11.0.0 – 11.0.0 and 11.1.0 are equivalent – Recommendation: Change it 7-10 days after upgrade – but restart required – SQL> alter system set compatible='12.1.0' scope=spfile; – COMPATIBLE can't be turned back COMPATIBLE must be increased to ≥11.0.0 COMPATIBLE can remain on 11.x.y Downgrade possible 106 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  107. 107. Fallback Strategy - Issues during upgrade ALWAYS take a complete ONLINE backup with RMAN ≥ 11.0 Full ONLINE Backup Partial OFFLINE Backup Guaranteed Restore Point Change COMPATIBLE parameter? Yes No Full restore and recovery 107 Yes Partial Restore Flashback to GRP Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  108. 108. Fallback: Online Backup Restore a backup – Complete online backup (RMAN) – Please verify: Where is your backup located? Tapes, HD, off site... Does the restore work? How long will the restore take? How long will the recovery take? – Recommendation: Have a valid online backup in any case 108 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  109. 109. Fallback: Offline Backup Restore a partial offline backup – Put all data tablespaces in read-only mode That's downtime! – Shutdown the database IMMEDIATE – Copy SYSTEM, UNDO, TOOLS, SYSAUX, XDB, DRSYS and ODM data files plus control files and redologs – In case of failure: Shutdown and copy all partial backup files back Startup in the old environment and recreate TEMP – Advantages: Fast and simple, even COMPATIBLE can be changed 109 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  110. 110. Fallback: Restore Point Flashback to a guaranteed restore point – COMPATIBLE can't be changed Pre Upgrade Environment Post Upgrade Environment CREATE RESTORE POINT grpt GUARANTEE FLASHBACK DATABASE; UPGRADE SHUTDOWN IMMEDIATE STARTUP MOUNT; FLASHBACK DATABASE TO RESTORE POINT grpt; SHUTDOWN IMMEDIATE STARTUP MOUNT; ALTER DATABASE OPEN RESETLOGS; DROP RESTORE POINT grpt; 110 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  111. 111. Fallback Strategy – Issues after upgrade AGAIN take a complete ONLINE backup with RMAN after the upgrade ≥ 11.1 Change COMPATIBLE parameter? Yes No Data Pump Re-Import 111 Yes Oracle Golden Gate Downgrade Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  112. 112. Fallback: Data Pump Downgrade with expdp/impdp to 10.x – MOS Note:553337.1 – Prepare an empty database for the import just in case you'll have to step back Then: – Run expdp from the 12.1 database home with the VERSION parameter equal to the target database COMPATIBLE setting – Import using impdp from the target database home – NETWORK_LINK can be used for downgrades as well – 112 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  113. 113. Fallback: Golden Gate Downgrade with Oracle Golden Gate – Version independent Source Upgraded destination database 2 “Downgrade” 113 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1 Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  114. 114. Fallback: Downgrade Downgrade with catdwgrd.sql – MOS Note:883335.1 and MOS Note:443890.1 – Downgrade possible to: Oracle 11.1.0.7 Oracle 11.2.0.x – Do not change COMPATIBLE 114 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  115. 115. Fallback: Downgrade Downgrade with catdwgrd.sql – In Oracle Database 12c environment: SQL> SQL> SQL> SQL> SPOOL /tmp/downgrade.log STARTUP DOWNGRADE @catdwgrd.sql SPOOL OFF – In Oracle Database 11g environment: SQL> SQL> SQL> SQL> 115 STARTUP UPGRADE SPOOL /tmp/reload.log @catrelod.sql SPOOL OFF Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  116. 116. Agenda Supported Versions Approach to Upgrade/Migration Projects Database Upgrade Enhancements Plug into Oracle Multitenant New Features Fallback Strategies Information and Resources 116 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  117. 117. Summary Upgrade to Oracle Database 12c – Now parallel and faster – Detailed checks and fixup scripts Plug into Oracle Multitenant – Many options Full Transportable Export/Import – Simplifies Transportable Tablespaces – Works cross platform – Minimal downtime with RMAN 117 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  118. 118. Resources http://OTN.oracle.com/goto/upgrade Tech White Paper: – Upgrade to Oracle Database 12c http://OTN.oracle.com/goto/datapump Tech White Paper: – Full Transportable Export-Import 118 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  119. 119. Resources Download slides from: – blogs.oracle.com/UPGRADE 119 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  120. 120. 120 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c
  121. 121. 121 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Different Ways to Upgrade, Migrate & Consolidate to Oracle Database 12c

×