SlideShare a Scribd company logo
1 of 41
Download to read offline
Session ID:
Prepared by:
ADOP Patching Gotchas!
What can and will go wrong when patching EBS
12.2.X and how to fix it!
10175
Oti Ometie – Oracle Applications DBA
@OhOmetie
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Agenda
• Introduction
• Overview of ADOP
• Patching Multiple Nodes
• Patching a single node in a multi-node configuration
• Troubleshoot and recover from a failure.
• Perform cleanup operations after a failed patching cycle
• Dropping Old Editions
• Impact of DR
• Extra stuff
• Summary
• Q&A
2
April 2-6, 2017 in Las Vegas, NV USA #C17LV
About me
• 17+ years of experience with Oracle products
• 15 years experience as an Oracle DBA
• Oracle Certified Expert, OCP 9i,10G,11G, EBS R12
• Worked as a DBA on 3 continents in a variety of
industries (Banking, Consulting, Construction,
Manufacturing)
• Martial artist and crazy about Obstacle Course Races –
Tough Mudder, Mud hero, Spartan…
3
April 2-6, 2017 in Las Vegas, NV USA #C17LV
About New Flyer Industries
• The largest transit bus and motor coach
manufacturer and parts distributor in North America
• Fabrication, manufacturing, distribution and service
centers across Canada and the United States
• Employs approximately 5,000 team members
• Multi Billion dollar revenue
• Completed a 9 month upgrade from 11i to 12.2.4 in
September 2015
4
Overview of ADOP
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Overview of ADOP
• AD Online Patching is the ONLY way to apply patches in
EBS from Version 12.2
• Patching is carried out while users are online and the
application is in use.
• ADOP phases: prepare, apply, finalize, cutover, cleanup.
• Small downtime required for when the flip of the run and
patch file systems to occur
6
April 2-6, 2017 in Las Vegas, NV USA #C17LV
ADOP Patching Cycle
7
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Simple Commands
adop phase=prepare
adop phase=apply patches=123456
adop phase=finalize
adop phase=cutover
adop phase=cleanup
8
April 2-6, 2017 in Las Vegas, NV USA #C17LV
More commands
adop phase=prepare
adop phase=apply workers=24 patches=123456, 98765
adop phase=finalize
adop phase=cutover cm_wait=2
adop phase=cleanup
9
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Still more …
adop phase=prepare
adop phase=apply workers=24 patches=123456, 98765
adop phase=finalize,cutover cm_wait=1
adop phase=cleanup
10
Patching Multiple Nodes
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Patching Multiple Nodes
• Ensure that the patch(es) is/are available on the
$PATCH_TOP of all nodes.
• Run the commands you would run if you were patching a
single node. The commands will be run sequentially on
all nodes
• Patches are applied on the primary node before being
applied on other nodes.
12
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Patching Multiple Nodes
• Patching is non interactive i.e. you need to specify the
patch(es)
Which of the following is right?
• adop phase=apply patches=123456
• adop phase=apply
13
Patching a single node in a
multi-node configuration
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Patching a single node in a multi-node
configuration
• Run adop phase=prepare on the primary node
• Apply the patch to the node using:
• PRIMARY NODE- adop phase=apply patch=1234 allnodes=no
action=db
• SECONDARY NODES- adop phase=apply patch=1234
allnodes=no action=nodb
• Continue as usual – finalize, cutover
15
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Patching a single node in a multi-node
configuration
• Commands I’ve tried out and work for different
situations
adop phase=prepare allnodes=no action=db
adop phase=cutover allnodes=no action=db cm_wait=1
16
April 2-6, 2017 in Las Vegas, NV USA #C17LV
• You cannot run a prepare phase on a non-admin node.
adop phase=prepare allnodes=no action=nodb
The above command will fail with the error below:
Patching a single node in a multi-node
configuration
17
Troubleshoot and recover from
a failure
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Troubleshooting the error
adop –status –detail
adop phase=apply patches=xyz analytics=yes
19
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Recover from a failure
• Examples
adop phase=apply patches=123456 abandon=no restart=yes
flags=autoskip
adop phase=apply patches=21473943 allnodes=no action=nodb
abandon=no restart=yes flags=autoskip
20
April 2-6, 2017 in Las Vegas, NV USA #C17LV
If all else fails…
• ABORT
• An abort is always my last resort, it means pulling the
plug on all the patches that have been applied.
• Command:
• adop phase=abort
21
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Aborting a patch cycle
22
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Aborting a patch cycle
• The abort command terminates the patching cycle.
• All actions being performed are discarded.
• After an abort is performed a cleanup is required and will
be performed during the next adop prepare phase if not
initiated by the DBA.
• Command:
• adop phase=abort, cleanup
• adop phase=abort,cleanup cleanup_mode=full
• adop phase=fs_clone
23
Perform cleanup operations
after a failed patching cycle
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Perform cleanup operations after a failed
patching cycle
• A cleanup is required after every failed patching session.
• Failure to explicitly run the cleanup command means
that your next patching cycle will be delayed while the
prepare phase kicks off a cleanup
• Commands:
• adop phase=cleanup
• adop phase=cleanup cleanup_mode=full
25
Dropping Old Editions
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Dropping Old editions
• After each online patching cycle completes, the database
stores the previous edition.
• After a certain point this begins to impact performance
• Oracle recommends that when the number of editions
reaches 25 it’s time to purge/drop old editions
27
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Steps to Drop Old Editions
• Commands:
adop phase=prepare
adop phase=actualize_all
adop phase=finalize finalize_mode=full
adop phase=cutover
adop phase=cleanup cleanup_mode=full
28
Impact of DR – Dataguard
Standby Databases
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Impact of DR – Dataguard Standby Databases
[WARNING] adop has detected a configured disaster recovery site.
[WARNING] Follow the instructions in the section "Oracle E-Business Suite
[WARNING] Maintenance with Standby Database" of Business Continuity for
[WARNING] Oracle E-Business Suite Release 12.2 depending on the database version
used.
Do you want to continue with the prepare phase [Y/N] ?
Note: The error above has been fixed see Doc ID 2131833.1
30
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Impact of DR – Dataguard Standby Databases
• If the standby database is available while a patch is being
applied, the changes on the primary will be automatically
propagated to the standby.
31
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Impact of DR – Dataguard Standby Databases
• Doc ID 1491855.1: Section 7 goes into details
• If the standby is running during a patch application, changes
will be automatically replicated on the standby.
• Oracle recommends that before cutover:
1. Stop recovery on the standby database
2. Stopping the shipping of redo on the Primary Database
SQL>alter database recover managed standby database cancel;
SQL>alter system set log_archive_dest_state_<n>=defer;
32
Extra stuff
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Patch Wizard
34
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Abandoning a node
• When a node in a multi-node architecture is inaccessible
during an online patching cycle, it will be abandoned.
• If an adop patch fails on a secondary node. if you choose
to proceed with the cutover, node will be marked as
abandoned.
Do you want adop to continue with other completed nodes [y/n]
• Select “n”, resolve the issue and run something similar
to:
adop phase=apply patches=123456 abandon=no restart=yes
flags=autoskip allnodes=no action=nodb
35
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Examples
• If you need help and are unable to access online
resources use examples.
adop -examples
36
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Summary
• AD Online Patching is the ONLY way to apply patches in
EBS from Version 12.2
• Patching is carried out while users are online and the
application is in use.
• When patching multiple nodes ensure that the patch is
copied to the $PATCH_TOP of all nodes.
• Patching multiple nodes is non-interactive
• You indicate you want to patch a single node using the
“allnodes=no” argument and specify if it’s the primary or
secondary node using action=db/nodb
37
April 2-6, 2017 in Las Vegas, NV USA #C17LV
Summary cont.
• You can troubleshoot by using the analytics=yes
argument and –status –details argument
• Use the autoskip argument to recover from pesky errors
and continue with the session on the node with the error
using the allnodes=no argument.
• If all else fails – ABORT
• Running a cleanup before your next patch cycle saves
time
• Drop old editions to improve performance – 25 is a good
number
• Shutdown/defer Dataguard standby before cutover
38
April 2-6, 2017 in Las Vegas, NV USA #C17LV
References
• Oracle E-Business Suite Maintenance Guide Release 12.2
– Patching procedures
• Business Continuity for Oracle E-Business Suite Release
12.2 Using Oracle 11g (11gR2) Physical Standby Database
(Doc ID 1491855.1)
• Steven Chan’s blog:
https://blogs.oracle.com/stevenChan/entry/op_faq2
39
Please Complete Your
Session Evaluation
Evaluate this session in your COLLABORATE app.
Pull up this session and tap "Session Evaluation"
to complete the survey.
Session ID:
Oti Ometie
LinkedIn: linkedin.com/in/otiometie
Email: ometie@gmail.com
10175

