• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Upgrade to Oracle Database 11g R2 the possible waysossible_ways
 

Upgrade to Oracle Database 11g R2 the possible waysossible_ways

on

  • 2,877 views

Oracle DB Migration Tour

Oracle DB Migration Tour

Statistics

Views

Total Views
2,877
Views on SlideShare
2,877
Embed Views
0

Actions

Likes
7
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Upgrade to Oracle Database 11g R2 the possible waysossible_ways Upgrade to Oracle Database 11g R2 the possible waysossible_ways Presentation Transcript

    • Upgrade to Oracle Database 11g R2the possible waysMAREK MARTOFEL
    • Agenda• Why Upgrade to Oracle Database11g?• Upgrade Steps and Challenges• Upgrade Methods• Summary © 2010 Oracle Corporation
    • Where are we today?• Oracle Database 11g – Release 2 available on Linux, Windows and Unix – Supports all Oracle Applications – 11.2.0.2 Patch Set now available – New quarterly rolling Patch Set Updates (PSU 11.2.0.2.1)• Oracle Exadata – Runs Oracle Database 11g Release 2 – Supported OS platform: – Oracle Enterprise Linux 5.5 – Solaris 11 Express (available from April 2011) – Extreme performance for all database workloads © 2010 Oracle Corporation
    • Oracle Database 11g Release 2Standard for all Enterprise Applications Oracle Database 11g      Real Application Clusters      Partitioning      Advanced Compression      Advanced Security      Database Vault      Management Packs      © 2010 Oracle Corporation
    • Why Upgrade to Oracle Database 11gLower IT costs AND improve Quality of Service• Improve OLTP & DW performance • Increase parallelization and in-memory execution of data queries • Achieve extreme performance with Oracle Exadata• Optimize storage resources • Lower the cost of storage management • ASM automates the striping and mirroring of database without the need to purchase third party volume management software • ASM Cluster File System • Reduce storage usage with Advanced Compression techniques © 2010 Oracle Corporation
    • Why Upgrade to Oracle Database 11gLower IT costs AND improve Quality of Service• Maximize availability • Eliminate idle redundancy • Reduce downtime • Simplify high availability environments• Reduce management overheads • Built-in automation for Storage and Memory Management, Statistics collection, Backup and Recovery and SQL Tuning • Advisors are provided for Configuration Management, Patching, Indexing, Partitioning,Performance Diagnostics, Data Recovery, Compression and Maximum Availability © 2010 Oracle Corporation
    • Why Upgrade to Oracle Database 11gLower IT costs AND improve Quality of Service• Reduce hardware costs • Reduce hardware costs through consolidation • Instance caging • Consolidate ALL data processing onto low cost Grids using Oracle RAC One Node • Get on the Grid faster with the Oracle Exadata © 2010 Oracle Corporation
    • Review the support policyhttp://www.oracle.com/support/library/brochure/lifetime-support-technology.pdf © 2010 Oracle Corporation
    • Upgrade to Oracle Database 11g  7.3.4 9.2.0.8 R2  9.2.0.4  8.0.6 R2  8.1.7.4 10.1.0.5  9.0.1.4  10.2.0.2 R2 "Empty" arrows mean: no specific patch release required © 2010 Oracle Corporation
    • Support.oracle.com• Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]• How to Perform a Full Database Export Import during Upgrade, Migrate, Copy, or Move of a Database [ID 286775.1]• Migration of Oracle Database Instances Across OS Platforms [ID 733205.1]• How To Change Oracle 11g Wordsize from 32-bit to 64-bit. [ID 548978.1]
    • Upgrade is easier!• The upgrade to Oracle Database 11g is much easier than any upgrades to earlier Oracle releases• Size of Upgrade guides: – 8.1.7 - 512 pages – 9.0.1 - 484 pages – 111 steps for an RDBMS with 9 components – 9.2.0 - 344 pages – 10.1.0 - 170 pages – 10.2.0 - 140 pages – 11.1.0 - 186 pages – 11.2.0 -178 pages © 2010 Oracle Corporation
    • Upgrade Length• How long will the upgrade take to complete? – Independent of: – Size of the database – Used datatypes – Dependent mainly on: – The number of installed components and options – Valid and non-stale data dictionary statistics – Number of synonyms – theyll get recompiled (upgrade from 9i) – Number of objects in XDB – At a very low rate, if COMPATIBLE is increased: – Number of datafiles – Size of redo logs © 2010 Oracle Corporation
    • Upgrade Methods• Database Upgrade Assistant (DBUA)• Manual Upgrade• Export-Import (Use Data Pump or original Export/Import)• Oracle Transportable Tablespaces• Oracle Transportable Database• Oracle Data Guard SQL Apply (Logical Standby)• Online Database Upgrade with Oracle Streams• Oracle Golden Gate © 2010 Oracle Corporation
    • Upgrade Methods UPGRADEExport/Import N Stay on same OS? YCTAS, COPY N Downtime >30min? SQL Apply Y Oracle Streams DBUA Transportable Tablespaces CLI SQL> @catupgrd Transportable Database Oracle Golden Gate © 2010 Oracle Corporation
    • Upgrade Method - DBUA• Database Upgrade Assistant (DBUA) – Interactive GUI tool that steps through the upgrade process and configures the database – Automates all tasks – Performs both Release and Patch set upgrades – Supports RAC, Single Instance and ASM – Lots of important checks – Informs user and fixes upgrade prerequisites – Automatically reports errors found in spool logs – Provides complete HTML report of the upgrade process © 2010 Oracle Corporation
    • Command Line Upgrade • Typical scenario: e.g. changing to a new server Server(OLD) Server(NEW) 1) Install Oracle11g software 2) Copy utlu112i.sql3) Run utlu112i.sql4) Shutdown database 6) Apply suggested changes5) Copy all relevant files 7) Start the upgrade process (dbf, ctl, log, spfile, orapw) © 2010 Oracle Corporation
    • Command Line Upgrade Info• Step-by-step: 1. Complete online backup of the database 2. Install 11g Oracle software and apply patch set, PSU etc. 3. Analyze the DB using utlu112i.sql and follow all requirements given by the script 4. Create a new 11g listener with NETCA 5. Switch to the new environment, startup the DB (startup upgrade) and create the SYSAUX tablespace (only if source db is an Oracle 9i db) 6. Run upgrade script catupgrd.sql 7. Recompile with utlrp.sql - compare with utluiobj.sql 8. Run catuppst.sql for actions not require UPGRADE mode, i.e AWR Baselines Info, OLS, ADDM Task metadata (10.1) 9. Check the post upgrade status: utlu112s.sql Status © 2010 Oracle Corporation
    • Upgrade Alternatives UPGRADEExport/Import N Same OS? YCTAS, COPY N Downtime >30min? SQL Apply Y Oracle Streams DBUA Transportable Tablespaces CLI SQL> @catupgrd Transportable Database Oracle Golden Gate © 2010 Oracle Corporation
    • Export - Import 10.2.0.4 11.2.0.2Source DB Create new Target DB Transfer $ exp FULL=Y $ imp FULL=Y © 2010 Oracle Corporation
    • Data Pump (Export – Import)• All purpose• Import of all versions  Oracle V5 possible• "exp" is not supported in 11g anymore• Not really fast but well known and reliable – Relation between amount of data and runtime• Necessary and helpful : – Changing the database charactersets – Changing the OS platform – Schema consolidation © 2010 Oracle Corporation
    • Transportable Tablespaces• Concept: – Create an "empty" database in the new environment – Plug in all data tablespaces from source to target database - SYSTEM+SYSAUX tablespaces cant be transported - Additional steps necessary to move views, synonyms etc. – Possibly very fast upgrade – Complexity could be constraining – Since Oracle Database 10g possible for cross platform and cross Endianess © 2010 Oracle Corporation
    • Transportable Tablespaces• TTS x-platform (v$transportable_platform): Little Endian RMAN Big Endian c HP Open VMS HP Tru64 UNIX o FILE FILE Apple Mac OS Linux IA (32-bit) n HP-UX (64-bit) Linux IA (64-bit) v HP-UX IA (64-bit) COPY COPY Linux 64-bit for AMD e AIX-Based Systems (64-bit) Microsoft Windows IA (64-bit) r IBM zSeries Based Linux Microsoft Windows 64-bit for AMD t IBM Power Based Linux Microsoft Windows IA (32-bit) Solaris[tm] OE (32-bit) Solaris Operating System (x86) Solaris[tm] OE (64-bit) © 2010 Oracle Corporation
    • Transportable Tablespaces 10.2.0.4 11.2.0.2Source DB Target DB Create new Move non-segmented user objects Transport © 2010 Oracle Corporation
    • Transportable Database• Feature since Oracle Database 10g Release 2 – Cross-platform – Unfortunately not cross-Endianess!!! – With RMAN in an automated way – Database must be switched to READ ONLY mode – Datafiles must be converted with RMAN into target format – RMAN CONVERT DATABASE command – Either on the source or the target system – in most cases completes faster on the target system – Not a real minimal downtime concept – But very comfortable for migrations in between one Edianess group © 2010 Oracle Corporation
    • Transportable Database• TDB x-platform (For OS namings see: v$transportable_platform): Little Endian Big Endian RMAN RMAN HP Open VMS c c HP Tru64 UNIX o o HP-UX (64-bit) Linux IA (32-bit) n n HP-UX IA (64-bit) Linux IA (64-bit) v v AIX-Based Systems (64-bit) Linux 64-bit for AMD e e IBM zSeries Based Linux Microsoft Windows IA (64-bit) r r IBM Power Based Linux t t Microsoft Windows 64-bit for AMD Solaris[tm] OE (32-bit) Microsoft Windows IA (32-bit) Solaris[tm] OE (64-bit) Solaris Operating System (x86) © 2010 Oracle Corporation
    • Oracle Streams• Concept – Build up a copy of your database and upgrade it – Synchronize it with the source database – Downtime: – Just reconnecting the clients – Cross platform – Cross version since Oracle 9iR2 – Some effort necessary to set it up – Fallback possible – Logminer – Datatype restrictions – Performance – How to: Oracle® Streams Concepts and Administration: Appendix D http://download.oracle.com/docs/cd/E11882_01/server.112/e10704/ap_strmnt.htm#CIHJBIAA © 2010 Oracle Corporation
    • Oracle GoldenGate• Concept – Create a copy of your database with Transportable Tablespaces – Golden Gate CDG mechanism for synchronization © 2010 Oracle Corporation
    • Logical Standby with Oracle Data Guard• Concept: – Build up a Physical Standby database – Convert the Physical Standby into a Logical Standby – Upgrade the Logical Standby database – Switchover – Standby will be production system now – Then: Upgrade of the former production database – Eventually: Switchover to the original roles – Downtime less 2 minutes – BUT: – No OS change possible – Logminer has known restrictions © 2010 Oracle Corporation
    • Logical Standby with Oracle Data Guard Upgrade Clients Redo P L Log P L ARCH 10.2.0.5 10.2.0.5 10.2.0.5 11.2.0.2 1 Logical Standby configuration 2 Upgrade node L to 11.1 Redo Redo Upgrade L P P L 11.2.0.2 11.2.0.2 10.2.0.5 11.2.0.2 Switchover (role change), 4 3 "Mixed setup" for testing then upgrade on L (ex-P) © 2010 Oracle Corporation
    • Transient Logical Standby• Concept: – Build up a Physical Standby database – Convert the Physical Standby into a Logical Standby – Upgrade the Logical Standby database – Switchover – Standby will be production system now – Then: Flashback the former production database – Convert it into a Physical Standby – Upgrade just by log apply – Eventually: Switchover to the original setup – Works pretty straight forward with Oracle Database 11g – Will work with Oracle Database 10g as well but requires more steps © 2010 Oracle Corporation
    • 1 Rolling ... PROD PSTBY t t © 2010 Oracle Corporation
    • 2 Rolling ... Guaranteed Restore Point PROD PSTBY  t t © 2010 Oracle Corporation
    • 3 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer  KEEP IDENTITY  Build LSTBY synchronize t t © 2010 Oracle Corporation
    • 4 Rolling ... Guaranteed Restore Point PROD PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome  Upgrade t t © 2010 Oracle Corporation
    • 5 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome Upgrade  synchronize LSTBY  SWITCHOVER PROD t t © 2010 Oracle Corporation
    • 6 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome Upgrade synchronize FLASHBACK DATABASE TO: LSTBY SWITCHOVER Guaranteed PROD Restore Point t t © 2010 Oracle Corporation
    • 7 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome Upgrade synchronize FLASHBACK DATABASE TO: LSTBY SWITCHOVER PROD Guaranteed Restore Point Switch to new $OracleHome  CONVERT TO PHYSICAL PSTBY t t © 2010 Oracle Corporation
    • 8 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome Upgrade synchronize FLASHBACK DATABASE TO: LSTBY SWITCHOVER PROD Guaranteed Restore Point Switch to new $OracleHome CONVERT TO PSTBY PHYSICAL Automatic Upgrade during redo apply synchronize  t t © 2010 Oracle Corporation
    • 9 Rolling ... Guaranteed Restore Point PROD PSTBY Logminer KEEP IDENTITY Build LSTBY synchronize New $OracleHome Upgrade synchronize FLASHBACK DATABASE TO: LSTBY SWITCHOVER PROD Guaranteed Restore Point Switch to new $OracleHome CONVERT TO PSTBY PHYSICAL Automatic Upgrade synchronize during redo apply PROD  SWITCHOVER PSTBY t t © 2010 Oracle Corporation
    • Summary Upgrade Methods• Database Upgrade Assistant (DBUA)• Manual Upgrade• Export-Import (Use Data Pump or original Export/Import)• Oracle Transportable Tablespaces• Oracle Transportable Database• Oracle Data Guard SQL Apply (Logical Standby)• Online Database Upgrade with Oracle Streams• Oracle Golden Gate © 2010 Oracle Corporation
    • SummaryWhy Upgrade to Oracle Database 11g?Lower IT costs AND improve Quality of Service• Improve OLTP & DW performance• Optimize storage resources• Reduce hardware costs• Maximize availability• Reduce management overheads © 2010 Oracle Corporation
    • For More Information http://search.oracle.com oracle database 11g or www.oracle.com/database © 2010 Oracle Corporation