• Like
  • Save


Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Oracle11g R2 - Edition Based Redefinition for On Line Application Upgrade



Continuous database application evolution with Oracle RDBMS 11gR2 Editions ...

Continuous database application evolution with Oracle RDBMS 11gR2 Editions
Performing an application upgrade with new versions of tables, views and packages without suffering any downtime. That is the objective of the Editions feature in Oracle RDBMS 11g Release 2. This presentations illustrates how database development can be organized using Edition Based Redefinition to allow various users and user communities to simultaneously work with different versions of database objects. It will show how to gracefully migrate users and client applications one by one to the latest versions of the database objects, without loss of availability.



Total Views
Views on SlideShare
Embed Views



7 Embeds 1,833

http://technology.amis.nl 1808
http://www.slideshare.net 8
http://www.javaoracleblog.com 6
http://webcache.googleusercontent.com 4
http://translate.googleusercontent.com 4 2 1



Upload Details

Uploaded via as Microsoft PowerPoint

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.

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

    Oracle11g R2 - Edition Based Redefinition for On Line Application Upgrade Oracle11g R2 - Edition Based Redefinition for On Line Application Upgrade Presentation Transcript

    • Release 2
      Release 3
      Base Release
      Introducing Oracle 11gR2 Edition Based RedefinitionOn Parallel Application Universes
      Lucas Jellema
      (Oracle ACE Director)
      CTO, AMIS
    • Availability
      Availability = Performance * (Up or Down)
      Up = !Down
      Down = Unplanned Down + Planned Down
      Planned Down???
      System Maintenance
      Power-supply, Hardware & Network, O/S upgrade
      Database patching & Upgrade
      Application Upgrades
    • Application Upgrade
      Creation of new objects
      Changing existing objects (alter and create or replace)
      Add, Modify or Drop columns or constraints
      Change packages and stored procedures
      Drop redundant objects
      Convert or migrate data
      Resume normal operations
      Application is DOWN
    • Compare with road maintenance
    • Restructuring A12
      Build new road next to current one (A12-B)
      Same “functionality” as the old road
      At the cut-over moment
      Open new A12-B:
      Newly arriving traffic travels on temporary road
      Close A12 (original)
      Cars already on old road keep going
    • Edition Based Redefinition is similar
      Application Upgrade:
      Prepare new release
      Construct the release in parallel to the existing
      Operations in existing application ‘edition’ continue normally
      From the cut-over point:
      Have new sessions operate on new release
      Existing sessions can continue to run on existing release
    • Edition Based Redefinition brings a new dimension to the database
      Release 3
      Release 2
      Base Release
    • Editions introduce or inherit versions of objects
      Release 2
      Release 3
      Base Release
    • Editions are parallel universes
      Database Objects are identified by
      Object Type
      Object Name
      …. Edition!
      (release, application version, stripe, parallel universe id)
      Database Sessions run in the context of a specific edition
      Using a specific collection of versions of objects
    • Database sessions run in a specific edition –one version of each object
      Release 2
      Release 3
      Base Release
      The database as seen by a sessionrunning in the context of Release 3
    • Demo of Application Upgrade
      Existing base application, in base edition
      Create new editon – release_2
      Create and Alter database objects
      Base application continues running
      Cut-over point
      New sessions run in release_2 edition
      Current sessions continue in base
    • Some Rules for EBR (Edition Based Redefinition)
      Editioning acts on packages, functions, triggers, procedures, views, types and synonyms
      Editioning does not apply to tables
      Data is not versionend, cloned, migrated
      Different incarnations of a table are suggested through editionable views – there is only one table
      Applications should never access tables directly!
      Cross Edition Triggers on the table synchronize DML from different editions with the current state of the table
      CET are temporary objects – not part of the application
    • But wait, there is more
      After the release of a new edition – there is no reason why you cannot keep the previous one going for some time
      And multiple previous ones!
      That means – END OF THE BIG BANG upgrade!
      Multiple versions of the application can continue running to suport various user groups (e.g. SaaS)
      Without data migration and additional downtime upon later move over of user groups
    • Parallel Application Versions
      Application X
      VERSION 1
      Application X
      VERSION 2
      Release 2
      Release 3
      Base Release
    • Version 1 on Base Edition
    • Version 1 on Edition Release 2
    • Upgrade Base to Release 2
      New columns COUNTRY and BIOGRAPHY
      Drop column NUM_OF_PAGES
      Modified column ISBN (10 to 20 characters)
    • Version 2 (on Edition Release 2)
    • Version 2 on Base Edition
    • SummaryEdition Based Redefiniton
      11gR2 Editions are parallel, co-existing universes with incarnations of database objects
      The new release can be constructed, tested and run in a new edition
      The old edition can be switched off at cut-over
      Editions also allow long time co-existence of multiple releases of an application
      Application Upgrade no longer needs to disrupt the operation through planned downtime
    • Conclusion
      See http://www.amis.nl
      To do an 11gR2 PoC together with us
      To learn about 11gR2 training (DBA & Developer)
      For more on database migration services
      Free Event: 29th September – technical details on 11gR2 including hands-on session
      See Blog for 11gR2 articles
      Contact me: lucas.jellema@amis.nl