More Related Content

What's hot

Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Yury Velikanov
 
User management through administration process 2307
User management through administration process 2307User management through administration process 2307
User management through administration process 2307
Hansraj Mali
 
Red hat ceph storage customer presentation
Red hat ceph storage customer presentationRed hat ceph storage customer presentation
Red hat ceph storage customer presentation
Rodrigo Missiaggia
 
MySQL Performance schema missing_manual_flossuk
MySQL Performance schema missing_manual_flossukMySQL Performance schema missing_manual_flossuk
MySQL Performance schema missing_manual_flossuk
Valeriy Kravchuk
 

What's hot (20)

Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 
HTTP - The Other Face Of Domino
HTTP - The Other Face Of DominoHTTP - The Other Face Of Domino
HTTP - The Other Face Of Domino
 
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
April, 2021 OpenNTF Webinar - Domino Administration Best PracticesApril, 2021 OpenNTF Webinar - Domino Administration Best Practices
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
 
OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2
 
Oracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System AdministrationOracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System Administration
 
Performance tuning a quick intoduction
Performance tuning   a quick intoductionPerformance tuning   a quick intoduction
Performance tuning a quick intoduction
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
R12.2 dba
R12.2 dbaR12.2 dba
R12.2 dba
 
June OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification ManagerJune OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification Manager
 
