SlideShare une entreprise Scribd logo
1  sur  30
ORACLE APPLICATIONS R12.2, EBR, ONLINE
PATCHING - MEANS LOT OF WORK FOR
DEVELOPERS
Ajith Narayanan
25th Feb 2015, Bangalore, India
Who Am I?
Ajith Narayanan
• Oracle ACE Associate
• 11 years of Oracle [APPS] DBA experience.
• Blogger :- http://oracledbascriptsfromajith.blogspot.com
• Speaker:- Conferences Of AIOUG, DOAG, NZOUG, UKOUG,
OTNYathra , OTN APAC Tour etc.
• Website Chair (2010 -2013) :- ORACLERACSIG
(http://www.oracleracsig.org)
• Member:- OAUG & AIOUG, ORACLERACSIG
• AIOUG Real Application Clusters SIG Leader
Agenda
• Introduction to R12.2 Architecture
• Online Patching Concepts
 Edition Based Redefinition (EBR)
 Rules for EBR
• Development Standards
 What is the extra work for a developer?
• Development Steps
 Examples
•Questions
INTRODUCTION TO R12.2
ARCHITECTURE
R12.2 Architecture
R12.2 Architecture
Oracle E-Business Suite Release 12.2 uses two application tier ORACLE_HOMEs.
• An OracleAS 10.1.2 ORACLE_HOME that was used in previous 12.x releases.
• An Oracle Fusion Middleware (FMW) ORACLE_HOME that supports Oracle WebLogic Server
(WLS) and supersedes the Java (OracleAS 10.1.3) ORACLE_HOME that was used in previous
releases.
• The use of these two ORACLE_HOMEs enables Oracle E-Business Suite to take advantage of the
latest Oracle technologies.
R12.2 Architecture
• The Oracle E-Business Suite modules (packaged in the file formsapp.ear) are deployed out of the
OracleAS 10.1.2 ORACLE_HOME, and the frmweb executable is also invoked out of this
ORACLE_HOME.
• All major services are started out of the Fusion Middleware ORACLE_HOME.
R12.2 Architecture
ONLINE PATCHING CONCEPTS
Edition Based Redefinition (EBR)
• An edition as name suggests is virtual workspace environment where database
objects are redefined and finalized as final version if satisfied.
• Edition-Based Redefinition can enable us to have two objects with the same
name but of Different Editions.
• EBR feature started from Oracle 11g R2 onwards, and all database by default has
a base edition named “ORA$BASE”.
Objects that are editionable :-
 FUNCTION
 LIBRARY
 PACKAGE and PACKAGE BODY
 PROCEDURE
 TRIGGER
 TYPE and TYPE BODY
 SYNONYM
 VIEW
Related MOS ID:- 1489116.1
Edition Based Redefinition (EBR)
Database Considerations
• As EBR is enabled per database user, the potentially editionable objects in a particular
schema are all either editioned or not (internal database users such as SYS, SYSTEM,
and PUBLIC cannot be editioned).
• As not all database objects are editioned, and because the definition of one object
may depend on another object, for editioning to be enabled successfully there must
be no dependencies of non-editioned objects on editioned objects.
• Potential violations here fall into the following categories:
 PUBLIC synonyms to editioned objects
 Tables and queues that depend on editioned user defined types (UDTs)
 Materialized views that depend on editioned objects
 Custom and third-party schemas that depend on editioned objects
 Non-APPS synonyms on Oracle E-Business Suite tables
Related MOS ID:- 1489116.1
Rules for EBR
• A non-editioned object cannot depend on an editioned object.
• A public synonym cannot refer to an editioned object. (why APPS-owned
synonyms take precedence)
• A function-based index cannot depend on an editioned function.
• A materialized view cannot depend on an editioned view. (why a lot of
MV’s are invalidated in 12.2)
• A table cannot have a column of a user-defined data type whose owner
is editions enabled (APPS is, APPS_NE isn’t.)
• A noneditioned subprogram cannot have a static reference to a
subprogram whose owner is editions-enabled. (APPS_NE.<package>
cannot reference APPS.<function>)
Related MOS ID:- 1489116.1
Logical View
Logical View
Example
Online Patching?
• New patching mechanism that allows the application of
patches while the system is up and running, and the users are
working as normal
Phases that make up the Online Patching cycle?
 Prepare a virtual copy (patch edition) of the running application (run edition).
 Apply patches to the patch edition of the application.
 Finalize the system in readiness for the cutover phase.
 Cutover to the patch edition and make it the new run edition.
 Cleanup obsolete definitions or data to recover space.
When a patch is applied, adop will:
 Synchronize the contents of the run file system to the patch FS (phase=prepare)
 Apply patching actions on the patch file system. (phase=apply)
 During the cutover phase, the adop utility (phase=cutover) :
 Restarts the application tier services.
 Swap [Patch FS] -> [Run FS]
Online Patching?
SELECT
DOP_SESSION_ID,PREPARE_STATUS,APPLY_STATUS,FINALIZE_STATUS,CUTOVER_STATUS,CLEANUP_STATUS,
ABORT_STATUS,STATUS,ABANDON_FLAG,NODE_NAME
FROM AD_ADOP_SESSIONS ORDER BY ADOP_SESSION_ID;
Note:
Y denotes that the phase is done
N denotes that the phase has not been completed
X denotes that the phase is not applicable
R denotes that the phase is running (in progress)
F denotes that the phase has failed
P (is applicable only to APPLY phase) denotes at least one patch is
already applied for the session id
C denotes that the status of this ADOP session has completed
Note:
The following Numerical statuses are only relevant for the cutover phase...
These status values are updated when a step has completed, and are as follows:
N denotes that the phase has not been completed
0 denotes that cutover/force_shutdown has started
1 denotes the "force_shutdown" step has successfully executed
3 denotes the "db_cutover" step has successfully executed
4 denotes the "fs_cutover" step has successfully executed
6 denotes the "force_startup" step has successfully executed
Y denotes that the phase is done
DEVELOPMENT STANDARDS
What is the extra work for a
developer?
• Table Names must be unique at 29 bytes or less
 The Editioning Views will have suffix of # added to them automatically
 This is done with a substr(table_name,1,29)
• Column Names must be 28 bytes or less
 A Revised Column Name has the form:
 <logical_column_name>#<version_tag>
 Version_tag is a string of the form: [0-9A-Z]
• Forward Cross-Edition Triggers
 <table_name>_F<change_number>
• Suffix + are the EBR DB Triggers on Seed Data
• A Materialized View Definition must be stored in an ordinary view called
MV_NAME||'#'
DEVELOPMENT STEPS
What is the extra work for a
developer?
General Steps
1.Develop customization in the run edition of your non-PROD environment
 –Both DB and OS File System
 –Object specific steps we will talk about below
 –Recompile invalids (ad_zd.compile)
2.Create the patch (manually create patch actions)
3.Test the patch
• Deploying Customizations in Oracle E-Business Suite Release 12.2 (MOS
Doc ID 1577661.1)
What is the extra work for a
developer?
• An Edition Synonym will point to the correct version of the Table
1. 1.Make your table changes
2. 2.Regenerate the edition view (ad_zd_table.patch)
3. 3.Upgrade table for Edition Storage (ad_zd_seed.upgrade)
4. 4.Create loader LCT for Seed Data
5. 5.Create Forward Crossedition Trigger (FCET)
– This keeps data in sync with the new data representation
• 6.Create Reverse Crossedition Trigger (RCET)
– This keeps data in sync with the old data representation
• 7.Extract updated table defintion (xdfgen.pl)
• 8.Extract Seed Data (FNDLOAD)
• 9.Recompile invalids (ad_zd.compile)
What is the extra work for a
developer?
• Seed Data tables must include a new column ZD_EDITION_NAME
• This is used to present a consistent view of the data based on the Edition.
1.Create initial table definition Table must go in APPS_TS_SEED tablespace
2.Upgrade table to support Editioned Storage (ad_zd_seed.upgrade) This adds the column
ZD_EDITION_NAME
3.Manually insert new Seed Data records into table
4.Create a Loader Control File for Seed Data FNDLOAD *.LCT file
5.Extract Seed Data FNDLOAD apps/<apps_pwd> 0 Y DOWNLOAD my_table.LCT my_table.ldt
my_table
What is the extra work for a
developer?
• Not using an APPS.<editioned object synonym>
– Views: disappearing/appearing columns, indexes, even data
– PL/SQL: dropped/altered/changed API’s, usage, references
– Triggers: disappearing/appearing constraints, functional changes
– Types: disappearing/appearing columns, indexes, even data
– Synonyms: pointers change: Views Tables, all the above
• Invalid Objects Appear After Patching
• Functional Code Behavior Changes After Patching
• If another Developer is using an Edition:
• The DEFAULT_EDITION can change without warning
What is the extra work for a
developer?
Always Be Aware of other Patching or Development activity going on in the
instance.
• Stage Filesystem-based Code in both RUN_BASE and PATCH_BASE
• Scheduling of Data Changes is Critical (changes can vanish)
• Announce to all other Users if Creating/Cutting-Over a New Edition
• Flag all Base-Object Customizations for Detection during PPA
What is the extra work for a
developer?
• Not using an APPS.<editioned object synonym>
– Views: disappearing/appearing columns, indexes, even data
– PL/SQL: dropped/altered/changed API’s, usage, references
– Triggers: disappearing/appearing constraints, functional changes
– Types: disappearing/appearing columns, indexes, even data
– Synonyms: pointers change: Views Tables, all the above
• Invalid Objects Appear After Patching
• Functional Code Behavior Changes After Patching
• If another Developer is using an Edition:
The DEFAULT_EDITION can change without warning
What is the extra work for a
developer?
Always Be Aware of other Patching or Development activity going on in
the instance
• Stage Filesystem-based Code in both RUN_BASE and PATCH_BASE
• Scheduling of Data Changes is Critical (changes can vanish)
• Announce to all other Users if Creating/Cutting-Over a New Edition
• Flag all Base-Object Customizations for Detection during PPA
What is the extra work for a
developer?
References
Deploying Customizations in Oracle E-Business Suite Release 12.2 (Doc ID 1577661.1)
Master Note: Overview of Oracle Edition-Based Redefinition (EBR)
(Doc ID 1489116.1)
Oracle E-Business Suite Release 12.2: Online Patching FAQ
(Doc ID 1583902.1)
Oracle Application Framework Release Notes for Release 12.2.3
(Doc ID 1593782.1)
Where to Deploy Custom Java [default: $JAVA_TOP/*] (Doc ID 1609939.1)
Oracle E-Business Suite Release 12.2 Information Center
(Doc ID 1583153.1)
Q&A
E-mail:- ajithpathiyil@gmail.com

Contenu connexe

Tendances

Preparing for EBS R12.2-upgrade-full
Preparing for EBS R12.2-upgrade-fullPreparing for EBS R12.2-upgrade-full
Preparing for EBS R12.2-upgrade-full
Berry Clemens
 
White paper a complete guide to oracle bi discoverer end user layer
White paper  a complete guide to oracle bi discoverer end user layerWhite paper  a complete guide to oracle bi discoverer end user layer
White paper a complete guide to oracle bi discoverer end user layer
Latha Rajendran
 
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPTCOLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
Preet Kamal Singh
 

Tendances (20)

Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015
 
Preparing for EBS R12.2-upgrade-full
Preparing for EBS R12.2-upgrade-fullPreparing for EBS R12.2-upgrade-full
Preparing for EBS R12.2-upgrade-full
 
Oracle EBS Upgrade to 12.2.5.1
Oracle EBS Upgrade to 12.2.5.1Oracle EBS Upgrade to 12.2.5.1
Oracle EBS Upgrade to 12.2.5.1
 
White paper a complete guide to oracle bi discoverer end user layer
White paper  a complete guide to oracle bi discoverer end user layerWhite paper  a complete guide to oracle bi discoverer end user layer
White paper a complete guide to oracle bi discoverer end user layer
 
Configuring Parallel Approvers Notification
Configuring Parallel Approvers NotificationConfiguring Parallel Approvers Notification
Configuring Parallel Approvers Notification
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 
Oaf personaliztion examples
Oaf personaliztion examplesOaf personaliztion examples
Oaf personaliztion examples
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
How to install a font using xml publisher administrator
How to install a font using xml publisher administratorHow to install a font using xml publisher administrator
How to install a font using xml publisher administrator
 
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPTCOLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
 
Oracle EBS Currency conversion
Oracle EBS Currency conversionOracle EBS Currency conversion
Oracle EBS Currency conversion
 
Overview of the financial architecture in oracle e business suite release 12
Overview of the  financial architecture in oracle e business suite release 12Overview of the  financial architecture in oracle e business suite release 12
Overview of the financial architecture in oracle e business suite release 12
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
 
Anatomy of Autoconfig in Oracle E-Business Suite
Anatomy of Autoconfig in Oracle E-Business SuiteAnatomy of Autoconfig in Oracle E-Business Suite
Anatomy of Autoconfig in Oracle E-Business Suite
 
Oracle Forms: Data Blocks on Different Sources
Oracle Forms: Data Blocks on Different SourcesOracle Forms: Data Blocks on Different Sources
Oracle Forms: Data Blocks on Different Sources
 
Oracle BI publisher intro
Oracle BI publisher introOracle BI publisher intro
Oracle BI publisher intro
 
R12.2 dba
R12.2 dbaR12.2 dba
R12.2 dba
 
Oracle Sub-ledger Accounting : a Technical Overview
Oracle Sub-ledger Accounting : a Technical OverviewOracle Sub-ledger Accounting : a Technical Overview
Oracle Sub-ledger Accounting : a Technical Overview
 
Customizing Oracle EBS OA Framework
Customizing Oracle EBS OA FrameworkCustomizing Oracle EBS OA Framework
Customizing Oracle EBS OA Framework
 

Similaire à Oracle applications r12.2, ebr, online patching means lot of work for developers

Db2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfallsDb2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfalls
sam2sung2
 
Introduction to-release-11i-part-1-of-2-installation3771
Introduction to-release-11i-part-1-of-2-installation3771Introduction to-release-11i-part-1-of-2-installation3771
Introduction to-release-11i-part-1-of-2-installation3771
Mlx Le
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
Alfredo Abate
 
Application engine
Application engineApplication engine
Application engine
JAYAARC
 

Similaire à Oracle applications r12.2, ebr, online patching means lot of work for developers (20)

Db2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfallsDb2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfalls
 
2007 SAPTech Ed
2007 SAPTech Ed2007 SAPTech Ed
2007 SAPTech Ed
 
Editioning use in ebs
Editioning use in  ebsEditioning use in  ebs
Editioning use in ebs
 
Editioning use in ebs
Editioning use in  ebsEditioning use in  ebs
Editioning use in ebs
 
SAP BO and Teradata best practices
SAP BO and Teradata best practicesSAP BO and Teradata best practices
SAP BO and Teradata best practices
 
Store programs
Store programsStore programs
Store programs
 
Introduction to-release-11i-part-1-of-2-installation3771
Introduction to-release-11i-part-1-of-2-installation3771Introduction to-release-11i-part-1-of-2-installation3771
Introduction to-release-11i-part-1-of-2-installation3771
 
Staged Patching Approach in Oracle E-Business Suite
Staged Patching Approach in Oracle E-Business SuiteStaged Patching Approach in Oracle E-Business Suite
Staged Patching Approach in Oracle E-Business Suite
 
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
 
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
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 
Evolutionary database design
Evolutionary database designEvolutionary database design
Evolutionary database design
 
Handling Database Deployments
Handling Database DeploymentsHandling Database Deployments
Handling Database Deployments
 
Oracle11g R2 - Edition Based Redefinition for On Line Application Upgrade
Oracle11g R2 - Edition Based Redefinition for On Line Application UpgradeOracle11g R2 - Edition Based Redefinition for On Line Application Upgrade
Oracle11g R2 - Edition Based Redefinition for On Line Application Upgrade
 
Datastage Introduction To Data Warehousing
Datastage Introduction To Data WarehousingDatastage Introduction To Data Warehousing
Datastage Introduction To Data Warehousing
 
T sql performance guidelines for better db stress powers
T sql performance guidelines for better db stress powersT sql performance guidelines for better db stress powers
T sql performance guidelines for better db stress powers
 
Application engine
Application engineApplication engine
Application engine
 
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
 

Plus de Ajith Narayanan

Plus de Ajith Narayanan (12)

Analyze database system using a 3 d method
Analyze database system using a 3 d methodAnalyze database system using a 3 d method
Analyze database system using a 3 d method
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 final
 
Best practices for large oracle apps r12 implementations apps14
Best practices for large oracle apps r12 implementations apps14Best practices for large oracle apps r12 implementations apps14
Best practices for large oracle apps r12 implementations apps14
 
Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2Crack the complexity of oracle applications r12 workload v2
Crack the complexity of oracle applications r12 workload v2
 
Oracle real application clusters system tests with demo
Oracle real application clusters system tests with demoOracle real application clusters system tests with demo
Oracle real application clusters system tests with demo
 
Oracle databasecapacityanalysisusingstatisticalmethods
Oracle databasecapacityanalysisusingstatisticalmethodsOracle databasecapacityanalysisusingstatisticalmethods
Oracle databasecapacityanalysisusingstatisticalmethods
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000
 
Why is my_oracle_e-biz_database_slow_a_million_dollar_question
Why is my_oracle_e-biz_database_slow_a_million_dollar_questionWhy is my_oracle_e-biz_database_slow_a_million_dollar_question
Why is my_oracle_e-biz_database_slow_a_million_dollar_question
 
Performance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cPerformance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12c
 
Oracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethodsOracle ebs capacity_analysisusingstatisticalmethods
Oracle ebs capacity_analysisusingstatisticalmethods
 
An introduction to_rac_system_test_planning_methods
An introduction to_rac_system_test_planning_methodsAn introduction to_rac_system_test_planning_methods
An introduction to_rac_system_test_planning_methods
 
Best practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementationsBest practices for_large_oracle_apps_r12_implementations
Best practices for_large_oracle_apps_r12_implementations
 

Dernier

Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 

Dernier (20)

VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
 

Oracle applications r12.2, ebr, online patching means lot of work for developers

  • 1. ORACLE APPLICATIONS R12.2, EBR, ONLINE PATCHING - MEANS LOT OF WORK FOR DEVELOPERS Ajith Narayanan 25th Feb 2015, Bangalore, India
  • 2. Who Am I? Ajith Narayanan • Oracle ACE Associate • 11 years of Oracle [APPS] DBA experience. • Blogger :- http://oracledbascriptsfromajith.blogspot.com • Speaker:- Conferences Of AIOUG, DOAG, NZOUG, UKOUG, OTNYathra , OTN APAC Tour etc. • Website Chair (2010 -2013) :- ORACLERACSIG (http://www.oracleracsig.org) • Member:- OAUG & AIOUG, ORACLERACSIG • AIOUG Real Application Clusters SIG Leader
  • 3. Agenda • Introduction to R12.2 Architecture • Online Patching Concepts  Edition Based Redefinition (EBR)  Rules for EBR • Development Standards  What is the extra work for a developer? • Development Steps  Examples •Questions
  • 6. R12.2 Architecture Oracle E-Business Suite Release 12.2 uses two application tier ORACLE_HOMEs. • An OracleAS 10.1.2 ORACLE_HOME that was used in previous 12.x releases. • An Oracle Fusion Middleware (FMW) ORACLE_HOME that supports Oracle WebLogic Server (WLS) and supersedes the Java (OracleAS 10.1.3) ORACLE_HOME that was used in previous releases. • The use of these two ORACLE_HOMEs enables Oracle E-Business Suite to take advantage of the latest Oracle technologies.
  • 7. R12.2 Architecture • The Oracle E-Business Suite modules (packaged in the file formsapp.ear) are deployed out of the OracleAS 10.1.2 ORACLE_HOME, and the frmweb executable is also invoked out of this ORACLE_HOME. • All major services are started out of the Fusion Middleware ORACLE_HOME.
  • 10. Edition Based Redefinition (EBR) • An edition as name suggests is virtual workspace environment where database objects are redefined and finalized as final version if satisfied. • Edition-Based Redefinition can enable us to have two objects with the same name but of Different Editions. • EBR feature started from Oracle 11g R2 onwards, and all database by default has a base edition named “ORA$BASE”. Objects that are editionable :-  FUNCTION  LIBRARY  PACKAGE and PACKAGE BODY  PROCEDURE  TRIGGER  TYPE and TYPE BODY  SYNONYM  VIEW Related MOS ID:- 1489116.1
  • 11. Edition Based Redefinition (EBR) Database Considerations • As EBR is enabled per database user, the potentially editionable objects in a particular schema are all either editioned or not (internal database users such as SYS, SYSTEM, and PUBLIC cannot be editioned). • As not all database objects are editioned, and because the definition of one object may depend on another object, for editioning to be enabled successfully there must be no dependencies of non-editioned objects on editioned objects. • Potential violations here fall into the following categories:  PUBLIC synonyms to editioned objects  Tables and queues that depend on editioned user defined types (UDTs)  Materialized views that depend on editioned objects  Custom and third-party schemas that depend on editioned objects  Non-APPS synonyms on Oracle E-Business Suite tables Related MOS ID:- 1489116.1
  • 12. Rules for EBR • A non-editioned object cannot depend on an editioned object. • A public synonym cannot refer to an editioned object. (why APPS-owned synonyms take precedence) • A function-based index cannot depend on an editioned function. • A materialized view cannot depend on an editioned view. (why a lot of MV’s are invalidated in 12.2) • A table cannot have a column of a user-defined data type whose owner is editions enabled (APPS is, APPS_NE isn’t.) • A noneditioned subprogram cannot have a static reference to a subprogram whose owner is editions-enabled. (APPS_NE.<package> cannot reference APPS.<function>) Related MOS ID:- 1489116.1
  • 16. Online Patching? • New patching mechanism that allows the application of patches while the system is up and running, and the users are working as normal Phases that make up the Online Patching cycle?  Prepare a virtual copy (patch edition) of the running application (run edition).  Apply patches to the patch edition of the application.  Finalize the system in readiness for the cutover phase.  Cutover to the patch edition and make it the new run edition.  Cleanup obsolete definitions or data to recover space. When a patch is applied, adop will:  Synchronize the contents of the run file system to the patch FS (phase=prepare)  Apply patching actions on the patch file system. (phase=apply)  During the cutover phase, the adop utility (phase=cutover) :  Restarts the application tier services.  Swap [Patch FS] -> [Run FS]
  • 17. Online Patching? SELECT DOP_SESSION_ID,PREPARE_STATUS,APPLY_STATUS,FINALIZE_STATUS,CUTOVER_STATUS,CLEANUP_STATUS, ABORT_STATUS,STATUS,ABANDON_FLAG,NODE_NAME FROM AD_ADOP_SESSIONS ORDER BY ADOP_SESSION_ID; Note: Y denotes that the phase is done N denotes that the phase has not been completed X denotes that the phase is not applicable R denotes that the phase is running (in progress) F denotes that the phase has failed P (is applicable only to APPLY phase) denotes at least one patch is already applied for the session id C denotes that the status of this ADOP session has completed Note: The following Numerical statuses are only relevant for the cutover phase... These status values are updated when a step has completed, and are as follows: N denotes that the phase has not been completed 0 denotes that cutover/force_shutdown has started 1 denotes the "force_shutdown" step has successfully executed 3 denotes the "db_cutover" step has successfully executed 4 denotes the "fs_cutover" step has successfully executed 6 denotes the "force_startup" step has successfully executed Y denotes that the phase is done
  • 19. What is the extra work for a developer? • Table Names must be unique at 29 bytes or less  The Editioning Views will have suffix of # added to them automatically  This is done with a substr(table_name,1,29) • Column Names must be 28 bytes or less  A Revised Column Name has the form:  <logical_column_name>#<version_tag>  Version_tag is a string of the form: [0-9A-Z] • Forward Cross-Edition Triggers  <table_name>_F<change_number> • Suffix + are the EBR DB Triggers on Seed Data • A Materialized View Definition must be stored in an ordinary view called MV_NAME||'#'
  • 21. What is the extra work for a developer? General Steps 1.Develop customization in the run edition of your non-PROD environment  –Both DB and OS File System  –Object specific steps we will talk about below  –Recompile invalids (ad_zd.compile) 2.Create the patch (manually create patch actions) 3.Test the patch • Deploying Customizations in Oracle E-Business Suite Release 12.2 (MOS Doc ID 1577661.1)
  • 22. What is the extra work for a developer? • An Edition Synonym will point to the correct version of the Table 1. 1.Make your table changes 2. 2.Regenerate the edition view (ad_zd_table.patch) 3. 3.Upgrade table for Edition Storage (ad_zd_seed.upgrade) 4. 4.Create loader LCT for Seed Data 5. 5.Create Forward Crossedition Trigger (FCET) – This keeps data in sync with the new data representation • 6.Create Reverse Crossedition Trigger (RCET) – This keeps data in sync with the old data representation • 7.Extract updated table defintion (xdfgen.pl) • 8.Extract Seed Data (FNDLOAD) • 9.Recompile invalids (ad_zd.compile)
  • 23. What is the extra work for a developer? • Seed Data tables must include a new column ZD_EDITION_NAME • This is used to present a consistent view of the data based on the Edition. 1.Create initial table definition Table must go in APPS_TS_SEED tablespace 2.Upgrade table to support Editioned Storage (ad_zd_seed.upgrade) This adds the column ZD_EDITION_NAME 3.Manually insert new Seed Data records into table 4.Create a Loader Control File for Seed Data FNDLOAD *.LCT file 5.Extract Seed Data FNDLOAD apps/<apps_pwd> 0 Y DOWNLOAD my_table.LCT my_table.ldt my_table
  • 24. What is the extra work for a developer? • Not using an APPS.<editioned object synonym> – Views: disappearing/appearing columns, indexes, even data – PL/SQL: dropped/altered/changed API’s, usage, references – Triggers: disappearing/appearing constraints, functional changes – Types: disappearing/appearing columns, indexes, even data – Synonyms: pointers change: Views Tables, all the above • Invalid Objects Appear After Patching • Functional Code Behavior Changes After Patching • If another Developer is using an Edition: • The DEFAULT_EDITION can change without warning
  • 25. What is the extra work for a developer? Always Be Aware of other Patching or Development activity going on in the instance. • Stage Filesystem-based Code in both RUN_BASE and PATCH_BASE • Scheduling of Data Changes is Critical (changes can vanish) • Announce to all other Users if Creating/Cutting-Over a New Edition • Flag all Base-Object Customizations for Detection during PPA
  • 26. What is the extra work for a developer? • Not using an APPS.<editioned object synonym> – Views: disappearing/appearing columns, indexes, even data – PL/SQL: dropped/altered/changed API’s, usage, references – Triggers: disappearing/appearing constraints, functional changes – Types: disappearing/appearing columns, indexes, even data – Synonyms: pointers change: Views Tables, all the above • Invalid Objects Appear After Patching • Functional Code Behavior Changes After Patching • If another Developer is using an Edition: The DEFAULT_EDITION can change without warning
  • 27. What is the extra work for a developer? Always Be Aware of other Patching or Development activity going on in the instance • Stage Filesystem-based Code in both RUN_BASE and PATCH_BASE • Scheduling of Data Changes is Critical (changes can vanish) • Announce to all other Users if Creating/Cutting-Over a New Edition • Flag all Base-Object Customizations for Detection during PPA
  • 28. What is the extra work for a developer?
  • 29. References Deploying Customizations in Oracle E-Business Suite Release 12.2 (Doc ID 1577661.1) Master Note: Overview of Oracle Edition-Based Redefinition (EBR) (Doc ID 1489116.1) Oracle E-Business Suite Release 12.2: Online Patching FAQ (Doc ID 1583902.1) Oracle Application Framework Release Notes for Release 12.2.3 (Doc ID 1593782.1) Where to Deploy Custom Java [default: $JAVA_TOP/*] (Doc ID 1609939.1) Oracle E-Business Suite Release 12.2 Information Center (Doc ID 1583153.1)

Notes de l'éditeur

  1. This template can be used as a starter file for presenting training materials in a group setting. Sections Right-click on a slide to add sections. Sections can help to organize your slides or facilitate collaboration between multiple authors. Notes Use the Notes section for delivery notes or to provide additional details for the audience. View these notes in Presentation View during your presentation. Keep in mind the font size (important for accessibility, visibility, videotaping, and online production) Coordinated colors Pay particular attention to the graphs, charts, and text boxes. Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale. Graphics, tables, and graphs Keep it simple: If possible, use consistent, non-distracting styles and colors. Label all graphs and tables.
  2. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  3. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  4. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  5. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  6. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  7. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  8. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  9. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  10. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  11. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  12. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  13. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  14. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  15. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  16. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  17. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  18. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  19. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  20. Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important. Introduce each of the major topics. To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
  21. This is another option for an Overview slides using transitions.