Oracle 12.2 Development Standards
Oracle 12.2 Development Standards
R12.2
Highlights People First.
Driving Solutions
and Together.
Development
Standards
Prepared by:
Gerald Jones
Senior Developer
Consultant
CherryRoad 1
About the Presenter
Gerald Jones
Independent Consultant based in Dallas, Texas
Worked with Oracle EBS since 1995
Presented papers at local and national Oracle
Users conferences
Worked with several clients on 12.2 upgrades
First upgrade in 2016
2
AGENDA
New Technical Features in EBS 12.2
Online Patching
Editioning Concepts
File System Changes
Oracle Development Standards
3
Online Patching
Oracle Introduced the concept of online patching
Patches can be applied while the EBS application is
still up and running
Online patching minimizes the amount of downtime
required when applying many patches
Minimum downtime to restart application tier
Database typically remains online
4
Online Patching – cont’d
Must use adop utility to perform online patch cycle
Adpatch can no longer be used
Online patching is accomplished through major
changes at the database level and file system level
5
Editioned Based Redefinition
(EBR)
6
Editioned Based Redefinition
(EBR)
Editioning allows for multiple versions of
a schema object to exist in the same database
During patching, one version is seen by users
while the other can be modified
Database objects that do not hold data can be
editioned (e.g. Views, Functions, Packages,
Procedures)
Database objects that hold data cannot be
editioned (e.g. Tables, Indexes, Materialized
Views)
7
EBR – Editioned Views
For non-editionable objects, Oracle created “editioned-views”
Editioned views ensure any changes to underlying objects are
visible to the user.
Mainly applies to database tables
Oracle apps synonyms point to the “editioned-view” instead of
the schema table
Editioned view denoted by <view name>#
Example: AP_INVOICES_ALL#
Editioned view owned by schema owner
8
EBR – Editioned Views Cont’d
Oracle SELECT statements required to point to editioned view
to ensure most current instantiation of the object is accessed
Cross-Edition triggers ensure consistency of data in the event
data changes occur during patching
Example: Table structure changes via patching. Triggers
handle any necessary data synchronizing between run and
patch edition version
9
File System Changes (Dual File
System)
10
Dual File System – Cont’d
In an R12.2 application server, two file systems
exist:
Run file system
Patch file system
The patch directory structure is a copy of the ru
directory structure
Application uses run file system to execute EBS
code
11
Dual File System – Cont’d
Patching copies current version of run filesystem to
patch filesystem prior to making any file level change
After patching completes, a cutover phase
switches the run file system to patch filesystem
to get the latest version of code. Run filesystem
becomes the patch file system
Non-editioned directory structure is used for files
not impacted by patch cycles (e.g. conc program out
files, log files,custom interface data files)
12
Development Standard Changes
13
Oracle Coding Standard
Changes
The introduction of Oracle EBS R12.2 requires
some changes to custom development to support
online patching technical infrastructure changes
16
Oracle Coding Standards –
Editioning Example
Oracle Release 12.2 Changes
Editioned View added and owned by schema
owner (e.g. AP)
APPS synonyms point to editioned view
17
Oracle Coding Standards – Custom
Table
Creating a custom table involves the following steps
Create the table in your RUN database as normal
Execute the Oracle utility ad_zd.upgrade to create
editioned view of custom table
Syntax: ad_zd.upgrade (<table owner>, <table name>)
Example: ad_zd.upgrade (‘XXXX’,’Cust_Table1’)
Additional grants must use API ad_zd.grant_privs
Syntax: az_zd.grant_privs (<grant type>, <table name>
, <role_name>
Example: ad_zd.grant_privs(‘SELECT’,’Cust_Table1’,
‘XXXX Role’)
18
Oracle Coding Standards – Custom
Table cont’d
Updating a custom table involves the following steps
Alter table in your RUN database as normal
Execute the Oracle utility ad_zd.patch to update
editioned view of custom table
Syntax: ad_zd.patch (<table owner>, <table name>)
Example: ad_zd.patch (‘XXXX’,’Cust_Table1’)
19
Oracle Coding Standards –
Materialized View
Materialized view must be created as a logical view and include
# at the end of the name
Once the logical view is created, using Oracle utility ad_zd.mview
to create editioned view of logical view
Syntax: ad_zd.mview (<schema name>, <logical view name
without the #>
Example: ad_zd.mview (‘APPS’,’XXXX_CUSTOM_MVIEW’)
Note: Views should be created and owned by APPS schema
20
Oracle Coding Standards – Other
Object Types
21
Additional References
This was a cursory look at some of the new technical features and
coding standards impact introduced in Release 12.2. There are many
great additional sources of documentation on Oracle’s Metalink site:
cle E-Business Suite Developer’s Guide Release 12.2 (Part No. E22961
loying Customizations in Oracle E-Business Suite Release 12.2
S Doc ID 1577661.1)
g the Online Patching Readiness Report in Oracle E-Business Suite
ase 12.2 (MOS Doc ID 1531121.1)
cle E-Business Suite Release 12.2: Online Patching FAQ
OS Doc ID 1583902.1)
22
CherryRoad-Oracle Offerings
Oracle Cloud
Applications (SaaS)
23
Thank You
Private and 24