Nick Fisk - low latency Ceph
Nick Fisk - low latency CephNick Fisk - low latency Ceph
Nick Fisk - low latency Ceph
 
User management through administration process 2307
User management through administration process 2307User management through administration process 2307
User management through administration process 2307
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
 
Domino Adminblast
Domino AdminblastDomino Adminblast
Domino Adminblast
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA ArchitectureCeph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
 
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
 
Red hat ceph storage customer presentation
Red hat ceph storage customer presentationRed hat ceph storage customer presentation
Red hat ceph storage customer presentation
 
PostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL IIPostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL II
 
Improving notes addressing experience with recent contacts
Improving notes addressing experience with recent contactsImproving notes addressing experience with recent contacts
Improving notes addressing experience with recent contacts
 
Storage Basics
Storage BasicsStorage Basics
Storage Basics
 
MySQL Performance schema missing_manual_flossuk
MySQL Performance schema missing_manual_flossukMySQL Performance schema missing_manual_flossuk
MySQL Performance schema missing_manual_flossuk
 

Similar to Adop patching gotchas ppt

Oracle and Java together for simplicity and performance
Oracle and Java together for simplicity and performanceOracle and Java together for simplicity and performance
Oracle and Java together for simplicity and performance
Salim Sayed
 
Rails Conf Europe 2007 Notes
Rails Conf  Europe 2007  NotesRails Conf  Europe 2007  Notes
Rails Conf Europe 2007 Notes
Ross Lawley
 
Variables & Expressions
Variables & ExpressionsVariables & Expressions
Variables & Expressions
Rich Price
 
Sap basis-notes-keylabs-training
Sap basis-notes-keylabs-trainingSap basis-notes-keylabs-training
Sap basis-notes-keylabs-training
nanda nanda
 

Similar to Adop patching gotchas ppt (20)

Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2
 
Hadoop databases for oracle DBAs
Hadoop databases for oracle DBAsHadoop databases for oracle DBAs
Hadoop databases for oracle DBAs
 
Oracle EBS database upgrade to 12c
Oracle EBS database upgrade to 12cOracle EBS database upgrade to 12c
Oracle EBS database upgrade to 12c
 
Virtualization & the Cloud for Collaborate 2017
Virtualization & the Cloud for Collaborate 2017Virtualization & the Cloud for Collaborate 2017
Virtualization & the Cloud for Collaborate 2017
 
Oracle and Java together for simplicity and performance
Oracle and Java together for simplicity and performanceOracle and Java together for simplicity and performance
Oracle and Java together for simplicity and performance
 
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAsAn Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
 
