Wednesday, July 18, 2007
Performance Tuning Overview in Oracle Apps 11i
If performance issue is with entire application questions you should have in mind :
Is your applications sized properly ?
Is initialization parameters set up correctly ?
Are there any runaway processes in oracle database tier or application tier ?
Is network connectivity between users & application server is fine , there is no delays ?
Latest techstack including jdbc drivers, forms, database, jdk can improve performance considerably Check if system level trace is enabled ?
Is Purge schedule ?
Is gather stats scheduled ?
If Issue is with only particular type of reports Check if there are no performance bugs with that module ?
Are you on latest patchset for that product ?
Is it standard report or custom ? (If custom enable trace & use tkprof, If standard then check in metalink if there is any issues reported by others)If Issue is only during particular time lets say during night Check what's running during that time .
Is it because of backups ?
Is it because all resource intensive requests running in night ?
If Issue is with specific users Check if trace is enabled at user level ?
Is user client machine performing well ?
Is connectivity from client machine to server fine ?
This is just overview or starting point to check Performance Issues in Oracle applications11i for Tuning Individual component like , Apache, JVM, Concurrent manager.
One of the common questions asked is how to schedule Gather Stats or How to schedule Purge ConcurrentProgram or Obsolete workflow data?
These are concurrent requests & if you have "System Administrator Responsibility" login with that ,then go to
Request -> View -> Select "Specific Request" and under "Name"
TextSearch for following requestsGather Schema Statistics ( supply parameter schema name , apps & others)Purge Concurrent Request and/or Manager Data ( supply retention period usually 90 days)Purge Signon Audit dataPurge Obsolete Workflow Runtime DataPurge Obsolete Generic File Manager Data.
If you want to understand How to proceed with Oracle Applications 11i tuning check Metalink Note 69565.1 .
How to apply apps patch using adpatch
Now you know basics of apps patch like type of patches & options available with patching, lets learn how to apply patches in oracle applications 11i .
Two broad ways to apply patch interactive & noninteractive(You will supply required parameters on command line & patch will apply without asking you any questions as you have already provided answers)
You being new to apps patching will prefer to interactive way of patching , let adpatch throw series of questions & you answer each of these .If you want to use any option with adpatch enter adpatch with options= seprated by comma (If you don't supply any options it will take default value set for that particular option like compiledb & compilejsp)You have to issue adpatch from application user (User you entered as applications/middle tier user usually applmgr if you insatlled using oracle standard documentation like )
adpatch options=nocompiledb,nocompilejsp Based on you AD verison it will ask you questions like with some suggested value
'/u01/applmgr/VIS11I/appl'Is this the correct APPL_TOP [Yes] Log file name & location....
Once patch is applied you might be interested in checking log files
If patch fails then you have to use utility adctrl to check for which worker it failed & check corresponding worker log file to see error message.
For more information on patches & patch basics follow metalink note # 181665.1
Difference between Oracle Apps 11i and R12
.Database: Database Version in 11i (11.5.9 & 11.5.10) was 9i Rel 2 where as in Release 12 its 10g R2 (10.2.0.2)
Application Tier: Tech Stack in Application Tier consist of iAS(1.0.2.2.2) & Developer 6i (Forms & Reports 8.0.6) but in Applications R12 it is build on Fusion Middleware (10g Web Server and 10g Forms & Reports)
Sub component in Application Tier:
A) HTTP Server or Web Server in R12 is Version 10.1.3 which is built on Apache version 1.3.34. In apps 11i it is Version 1.0.2.2.2 built on Apache Version 1.3.19
B) Jserv in apps 11i is replaced by OC4J (mod_jserv is replaced by mod_oc4j)
C) Forms Version 6i in Apps 11i is replaced by Forms 10.1.2.0.2 in R12
D) Reports Version 6i in Apps 11i is replaced by Reports 10.1.2.0.2 in R12
E) JDBC version is changed from version 9 in apps 11i to version 10.2.0 in Apps R12
F) modplsql or mod_pls is removed from Apps R12 (What will happen to my mod plsql applications- coming soon* )
G) Java processes use JDK/JRE version 1.5.0 in R12 against JDK version 1.3.1 or 1.4.2 in Apps 11i
H) For various environment variable changes check below picture

I) New top INSTANCE_TOP added in Release 12 for configuration and log files

