Mais conteĂșdo relacionado
Semelhante a Ebs12.2 online patching (20)
Mais de aioughydchapter (12)
Ebs12.2 online patching
- 2. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.2
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.
- 3. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.3
Online Patching
Srikrishna Bandi
Director, Applications Technology
- 4. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.4
Program Agenda
ï§ The Problem - Downtime
ï§ The Solution - Online Patching
ï§ The New 12.2 Patching Cycle
ï§ Preparing for Online Patching
ï§ Q&A
- 5. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.5
EBS Downtime 12.1
System is down during patching
- 6. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.6
EBS Downtime â A Major Concern
ï§ Production Outage
â Major Release
â Maintenance Rollups (RUPs)
â Critical Patch Updates (CPUs)
â Legislative and Regulatory updates
ï§ When outages interfere with core business activity
â Reluctance to upgrade to take advantage of new feature
â Barrier to staying current with recommended patches
ï§ Global Single Instance
â Compounds the problem
â Patching any one module causes the entire system to be down
We Understand the Problem
- 7. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.7
What if the Following were True During Patching
ï§ Critical business operations were not interrupted by maintenance operations
ï§ Revenue generating activities were to stay online
â Web Orders
â Booking Orders
â Service Requests
ï§ Business users were to stay online
â Pay Suppliers
â Pay Employees
â Uninterrupted manufacturing operations
ï§ Downtime required by any patch was predictable
â Measured in minutes not days or hours
ï§ Global Single Instances remained operational 24*7
â Maintenance window easier to allocate as shorter time required
- 8. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.8
Online Patching
ï§In 12.2 all patching operations are online
â EBS will remain available to users during patching operations
â HR Legislative updates can be applied during a payroll run
â Users can enter expense reports while Payables is being patched
What if the EBS remained online during patching?
- 9. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.9
Patches are Applied to a Copy of Production
ï§ Copy the production code
ï§ Apply patches to the copy
Patches
- ATG_PF.D
- AD.C
- FIN_PF.E
E-Business Suite
12.2.0
Production Copy of Production
E-Business Suite
12.2.0
- 10. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.10
Downtime Redefined as âCutoverâ
ï§ Cutover is the time taken to switch users from the production system to
the newly patched copy
ï§ Cutover changes the unit of measure for downtime
â Measured in minutes NOT hours or days
ï§ Cutover time is very predictable
â The time taken to bounce the Middle Tiers
Changing the unit of measure for downtime
- 11. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.11
Downtime Limited to Short Cutover
ï§ Users are logged off the production Instance
ï§ When users reconnect they are directed to the newly patched system
E-Business Suite
12.2.0
Patches
- ATG_PF.D
- AD.C
- FIN_PF.E
E-Business Suite
12.2.0
Production Patched Production
- 12. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.12
Patching Occurs on a Copy
ï§ File system
â All patches are applied to the secondary file system
â Synchronization of the file systems is managed by the patching tools
ï§ Database
â A separate copy is maintained of all database code objects that are
changed by a patch
- 13. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.13
Changing the Patching Paradigm
ï§ Downtime Patches
â No online users
â Wall clock time very important
â Consumes all resources
â Upgrade designed to run as
fast as possible
ï§ Online Patches
â Users remain online
â Wall clock time is no longer an
overriding concern
â Online users share resources
â Data upgrades designed to not
affect the running application
- 15. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.15
EBS 12.2 is installed with 3 file systems
ï§ FS-1 (Production file system)
â Used by the current users of the system
ï§ FS-2 (Copy of Production file system)
â Used by the patching tools
ï§ FS-NE (Non Editioned file system)
â Stores data that is stored on the file system
ï§ Data import and export files
ï§ Report output
ï§ Log files
- 16. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.16
Three File Systems and One Database
ï§ All three file systems
serve a single database
ï§ The file system in use by
the running application is
never patched
ï§ All patches are applied to
secondary file system
Middle TierDatabase
File System 1
File System 2
Non-Editioned
File System
E-Business Suite 12.2
- 18. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.18
11gR2 Edition-Based Redefinition (EBR)
ï§ Provides an isolation mechanism that allows pre-upgrade
and post-upgrade schemas to co-exist
â Changes to database objects are made in the isolation of an
âEditionâ
â Changes to database objects do not affect the running application
â Allows an application to efficiently store multiple copies of its
application definition in the same database
- 19. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.19
Database Editions
ï§ Client code chooses The Edition that it
connects to
â Run Edition
ï§ Used by online users
ï§ Never changed by a patch
â Patch Edition
ï§ Used by the patching tools
ï§ Changes do no affect the running
application
- 20. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.20
Online Patching Cycle
ï§ Patch application is now part of a patching cycle
- 21. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.21
New Tools for Managing Online Patching
ï§ ADOP replaces ADPATCH as the 12.2 patching tool
â ADOP ( AD Online Patching )
ï§ ADOP orchestrates the patching cycle, steps the user through each of
the patching phases
â Prepare
â Apply
â Finalize
â Cutover
â Cleanup
- 22. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.22
Online Patching Cycle
ï§ The Basics
The Basics
âą Application is only offline during the Cutover phase
âą Downtime is now redefined as Cutover
Remove
obsolete
objects
Cleanup
Restart
application on
patched copy
Cutover
Ready the
system for
cutover
Finalize
Apply one or
more patches
to the copy
Apply
Copy the
production
application
code
Prepare
Users
Online
Users
Online
Users
Offline
- 23. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.23
Online Patching Cycle - Prepare
CleanupCutoverFinalizeApply
Copy the
production
application
code
Prepare
âą Synchronizes Patch Edition and Run Edition on the file system
âą Create a new Patch Edition in the database
Users
Online
Users
Online
Users
Offline
- 24. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.24
Online Patching Cycle - Prepare
Preparing the File System
âą Patch Edition & Run Edition of the file
systems are synchronized
âą All files on the Patch Edition are an exact
copy of the files on the Run Edition
âą Efficient synchronization
âą Incremental synchronization is the default
âą Only files changed in the last patch
application are copied
âą Full synchronization available if necessary
- 25. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.25
Online Patching Cycle - Prepare
Preparing the Database
âą Patch Edition is created in the database
âą All code objects in the Patch Edition begin
as pointers to code objects in the Run
Edition
âą Efficient use of space
âą Objects are only âActualizedâ into the
Patch Edition when a new revision of the
code is applied
âą Storage objects such as tables are not
copied
âą New patching standards are followed for
upgrading storage objects
- 26. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.26
Online Patching Cycle - Apply
âą Execute patch drivers to update Patch Edition
âą Multiple patches can be applied, including customizations
CleanupCutoverFinalize
Apply one
or more
patches to
the copy
Apply
Copy the
production
application
code
Prepare
Users
Online
Users
Online
Users
Offline
- 27. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.27
Online Patching Cycle - Apply
ï§ Patches are applied to the
copy (Patch Edition)
ï§ The production application is
unaffected by the changes
â Users are connected to the
Application and can perform
their work unaffected by the
patch
ï§ Changes are made in the
isolation of an Edition
â The running application is
unaffected by these changes
Applying Patches
âą Patch Driver
â File Driver
â Database driver
- 28. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.28
Online Patching Cycle - Finalize
ï§ Compile invalid objects
ï§ Generate derived objects
CleanupCutover
Ready the
system for
cutover
Finalize
Apply one or
more patches
to the copy
Apply
Copy the
production
application
code
Prepare
Users
Online
Users
Online
Users
Offline
- 29. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.29
Online Patching Cycle - Finalize
ï§ Perform the final operations that can be executed while the Application
is online
â Compile invalid objects
â Generate derived objects
â Pre-compute DDL to be run at Cutover
ï§ Patching cycle can pause at this stage for as long as required
ï§ Waiting for an appropriate downtime window
ï§ 2AM Sunday morning?
- 30. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.30
Online Patching Cycle - Cutover
âą Cutover to the Patch Edition of the file system
âą Cutover to the Patch Edition of the database
âą Restart middle-tier service
Cleanup
Restart
application
on patched
copy
Ready the
system for
cutover
Finalize
Apply one or
more patches
to the copy
Apply
Copy the
production
application
code
Prepare
Users
Online
Users
Online
Users
Offline
Cutover
- 31. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.31
Online Patching Cycle - Cutover
ï§ During cutover a brief downtime is taken
â Users are logged off the system
â The Patch file system is promoted to be the Run file system
â The Patch database edition is promoted to be the Run database
edition
â Perform final maintenance operations
â Users are brought back online on the patched system
â The database does NOT need to be bounced
- 32. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.32
Online Patching Cycle - Cutover
ï§ Middle-tier processes stopped
â End Users are disconnected
ï§ File system roles swapped
â Patched (FS-2) promoted to Run
â FS-1 available for next patching cycle
ï§ Database Patch Edition promoted
to Run Edition
ï§ Middle-tier processes restarted
â Users reconnect
Cutover Requires a Brief Downtime
- 33. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.33
Online Patching Cycle - Cleanup
ï§ Cleanup old editions to recover space
Remove
obsolete
objects
Restart
application on
patched copy
Cutover
Ready the
system for
cutover
Finalize
Apply one or
more patches
to the copy
Apply
Copy the
production
application
code
Prepare
Users
Online
Users
Online
Users
Offline
Cleanup
- 34. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.34
Online Patching Cycle - Cleanup
ï§ Cleanup occurs after users have been brought
back online to the newly patched Application
ï§ File system
â The pre-patch file system is now ready for the next
patching cycle
â Re-synchronized
ï§ Database
â Code objects patched in the latest patching cycle
are deleted from Old Editions
â Once all objects are deleted from an Old Edition it
is also deleted
- 35. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.35
Online Patching Cycle - Abort
ï§ The Online Patching Cycle can be aborted at any time prior
to Cutover
- 36. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.36
E-Business Suite R12.2 Patching Cycle
Database Vs File System Editions
- 37. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.37
File Systems Patching Cycle
ï§ Two complete file systems are always
present
â Run Edition - Used by the running
Application
â Patch Edition â Either:
ï§ Currently being patched
or
ï§ Waiting for the next patching cycle
â The two files systems are rotated between
Run and Patch during every patch cycle
Cutover
Prepare
Prepare
Cutover
1
2
1
2
- 38. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.38
E-Business Suite R12.2 Patching Cycle
ï§ One or more database editions are always present
â Run Edition
ï§ Used by the running application
ï§ Always exists
â Patch Edition
ï§ Used by the patching tools
ï§ Only exists during a patching cycle
â Old Editions
ï§ These editions are only used to store code objects
that have not been patched in a later edition
ï§ Remove by cleanup when no longer needed
Database Edition Patching Cycle
- 39. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.39
E-Business Suite R12.2 Patching Cycle
Hot Patching
- 40. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.40
Hot Patching
ï§ Hot patching still available in 12.2
ï§ Customers should understand the risks of hot patching before using
this feature
â Hot patching has the potential to adversely affect the Production
Application
â Many patches are not safe to be applied hot
ï§ Errors in production user sessions and background processes
ï§ Analysis reports available to help determine if a patch is a candidate
for hot patching
- 41. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.41
Hot Patching
ï§ Patches are applied to:
â The File System Run Edition
â The Database Run Edition
ï§ The production application is
immediately affected by the
changes
â Users may be adversely
impacted by the patch
â Apps DBA must fully understand
the risks associated
ï§ Secondary file system is
automatically synchronized
Applying Patches
âą Patch Driver
â File Driver
â Database driver
- 42. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.42
Online Patching â Resource Considerations
ï§ Database
â SYSTEM tablespace requires double its current space allocation
ï§ 25GB increase to 50GB
â SEED tablespace requires double its current space allocation
ï§ 5GB increases to 10GB
ï§ File System
â 2 file systems require double the space of 1 file system ï
- 43. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.43
Preparing for Online Patching
- 44. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.44
Preparing for Online Patching
ï§ Logical data model is installed by the 12.2 upgrade
ï§ Cross Edition Triggers needed by a patch are
automatically installed by the patch
ï§ Seed data tables are automatically upgraded to support
Editioned Data Storage
Donât worry, the 12.2 upgrade handles the changes
- 45. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.45
Preparing for Online Patching
ï§ Online patching analysis report
â Available for all releases prior to 12.2
ï§ Reports all violations of âNon-Editioned Objects canât reference Editioned
Objectsâ
â EBS Code
â Custom Code
ï§ Violations within EBS code are automatically fixed by the 12.2 upgrade
ï§ Customer should study the report prior to upgrading to 12.2 to determine
the scope of work for their custom code
â Most violations in custom code can be fixed by the 12.2 upgrade by simply
registering the custom schema with EBS
â Only a small number of violations require human intervention
Readiness Report
- 46. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.46
Online Patching Summary
ï§ 12.2 Upgrade is NOT an Online Patch
ï§ 12.2 Upgrade
â Automatically fixes all compliances issues in EBS code
â Can automatically fix compliance issues in customizations
â Installs a logical view of the data model that all code must use to
access the E-Business Suite
ï§ All patches delivered post 12.2 will be Online Patches
â New patching tool (ADOP) used to apply patches
- 47. Copyright © 2012, Oracle and/or its affiliates. All rights reserved.47
Benefits of Online Patching
ï§ Removes barriers to uptake
ï§ Much easier to negotiate downtime with lines of business
ï§ Much easier to identify downtime windows as they are so brief
ï§ Applications stays online during patch application