Oracle Apps Dba Interview
Oracle Apps Dba Interview
1)I am applying a patch , can I open another session and run adadmin ?
Ans:Yes, unless you are running a process where workers are involved
2)I am applying a patch , can I open another session in another node and run adpatch?
Ans:No
3)Output & logfiles for requests executed on source instance not working on cloned instance??
4)What happens if you don't give cache size while defining concurrent manager?
Ans: Most often when a request goes "inactive/no manager" and is then processed a short time
later, the solution is to either increase the cache size for your Standard manger, or increase the actual
number of Standard Manager processes that can run. Cache Size is set in the
Concurrent/Manager/Define form. Basically, this regulates how many requests a manager will pick up
for each sleep cycle.
Ans: The need to have the same password for Apps and Applsys is because when you sign on to apps,
intially it connects to a public schema called APPLSYSPUB. This validates AOL username and password
that we enter (operations/welcome using guest user
account. Once this is verified we select responsibility, this is validated by APPLSYS schema and then it
connects to APPS schema.
Since it uses both applsys and apps during signon process this expects both the password
to be identical. Try changing apps password to something else and try to login, the
validation at the last stage would fail. This would result in failure of application login.
Apps is a universal schema has synonyms to all base product tables and sequences. This
also has code objects for all products (triggers, views, packages, synonyms etc.).
Applsys schema has applications technology layer products like FND and AD etc.
Ans: alter package <package_name> compile ;alter package <packae_ame> compile body;alter view
<view_name> compile;
SQL>EXEC UTL_RECOMP.RECOMP_PARALLEL(4);
SQL>@$ORACLE_HOME/rdbms/admin/utlrp.sql
7)Why DB-CM-ADMIN are always insatlled on the same machine in Oracle Applications in Multi Node
Installation ?
Ans: There is no restriction to install all of them on a single machine,but if we install them on 3 different
machines then when we will run any AD utility on admin node or perform any upgradation it needs to
access the database so there will be
lot of overhead in accessing the database node on network so to avoid this overhead we install them on
same machine. Similar is the case when we run any concurrent request on the CM node as Concurrent
manager also updates the database objects.
8)What URL you use to access Disco viewer & Disco plus .
Ans:
http://hostname.domain/discoverer4i/viewer
http://hostname.domainname:port/discoverer/viewer (10gAS)
http://hostname.domainname:http_port/discoverer/viewer ( R12)
http://hostname.domainname:port/discoverer/plus (10gAS)
Ans: Oracle Applications Release 11.5.1 (11i) requires that its code run in a trusted mode, and
uses J-Initiator to run Java applets on a desktop client. If an applet is "trusted," however,
Java will extend the privileges of the applet. The Yellow Warning Bar is a warning that
your applet is not running in a trusted mode. To indicate that an applet is trusted, it must
be digitally signed using a digital Certificate, so Oracle Applications requires that all Java
11)How can u change the logfiles location suppose CM logfile location is APPLCSF
12) Conflict resolution managers resolves the conflicts yes , but hw it knows tht there are conficts?why
conflicts occur?
Ans: Concurrent managers read request to start concurrent programs running. The Conflict Resolution
Manager checks concurrent program definitions for incompatibility rules. If a program is identified as
Run Alone, then the Conflict Resolution Manager prevents the concurrent managers from starting other
programs in the same conflict domain.
When a program lists other programs as being incompatible with it, the Conflict Resolution Manager
prevents the program from starting until any incompatible programs in the same domain have
completed running.
Ans: The adovars.env file, located in $APPL_TOP/admin, specifies the location of variousfiles such as Java
files, HTML files, and JRE (Java Runtime Environment) files. It is called from the main applications
environment file.
$file oracle
15)How to Compile JSP's without using ADADMIN
16)What is wdbsvr.app file used for? What's full path of this file? What's significance of this file ?
Ans:
$IAS_ORACLE_HOME/Apache/modplsql/cfg
This file is used by mod_plsql component of Apache to connect to database. So when you type url
http://hostname:port/pls/SID , whenever Apache(11i Web Server) finds that request is for /pls/ then
Apache delegates this request to mod_pls component which in turn pick this file & check if there is any
DAD with name SID
Ans:
ICM - Internal Concurrent Manager which manages concurrent ManagersStandard Managers - Which
Manage processesing of requests.
Ans:
These files are used during restart of patch in case of patch failure because of some reason.
Located in $APPL_TOP/admin/<SID>/restart this folder also contains .bak ,.bk2 filesSAMPLE FILE
(adwork012.rf9)
Ans:
20)Can you clone from multi node system to single node system & vice versa ?
Ans:
Ans:
Yes, Rapid Clone will automatically Update Global oraInventory during configuration phase.
22)What is .dbc file , where its stored , whats use of .dbc file ?
Ans:
dbc file called as database connect descriptor file which stores database connection information used by
application tier to connect to database. This file is in directory
Ans:
Ans:
Use adadmin to change Maintenance mode is Oracle Apps. With AD.I you need to enable maintenance
mode in order to apply apps patch via adpatch utility. If you don't want to put apps in maintenance
mode you can use adpatch options=hotpatch feature.
Ans:
Ans:
adident utility in oracle apps is used to find version of any file . AD Identification.
Ans:
Ans:
Ans:
MRC also called as Multiple Reporting Currency in oracle Apps. Default you have currency in US Dollars
but if your organization operating books are in other currency then you as apps dba need to enable MRC
in Apps. How to enable MRC coming soon...
Ans:
JVM stands for Java Virtual Machine, JVM acronym for Java Virtual Machine which executes instructions
generated by Java compiler. So user click on any Self Service Request or any program which uses Java,
then Apache forwards this request to mod_jserv (mod_oc4j in 10g AS) & mod_jserv caters this request
with help of JVM.
Ans:
where 0 denotes first JVM & 1 denotes second JVM. stderr records error encountered in JVM & stdout
records other information like GC ..
33)What is error_log in Apache,what entries are recored in access_log ? Where is default location of this
file ?
Error_log will contain all the errors/warnings faced Apache web server in Oracle Apps 11i.
34)What is access_log in apache , what entries are recored in access_log ? Where is default location of
this file ?
Ans:
access_log in Oracle Application Server records all users accessing oracle applications 11i.
Ans:
httpd.conf,
httpd_pls.conf,
jserv.conf,
jserv.properties,
zone.properties
37)What is session time out parameter & where all you define these values ?
Ans:
- Self Service Application Session ( Server by Web Server iAS Apache & Jserv, like
iRecruitment,iProcurement)
If Oracle Apps client is not doing any activity for some time session during that time is called as Idle
Session & because of security reason, performance issues and to free up system resource Oracle
Applications terminates client session( both forms & self service) after idle time value is reached to the
one mentioned in configuration file.
From FND.G or 11.5.9 or with introduction of AppsLocalLogin.jsp to enter into application, profile option
"ICX Session Timeout" is used only to determine Forms Session Idle timeout value .
This might be confusing as earlier this profile option used to control forms as well as self service
application(with session.timeout) session.timeout is used to control Idle session timeout for Self Service
Applications ( Served by Jserv via JVM )
Autoconfig determines value for profile option "ICX: Session Timeout" and "session.timeout" from entry
in context file ( $APPL_TOP/admin/SID_hostname.xml ) with parameter s_sesstimeout
where value mentioned is in milliseconds so profile option ICX: Session Timeout value should be
s_sesstimeout/ (1000 * 60) which means here its 10 Minutes. This value is also set in
38)What is your Oracle Apps 11i Webserver Version and how to find it ?
Ans:
cd $IAS_ORACLE_HOME/Apache/Apache/bin
./httpd -version
Ans:
DBC file is quite important as whenever Java or any other program like forms want to connect to
database it uses dbc file. Typical entry in dbc file is GUEST_USER_PWD ,APPS_JDBC_URL ,DB_HOST
41)There are lot of dbc file under $FND_SECURE, How its determined that which dbc file to use from
$FND_SECURE ?
Ans:
42)What is RRA/FNDFS ?
Ans:
Report Review Agent(RRA) also referred by executable FNDFS is default text viewer in Oracle
Applications 11i for viewing output files & log files.
PCP is acronym for Parallel Concurrurent Processing. Usually you have one Concurrent Manager
executing your requests but if you can configure Concurrent Manager running on two machines (Yes you
need to do some additional steps in order to configure Parallel Concurrent Processing) .So for some of
your requests primary CM Node is on machine1 and secondary CM node on machine2 and for some
requests primary CM is on machine2 & secondary CM on machine1.
Ans:
Apps Listener usually running on All Oracle Applications 11i Nodes with listener alias as APPS_$SID is
mainly used for listening requests for services like FNDFS & FNDSM.
FNDFS - FND File Server also known as RRA Reports Review Agent is used to view text files in Oracle 11i.
FNDSM - FND Service Manager is a concurrent manager in GSM, and serves requests like CM's
Ans:
Ans:
adpatch is utility to apply oracle applications patches whereas opatch is utility to apply database patches
Ans:
f60srvm
48)What are different modes of forms in which you can start Forms Server and which one is default ?
Ans:
You can start forms server in SOCKET or SERVLET by defualt Forms are configured to start in socket
mode
http://www.dbatutor.com/2010/12/forms-servlet-or-socket-mode-which-is.html
Ans:
Oracle HTML Cache is available at $COMMON_TOP/_pages for some previous versions you might find it
in $OA_HTML/_pages
Ans:
0 & Y are flags for FND Executable like FNDCPASS & FNDLOAD where
0 is request id (request ID 0 is assigned to request ID's which are not submitted via Submit Concurrent
Request Form.
'Y' indicates the method of invocation. i.e. it is directly invoked from the command-line not from the
Submit Request Form.
Ans:
TWO_TASK mocks your tns alias which you are going to use to connect to database. Lets assume you
have database client with tns alias defined as PROD to connect to Database PROD on machine
teachmeoracle.com listening on port 1521. Then usual way to connect is sqlplus
username/passwd@PROD ; now if you don't want to use @PROD then you set
TWO_TASK=PROD and then can simply use sqlplus username/passwd then sql will check that it has to
connect to tnsalias define by value PROD i.e. TWO_TASK
52)What is GWYUID ?
Ans:
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
53)Where GWYUID defined & what is its used in Oracle Applications ?
Ans:
GWYUID is defined in dbc i.e. Database Connect Descriptor file . It is used to connect to database by thin
clients.
Ans:
http://www.dbatutor.com/2010/12/what-is-fndload.html
Ans:
http://www.dbatutor.com/2010/12/forms-servlet-or-socket-mode-which-is.html
Ans:
make is utility in Unix/Linux to maintain , update & generate an file mainly executable.
59)What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
http://www.dbatutor.com/2010/12/what-is-fndload.html
odf stands for Object Description Files used to create tables & other database objects.
---------------------------------------------------
RELEASE_NAME-----------------------11.5.10.2
Ans :
The command returns the release information, such as the following:Oracle9i Enterprise Edition Release
9.2.0.7.0 - ProductionPL/SQL Release 9.2.0.7.0 - ProductionCORE 9.2.0.7.0 ProductionTNS for 32-bit
Windows: Version 9.2.0.7.0 - ProductionNLSRTL Version 9.2.0.7.0 - Production
Ans : opatch is utility to apply database patch , In order to find opatch version
execute"$ORACLE_HOME/OPatch/opatch version"
Ans : ls -la
Ans : top is a operating system command, it will display top 10 processes which are taking high cpu and
memory. 8. What is a patch?Ans : A patch can be a solution for a bug/it can be a new feature.
Ans : oneoff, mini packs, family packs, maintanance packs, rollup pathches, colsolidated patches.
Ans : An oneoff patch is a small patch of (20-90K size) without any pre-req’s
Ans : A mini pack is one which will upgrade any product patchset level to next level like AD.H to AD.I
Ans : A Family pack is one which will upgade the patchset level of all the products in that family to
perticular patchsetlevel.
Ans : A maintanance pack will upgrade applications from one version to another like 11.5.8 to 11.5.9
Ans : A rollup patch is one which will deliver bug fixes identified after the release of any major
application versions like 11.5.8/11.5.9
Ans: Consolidated patches will come into pictures after upgrades from one version of applications to
anoter, all post upgrade patches will a consolidated and given as consolidated patch.
15. What is the other table where u can query what are the patches applied?
Ans : Ad_applied_patches
Ans: A patch can deliver solution for more than one bug, so ad_applied_patches may not give u the
perfect information as in case of ad_bugs.
17. How u apply a patch?
Ans : adpatch
18. What inputs you need to apply a patch other than driver name and etc?
19. What are the table u r adpatch will create and when?
Ans : Adpatch will create FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS table when it will apply d,g
and u drivers
Ans: c,d,g on concurrent node and c, g on web node. If it is u-driver we need to apply on all nodes.
22.While applying a application patch is that necessary that u r database and listener should be up?
Ans: Yes . why because adpatch will connect to database and update so many tables etc…..
23. While applying a patch if that patch is failing because of a pre-req then how you will apply that pre-
req patch and resume with the current patch?
Ans: We need to take the backup of FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS tables and
restart directory at APPL_TOP/amdin/SID and then use adctrl to quit all the workers. Then apply the pre-
req patch , after that rename u r restart directory to its original name and create
FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS tables from the bcakup tables. Start adpatch session
and take the options want to continue previous session.
Ans: Adctrl is one of the adutilities, which is used to check the status of workers and to manage the
workers.
Ans: Check the status of workers, tell manager that worker has quited, restart a failed worker etc….
27. How adpatch knows what are the pre-req’s for the patch which it is applying?
Ans: With every patch a file called b.ldt file will be delivered which contain the pre-req information.
adpatch load this into databse using FNDLOAD and check , whether those pre-req patches were applied
or not.
Ans: FNDLOAD is a utility which is similar to sqlloder but loads code objects into database, where as
SQLLOADER loads data objects into database.
Ans:
C-drive copies the files from patch unzipped directory to required location in u r application file system.
Before copying it will check the file version of the existing file at the file system with the file version of
the file in the patch. If the patch file version is higher than what it is at file system level then only c-
driver will copy that files.
30. How adpatch will know the file versions of the patch delivered files?
Ans:
With each patch a file with name f.ldt is delivered , which contain the file versions of the files dilivered
with the patch. Adpatch will use this file to compare the file versions of files its delivering with the file on
file system.
Ans : APPL_TOP/admin/SID/log
32. What is the worker log file name and its location?
33. How u will know what are the files the patch is going to change just my unzipping the patch?
Ans:
When u unzip a patch it will keep all the files related to a particular product under that directory inside u
r patch directory for example if the patch delivering files related to FND product then it will create a sub
directory under the patch directory with the name FND in which it will put all related files to that
product
34. What is the significance of backup directory under u r patch directory?
Ans:
When we apply a patch it will keep the copy of the files which its going to change in file system.
35. What are the different modes you can run your adpatch?
Ans :
3. Test – Without actually applying a patch just to check what doing.(adpatch apply=no)
This mode will be usefull to discrease upgrade downtime as its applies bus fixes without running
SQL,EXEC and generate portion of patch.
Ans:
We have our custom scripts which is sheduled to run at a specific time which will monitor whether
applications and databases are up/not. And it will mail us if some processes is not running. And we have
one script which will check database alert log for ORA errors and mails it to us . Based on this we will
react.
Ans:
Useually we will get the ORA errors like unable to extend the tablespace by so and so size. And we will
check those tablespaces for space, if space is not there we will resize the datafile and add one more
datafile.
38. Which table u will query to check the tablespace space issues?
39. Which table u will query to check the temp tablespace space issues?
Ans : dba_temp_files
40. What is temp tablespace? And what is the size of temp tablespace in u r instances?
Ans : Temp tablespace is used by so many application programs for sorting and other stuff. Its size is
between 3 to 10 GB.
Ans : Autoconfig is an adutility which is used to main application environment and configuration files.
Ans : Context file is a central repositary, which stores all application configuration information. The
name is like _ .xml
Ans: 1. Open any env / configuration files, the first few lines will tell u that this files are maintained by
autoconfig.2. If contextname.xml file is there in APPL_TOP/admin
Ans: Autoconfig will go to each and every top template directory take the templates from there and fill
the values from xml file and create the required files.
2.SETUP – Fill the templated with values from xml and create files
Ans : APPL_TOP/admin//log/
Ans :
Partially. Adconfig will create a restore.sh script at $APPL_TOP/admin//out/. This restore.sh will copy
the backed up files before autoconfig run to its original locations. But the profile values updated in the
database can’t be restored back.
Ans :
adchkcfg.sh script at AD_TOP/bin. This script will run autoconfig in test mode and create the difference
file which tells us what is going to change , when u actually run autoconfig.
Ans:
51. When a patch delivers java files what extra file u will get when u unzip the patch, other then u r
dirver and readme files?
Ans : j.zip52.
Ans : apps.zip/appsbrog2.zip is the patchable archive of all java class files required for oracle
application.Apps.zip was used to old application version, but from 11.5.8 onwards its appsbrog2.zip
Ans: In adadmin if covert to MRC options is there , then MRC is not enabled,If maintain MRC options is
there , then MRC is enabled.
58. How to find Multi-Org is enabled or not?
Ans : In adadmin if covert to Multi org option is there, then Multi-org is not enabled. If maintain multi-
org options is there, then Multi-org is enabled.
Ans: MRC stands for Multiple reporting Currency, this should be enabled to see the reports in different
currencies like (rupees,yaans etc).
Ans: If this is enabled we can store multiple organization information in a single oracle application
instance.
61. What is the configuration file for adutilities (like adadmin,adconfig etc)?
Ans : adrelink will relink the executables with the libraries. Generally we will go for adrelink when some
patch delivers some library files, or when executables were corrupted.
Ans : This utility is used to recreate/repair corrupted database objects from odf(object defination files)
files.
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
70. What is the configuration file for httpd and what is the location of it ?
71. Where you will see when you have some problem with u r webserver(httpd/Apache)?
Ans : jserv is nothing but servlet engine which will run u r servlets. It’s a module of apache which
supports servlets.
Ans : Whatever part of u r oracle application u r able to see through web browser is self service.
75. Where u will see when u r not able to get self service applications?
Ans : IAS_ORACLE_HOME/Apache/Jserv/log
Ans : IAS_ORACLE_HOME/Apache/modplsql/cfg
Ans : These are the configuration files which were used to start jvm’s(servlet engine) by apache.
(rm –r _oa__html)
81. What are the different modes u can start u r form server?
Ans :
Ans : When there are more than one form sever instances then forms metric server and clinet will be
used to load balance.
85. What is report server configuration and log file name and its location?
Ans : CGIcmd.dat file is the run time parameter file the report server located @
806_ORACLE_HOME/reports60/server
89. Is apps password necessary to start all the components of oracle application?
Ans :
1. Internal concurrent manager – Will start all other managers and monitor
3. Conflict resolution manager – Concurrent programs with incompatabilites will be handled by this
92. What are actual and target count in ‘Adminster Concurrent Managers form’?
Ans : Target is the no. of concurrent processes a manager is supposed to start(specified in the defination
of concurrent manager).Actual is the no. of processes a manager started actually.
Ans : It means at operating system level resources are low to accomidate the required processes for
concurrent managers.
Ans : Work shifts are nothing but timings at which the concurrent manager is supposed to run.
95. What if internal concurrent manager target and actual are not same?
Ans : dbc file contain database connection information. DBC file is used by oracle applications to connect
to database. Its location is $FND_TOP/secure
99. What is the other script by which u can start apache other than adapcctl.sh?
102. How to merge patches and what type of patches can be merged?
Ans : admrgpch. We can merge any kind of application patches, if any of the patch contain a u-driver
then merged patch will contain u_merged.drv otherwise c_merged.drv, d_merged.drv and
g_merged.drv
Ans : Two Tier: Web and Forms on one node and Conc, admin and report on other node.
Ans: f60gen and press enter, it will tell u the formserver version or we can find out from the frondend
using help menu.
Ans : RRA stands for Report Review Agent. RRA is nothing but FNDFS which is part of apps listener. RRA
job is to pick the log/out file from the file system and show on the editor when u press view log/out
button in ‘View concurrent request form’.
Ans : GSM stands for Generic service Manager, which will monitor application processes like web, forms
etc and restarts any of this processes if goes down.
110. How to find out what are the languages enabled in u r applications?
Ans : uname –a
113. What are the problems u have faced while shutting down applications?
Ans : While shutting down application generally concurrent manager won’t go down because some or
the other request may be running. We will see what are the concurrent requests running by querying
fnd_concurrent_requests, fnd_concurrent_program_vl, v$session,v$process and v$sqltext. If that
request is only doing some select statement then we will kill those requests, otherwise we will check
what time it will take to complete by querying the previous runs of that request and then we will decide
what to do.
114. What are the problems u have faced while starting up applications?
Ans : Most of the time we will encounter problem with starting up concurrent managers. Reasons ,
database listener may be down or FNDSM entries are wrong in tnsnames.ora of 806_ORACLE_HOME.
select * from v$lock where lmode > 0 and id1 in (select distinct id1 from v$lock where request > 0)
117. How to find adconfig is enabled for oracle operating system user/database?
Ans: The oraInventory is the location for the OUI (Oracle Universal Installer)'s bookkeeping. The
inventory stores information about: All Oracle software products installed in all ORACLE_HOMES on a
machine Other non-Oracle products, such as the Java Runtime Environment (JRE)
In a 11i Application system the RDBMS and iAS ORACLE_HOMEs are registered in the oraInventory. The
806 ORACLE_HOME, which is not managed through OUI, is not.
Ans:
The Global inventory (or Central inventory) The Local inventory (or Home inventory)
Note: If you need to delete an ORACLE_HOME, you should always do it through the OUI de-installer in
order to keep the Global Inventory synchronized.
Ans : There is one Local Inventory per ORACLE_HOME. It is physically located inside the ORACLE_HOME
at $ORACLE_HOME/inventory and contains the detail of the patch level for that ORACLE_HOME.The
Local Inventory gets updated whenever a patch is applied to the ORACLE_HOME, using OUI.
Ans : Rapid Clone is the new cloning utility introduced in Release 11.5.8. Rapid Clone leverages the new
installation and configuration technology utilized by Rapid Install
Ans : First, verify that your system is AutoConfig enabled. Then, verify that you have applied the latest
Rapid Clone patch.
Ans :
1. Run adpreclone as applmgr and oracle user on source Perl adpreclone.pl dbTier as oracle user Perl
adpreclone.pl appsTier as applmgr user
6. Run perl adcfgclone.pl dbTier as oracle user,if the backup type is cold
7. If the backup type is hotbackup then Perl adcfgclone.pl dbTechStack. Create the control file on target
from the control script trace file from source Recover the database Alter database open resetlogs
10. Run autoconfig with the ports changed as per requirement in xml.
Ans : RDBMS_ORACLE_HOME/appsutil/scripts/
Ans : $COMMON_TOP/admin/scripts/
Ans : $RDBMS_ORACLE_HOME/appsutil/clone/bin
Ans : $COMMON_TOP/clone/bin
Ans : Statspack is a database utility to gather database and session level performance information.
Eg: To enable trace for sql session with sid 8SQL> exec
sys.dbms_system.set_sql_trace_in_session(8,121,true);
To disable trace
Ans : $RDBMS_ORACLE_HOME/dbs
139. What is that trace files contains and the utiliy used to read them?
Ans : Trace file contains the detail diagnostics of a sql statement like explain plan, physical reads, logical
reads, buffer gets etc. Tkprof utility is used to convert trace file into readable format.
Ans : If clone directory exists under RDBMS_ORACLE_HOME/appsutil for oracle user and
$COMMON_TOP for applmgr user.
143. How to find trace file for a given concurrent request id?
Ans : Go to $RDBMS_ORACLE_HOME/admin//udump
grep “ “ *
Ans : If we want to access objects of another database from this database then we need a database link
from this database to the other.
Ex
SQL> create database link TEST1_TO_TEST2 connect to apps identified by apps using 'TEST2';
NAME
---------
TEST2
Ans : If u r very much confident on cloning processes then say 5 to 8 otherwise just 2 or 3.
Ans : If u r good at RMAN then say yes, otherwise say we are not using RMAN for backup/recovery , why
because we are using netapp snap technology for backups.
Ans :http://hostname.domain:/dev60cgi/f60cgi
Ans : Oracle jinitiator is the one which provide the required jvm to run forms interface/applet. When we
access forms applet first time , oracle jinitiator will be installed automatically.
Ans : Discoverer server is reporting tools which allows novoice user to use oracle application reports.
Discoverer will come along with oracle applications when installed.
URL: /OA_HTML/jsp/fnd/aoljtest.jsp
Ans : tnsping is command used to check the connectivity to the database server node from other nodes.
Ex: tnsping
Note: Tns entry should be there in tnsnames.ora for the database we are trying to work this command.
Ans : This is the temporary file location for the pl/sql temp files. If this variable was not set then the
concurrent programs may errored out. 161. What is mean by enabling maintanance mode?
Ans : Maintanance mode is the adadmin option introduced from AD.I. When maintanance mode is
enabled user may able to login to application but they only get profile option in the frontend navigation
menu.
Ans : We can even apply a patch without enabling maintanance mode with the following option
Adpatch options=hotpatch
164. How to find out what are the rdbms patches applied to an oracle home?
Ans :
1. opatch lsinventory
Ans : Yes.
Ans : CONSUB
Ans : The value of this parameter is the group of directories to which u r database can write, means u r
database packages have permission to write to flat files in these directories.
169. While applying a rdbms patch using opatch you are getting the error, unable to read
inventory/inventory is corrupted/ORACLE_HOME is not not registered, what you will do, and how you
will apply the patch?
Ans: We will check the inventory directory permission, try to apply the patch after giving 777
permissions to that inventory directory. If still it won’t work we will apply patch with the following
command:
Ans : We got ORA-7445 error in alert log, for which oracle recommended to apply a rdbms patch.
1)Patch fails with the error, unable to generate perticular form, do u want to continue. We continue
patching by saying “yes”, then we manually regenarate the form using f60gen utility.
2) Unable to generate jar files under JAVA_TOP AutoPatch error: Failed to generate the product JAR files
Solution:Run adjkey -initialize -----------to creat identitydb.obj file which will beused by adjava to sign jar
files.
Ans : adjkey is an adutility which will create digital signature, which will be used to sign all t" admin?
mailto:adsign.txt@APPL_TOP>adsign.txt@APPL_TOP/adminappltop.cer@APPL_TOP/adminidentitydb.o
bj@applmgr home
Ans : Running adjkey –initialize and then runnning adadmin to regerate jar files.
Ans : Error:
178. What are the real time problems you have encountered and how you trouble shooted that?
Ans:1. Concurrent Program is erroing out with snapshot too old error. To resolve this we have added
space to temp tablespace.2. Concurrent Program is erroing out with unable to extent a perticular
tablespace by so and so extents. To resolve this we have added on more data file to that tablespace.3.
When we are trying to start apache with adapcctl.sh script after a autoconfig run, its saying that “node
id is not matching with the application server id”. To resolve this we have updated the server id column
in fnd_nodes table with the server id value in dbc file.
180 . When forms are running in servlet mode then the environment variables required for forms must
be defined in what file and its location?
Ans : formsservlet.ini@$APACHE_TOP/Jserv/etc.
181. How to find out which patch driver is applied(like c,d,g or u)?
182. How to find out whether a language patch is applied for a perticular patch?
183. How to validate that sysadmin password is correct or not from backend?
Ans: Force compilation of all jsps using the following command ojspCompile.pl --compile --flush
Ans: Using rotatelogs executable in httpd.conf file. Use Errorlog for error_log file rotation. Transferlog
for other log files.
186. Other way of checking whether MRC is enabled or not besides using adadmin?
Ans : chown - R :
Ans : chmod –R
Ans :
1. wdbsrv.app@IAS_ORACLE_HOME/Apache/modplsql/cfg
2. CGIcmd.dat@806_ORACLE_HOME/reports60/server
3. wfmail.cfg@FND_TOP/resource - optional
4. CatalogLoader.conf@OA_JAVA - optional
5. CatalogLoader.xml@OA_HTML - optional
Ans : afimchk.sql@FND_TOP/sql
Ans: afrqrun.sql@FND_TOP/sql
194. What is the script that Lists managers that currently are running a request?
Ans : afcmrrq.sql@FND_TOP/sql
Ans : If a keyword "LOCK" is present at the end of the file entry in the respective driver, then it is a non-
customizable template. If the "LOCK" keyword is not seen, then that template can be customized.
Ans : In the middle tier, edit the jserv.properties file located in the
IAS_ORACLE_HOME/Apache/Jserv/etc directory- Locate the wrapper.classpath that is pointing to the
jdbc zip file/opt/oracle/apps/$TWO_TASK/comn/java/jdbc14.zip
Ans :
SQL> select TEXT Version from WF_RESOURCES where TYPE = 'WFTKN' and NAME = 'WF_VERSION';
When a copy driver (C) or the copy portion of a unified driver (U) are aborted for any reason, upon
reapplying, the CREATION_DATE and/or LAST_UPDATE_DATE columns in the patching history tables (Ex:
AD_FILE_VERSIONS)are not updated to show the proper installation date but are left with the 01-01-
1950 date. you can resolve the issuse by applying the latest ad.I patch.
200) How to check whether the product is install,shared and Not installed in Apps.?
Ans :
=====================================================================================
=============================
--------------------------------------
Q1. What is wdbsvr.app file used for? What’s full path of this file? What’s significance of this file ?
ANS : Its where the file the password is hard coded and its location is
/oracle/app/apps/testora/iAS/Apache/modplsql/cfg.
Q2. Where would i find .rf9 file, and what execatly it does ?
This file is used when the patch is restarted.The old thig is stored in thios file. So it will take from this file
only.
Q4. Can you clone from multi node system to single node system & vice
versa ?
Ans. Yes
Q5. What is .dbc file , there are lot of dbc file under $FND_SECURE,
How its determined that which dbc file to use from $FND_SECURE ?
Ans : /oracle/app/apps/testappl/fnd/11.5.0/secure/sys43_test.dbc
Q7. Can you apply patch without putting Applications 11i in Maintenance
mode ?
Ans : Multiple Reporting Currency .Default you have currency in US Dollars but if your organization
operating books are in other currency then you as apps dba need to enable MRC in Apps. How to enable
MRC coming soon…
To enable MRC using adadmin follow this. adadmin –>4.Maintain Applications Database Entities menu –
> 5.Maintain Multiple Reporting Currencies schema.
Q11. What is access_log in apache , what entries are recored in access_log ? Where is default location of
this file ?
Ans : Access_log file keeps record of users accessing Oracle Apps 11i Webserver. The location of the
access_log file is $IAS_ORACLE_HOME/ Apache/Apache/logs
Q12. What is session time out parameter & where all you define these values ?
Ans : Ans: In order to answer first you have to understand what kind of seesions are in Apps 11i and
what is Idle timeout ?
- Self Service Application Session ( Server by Web Server iAS Apache & Jserv, like iRecruitment,
iProcurement)
From FND.G or 11.5.9 or with introduction of AppsLocalLogin.jsp to enter into application, profile option
“ICX Session Timeout” is used only to determine Forms Session Idle timeout value . This might be
confusing as earlier this profile option used to control forms as well as self service application(with
session.timeout) session.timeout is used to control Idle session timeout for Self Service Applications
( Served by Jserv via JVM )
Autoconfig determines value for profile option “ICX: Session Timeout” and “session.timeout” from entry
in context file ( $APPL_TOP/admin/SID_hostname.xml ) with parameter s_sesstimeout where value
mentioned is in milliseconds so profile option ICX: Session Timeout value should be s_sesstimeout/
(1000 * 60) which means here its 10 Minutes. This value is also set in zone.properties in
$IAS_ORACLE_HOME/Apache/Jserv where number mentioned is in milli second i.e. 600000 ( equal to 10
Minutes)session.timeout = 600000
session.timeout mentioned in zone.properties is in milli seconds ICX Session Time out mentioned in
profile option ICX: Session Timeout is in minutes so ICX session timeout=30 & session.timeout= 1800,000
are same 30 minutes
P.S. ICX Session time out was introduced in FND.D so if your FND version is below D you might not see
this variable.
Important Things Apps DBA should consider while setting session timeout value :
1. If you keep session.timeout value too high , when some oracle application user accessing Self service
application terminates his session, so longer idle session will drain JVM resource & can result in
Java.Lang No Memory available issues .
2. If you keep it too low, users going out for tea or sitting idle for some time have to login again into
application & can be annoying .
Ans : /oracle/app/apps/testcomn/admin/scripts/TEST_sys43/
Ans : /oracle/app/apps/testora/iAS/Apache/Apache/conf/
1.httpd.conf
2.httpd_pls.conf
3.oprocmgr.conf
Q16. How to check if Oracle Apps 11i System is Rapid Clone enabled ?
Ans:This cache is used to stored the pl/sql and stored procedures.It is stored in $IAS_ORACLE_HOME/
Apache/modplsql/cache directory.
Ans : conn as a apps user and query the table fnd_product_groups and see the RELEASE_NAME column.
Ans : RRA – Report Review Agent. Report Review Agent(RRA) also referred by executable FNDFS is
default text viewer in Oracle Applications 11i for viewing output files and log files.
Used ?
Ans : PCP – It means a Parallel Concurrent Processing. Usually you have one Concurrent Manager
executing your requests but if you can configure Concurrent Manager running on two machines (Yes you
need to do some additional steps in order to configure Parallel Concurrent Processing) . So for some of
your requests primary CM Node is on machine1 and secondary CM node on machine2 and for some
requests primary CM is on machine2 and secondary CM on machine1.
Q21. Output & Logfiles for requests executed on source Instance not
Ans : Report Server is started by executable rwmts60 on concurrent manager Node and this file is under
$ORACLE_HOME/bin. execute command on your server like
Q23. What is difference between ICM, Std Managers & CRM in Concurrent
Manager ?
Ans : ICM is a Internal Concurrent Manager which starts and manages all other Managers. STANDARD
Manager is one which runs as how the ICM tells. CRM is a Conflict Resolution Manager which runs if
there is an error or conflicts.
Q24. What is use of Apps listener ? How to start Apps listener ? How to confirm if Apps Listener is Up &
Running ?
Ans: Apps Listener is used to connect the apps with the database. check by grep FNDSM or lsnrctl status
VIS
Ans : Web listner is one which gets the requests from client. It contacts via URL. Some times the HTTP
listner itself serve the page needed by returning a simple HTML page. If the page referenced by the URL
needs advanced processing,the listner passes the request to servlet engine which contacts database
server if necessary.
Q26. How will you find Invalid Objects in database ? How to compile
Ans: There is a script called utlrp.sql in RDBMS/admin. This is used to compile the Invalid Objects in
database. To find the Invalid Objects query the table dba_objects and see the colum called status. In
Apps we can use adadmin utility.
Ans : using the tool adadmin or manually perl ojspCompile.pl –compile –quiet from the location
$JTF_TOP/admin/scripts
Q28. What is difference between adpatch & opatch ? Can you use both
Ans : adpatch is used for applying patch in application side and Opatch is for oracle Database side patch.
Q29. Where will you find forms configuration details apart from xml file ? What is forms server
executable Name ?
Q30. What are different modes of forms in which you can start Forms Server and which one is default ?
Ans : /oracle/app/apps/testcomn/admin/scripts/TEST_sys43/addisctl.sh
Q32. How many ORACLE HOME are in Oracle Apps and whats significance of
each ?
Ans : There are 3 Oracle Homes. 1) Database Oracle Home 2) 8.0.6 for application and backward
compatability. iAS Oracle Home for oracle apps.
Ans : $OA_HTML/_pages
Ans : $IAS_ORACLE_HOME/Apache/modplsql/cache
Q35. What happens if you don’t give cache size while defining Concurrent Manager ?
Q36. What are few profile options which you update after cloning ?
Ans : Rapid clone updates profile options specific to site level . If you have any profile option set at other
levels like server, responsibility, user….level then reset them.
Q38. If you have done two node Installation, First machine : Database
Q39. What is GWYUID, Where GWYUID defined & what is its used in Oracle
Applications ?
Ans : GWYUID stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB and it is defined
in dbc, It is used to connect to database by think clients.
Ans : TWO_TASK mocks your tns alias which you are going to use to connect to database. Lets assume
you have database client with tns alias defined as PROD to connect to Database PROD on machine
teachmeoracle.com listening on port 1521. Then usual way to connect is sqlplus
username/passwd@PROD ; now if you don’t want to use @PROD then you set TWO_TASK=PROD and
then can simply use sqlplus username/passwd then sql will check that it has to connect to tnsalias define
by value PROD i.e. TWO_TASK
Ans : GUEST_USER_PWD(Guest/Oracle) is used by JDBC Thin Client where as GWYUID is used by Thick
Clients like via Forms Connections.
Ans : 0 is request id (request ID 0 is assigned to request ID’s which are not submitted via Submit
Concurrent Request Form.
‘Y’ indicates the method of invocation. i.e. it is directly invoked from the command-line not from the
Submit Request Form.
Q44. In a Multi Node Installation, How will you find which node is
Ans : we can query the table called FND_NODES and the column name called SUPPORT_CP fro conn
node,SUPPORT_forms for form node etc..
Q45. If your system has more than one Jinitiator, how will the system know, which one to pick. ?
Ans : Using the file /oracle/app/apps/testcomn/html/appsweb.cfg . The initiator version number defined
by parameter jinit_ver_name in this file will be used
Q46. While applying Apps patch using adpatch, if you want to hide the apps password, how will that be
possible ?
Ans : IMAP stands for Internet Message Access Protocol and Java Notification mailer require IMAP server
for Inbound Processing of Notification Mails.
Q48. What is difference between Socket & Servlet Mode in Apps Forms ?
Ans : When forms run SOCKET Mode these are dedicated connection between Client Machine & Form
Server (Started by adfrmctl.sh). When Forms run in servlet mode the forms requests are fulfilled by Jserv
in Apache . There will be additional JVM for Forms Request in that case and you won’t start form via
adfrmctl.sh.
Ans : http://hostname.domain:port/discwb4/html/english/welcome.htm
Viewer
http://hostname.domain/discoverer4i/viewer
Version
$ORACLE_HOME/Discwb4
You can also use script wfver.sql in FND_TOP/sql to find version of workflow in Apps.
Ans :JDK_TOP oa_var=”s_jdktop” what so ever value assigned against that parameter go to that
directory & cd bin & execute command ./java -version so lets assume entry above is /usr/jdk then cd
/usr/jdk/bin and run the following
./java -version
Ans : yes, In the adadmin go for maintain applications and then compile FNDLIBR alone. this will create ,
Now see in fnd_top/bin/FNDLIBR file exists. or we can relink the executables manually.
Q54. What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
Ans : .ldt stands for Loader datafile & .lct means Loader configuration files these two are used frequently
in migrating
Ans : odf stands for Object Description Files used to create tables & other database objects.
Ans : No , apps_mrc schema is dropped with 11.5.10 Upgrade & 11.5.10 new Install. This is replaced by
more Integrated Architecture.
Q59.If APPS_MRC schema is not used in 11.5.10 and higher then How MRC
is working ?
Ans : For products like Payable, Recievables which uses MRC and if MRC is enabled then each
transaction table in base schema related to currency now has an assoicated MRC Subtables
Q60. When you apply C driver patch does it require database to be Up & Why ?
Ans :Yes , database & db listener should be Up when you apply any driver patch in apps. even if driver is
not updating any database object connection is required to validate apps & other schema and to upload
patch history information in database tables.
Ans : No , C driver only copies files in File System. Database Object might be invalidated during D driver
when these objects are created/dropped/modified.
Q.62 Why does a worker fails in Oracle Apps Patch and few scenarios in
If it doesn’t find expected data, object, files or any thing which driver is trying to update/edit/modify.
Possible symptoms may be underlying tables/objects are invalid, a prereq patch is missing , login
information is incorrect, inconsistency in seeded data…
Ans : cgi stands for Common Gateway Interface and these are Script Alias in Oracle Apps used to access
forms server . Usually Form Server access directly via http://hostname:port/dev60cgi/f60cgi
Q64. What is difference between mod_osso & mod_ose in Oracle HTTP Server ?
Ans : mod_osso is Oracle Single Sign-On Module where as mod_ose is module for Oracle Servlet Engine.
mod_osso is module in Oracle’s HTTP Server serves as Conduit between Oracle Apache Server & Singl
Sign-On Server where as mod_ose is also another module in Oracle’s HTTP Server serves as conduit
between Oracle Apache & Oracle Servlet Engine.
Ans : GSM stands for Generic Service Management Framework. Oracle E-Business Suite consist of
various compoennts like Forms, Reports, Web Server, Workflow, Concurrent Manager ..
Earlier each service used to start at their own but managing these services (given that) they can be on
various machines distributed across network. So Generic Service Management is extension of
Concurrent Processing which manages all your services , provide fault tolerance (If some service is down
ICM through FNDSM & other processes will try to start it even on remote server) With GSM all services
are centrally managed via this Framework.
Ans : FNDSM is executable & core component in GSM ( Generic Service Management Framework
discussed above). You start FNDSM services via APPS listener on all Nodes in Application Tier in E-
Business Suite.
Ans : In order to check list of files changes during Autoconfig , you can run adchkcfg utility which will
generate HTML report. This report will list all files & profile options going to change when you run
AutoConfig.
Ans : Autoconfig is Utility to configure your Oracle Application environment. .xml file is repository of all
configuration from which AutoConfig picks configuration and polulates related files.
Ans : lgi files are created with patching along with .log files . .lgi files are informative log files containing
information related to patch. You can check .lgi files to see what activities patch has done. Usually
informative logs.
Ans: If in your adctrl there are six option shown then seventh is hidden option.(If there are seven
options visible then 8th option is to Skip worker depending on ad version).
Q72. Which two tables created at start of Apps Patch & drops at end of
Patch ?
Ans : AD_BUGS holds information about the various Oracle Applications bugs whose fixes have been
applied (ie. patched) in the Oracle Applications installation.
AD_APPLIED_PATCHES holds information about the “distinct” Oracle Applications patches that have
been applied. If 2 patches happen to have the same name but are different in content (eg. “merged”
patches), then they are considered distinct and this table will therefore hold 2 records.
Q75. What exactly happens when you put an Oracle Apps instance in
maintenance mode ?
b) sets up function security so that no Oracle Applications functions are available to users.
Used only during AutoPatch sessions, maintenance mode ensures optimal performance and reduces
downtime when applying a patch. (Source Metalink Note: 233044.1)
Q76. What is profile options, What are various type of profile options ?
2. user level.
Q77. If users complaining Oracle Applications 11i system is running slow , what all things you will check
at broad level ?
Ans : First as an Over view of Oracle Applications 11i check following things
4. Any Discoverer process taking long time or High CPU ? ( Usually on Middle tier like dis4ws..) 5. Any
Custom report taking long time ?
As Next level you should ask questions to yourself or person encountering performance issues like
1. Is whole application is slow or only component of application is slow (like only Concurrent manager
running slow)
2. If this is paritular component like reports server slow then is a particular report or all reports are
slow ?
3. Is performance issue during all time or at specific time lets say from 11AM to 4PM ?
Depending on answers you can start looking into application like if issue is specific to whole applications
then check :
Ans : It is where all the apps related scripts and log files stored in the database side.
Q79. How to create User in Oracle Applications 11i ? Can you delete a
Oracle suggest not to delete user from backened tables. we can give end date to the user in user
definition screen
Ans : we can create user in front end and then we can put end date for that.
Ans : DBC file is quite important as whenever Java or any other program like forms want to connect to
database it uses DBC file. Typical entry in DBC file is
GUEST_USER_PWD
APPS_JDBC_URL
DB_HOST
Here the folder which has the name of dates is when we ran the autoconfig. So In which date we want
to roll back the autoconfig, we want to go inside that date and inside that there is a script called
restore.sh . Now run the script to roll back to that date.
There is a script called adbldxml.pl Using this perl script we can build the XML file.
For each of the configuration file that gets generated as a result of running AutoConfig, Oracle uses a
template file that come with the initial install process.Location is
$AD_TOP/admin/template
Q.84. If the patch is need to be restarted because of some reason and while restarting patch, where is
that information is stored?
--------------------------------------------------
18.wat is autoconfig
22.adpatch options
23.purpose of adsplice
24.adpatch,adadmin,adlicmgr,admrgpch,adsplice
33.diff b/w oneoff patch n mini pack patch n rollup patch,cpu patch
40.rman cloning
41.rman he cn configre
42.hot bkp
44.adv of r12
45.wat is ur teamsize
46.db size
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 wi...ll 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 )
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 )
Special Patches
———————–
Consolidated patch:
This is a collection of one-off fixes for a Family Pack or Maintenance Pack; Oracle Applications 11.5.10
Consolidated Update 2 (CU2) is an example of a consolidated patch.
Interoperability patch:
This is a patch that is required for Oracle Applications to function with a newer version of a technology
stack component; for example, you would apply an interoperability patch when upgrading the database
to version 10g.
NLS patch:
Rollup patch:
This is a collection of one-off patches that update code levels for particular products.
Legislative patch:
This is a special patch for HR Payroll customers; it contains legislative data for multiple countries.
—————————-
1. cXXXXXXX.drv – c stands for copy driver file , used to update the file system with new file versions
2. dXXXXXXX.drv – d stand for Database driver & used to update database level code and objects
3. gXXXXXXX.drv – g stands for generate driver and is used to generate forms, PL/SQL libraries, reports,
and menus
4. uXXXXXXX.drv – merged or unified driver which combines the c,d and/or g drivers
•Copy: Contains commands to change Oracle Applications files. The commands include directives to
copy and update files, libraries, and/or Java, and commands for generating JAR files and/or C
executables. In a multi-node system, the copy portion runs on all application tier APPL_TOPs.
•Database: Contains commands to change Oracle Applications database objects, such as PL/SQL and
table definitions, or to update or migrate data. In a multi-node system, the database portion runs only
on the application tier APPL_TOP that implements the administration server.
•Generate: Contains commands to generate forms, reports, messages, and/or graphics files. In a multi-
node system, the generate portion runs on all application tier APPL_TOPs, unless the APPL_TOP only
implements the administration server.
—————————–
1. Using adphrept.sql
————————-
Location :
——–
$AD_TOP/patch/115/sql/adphrept.sql
Execute as
$sqlplus apps/apps_password 1 ALL ALL ALL ALL ALL ALL ALL ALL ALL N N N N N
—————————-
Query_depth 1—Lists details of patches only
2. Using patchsets.sh
————————–
Note:139684.1
ftp://ftp.oracle.com/support/outgoing/PATCHSET_COMPARE_TOOL/patchsets.sh
$patchsets.sh connect-apps/apps_password
Sample Output :
3.Querying the Database for Patches
——————————————
SELECT bug_number
FROM ad_bugs
Adpatch – option:
————————–
options-noautoconfig
If you are applying number of patches out of which 4-5 patches run autoconfig then use this option &
run autoconfig in last patch or manually (This will save your patching timing , first patch performance
tip )
compiledb(def) or nocompiledb
Use no compiledb if you have multiple patch then compile database objects in last patch
compilejsp(def) or nocompilejsp
Use no compilejsp if you have multiple patch then compile jsp in last patch
copyportion
databaseporion
generateportion
hotpatch
Tells AutoPatch to apply a patch regardless of whether the Oracle Applications system is in maintenance
mode.
integrity
Tells adpatch whether to perform patch integrity checking, which verifies that the version of each file
referenced in a copy action matches the version present in the patch (There are overheads with this)
maintainmrc
Tells adpatch whether to automatically maintain the MRC schema after running actions normally found
in the database driver. The MRC schema is only maintained if the MRC feature is enabled
prereq
Tells adpatch whether to perform prerequisite patch checking prior to running patch driver files that
contain actions normally found in the copy driver. (With lateset AD patch , default behaviour is changed
from prereq to noprereq)
forcecopy
The forcecopy command copies the files in a patch to the Applications file system without comparing
the version number of the patch files with existing files
———————–
To Enable :
——–
adadmin
$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
To Disable:
——–
adadmin
$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
Note :
We can also go to adadmin and follow the option to enable and disable Maintanance Mode.
adpatch – options
Option Purpose
noautoconfig Prevents adpatch from running autoconfig after the patch has completed
hotpatch Allows adpatch to be run when the instance is not in maintenance mode
AD Merge :
Generates
u_merged.drv
admrgpch.log
AD Control :
———-
This Utility is used when we are running the patch, we can see all the details about the patch . ie) All
about workers etc.,
AD_DEFFERED_JOBS
These are the two tables created while the patch starts and it will be dropped when the patch is applied
or completed.
Note : Adctrl options about workers will works till the above two tables is in use .
Note : While the patch is running and if it fails in the middle and if we want to ignore it there is also a
8th option but is will not be listed above. The 8th option is
DB Patches:
———-
$export PATH-$PATH:/[path_of_2617419]/Opatch
$export PERL5LIB-[path_of_PERL]/lib
$opatch lsinventory
$opatch apply
Note :
There may be a patch_locked file located under the hidden directory $ORACLE_HOME/.patch_storage.
The opatch utility may not be executed until the patch_locked file is removed.
=====================================================================================
=============================
It was possible to merge several Oracle patch into one, if you have several Oracle applications patch
which was fall under the same unified driver family.
Steps: -
1. Create Source and destination directory
Copying files…
Once the admrgpch completed, you will have the 4 in 1 Oracle patches file which was
merge_patch_output in this case. Applying this Oracle patch (merge_patch_output) will equals to apply
the 4 patch file, which will lead in time saving for Oracle patching process.
=====================================================================================
===================
a. adctrl
a. sqlplus applsys/
a. sqlplus applsys/
At this point, the adpatch session should have ended and the cursor should
a. cd $APPL_TOP/admin/
b. mv restart restart_back
c. mkdir restart
a. sqlplus applsys/
directory.
a. cd $APPL_TOP/admin/
b. mv restart restart_
c. mv restart_back restart
schema.
a. sqlplus applsys/
a. sqlplus applsys/
a. sqlplus apps/apps
====================================================================================
Where can I find a list of AutoPatch features and the AD minipacks that introduced them?
The Oracle Applications DBA 11i+ Features Matrix (OracleMetaLink Note 210326.1) contains a list of
major AD features in Release 11i and identifies which AD minipack introduced each feature.
What is a patch driver file?
AutoPatch uses a driver file to direct the installation of a patch. This unified driver is named
u<patchnumber>.drv. It contains all the driver actions (copy, database, and generate) that the patch
requires, and it performs these actions in the stated order. Typically, you run the driver on all
APPL_TOPs and AutoPatch determines which actions are required for the current APPL_TOP and runs
only those actions.
•Copy: Contains commands to change Oracle Applications files. The commands include directives to
copy and update files, libraries, and/or Java, and commands for generating JAR files and/or C
executables. In a multi-node system, the copy portion runs on all application tier APPL_TOPs.
•Database: Contains commands to change Oracle Applications database objects, such as PL/SQL and
table definitions, or to update or migrate data. In a multi-node system, the database portion runs only
on the application tier APPL_TOP that implements the administration server.
•Generate: Contains commands to generate forms, reports, messages, and/or graphics files. In a multi-
node system, the generate portion runs on all application tier APPL_TOPs, unless the APPL_TOP only
implements the administration server.
See Oracle Applications Concepts for a definition of administration server and other server types.
All 11i versions of AutoPatch support unified drivers. There is no minimum level. In order to make it
easier to turn off entire categories of actions, without having to specify each action type, AD Minipack H
introduced simple methods to disable entire categories of actions, for example, adpatch
options=nodatabaseportion.
See Oracle Applications Maintenance Utilities for a list of available command line options.
The checkfile feature reduces patch application downtime by checking to see if a given database action
has been performed previously for the associated file contained in the patch. If an action has been
performed using the current (or higher) version of a file, AutoPatch omits the action from the current
patch application.
Standalone (one-off) Patch: Addresses a single fix or enhancement. Standalone patches are released
only when there is an immediate need for a fix or enhancement that cannot wait until an aggregate
bundling is available. Although standalone patches are intended to be as small as possible, they usually
include any dependent files that have changed since the base release in order to form a complete patch
that can be applied by any customer. The actual number of files changed will depend on the current
code level on the system to which the patch is being applied.
Rollup Patch (RUP): An aggregation of patches that may be at the functional level, or at a specific
product/family release level. For example, a Flexfields rollup patch contains all the latest patches related
to Flexfields at the time the patch was created. A Marketing Family 11.5.10 rollup patch contains all the
latest Marketing patches released since, and applicable to, 11.5.10.
Minipack: An aggregation of patches at the product level. For example, Inventory Minipack G (11i.INV.G)
contains all the latest patches for the Inventory product at the time the minipack was created.
Minipacks are named in alphabetical sequence such as 11i.INV.E, 11i.INV.F, 11i.INV.G, and so on.
Minipacks are cumulative. In other words, 11i.INV.G contains everything in 11i.INV.F, which contains
everything in 11i.INV.E, and so on. The terms patchset and minipack are often used interchangeably.
Family Pack: An aggregation of patches at the product family level. For example, Financials Family Pack C
(11i.FIN_PF.C) contains all the latest patches for products in the Financials family at the time the family
pack was created. Family product codes always end in "_PF" and family packs are given alphabetical
sequence such as 11i.HR_PF.B, 11i.HR_PF.C, and 11i.HR_PF.D. Family packs are cumulative. In other
words, Discrete Manufacturing Family Pack G (11i.DMF_PF.G) contains everything in 11i.DMF_PF.F,
which contains everything in 11i.DMF_PF.E, and so on.
Maintenance Pack: An aggregation of patches for all products in the E-Business Suite. For example,
Release 11.5.10 Maintenance Pack contains all the latest code level for all products at the time 11.5.10
was created. Maintenance packs are numbered sequentially such as 11.5.8, 11.5.9, 11.5.10, and are
cumulative. In other words, 11.5.10 contains everything in 11.5.9, which contains everything in 11.5.8,
and so on.
In addition to the patches in a maintenance pack, Oracle also packages a new Rapid Install at each
maintenance pack release level. So Applications Release 11.5.10CU2 Rapid Install contains the same
applications code level that a customer would get if they applied the Release 11.5.10CU1 Maintenance
Pack on an earlier 11i release level. Note that the technology stack could still be different because Rapid
Install includes the latest certified technology stack. The maintenance pack includes only Applications
code.
Maintenance packs can be downloaded from OracleMetaLink or ordered as a CD Pack from the Oracle
Store.
Diagnostic Patch: Used to gather additional information when a product failure cannot be reproduced by
Oracle. The additional information assists Oracle Support Services and Oracle Development in resolving
the failure.
Interoperability Patch: Allows Oracle Applications to function properly with a newer version of the
technology stack. Interoperability patches are typically required with new versions of the database or
Applications technology stack.
Translated Patch: A non-English version of a patch. Release 11i supports 30 non-English languages.
Customers who are using languages other than English, need to apply the corresponding translated
patch(es) for the languages they are using in addition to any base US patch(es).
Merged Translation Patch: Provided in real time (without requiring a translator) in the event a translated
patch is not available when a customer needs it. A merged translation patch is applied just like a fully
translated patch. The fully translated patch is escalated and is usually available within 24 hours. It can be
applied safely on top of a merged translation patch.
Translation Fix: Provided in the event a translation word choice is inappropriate. A translation fix is
applied just like a translated patch, except there is no corresponding base US patch.
New Feature Patch: Introduces new functionality and/or products. It is applied using standard patching
utilities.
Consolidated Update (CU): Improves and streamlines the upgrade and maintenance processes by
consolidating certain post-release patches. Most recommended patches and rollups for a particular
maintenance release are consolidated into a single patch that is installed immediately following
application of a maintenance pack or a new installation of Rapid Install. Updates in the CU are
predominantly error corrections.
Family Consolidated Upgrade Patch: Consolidates all upgrade-related patches from all the products
within a product family. Family consolidated upgrade patches are released as needed and are applicable
only if you are upgrading to Release 11i from Release 10.7 or 11.0. The Oracle Applications Release
Notes, Release 11i (11.5.10.2), Note 316803.1 lists the most recent patches.
Restart files store information about completed processing in the event of a patch or system failure.
They allow AutoPatch and AD Administration to continue processing at the point where they stopped.
Do not modify or delete restart files unless specifically told to do so by Oracle Support Services.
What are the implications of patching a multi-node environment? How do I know what type of
server/tier/node I am patching?
In a multi-node environment, you need to apply the patch, in its entirety, first to the node where you
have implemented the administration server node. After that, you can apply the patch in any order on
the remaining nodes.
In many cases, the terms server, tier, and node are used interchangeably and the exact meaning must be
inferred from the context. Officially, the terms are different and have a distinct meaning.
•A tier is a logical grouping of one or more services potentially spread across more than one physical
machine.
In Release 11i there are three tiers: desktop, application, and database.
•The desktop tier (generally an end-user PC) does not consist of any servers. Rather it consists of a Web
browser that makes use of HTML and a Java applet to provide the user interface.
•The application tier (or middle tier) hosts the various servers that process the business logic and
manage communication between the desktop tier and the database tier. Six servers comprise the
application tier: web server, forms server, reports server, Discoverer server (optional), concurrent
processing server and administration server. The nodes on which such servers run are referred to as
application tier server nodes.
•The database tier consists of the database server, which stores all the data in a Release 11i system.
For example, if a node contains only the database server and no other Release 11i software, it is called
the database server node, and is part of the database tier only. However, it is possible for the database
server and any of the application tier servers to run on the same node. In this situation, the node can be
called the database server node, the forms server node, the Web server node, and so on. Because
servers from other tiers are running on one node, the node belongs to more than one tier.
For more information about the Release 11i architecture, see Oracle Applications Concepts.
To determine what application tier servers are on each node, refer to the Applications Dashboard in
Oracle Applications Manager (see Oracle Applications Maintenance Utilities for more details).
What is the AD Features matrix displayed on the AutoPatch screen and in the logfiles?
AD Feature Versions is a framework created to handle mismatches between the AD code on the file
system and the AD objects in the database. Both the version of the feature on the file system and the
version of the feature in the database are tracked separately. When the two versions do not match, the
feature is disabled, and when the two versions match, the feature is (normally) enabled.
The following table is an example of the information displayed by AD Feature Versions in AD utility log
files. The first four columns represent the name of the feature, whether the feature is enabled, the
version of the feature in the APPL_TOP, and the version of the feature in the database.
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
•2nd flag: Does the feature require an enabling file on the file system?
This message is informational in nature only. The AD Feature Versions framework is only used by AD
internally and should not be modified except under explicit instructions from AD Development.
APPLYING PATCHES
How often should I apply minipacks, family packs, and maintenance packs?
•Reduce the possibility of unfulfilled prerequisite patches when applying an emergency fix.
•Make it easier for Oracle Support and Oracle Development to assist you.
•Keep core products such as AD (patches and maintenance fixes), FND (security and technology stack
updates), and HR (legislative updates) up to date.
At a minimum, apply maintenance packs to stay within two maintenance releases. For example, since
11.5.10CU2 is currently available, customers at the 11.5.8 (or earlier) level should be planning their
upgrade to 11.5.10CU2.
Use minipacks and family packs if you have an immediate need for the latest patch level for a product or
product family and cannot wait to apply the corresponding maintenance pack.
How can I find the latest available minipack, family pack, or maintenance pack?
On My Oracle Support (MOS), click the Patches & Updates tab. Choose the Quick Links to the Latest
Patchsets, Mini Packs, and Maintenance Packs link to see a listing of:
A link at the top allows you toggle between the three lists.
Before you run AutoPatch, use AD Merge Patch to merge multiple patches into a single, integrated patch
so that the required patching tasks and processes are performed only once. In general, you can safely
merge any Oracle Applications patch with another Oracle Applications patch. Patches should be merged
with their listed prerequisite patches to make the application of the patch easier. However, patches that
affect the Applications DBA (AD) product may change the AutoPatch utility itself. So, they can be merged
only with other AD patches and must be applied separately, before you apply any non-AD patches.
Note: AD Merge Patch cannot merge patches of different releases, different parallel modes, or different
platforms. However, it can merge patches for a specific platform with a generic patch, or patches with
different source character sets. The utility notifies you if you try to merge incompatible patches.
If an Oracle Applications system contains multiple languages other than American English (US), and you
are applying multiple patches for each language, the recommended method is to merge all US patches
into a single patch and all patches for every non-US language into a single patch. Then, apply the merged
US patch followed by the merged language patch.
You can also merge US patches with the additional language patches or merge each language in
separate language-specific patches. Depending on your downtime window and your system topology, it
may be necessary to keep the US and non-US patches separate.
See Oracle Applications Maintenance Procedures for a more detailed analysis and step-by-step
procedures.
You cannot run multiple sessions simultaneously (concurrently). However, patches can be merged and
applied in a single patching session.
A prerequisite patch fulfills a dependency for another patch. Strictly speaking, they are co-requisites and
can be applied in any order before using the system. We recommend that you merge a patch with its
required prerequisites, with the exception of prerequisite patches for the AD product.
Starting with AD Minipack H, AutoPatch has a Prereq feature that, when run with patches containing
metadata, automatically determines if prerequisites are not fulfilled and informs you. At this point, you
can download the prerequisites, merge them with the patch, restart AutoPatch, and apply the merged
patch.
Older patches, or patches whose metadata is missing the prerequisite information, may list prerequisite
patches in the patch README.
Non-interactive patching allows you to save time by automating the patching process and avoiding some
of the prompts. You can store the responses to the patching prompts in a defaults file. Then, when you
run AutoPatch, you specify the name of the defaults file, the location of the patch top directory, the
name of the driver file and other parameters in the command line.
See Oracle Applications Maintenance Procedures for information on running AutoPatch non-
interactively using a defaults file.
You should apply patches first on a test system. Then, review the changes in the test system and identify
the best way to re-integrate customizations affected by the patch.
If you have registered your customized files in $APPL_TOP/admin/applcust.txt, AutoPatch reviews the
files to determine if any of those files will be replaced during the application of the patch.
Note: Registering customized files does not prevent the object or the patch from being applied. It only
makes them available to AutoPatch for review. See Customization Standards in Oracle Applications
Developer's Guide for more details.
How do I know what patches or files have been applied to a system? What happened to my
applptch.txt file?
Previously, patch history was stored in a text file called applptch.txt in the $APPL_TOP/admin/<SID>
directory. AutoPatch appended information about each applied patch to the applptch.txt file
automatically.
Since AD Minipack E, the Patch History feature stores all patch information in database tables. If the
information cannot be written to the database, it is stored in the file system, and is automatically loaded
to the database each time AutoPatch is run. In this case, the temporary patch history file was named
applptch.txt.
The best way to review patching history is to use the Applied Patches utility provided by Oracle
Applications Manager (OAM). From the Applied Patches interface, you can perform a simple search by
querying on the patch number, the number of days or date range during which patches were applied
and/or the patch language. An advanced search provides additional search criteria. The search results
display useful information including patch name, description, a list of merged patches, location of
applied patch, language, files changed or copied, bug fixes in each driver file, whether patch application
was successful and timing information. See Oracle Applications Maintenance Utilities for more
information.
You can analyze the actions a patch will take by reviewing patch log files without applying a patch to
production or you can access a Patch Impact Analysis report through the Patch Wizard in Oracle
Applications Manager (OAM) to see how a patch will affect the files on your system.
If you want to review log files, you can apply a patch on a test system. Alternatively, you can apply the
patch in production using the AutoPatch test mode. Applying a patch in test mode requires that you use
the AutoPatch option apply=no. The resulting log file shows all the actions that AutoPatch will take.
To determine how a patch will affect the files on your system, you can request a Patch Impact Analysis
report for a specific patch through the Patch Wizard in OAM version 2.2 and later. The Patch Impact
Analysis feature of Patch Wizard provides links to details about a patch including the following
information:
•The files on the target system that will be changed by the patch
See Oracle Applications Maintenance Utilities for additional information.
TROUBLESHOOTING
---------------
If I am applying a patch and it fails, should I simply re-run it from the beginning after fixing the issue?
If a patch driver fails, fix the issue and restart AutoPatch. AutoPatch will allow you to continue where the
patch left off. Re-running the patch from the beginning may result in it being applied incorrectly.
What should I do when the Oracle Applications AutoPatch Prerequisite Checking Feature fails?
There are various issues that could cause a failure in the AutoPatch Prerequisite Checking Feature.
Refer to When Oracle Applications Automatic Patch Prerequisite Checking Feature Fails (OracleMetaLink
Note 233040.1).
When a worker fails its job, the AD utility running the worker takes one of several possible actions:
•Defers the job to the end of the list of jobs to run and assigns the worker another job
•Sets the worker status to Failed and continues to run jobs in other workers
•If all other workers are in failed or waiting state, waits for user input (interactive mode) or exits (non-
interactive mode)
If the worker remains in a failed state, examine the worker log file and determine the cause of the
failure. The worker log files are named adwork<number>.log (for example adwork01.log or
adwork001.log). They are located in the same directory as the main AD utility log file. By default this is
under $APPL_TOP/admin/<SID>/log.
Attempt to correct the problem and restart the failed job. If you cannot determine the cause of the
failure, try restarting the failed job to see if it works the second time (it may have failed due to a
concurrency or resource issue).
To restart a failed job, run AD Controller and choose the option to restart a failed job. Enter the worker
number when prompted. You can use AD Controller to see the status of jobs both before and after
restarting them. The status before restarting should be Failed, and the status after restarting should be
Fixed, Restart. If you are unable to fix the failed job, contact Oracle Support Services for assistance.
If the AD utility exited after the job failed, you must use AD Controller to restart the failed job before
you can restart the AD utility. Otherwise, the AD utility will detect the failed job and shut down again.
=====================================================================================
=======
See More