Staged Patching Approach in Oracle E-Business Suite

28
Staged Patching Approach Session 12125 Vasu Balla The Pythian Group

description

In this session, we will deep dive into Staged Appltop Patching approach in Oracle E-Business Suite. We will learn more on how Staged Patching approach can cut down patching downtime. We will discuss the scenarios like 11i to R12 upgrades and R12 point release upgrades, where we can leverage Staged Patching approach. What is the future of Staged Patching in upcoming Release 12.2? How Online patching feature is different from Staged Patching approach ?

Transcript of Staged Patching Approach in Oracle E-Business Suite

Page 1: Staged Patching Approach in Oracle E-Business Suite

Staged Patching ApproachSession 12125

Vasu Balla

The Pythian Group

Page 2: Staged Patching Approach in Oracle E-Business Suite

About Me

Oracle Apps DBA with 10+ Years of ExperienceOracle Apps ATG Customer Advisory Board Member Oracle EBS Cluster Technical Lead at Pythian

@vasuballa

Page 3: Staged Patching Approach in Oracle E-Business Suite

• Recognized Leader:

Global industry-leader in remote database administration services and consulting for Oracle, Oracle Applications, MySQL and Microsoft SQL Server

Work with over 250 multinational companies such as Forbes.com, Fox Sports, Nordion and Western Union to help manage their complex IT deployments

• Expertise:

Pythian’s data experts are the elite in their field. We have the highest concentration of Oracle ACEs on staff - 10 including 3 ACE Directors—and 2 Microsoft MVPs.

Pythian holds 7 Specializations under Oracle Platinum Partner program, including Oracle Exadata, Oracle GoldenGate & Oracle RAC

• Global Reach & Scalability:

Around the clock global remote support for DBA and consulting, systems administration, special projects or emergency response

About Pythian

Page 4: Staged Patching Approach in Oracle E-Business Suite

Agenda

•What is Staged Patching For?

•How Staged Patching works?

•Best Practices

•Future of Staged Patching in R12.2

Page 5: Staged Patching Approach in Oracle E-Business Suite

What is Staged Patching for?

Page 6: Staged Patching Approach in Oracle E-Business Suite

Reasons

•Cut downtime for patching

•Exhausted all other options like distributed AD, merging patches etc

•Best fit for large patches like Maintenance Packs

Page 7: Staged Patching Approach in Oracle E-Business Suite

Adpatch stages•Copy Portion

- Copies files from patch to appltop

- Relinks Executables

- Compiles JSPs

- Generates jar files

Page 8: Staged Patching Approach in Oracle E-Business Suite

Adpatch stages•DB portion

- Updates PLSQL pkgs, Table & Index definitions

- Loads or Updates Data & Compiles Invalids

•Generate portion

- Generates forms & reports

Page 9: Staged Patching Approach in Oracle E-Business Suite

Where it saves time ?

Copy Portion

DB Portion

Generate Portion

Page 10: Staged Patching Approach in Oracle E-Business Suite

How Staged Patching works?

Page 11: Staged Patching Approach in Oracle E-Business Suite

First Step - Clone

•Clone Production to Stage instance

•Need to make sure that architecture is same

•Set appltop name same as production

•Freeze all production changes during stage instance patching

Page 12: Staged Patching Approach in Oracle E-Business Suite

Apply Patches to Stage

•A typical EBS patch updates both middle tier files and DB objects

•Apply All the required patches on Stage

•Make sure to document all fixes for any failed patch jobs

Page 13: Staged Patching Approach in Oracle E-Business Suite

Prepare for production

•Merge all AD/FND patches into one bundle and rest of the patches into another bundle

•Document any required manual post patching steps

Page 14: Staged Patching Approach in Oracle E-Business Suite

Production Cutover

•Shutdown PROD Apps Services

•Point STAGE instance appltop tnsnames to PROD

•Apply patch bundle with nocopyportion and nogenerateportion options from STAGE instance

Page 15: Staged Patching Approach in Oracle E-Business Suite

•When adpatch is running, Start copy of STAGE apps_st and tech_st to PROD

•You should not copy INST_TOP which contains the report logs and other configuration files

•Use utilities like rsync for the copy

Production Cutover Contd…

Page 16: Staged Patching Approach in Oracle E-Business Suite

Finish Cutover

•After patch completes from STAGE env, remove the PROD tnsentry

•Complete any documented manual steps

•Start Production Services and release

Page 17: Staged Patching Approach in Oracle E-Business Suite

Migrate Patch History•Export patch history from stage env

$ perl $AD_TOP/bin/adphmigr.pl userid=apps/apps \

startdate='2013/01/01 00:00:00' enddate='2013/04/01 00:00:00' \

appsystemname=stage appltopname=AT_appnode1 nodatabaseportion=Y

•Copy generated adpsv*txt and javaupdates*txt to $APPL_TOP/ admin/$TWO_TASK on PROD

•Run adpatch in PROD and abort when it prompts for driver file, to upload history

Page 18: Staged Patching Approach in Oracle E-Business Suite

1

2

3

Page 19: Staged Patching Approach in Oracle E-Business Suite

Best practices

Page 20: Staged Patching Approach in Oracle E-Business Suite

•Keep SID of STAGE env different from PROD

•Keep apps Passwords different

•Run Maintain current view snapshot in PROD before STAGE clone

•Leverage SAN/NAS features for Copy

It’s Better

Page 21: Staged Patching Approach in Oracle E-Business Suite

R12 upgrades

•Not supported to use 12.1.3 staged appltop for upgrade from 11i

•Need to first upgrade to 12.1.1 using staged appltop and then upgrade to 12.1.3 using another staged appltop

•Staged appltop is best suited for point release upgrades 11.5.9 to 11.5.10.2 and 12.0.6 to 12.1.3

Page 22: Staged Patching Approach in Oracle E-Business Suite

Future of Staged Patching

Page 23: Staged Patching Approach in Oracle E-Business Suite

Future of Staged Patching

•In R12.2 Staged patching is already built in

•We have 2 apps file systems

•Two copies of DB objects using Edition Based Redefinition

•Its called Online Patching

Page 24: Staged Patching Approach in Oracle E-Business Suite

R12.2 Dual filesystem

Page 25: Staged Patching Approach in Oracle E-Business Suite

R12.2 FS layout

Page 26: Staged Patching Approach in Oracle E-Business Suite

Online Patching Cycle

Page 27: Staged Patching Approach in Oracle E-Business Suite

Questions? Comments?

Page 28: Staged Patching Approach in Oracle E-Business Suite

THANK YOU

Vasu Balla

[email protected]

@vasuballa #C13TCH #C13DEN

www.pythian.com/blog