Uponor Exadata e-Business Suite Migration Case Study
Uponor Exadata e-Business Suite Migration Case StudyUponor Exadata e-Business Suite Migration Case Study
Uponor Exadata e-Business Suite Migration Case Study
 
Where did my day go?: Oracle Enterprise Manager 12c/13c Administration
Where did my day go?: Oracle Enterprise Manager 12c/13c AdministrationWhere did my day go?: Oracle Enterprise Manager 12c/13c Administration
Where did my day go?: Oracle Enterprise Manager 12c/13c Administration
 
1225 case study
1225 case study1225 case study
1225 case study
 
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
 
ASCP production schedule.pdf
ASCP production schedule.pdfASCP production schedule.pdf
ASCP production schedule.pdf
 
Rails Conf Europe 2007 Notes
Rails Conf  Europe 2007  NotesRails Conf  Europe 2007  Notes
Rails Conf Europe 2007 Notes
 
Experiences building a multi region cassandra operations orchestrator on aws
Experiences building a multi region cassandra operations orchestrator on awsExperiences building a multi region cassandra operations orchestrator on aws
Experiences building a multi region cassandra operations orchestrator on aws
 
E1 Pages Contest Hosted by Terillium
E1 Pages Contest Hosted by TerilliumE1 Pages Contest Hosted by Terillium
E1 Pages Contest Hosted by Terillium
 
EBS on Oracle Cloud
EBS on Oracle CloudEBS on Oracle Cloud
EBS on Oracle Cloud
 
Implementinga projectportfoliomanagementprocessatthecityofarvadausingapex pre...
Implementinga projectportfoliomanagementprocessatthecityofarvadausingapex pre...Implementinga projectportfoliomanagementprocessatthecityofarvadausingapex pre...
Implementinga projectportfoliomanagementprocessatthecityofarvadausingapex pre...
 
Variables & Expressions
Variables & ExpressionsVariables & Expressions
Variables & Expressions
 
Sap basis-notes-keylabs-training
Sap basis-notes-keylabs-trainingSap basis-notes-keylabs-training
Sap basis-notes-keylabs-training
 
20150312 NOBS for Noobs
20150312 NOBS for Noobs20150312 NOBS for Noobs
20150312 NOBS for Noobs
 