Tuesday, July 17, 2007
Clone Apps 11i Instance
Another important & useful utility under AD_TOP which Apps dba perform quite often isCloning Oracle Application 11i Instance.
Cloning is process of creating replica of your source apps 11i Instance ( lets say you have one apps Instance with name DEVELOPMENT and you want to create similar instance ( including same patches & user data) like DEVPRD then you will use adclone utility (Also called as Rapid Clone these days). In this case source Instance will be DEVELOPMENT and target Instance will be DEVPRD. There are lot for scenario in which you wish to clone your E-Business Suite 11i Instance , like you want to Test if everything is OK in Test & then after testing want to create Production instance or you want to move your Instance from one machine to other machine or if you are highly experienced Apps DBA you can use clone as staged environment during Upgrade to reduce downtime ( this concept is called as staged appl_top or staged patching/upgrade , p.s. this is different from shared APPL_TOP)
So here are some broad level steps you can use to clone apps instance .
Step1 . Prerequisites Steps you do before start cloning using rapid clone
a)Verify source and target nodes software versions
b)Apply the latest AutoConfig Template patch
c) Apply the latest Rapid Clone patches
Step2 . Clone Source to Target
a) Run preclone on DB tier
b) Run preclone on Apps or middle tier
c) Copy source file system to target file system
d)Configure db tier
e) Configure apps/middle tier
Step 3 Finishing Task
a) Update profile options
b) Update printer settings (If printers are not configured or you don't want to use printer you can skip this step)
c) Update workflow configuration settings (Important)
For more detailed steps check Metalink Note # 230672.1
Don't forget to leave me a comment about what you want to hear & any confusion if you have in apps 11i.
Startup Shutdown Apps Services Startup / Shutdown Apps
As you are aware by now there is Database Tier ( Database & DB Listener ) and Application Tier ( WebServer, Forms, Reports, Concurrent Manager, Discoverer, Apps Listener, OnetoOne Fullfillment Server )
Order of StartUp of Services Should be --> First DB Listener, Database & then Application Tier Services
Order of ShutDown of Services Should be--> First Application Tier Services then Database & DB Listener
Database Startup/Shutdown Scripts
AD --> is for Application
-----Application Tier Startup/Shutdown Scripts
OAD_TOP/admin/scripts/ SID_hostname
adalnctl.sh --> Apps Listener Control Script
Apps Architecture
This Topic is quite important and I recommend you to go through this thoroughly.
First get to know the terminology which you will encounter in the wonderful world of Oracle.
Server - is a process or group of processes and provides a particular functionality/service .For example, Database Server listen and process database requests, similarly Web Server listens for and processes HTTP requests.
Tier - is a logical grouping of services, may be on single machine or spread across more than one physical machine.For Example, Middle Tier in Oracle apps consist Form,Web,Report...Services. Forms & Report can be one machine 1 & Web Server can be on machine 2, still they will be part of same tier called as Application Tier or Middle Tier.
Node - is referred as Machine, Each tier may consist of one or more node and each node can potentially have more than one tier.
Desktop Tier - Oracle Applications/E-Business Suite is built on three tier Architecture with first Desktop Tier ic client machines accessing applications via browser(HTML based Self service applications) or Java Applet(Jinitiator) for Form based interface.
Application/Middle Tier - Second is Application Tier also called as middle tier consists of WebServer Forms, Reports, Concurrent processing, Discoverer and Admin Server. I suppose its known as Middle tier because it lies between our desktop & third tier called database tier.
Database Tier - Third is Database Tier contain Orale database server which store all your application data. I am sure if you are DBA you know it :)
Oracle Apps Patch Basics
Lot of you asked me about patch basics & even I was confused with Apps Patches terminology initially as I used to hear family pack, mink pack, maintenance pack, patchset, security patch and lot many other type of patches so I thought of introducing you with patching terminology & to Oracle terminology that impresses and confuses people like you & me.
OK lets now start with patch basics / terminology Standalone/Oneoff patches :
This is used to define patch created to fix single/particular problem.Mini Pack : This is group of oneoff patches for a particular product like INV, GL, AP and named like 11i.GL.E ( means this group of patches contain fix for 11i GL product (General Ledger till time E is released ) This is cummutative which means it will include 11i.GL.A, 11i.GL.B ....11iGL.D till 11i.GL.E earlier in 10.7 it used to called as patchset.
Family Pack : Group of mini packs in one family buldeled together is called as family pack. they are usually named as 11i_PF. Few example of falilies are SCM ( 11i.SCM_PF.G ), ATG ( 11i.ATG_PF.H ) _PF indicate Product Family Pack
Maintenance Pack : Group of family pack together is called as maintenance pack. So if you say your Verison is 11.5.10 then its maintenance pack 10 ( 3rd digit is maintenance pack ) so
To wind up things you can say few one off patch make mini pack , few mini pack related to same family bundeled together as family pack & all family pack fixed till that time are bundeled in Maintenance pack .
NLS Patch ( When you have more than one language , like english & arabic or french .. ) then apart from normal patch you have to apply patch for specific language Installed in your system called as NLS patch .
Let me know ...if you need more details. I can find out and post here as I am not a DBA.