Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Using Edition-based redefinition with PL/SQL How to deploy database code changes.

Slides:



Advertisements
Similar presentations
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any.
Advertisements

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Your customer as a segment of one That changes every second! Hein Van Der Merwe Chief.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
Jim Ferrentino Elizabeth West
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer Tips & Tricks Jeff Smith
Oracle Cloud Marketplace Neelesh Gurnani Director, Product Development Arif Khan Director, Product Management September 29, 2014 Copyright © 2014, Oracle.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Track the changes in your Apex application between releases: Yes you can Plsql.
Online Application Upgrade Using Edition-Based Redefinition Alan Choi PL/SQL, Database Sever Technology
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer What’s New in Version 4.1 Jeff Smith
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Advanced Metadata Modeling Modeling for the Oracle Business Intelligence Cloud.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2 Hidden Gems of APEX David Gale Software Engineer Oracle Application Express November,
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer For the DBA Jeff Smith
The Safe Harbor The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated.
Best Practices for Upgrading Oracle PeopleSoft Environments
American Airlines AAdvantage®:
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Amit Jha Project Leader, Product Management Oracle EBS Procurement & Contracts.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Title Slide without Picture Subtitle Presenter’s Name Presenter’s Title Organization,
Discover the Latest in Partner Training for Solutions Specialists Ian Reed Sr. Director, Partner Enablement Dana Hutanu Director, Partner Enablement WWA&C.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit The Newest JDE Module – Rental Management Joel Sandberg Sales Consultant.
Getting Started with Oracle Compute Cloud
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit PaaS from an Applications Perspective Charles McGuinness Director,
Oracle Confidential – Internal/Restricted/Highly RestrictedCopyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Identity Management.
The powerhouse PL/SQL upgrade option: Edition-Based Redefinition (EBR)
Application Express 4.1 New Features Hilary Farrell, Principal Member of Technical Staff, Oracle.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1.
1. When things go wrong: how to find SQL error Sveta Smirnova Principle Technical Support Engineer, Oracle.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Reporting from Contract.
A New IMS-Like Architecture for Enterprise Applications Reid Stidolph Master Principle Solutions Architect Communications Global Business Unit October.
Oracle E-Business Suite Order Management: Presenting the HTML and Mobile User Experience Durgaprasad Bodapati Director, Product Management Bhavana Sharma.
RMB Billing UX Design Concepts / Proposals Peter Picone.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Improving Agility in Product Development and Pricing to Gain a Competitive Edge.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 2 Open Data Web Services for Oracle BPM August, 2013 Forms.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Contract Management.
SQL Tuning made much easier with SQLTXPLAIN (SQLT) Mauro Pagano Senior Principal Technical Support Engineer Oracle Confidential – Internal/Restricted/Highly.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit Preview the Plans for JD Edwards World A9.4 Release David Greiner,
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit Really Cool Demo Stuff – 2015 Edition!!!!! For demo content, please.
1Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
1 © 2010 Julian Dyke Edition-Based Redefinition Julian Dyke Independent Consultant juliandyke.com Web Version.
Build Mobile Apps for Oracle E-Business Suite with Oracle Mobile Platform Bruce Bailey Principal Mobile/Social Solutions Consultant Jagadeesh Maira Senior.
RESTful Microservices In Java With Jersey Jakub Podlešák Software Engineer Oracle, Application Server Group September 29, 2014 Copyright © 2014, Oracle.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Planning & Budgeting Cloud Service (PBCS) Overview Business Analytics Product Group.
WebCenter in Education & Research A Transformation in Digital Business Session: CON7709 Golden Gate C3 Room, Marriott Marquis Moderator: Kevin Roebuck,
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
Performance/Scalability with JDBC, UCP & Oracle Database 12c
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | EPM Top Trends 2015.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit Recruit and Learn Solutions Extend HR into the Cloud Marie Scott.
E Copyright © 2007, Oracle. All rights reserved. Using JDeveloper.
For Oracle employees and authorized partners only. Do not distribute to third parties. © 2008 Oracle Corporation – Proprietary and Confidential.
Travel and Transportation General Session and Industry Excellence Awards Vijay Anand, Oracle Sundar Swaminathan, Oracle September 30, 2014 Copyright ©
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 5 Lifehacks for the Apex Development environment Five frameworks you should use.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Soluciones de tecnología para la toma de decisiones en las microfinancieras Congreso.
CON8473 – Oracle Distribution of OpenStack Ronen Kofman Director of Product Management Oracle OpenStack September, 2014 Copyright © 2014, Oracle and/or.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | What You Need to Know About User Defined Objects (UDOs) With Tools Release 9.2.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
The powerhouse PL/SQL upgrade option: Edition-Based Redefinition (EBR)
Build a Web App with Oracle REST Data Services &
OpenWorld 2018 How to Combine Data from Source Sites
Charles Phillips screen
QAD Reporting Framework
Project Helidon Deep Dive
Confidential – Oracle Internal/Restricted/Highly Restricted
OpenWorld How to Prepare Data from Business Intelligence Cloud Service
OpenWorld 2018 How to Get Value from Data in Oracle Analytics Cloud
Oracle Database Multilingual Engine
OpenWorld 2018 Oracle API Platform: How to Manage Typical Workflows
1.
Oracle Java SE Subscriptions; Protect Your Investment in Java SE
Presentation transcript:

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Using Edition-based redefinition with PL/SQL How to deploy database code changes with zero downtime Chris Saxon, Oracle Developer Advocate for & blogs.oracle.com/sqlblogs.oracle.com/sql

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement 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.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The PL/SQL Deployment Challenge! How do we get PL/SQL into production with no outage?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The PL/SQL Deployment Challenge! Database may be INcon SIS tenT

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The PL/SQL Deployment Challenge! No time to test

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The PL/SQL Deployment Challenge! Can’t get DDL lock

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Emergency Rollback?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Solutions pre-11gR2

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Rename Your Objects! YOUR_PKG_V1 -> YOUR_PKG_V2 -> YOUR_PKG_V3 -> etc.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | PROCEDURE PACKAGE VIEW Rename Your Objects!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | PROCEDURE PACKAGE VIEW PROCEDURE_V2 PACKAGE_V2 VIEW_V2 Rename Your Objects!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Rename Your Objects! SMALL_VIEW_V3BIG_VIEW_V2SMALL_VIEW_V2 SOME_PKG_V5aSOME_PKG_V5b A_PKG_V3A_PROC_V3A_PROC_V5b

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Replicate Your Database and $$$

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Limited code reuse Lose native compilation No dependency management No Database Compiled PL/SQL!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | EBR to the Rescue!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | EDITION_1EDITION_2EDITION_3 EBR to the Rescue! PROCEDURE PACKAGE VIEW

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | How do I use EBR?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Editions Enable Your Database Editions enable your users – alter user enable editions; There is no rollback command!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Create the Edition Create an edition – create edition new_edition; Grant user privileges: – grant use on edition new_edition to my_user;

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Switch Edition and Deploy! Change current edition – Alter session set edition = new_edition; Compile your code

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Connect and Test Can specify in connection string: – ORA_EDITION environment variable – oracle.jdbc.editionName JDBC variable – Link database service to edition

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | That was too easy! Surely there must be a catch?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Not Everything is Editionable MY_PACKAGE PUBLIC SYNONYM MATERIALIZED VIEW

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Not Everything is Editionable MY_PACKAGE PUBLIC SYNONYM MATERIALIZED VIEW

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Many editions > risk of missteaks

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Managing Multiple Editions Set your database default edition Remove access to old editions Good governance!

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Further Reading 11gR2 Documentation: m#ADFNS020 m#ADFNS020 12cR1 Documentation: Oracle-BASE article: redefinition-11gr2.phphttp://oracle-base.com/articles/11g/edition-based- redefinition-11gr2.php Tom Kyte’s Oracle Magazine article, Edition-Based Redefinition, Part 1: html html Edition-based redefinition whitepaper, Bryn Llewellyn July 2009: based-redefinition pdf based-redefinition pdf

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Summary Use EBR to deploy PL/SQL with zero downtime Easier than replication More practical than package renaming Requires 11gR2+

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Questions?