Automatically Grading Brazilian Student Essays.pdf
Automatically Grading Brazilian Student Essays.pdfAutomatically Grading Brazilian Student Essays.pdf
Automatically Grading Brazilian Student Essays.pdf
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Adop patching gotchas ppt

  • 1. Session ID: Prepared by: ADOP Patching Gotchas! What can and will go wrong when patching EBS 12.2.X and how to fix it! 10175 Oti Ometie – Oracle Applications DBA @OhOmetie
  • 2. April 2-6, 2017 in Las Vegas, NV USA #C17LV Agenda • Introduction • Overview of ADOP • Patching Multiple Nodes • Patching a single node in a multi-node configuration • Troubleshoot and recover from a failure. • Perform cleanup operations after a failed patching cycle • Dropping Old Editions • Impact of DR • Extra stuff • Summary • Q&A 2
  • 3. April 2-6, 2017 in Las Vegas, NV USA #C17LV About me • 17+ years of experience with Oracle products • 15 years experience as an Oracle DBA • Oracle Certified Expert, OCP 9i,10G,11G, EBS R12 • Worked as a DBA on 3 continents in a variety of industries (Banking, Consulting, Construction, Manufacturing) • Martial artist and crazy about Obstacle Course Races – Tough Mudder, Mud hero, Spartan… 3
  • 4. April 2-6, 2017 in Las Vegas, NV USA #C17LV About New Flyer Industries • The largest transit bus and motor coach manufacturer and parts distributor in North America • Fabrication, manufacturing, distribution and service centers across Canada and the United States • Employs approximately 5,000 team members • Multi Billion dollar revenue • Completed a 9 month upgrade from 11i to 12.2.4 in September 2015 4
  • 6. April 2-6, 2017 in Las Vegas, NV USA #C17LV Overview of ADOP • AD Online Patching is the ONLY way to apply patches in EBS from Version 12.2 • Patching is carried out while users are online and the application is in use. • ADOP phases: prepare, apply, finalize, cutover, cleanup. • Small downtime required for when the flip of the run and patch file systems to occur 6
  • 7. April 2-6, 2017 in Las Vegas, NV USA #C17LV ADOP Patching Cycle 7
  • 8. April 2-6, 2017 in Las Vegas, NV USA #C17LV Simple Commands adop phase=prepare adop phase=apply patches=123456 adop phase=finalize adop phase=cutover adop phase=cleanup 8
  • 9. April 2-6, 2017 in Las Vegas, NV USA #C17LV More commands adop phase=prepare adop phase=apply workers=24 patches=123456, 98765 adop phase=finalize adop phase=cutover cm_wait=2 adop phase=cleanup 9
  • 10. April 2-6, 2017 in Las Vegas, NV USA #C17LV Still more … adop phase=prepare adop phase=apply workers=24 patches=123456, 98765 adop phase=finalize,cutover cm_wait=1 adop phase=cleanup 10
  • 12. April 2-6, 2017 in Las Vegas, NV USA #C17LV Patching Multiple Nodes • Ensure that the patch(es) is/are available on the $PATCH_TOP of all nodes. • Run the commands you would run if you were patching a single node. The commands will be run sequentially on all nodes • Patches are applied on the primary node before being applied on other nodes. 12
  • 13. April 2-6, 2017 in Las Vegas, NV USA #C17LV Patching Multiple Nodes • Patching is non interactive i.e. you need to specify the patch(es) Which of the following is right? • adop phase=apply patches=123456 • adop phase=apply 13
  • 14. Patching a single node in a multi-node configuration
  • 15. April 2-6, 2017 in Las Vegas, NV USA #C17LV Patching a single node in a multi-node configuration • Run adop phase=prepare on the primary node • Apply the patch to the node using: • PRIMARY NODE- adop phase=apply patch=1234 allnodes=no action=db • SECONDARY NODES- adop phase=apply patch=1234 allnodes=no action=nodb • Continue as usual – finalize, cutover 15
  • 16. April 2-6, 2017 in Las Vegas, NV USA #C17LV Patching a single node in a multi-node configuration • Commands I’ve tried out and work for different situations adop phase=prepare allnodes=no action=db adop phase=cutover allnodes=no action=db cm_wait=1 16
  • 17. April 2-6, 2017 in Las Vegas, NV USA #C17LV • You cannot run a prepare phase on a non-admin node. adop phase=prepare allnodes=no action=nodb The above command will fail with the error below: Patching a single node in a multi-node configuration 17
  • 18. Troubleshoot and recover from a failure
  • 19. April 2-6, 2017 in Las Vegas, NV USA #C17LV Troubleshooting the error adop –status –detail adop phase=apply patches=xyz analytics=yes 19
  • 20. April 2-6, 2017 in Las Vegas, NV USA #C17LV Recover from a failure • Examples adop phase=apply patches=123456 abandon=no restart=yes flags=autoskip adop phase=apply patches=21473943 allnodes=no action=nodb abandon=no restart=yes flags=autoskip 20
  • 21. April 2-6, 2017 in Las Vegas, NV USA #C17LV If all else fails… • ABORT • An abort is always my last resort, it means pulling the plug on all the patches that have been applied. • Command: • adop phase=abort 21
  • 22. April 2-6, 2017 in Las Vegas, NV USA #C17LV Aborting a patch cycle 22
  • 23. April 2-6, 2017 in Las Vegas, NV USA #C17LV Aborting a patch cycle • The abort command terminates the patching cycle. • All actions being performed are discarded. • After an abort is performed a cleanup is required and will be performed during the next adop prepare phase if not initiated by the DBA. • Command: • adop phase=abort, cleanup • adop phase=abort,cleanup cleanup_mode=full • adop phase=fs_clone 23
  • 24. Perform cleanup operations after a failed patching cycle
  • 25. April 2-6, 2017 in Las Vegas, NV USA #C17LV Perform cleanup operations after a failed patching cycle • A cleanup is required after every failed patching session. • Failure to explicitly run the cleanup command means that your next patching cycle will be delayed while the prepare phase kicks off a cleanup • Commands: • adop phase=cleanup • adop phase=cleanup cleanup_mode=full 25
  • 27. April 2-6, 2017 in Las Vegas, NV USA #C17LV Dropping Old editions • After each online patching cycle completes, the database stores the previous edition. • After a certain point this begins to impact performance • Oracle recommends that when the number of editions reaches 25 it’s time to purge/drop old editions 27
  • 28. April 2-6, 2017 in Las Vegas, NV USA #C17LV Steps to Drop Old Editions • Commands: adop phase=prepare adop phase=actualize_all adop phase=finalize finalize_mode=full adop phase=cutover adop phase=cleanup cleanup_mode=full 28
  • 29. Impact of DR – Dataguard Standby Databases
  • 30. April 2-6, 2017 in Las Vegas, NV USA #C17LV Impact of DR – Dataguard Standby Databases [WARNING] adop has detected a configured disaster recovery site. [WARNING] Follow the instructions in the section "Oracle E-Business Suite [WARNING] Maintenance with Standby Database" of Business Continuity for [WARNING] Oracle E-Business Suite Release 12.2 depending on the database version used. Do you want to continue with the prepare phase [Y/N] ? Note: The error above has been fixed see Doc ID 2131833.1 30
  • 31. April 2-6, 2017 in Las Vegas, NV USA #C17LV Impact of DR – Dataguard Standby Databases • If the standby database is available while a patch is being applied, the changes on the primary will be automatically propagated to the standby. 31
  • 32. April 2-6, 2017 in Las Vegas, NV USA #C17LV Impact of DR – Dataguard Standby Databases • Doc ID 1491855.1: Section 7 goes into details • If the standby is running during a patch application, changes will be automatically replicated on the standby. • Oracle recommends that before cutover: 1. Stop recovery on the standby database 2. Stopping the shipping of redo on the Primary Database SQL>alter database recover managed standby database cancel; SQL>alter system set log_archive_dest_state_<n>=defer; 32
  • 34. April 2-6, 2017 in Las Vegas, NV USA #C17LV Patch Wizard 34
  • 35. April 2-6, 2017 in Las Vegas, NV USA #C17LV Abandoning a node • When a node in a multi-node architecture is inaccessible during an online patching cycle, it will be abandoned. • If an adop patch fails on a secondary node. if you choose to proceed with the cutover, node will be marked as abandoned. Do you want adop to continue with other completed nodes [y/n] • Select “n”, resolve the issue and run something similar to: adop phase=apply patches=123456 abandon=no restart=yes flags=autoskip allnodes=no action=nodb 35
  • 36. April 2-6, 2017 in Las Vegas, NV USA #C17LV Examples • If you need help and are unable to access online resources use examples. adop -examples 36
  • 37. April 2-6, 2017 in Las Vegas, NV USA #C17LV Summary • AD Online Patching is the ONLY way to apply patches in EBS from Version 12.2 • Patching is carried out while users are online and the application is in use. • When patching multiple nodes ensure that the patch is copied to the $PATCH_TOP of all nodes. • Patching multiple nodes is non-interactive • You indicate you want to patch a single node using the “allnodes=no” argument and specify if it’s the primary or secondary node using action=db/nodb 37
  • 38. April 2-6, 2017 in Las Vegas, NV USA #C17LV Summary cont. • You can troubleshoot by using the analytics=yes argument and –status –details argument • Use the autoskip argument to recover from pesky errors and continue with the session on the node with the error using the allnodes=no argument. • If all else fails – ABORT • Running a cleanup before your next patch cycle saves time • Drop old editions to improve performance – 25 is a good number • Shutdown/defer Dataguard standby before cutover 38
  • 39. April 2-6, 2017 in Las Vegas, NV USA #C17LV References • Oracle E-Business Suite Maintenance Guide Release 12.2 – Patching procedures • Business Continuity for Oracle E-Business Suite Release 12.2 Using Oracle 11g (11gR2) Physical Standby Database (Doc ID 1491855.1) • Steven Chan’s blog: https://blogs.oracle.com/stevenChan/entry/op_faq2 39
  • 40.
  • 41. Please Complete Your Session Evaluation Evaluate this session in your COLLABORATE app. Pull up this session and tap "Session Evaluation" to complete the survey. Session ID: Oti Ometie LinkedIn: linkedin.com/in/otiometie Email: ometie@gmail.com 10175