Академический Документы
Профессиональный Документы
Культура Документы
txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
What is OraInst.loc?
oraInst.loc File
The oraInst.loc file is used by the Oracle Universal Installer to locate the
oraInventory
directory. The format of the file is as follows:
#Oracle Installer Location File Location
#Wed Feb 27 14:43:50 PST 2002
inventory_loc=/oracle/product/9.2.0/oraInventory
inst_group=dba
By default the �oraInventory� directory is placed in the $ORACLE_BASE directory.
oratab File
The oratab file maintains information about the databases currently installed. It
is created
during installation by the root.sh script and updated by the Database Configuration
Assistant
(DBCA) when creating new databases. The format of an entry is:
$ORACLE_SID:$ORACLE_HOME:<N|Y>
where $ORACLE_SID is the database system identifier, $ORACLE_HOME is the Oracle
Server software directory for the database, and the third field is used by the
�dbstart� utility
with a �Y� indicating that the database should be started at system boot and a �N�
indicating
that it shouldn�t. A colon terminates a field and comment lines are ignored by the
Oracle
utilities.
===========================================
How to list oracle inventory?
ANS:opatch lsinventory -details
Note:308916.1-Metalink
Goal
How to use Perl and Opatch to install interim patches?
Solution
The available information can be confusing sometimes because there are
many Perl distributions and more than one Opatch version.
Furthermore, Perl can either be provided with the Oracle database (10g) or the
Oracle HTTP server (OHS). It is also possible to use an independent Perl
distribution like Activestate Perl (www.activestate.com).
Note that most Perl distributions are in fact Open Source software and can be
distributed freely.
Also Opatch can be part of the Oracle software distribution.
Opatch can also be downloaded separately from Metalink and should then be used
from its own directory outside any Oracle Home.
Use the following simple setup which may provide the best chance for success:
=======================================================
How to rollback a failed interim patch installation?
NOte:Note:312767.1
Applies to:
Oracle Server - Enterprise Edition - Version: 9.0.4.1 to 10.1.0.99
This problem can occur on any platform.
All versions of OPatch
Symptoms
During the installation of an Interim patch using OPatch, the follow error is
returned:
OPatch has encountered an error during the application of the patch.
Do you want to Stop:
Beginning with OPatch 1.0.0.0.53, the following will be included:
Replying 'Y' will terminate the patch installation immediately.It WILL NOT restore
any updates that have been performed to this point. It WILL NOT update the
inventory.
Replying 'N' will continue with updating the inventory showing the patch has been
applied.
NOTE: After replying either 'Y' or 'N' it is critical to review:
Metalink Note 312767.1 How to rollback a failed Interim patch installation.
Do you want to STOP?
Please respond Y|N >
Changes
Interim patch was applied.
Cause
During the installation of an Interim patch there were errors copying files,
updating objects or relinking binaries.
Solution
NOTE: OPatch will not automatically rollback the objects that were updated and
rerunning OPatch before rolling back the objects will destroy the rollback.sh
script making it impossible to rollback the updates.
Use one of the following options to successfully apply or rollback the patch. The
steps below will remove patch number 123456 (replace 123456 with the patch correct
patch number).
There are multiple solutions depending on the option taken to end the patch
install:
Scenario 1: Replying Y:
% sh $ORACLE_HOME/.patch_storage/123456/rollback_123456.sh
% sh $ORACLE_HOME/.patch_storage/123456/123456_make.txt
Scenario 2: Replying N:
% cd <patch number>
% opatch rollback -id <patch number>
Rebuild the rollback.sh by reapplying the patch with the no_inventory and no_relink
options
% cd <patch directory>
% opatch apply -no_inventory -no_relink
Oracle 11i uses Jserv as the servlet engine. R12 uses OC4J as the servlet engine.
R12 uses version 10g of the Oracle Application Server, which does not have or use
jserv
Once you click on the Oracle E-Business Home Page link, the reuest is forwarded by
Apache to Jserv. Jserv sends it to Appslogin servlet
Few related useful definitions below :
a) Apache JServ
� the 100% pure Java server application that acts as an independent servlet-reuest
server.
b) mod_jserv
� the Apache module that converts HTTP reuests to servlet reuests, connecting to
the proper servlet engine and sending back the HTTP response to the client.
d )Servlet
� A servlet is a Java server side application that runs inside a network service,
such as a web server.It responds to reuests from clients, accepting client input
and dynamically generating output. For example, a database uerying servlet may
receive a client�s uery, run it against the connected database, process obtained
data, and return formatted output to the client.
For a high user population with fewer reuests, consider increasing the MaxClients
to support KeepAlive connections to avoid starvation. Note that this can impact
overall performance if the user concurrency increases. System performance is
impacted by increased concurrency and can possibly cause the system to fail.To
avoid potential performance issues, values for any parameters should be set only
after considering the nature of the workload and the system capacity.
Applsys
schema contains all the tables reuired for administarative purpose. The default
password is apps. All the technical products� database objects are consolidated
into a single schema called Applsys
It is a schema that stores the data objects for the Applications technology layer
products (FND, AD, and so on).
Applsyspub
The Service Manager (FNDSM) PID can be used to locate all concurrent manager and
service processes on the node, since the Service Manager (FNDSM) is the parent
process
Keep in mind that the ICM really does NOT have any concurrent reuest scheduling
responsibilities. It has NOTHING to do with scheduling reuests, or deciding which
manager will run a particular reuest.
Its function is only to run �ueue control� reuests, which are reuests to startup or
shutdown other managers. It is responsible for startup and shutdown of the whole
concurrent processing facility, and it also monitors the other managers
periodically, and restarts them if they should go down. It can also take over the
Conflict Resolution manager�s job, and resolve incompatibilities.
8 What happen if �alter user apps identified by password� is fired for apps user?
We cannot change apps password through alter user statement because Oracle
Application use APPS PASSWORD to encrypt end user�s password in FND_USER and oracle
user�s password in FND_ORACLE_USERID. So using FNDCPASS to change password of APPS,
changes the column encrypted_oracle_password in these two tables, but alter don�t
do this actions. FNDCPASS update DBA_USERS table as well.
While when you run �alter user apps identified by password� it will update only
DBA_USERS.
If you have mistakenly did used �alter user�, you may see below error:
9 How will you plan to do multi-node to single node cloning in 11i and R12?
In 11i, RapidInstall copies from the Staging Area only reports on CM nodes and
Forms on the Web nodes. To do multi-node to single node clone in 11i, it is called
merging appltops.
$perl adpreclone.pl appsTier merge
and then copy /clone/appl from every source appl server
Depending on which tier you chose as the primary node, certain files may be
missing. Run adadmin to verify files reuired at runtime. If any files are listed as
missing files, you must manually copy them to the merged APPL_TOP from other nodes�
APPL_TOP
11 ADPATCH creates two tables during patch application. What are the contents of
those tables.
1)fnd_install_processes � This table is used to store the information about the job
given to the worker. It will insert a row for each worker when it assigned a job.
This table serves as a staging area for the job information, and as a way for the
manager and the worker to communicate. Once all jobs are complete, the manager
tells the workers to shut down, and then drops the FND_INSTALL_PROCESSES table
2)ad_deferred_jobs � this table is used to store the information about the deferred
jobs (jobs failed to run).
select Site Map -> License Manager -> License Applications Product
or
$AD_TOP/sl/adlicmgr.sl
FNDFS or the Report Review Agent (RRA) is the default text viewer within Oracle
Applications, which allows users to view report output and log files. Report Review
Agent is also referred to by the executable FNDFS.
When the operation of trying to view reports takes place, the Report Review Agent
needs a valid connection string definition to successfully make the network
connection to the application server, and this is done through the FNSFS entries
presented in the tnsnames.ora file.
1) The user selects �Reuest Output�, �Reuest Log�, or �Manager Log�
2) The file name and nodename are selected from the database.
SELECT outfile_name, outfile_node_name FROM fnd_concurrent_reuests
WHERE reuest_id = :id;
3) The client takes the nodename that was returned and adds FNDFS_ to the
beginning of it.
4) a connection is made to the given host. The listener on
this host receives the connection reuest, and resolves the SID using its
listener.ora file. If it finds a PROGRAM parameter listed for this SID, it will
launch this program. (which should be $FND_TOP/bin/FNDFS)
15 What are the basic steps for Printer Installation in EBS 11i/R12?
For most printing needs, the Pasta Utility offers uick setup and easy maintenance.
For additional flexibility, Oracle E-Business Suite allows you to define your own
printer drivers and print styles.
> use Oracle Application Manager (OAM) to configure Workflow Notification Mailer.
> For Outbound Notification, CM (Concurrent Manager) node should be able to connect
to SMTP (Simple Mail Transfer Protocol) server/relay.
> For Inbound Notification (Optional), CM node should be able to connect to IMAP
(Internet Message Access Protocol) Server.
> Log file for Workflow Mailer Notification are at $APPLCSF/$APPLLOG/FNDC*.txt
> Workflow Notification Mailer in background run as Concurrent Manager (Workflow
Mailer Service, Workflow Agent Listener Service)
> If you wish to configure Inbound Notification as well then ensure IMAP Server
should be configured with a valid user (create Inbox, Processed & Discard folder
for this User)
> Schedule �Workflow Background Process� Concurrent Reuest:
Yes
Applications R11.5.6 and below reuires to first upgrade to R11.5.10.2/10gR2
Applications R11.5.7 and up can be directly upgraded to R12
But 11.5.9 can not be upgraded to R12.2 directly.
18 What are the high level steps for upgrading 11i to R12.1.3?
� If you want to use R12 on 64 Bit, 11i Split configuration- Move 11g Database to
Linux 6 64Bit.
* Install 64 Bit Database 11.2.0.4 software on the new 64 Bit Linux machine.
* Move 11i database from old Linux 32-bit to new Linux-64 bit machine and attach
11i application to new 64 Bit database.
Sometimes you need to apply a second patchin the middle of a running patch.
2. Use adctrl (option 5) to tell managers that all workers have UIT. (Adpatch
session ends!)
6. Login as APPLSYS and revert back to the original tables, ad_deferred_jobs and
fnd_install_processes
ALTER �TABLE� applsys.ad_deferred_jobs_old �RENAME� TO ad_deferred_jobs;
ALTER �TABLE� applsys.fnd_install_processes_old �RENAME� TO fnd_install_processes;
ALTER �INDEX� applsys.ad_deferred_jobs_u1_old �RENAME� TO ad_deferred_jobs_u1;
ALTER �INDEX� applsys.fnd_install_processes_u1_old �RENAME� TO
fnd_install_processes_u1;
CREATE SYNONYM FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;
CREATE SYNONYM AD_DEFERRED_JOBS FOR APPLSYS.AD_DEFERRED_JOBS;
7. Replace the original restart directory:
cd $APPL_TOP/admin/SID/ for example $APPL_TOP/admin/TEST/
mv restart restart_new
mv restart.old restart
8. Run adpatch to continue the first patch (with continue session?Yes)
9. Use adctrl (option 2, will change status to �Fixed/Restart�) to restart the
failed workers for first patch
APPLICATION LEVEL
������
� Take advantage of patch merge & hot patching of help/nls portions
� Use Shared APPL_TOP, shared application tier with Distributed AD (use of multiple
application nodes to run ADPATCH in parallel)
� Prepare a complete list of pre and post patches and recommended code levels
including CUP � Critical Upgrade Patches
� Apply latest RUPs for ATG/AD/OAM prior to upgrade
� Purge Data aggressively
� Re-gather Statistics close to start of actual upgrade downtime
� Batch size � 10K is suitable for most installs, you can test other values from 1K
up to 100K
� Number of Workers � Starting rule-of-thumb is between 1 and 1.5 x #CPUs
� Order NLS Sync patchsets in Oracle instead of download and apply it for each
patch.
� use staged application system ( not good for r12.2)
DATABASE LEVEL
�����
� Maximize SGA and PGA sizing � Adjust with help from AWR pool advisories
� Set job_ueue_processes = # of CPUS
� Set parallel_max_servers = 2 X CPUs
� Double java_pool_size
� Shutdown other RAC instances on same server
� Re-create your redo-logs � no mirrors, 2GB+
� Make sure you�ve applied the latest PSU for your DB version (especially if you�re
doing an 11i to R12 upgrade with DB upgrade as well).
� Turn off archive logging � use interim snapshot backups for rollback points
� Gather statistics with higher estimate.
HARDWARE LEVEL
�����
� H/W and OS planned changes � put as much CPU as possible on database node and
RAM.
� CPU Server utilization in testing cycle (scale down if at 100%)
� Implement �huge pages� to offload your CPUs.
� Check Server Memory utilization in testing cycle (no swapping/ excessive paging)
� AD_BUGS: holds information about the various Oracle Applications bugs whose fixes
have been applied (ie. patched) in the Oracle Applications installation.
So this table holds information about all bug fixes that have been applied. Even if
this patch have been included in other patch.
24 What is forms server? Explain briefly, how the connection of the forms server
works?
The forms server is that server which the forms are hosted. It�s a component of
middle tier. The forms server can be hosted from more than one node and the load
balancing can be implemented with the forms. The forms user interface is used in
the desktop clients for working in Oracle Applications.
FND_CONCURRENT_REUESTS,
FND_RUN_REUESTS,
FND_CONC_REUEST_ARGUMENTS,
FND_CONC_STAT_LIST,
FND_CONCURRENT_PROCESSES,
FND_CONC_STAT_SUMMARY,
FND_CONC_PP_ACTIONS,
FND_RUN_RE_PP_ACTIONS
and FND_DUAL tables.
� also deletes the log and output files for those concurrent reuests from your UNIX
file system
� For parameter �Mode], choose Age so it could delete files older than the number
of days specified in Mode Value.
WF_ITEMS,
WF_ITEM_ACTIVITY_STATUSES,
WF_ITEM_ACTIVITY_STATUSES_H,
WF_ACTIVITY_ATTR_VALUES,
WF_NOTIFICATIONS, and
WF_NOTIFICATION_ATTRIBUTES
There are different components with RapidClone that are used when cloning an Oracle
Applications instance. These are:
When you use �dbTier� option, the perl script will configure both the tech stack
and data stack(ORACLE_HOME and Oracle Database) whereas �dbTechStack� option will
only configures ORACLE_HOME and it WILL NOT create database and this is generally
used while doing hot clone where db creation is a manual step.
Please check the read me of the patch you are applying in pre install mode. It
would typically show the files and file versions installed by the patch.
By checking the file versions in the read me is the easy way to verify if the patch
is installed.
adpsv.txt, which contains information about changes to all files except Java files
Both files are located in the /admin/ directory. Each time you run AutoPatch, it
checks this directory for the existence of the patch information files. If it finds
them, it automatically uploads the information they contain to the patch history
database. If the upload is successful, AutoPatch then deletes the files from the
directory. The AutoPatch log file records whether the upload was successful or
unsuccessful.
28 Does Last Update Date Column In The AD_APPLIED_PATCHES Table Get Updated For
Every Patch Run?
Whereas the tables like ad_applied_patches and ad_bugs do not get updated their
rows with various invocations of adpatchand hence last updated date also does not
change.
g:\prints\interview\apps_interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle APPS DBA Interview Questions and Answers - Beginners 11i
6. What is a patch?
Ans : A patch can be a solution for a bug/it can be a new feature.
15. What is the other table where u can query what are the patches applied?
Ans : Ad_applied_patches
18. What inputs you need to apply a patch other than driver name and etc?
Ans : apps and system passwords
19. What are the table u r adpatch will create and when?
Ans : Adpatch will creat FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS table when it
will apply d,g and u drivers
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<patch_number>.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.
30. How adpatch will know the file versions of the patch delivered files?
Ans: With each patch a file with name f<patch_number>.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.
32. What is the worker log file name and its location?
Ans : adwork01,adwork02�� and location is APPL_TOP/admin/SID/log
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 :
1.Interactive � default mode
2.Non interactive � Use defaults files to store prompt values (adpatch
defaultsfile=<filename> interactive=no)
3.Test � Without actually applying a patch just to check what its doing.(adpatch
apply=no)
4.Pre-install � (adpatch preinstall=y) This mode will be usefull to discrease
upgrade downtime as its applies bus fixes without running SQL,EXEC and generate
portion of patch.
38. Which table u will query to check the tablespace space issues?
Ans : bytes column in dba_free_spaces and dba_data_files
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.
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<patch_number>.zip
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
68. How to find out what component of u r oracle applications were installed on
which node?
Ans : Xml file (context file)
70. What is the configuration file for httpd and what is the location of it ?
Ans : httpd.conf @IAS_ORACLE_HOME/Apache/Apache/conf
71. Where you will see when you have some problem with u r webserver(httpd/Apache)?
Ans : access_log & error_log @IAS_ORACLE_HOME/Apache/Apache/logs
75. Where u will see when u r not able to get self service applications?
Ans : access_log,error_log, error_pls, jserv.log, wdbsvr.app(for apps password)
81. What are the different modes u can start u r form server?
Ans : socket and servlet
85. What is report server configuration and log file name and its location?
Ans : Configuration file � REP_<SID>.ora
Log file � REP_<SID>.log @806_ORACLE_HOME/reports60/server
89. Is apps password necessary to start all the components of oracle application?
Ans : No. Only to start/stop concurrent managers apps password is needed.
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.
Target and Actual should be always same.
95. What if internal concurrent manager target and actual are not same?
Ans : we need to bounce the concurrent manager using adcmctl.sh
99. What is the other script by which u can start apache other than adapcctl.sh?
Ans : apachectl @IAS_ORACLE_HOME/Apache/bin
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
110. How to find out what are the languages enabled in u r applications?
Ans : Query fnd_languages
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.
117. How to find adconfig is enabled for oracle operating system user/database?
Ans : If appsutil directory is there in RDBMS_ORACLE_HOME
Eg:
To enable trace for sql session with sid 8
SQL> exec sys.dbms_system.set_sql_trace_in_session(8,121,true);
PL/SQL procedure successfully completed.
To disable trace
SQL> exec sys.dbms_system.set_sql_trace_in_session(8,121,false);
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.
143. How to find trace file for a given concurrent request id?
Ans : Go to $RDBMS_ORACLE_HOME/admin/<context_name>/udump
Grep �<request id> � *
164. How to find out what are the rdbms patches applied to an oracle home?
Ans : 1. opatch �lsinventory
2. $RDBMS_ORACLE_HOME/.patch_storage directory contains the directories with
the rdbms patch number, which are applied to this oracle home.
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:
Opatch apply �no_inventory
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)?
Ans: query ad_patch_drivers.
182. How to find out whether a language patch is applied for a perticular patch?
Ans : Query ad_patch_driver_langs.
183. How to validate that sysadmin password is correct or not from backend?
Ans: select fnd_web_sec.validate_login('SYSADMIN','Qwert8765') from dual;
186. Other way of checking whether MRC is enabled or not besides using adadmin?
194. What is the script that Lists managers that currently are running a request?
Ans : afcmrrq.sql@FND_TOP/sql
Ans) If the problem relates to CPU bound applications then CPU information for each
session can be examined to determine the culprits. The v$sesstat view can be
queried to find high cpu using sessions and then SQL can be listed.
5. Once the whole SQL statement has been identified it can be tuned.
Syntax:-
Ans: Look at the log of the failed worker, identify and rectify the error and
restart the worker using adctrl utility.
Q: if you want to check the URL of the Application in the database in which table
you can check ?
Ans : ( Method 1)
ANS :
cat /proc/cpuinfo (CPU)
cat /proc/meminfo (Memory)
Q : To check whether the patch is already there or not. For this we query the
database:
select * from AD_BUGS where bug_number=�<patch number>�
Q: How to find if any service is listening on particular port or not ?
Replace short name by name of Oracle Apps Minipack for which you want to find out
Patch level . ex.
AD - for Applications DBA
GL - for General Ledger
PO - Purchase Order
Another method can be using the patchsets.sh utility which can be downloaded from
Metalink.
There are two types of snapshots: APPL_TOP snapshots and global snapshots. An
APPL_TOP snapshot lists patches and versions of files in the APPL_TOP. A global
snapshot lists patches and latest versions of files in the entire Applications
system (that is, across all APPL_TOPs). Both APPL_TOP snapshots and global
snapshots may be either current view snapshots or named view snapshots. A current
view snapshot is created once and updated when appropriate to maintain a consistent
view. A named view snapshot is a copy of the current view snapshot at a particular
time (not necessarily the latest current view snapshot) and is not updated. Patch
Wizard uses the information contained in the global current view snapshot to
determine which patches have already been applied. AutoPatch uses the APPL_TOP
current view snapshot to determine if all prerequisite patches have been applied to
that APPL_TOP. Snapshot information is stored in the AD_SNAPSHOTS,
AD_SNAPSHOT_FILES, and AD_SNAPSHOT_BUGFIXES tables.
Can you tell me a few tests you will do to troubleshoot self-service login
problems?
Which profile options and files will you check?
Check guest user/password in the DBC file, profile option guest user/password, the
DB.
Check whether apache/jserv is up. Run IsItWorking, FND_WEB.PING, aoljtest, etc.
What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME and
LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at the FND_NODES
table. Look at the FNDFS_ entry in tnsnames.ora.
How will you change the location of concurrent manager log and output files?
If the user is experiencing performance issues, how will you go about finding the
cause?
Trace his session (with waits) and use tkprof to analyze the trace file.
Take a statspack report and analyze it.
O/s monitoring using top/iostat/sar/vmstat.
Check for any network bottleneck by using basic tests like ping results.
If you changed the APPS (and APPLSYS) password, update the password in these files:
� iAS_TOP/Apache/modplsql/cfg/wdbsvr.app
� ORACLE_HOME/reports60/server/CGIcmd.dat
If you changed the APPLSYSPUB password, update the password in these files:
� FND_TOP/resource/appsweb.cfg
� OA_HTML/bin/appsweb.cfg
� FND_TOP/secure/HOSTNAME_DBNAME.dbc
Provide the location of the DBC file and explain its significance and how
applications know the name of the DBC file.?
How can u change the logfiles location suppose CM logfile location is APPLCSF now
if we want to change that to a nother location hw is it possible.
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.
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.
If you have access to an Oracle database which is installed on a 64-bit OS, how can
you identify whether Oracle is 32 bit or 64 bit ?
g:\prints\interview\archetecture.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle DBA Interview Questions and Answers - Architecture
What are the steps to install oracle on Linux system? List two kernel parameter
that effect oracle installation?
Initially set up disks and kernel parameters, then create oracle user and DBA
group, and finally run installer to start the installation process. The SHMMAX &
SHMMNI two kernel parameter required to set before installation process.
The following are the parameter that will be used by DBA to adjust time or interval
of how frequently its checkpoint should occur in database.
LOG_CHECKPOINT_TIMEOUT = 3600; # Every one hour
LOG_CHECKPOINT_INTERVAL = 1000; # number of OS blocks.
What is the use of large pool, which case you need to set the large pool?
You need to set large pool if you are using: MTS (Multi thread server) and RMAN
Backups. Large pool prevents RMAN & MTS from competing with other sub system for
the same memory. RMAN uses the large pool for backup & restore when you set the
DBWR_IO_SLAVES or BACKUP_TAPE_IO_SLAVES parameters to simulate asynchronous I/O. If
neither of these parameters is enabled, then Oracle allocates backup buffers from
local process memory rather than shared memory. Then there is no use of large pool.
Oracle Instance:
a means to access an Oracle database,always opens one and only one database and
consists of memory structures and background process.
Oracle server:
a DBMS that provides an open, comprehensive, integrated approach to information
management,Consists of an Instance and a database.
Oracle database:
a collection of data that is treated as a unit,Consists of Datafiles, Control
files, Redo log files. (optional param file, passwd file, archived log)
Background processes:
Started when an Oracle Instance is started.
Background Processes Maintains and enforces relationships between physical and
memory structures
There are two types of database processes:
1. Mandatory background processes
2. Optional background processes
Mandatory background processes:
� DBWn, PMON, CKPT, LGWR, SMON
Optional background processes:
� ARCn, LMDn, RECO, CJQ0, LMON, Snnn, Dnnn, Pnnn, LCKn, QMNn
DBWn writes when:
� Checkpoint occurs
� Dirty buffers reach threshold
� There are no free buffers
� Timeout occurs
� RAC ping request is made
� Tablespace OFFLINE
� Tablespace READ ONLY
� Table DROP or TRUNCATE
� Tablespace BEGIN BACKUP
Log Writer (LGWR) writes:
� At commit
� When 1/3rd full
� When there is 1 MB of redo
� Every 3 seconds
� Before DBWn writes
Why do you run orainstRoot and ROOT.SH once you finalize the Installation?
orainstRoot.sh needs to be run to change the Permissions and groupname to 770 and
to dba.
Root.sh (ORACLE_HOME) location needs to be run to create a ORATAB in /etc/oratab or
/opt/var/oratab in Solaris and to copy dbhome, oraenv and coraenv to
/usr/local/bin.
orainstRoot.sh
[root@oracle11g ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory to 770.
Changing groupname of /u01/app/oraInventory to dba.
The execution of the script is complete
root.sh
[root@oracle11g ~]# /u01/app/oracle/product/11.1.0/db_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
For Oracle installation on unix/linux, we will be prompted to run a script
'root.sh' from the oracle inventory directory.this script needs to run the first
time only when any oracle product is installed on the server.
It creates the additional directories and sets appropriate ownership and
permissions on files for root user.
File type
Extension
Default location (when created with OMF)
Pfile :
ORA
C:\oracle\product\10.2.0\admin\orcl\pfile
Spfile:
ORA
C:\oracle\product\10.2.0\db_1\database
Control file:
CTL
C:\oracle\product\10.2.0\oradata\orcl
Redo log file:
LOG
C:\oracle\product\10.2.0\oradata\orcl
Archive log file:
LOG
C:\oracle\product\10.2.0\flash_recovery_area\ORCL\ARCHIVELOG
Data file:
DBF
C:\oracle\product\10.2.0\oradata\orcl
Alert log files:
LOG
C:\oracle\product\10.2.0\admin\orcl\adump
Trace log files:
TRC
C:\oracle\product\10.2.0\admin\orcl\udump|bdump|cdump
Password file:
ORA
C:\oracle\product\10.2.0\db_1\database
Whenever you perform incomplete recovery or recovery with a backup control file,
you must reset the online logs when you open the database. The new version of the
reset database is called a new incarnation..
g:\prints\interview\asm rebalancing.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Database ASM Features: REBALANCING
==========================================:
ASM has the ability to rebalance data across the disks whenever a disk is
added,dropped or replaced.
The performance of rebalance operation is controlled by initialization parameter
ASM_POWER_LIMIT.
ASM_POWER_LIMIT Parameter
Default value 1
The higher the value of rebalancing power, faster would be rebalancing operation
g:\prints\interview\asm.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Q. What init.ora parameters does a user need to configure for ASM instances?
Ans. The default parameter settings work perfectly for ASM. The only parameters
needed for 11g ASM:
� PROCESSES
� ASM_DISKSTRING*
� ASM_DISKGROUPS*
� INSTANCE_TYPE*
Q. How does the database interact with the ASM instance and how do I make ASM go
faster?
Ans. ASM is not in the I/O path so ASM does not impede the database file access.
Since the RDBMS instance is performing raw I/O, the I/O is as fast as possible.
Q. Don�t I lose all the advanced filesystem features when I move to AMS; e.g.,
direct I/O, write coalescing, and pre-fetech?
Ans. Yes, but that�s okay.
� Most of the filesystem features mentioned, though good for general file data
performance, interfere and fractionalize the benefits inherently provided by the
database; e.g.,
� DBWR & LGWR does write coalescing, and user processes do sequential pre-fetches
� All IO capable processes do un-buffered IO (raw IO) because of ASM
Q. This is cool that ASM can now store Vote and OCR files. But how does CSS and CRS
startup in this configuration?
Ans. It just does ?
�There are two keys processes and a lot of crafty coding to get this to work in the
correct startup sequence.
ASMCMD> pwd
+DATA/rst-cluster/OCRFILE
ASMCMD> ls -l
Type Redund Striped Time Sys Name
OCRFILE UNPROT COARSE JUN 25 11:00:00 Y REGISTRY.255.718984285
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB
Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 203824 193028
0 193028 0 Y DATA/
ASM Configuration
Q. We have a 16 TB database. I�m curious about the number of disk groups we should
use; e.g. 1 large disk group, a couple of disk groups, or otherwise? What about a
database consolidation scenario.
Ans. For VLDBs you will probably end up with different storage tiers; e.g with some
of our large customers they have Tier1 (RAID10 FC), Tier2 (RAID5 FC), Tier3 (SATA),
etc. Each one of these is mapped to a diskgroup.
Backups
Q. When should I use RMAN and when should I use ASMCMD copy?
Ans. RMAN is the recommended and most complete and flexible method to backup and
transport database files in ASM.
ASMCMD copy is good for copying single files
� Supports all Oracle file types
� In some cases. can be used to instantiate a Data Guard environment
� Does not update the controlfile
� Does not create OMF files
ASMCMD> ls
+fra/dumpsets/expdp_5_5.dat
ASMCMD> cp expdp_5_5.dat sys@rac1.orcl1:+DATA/dumpsets/expdp_5_5.dat
source +fra/dumpsets/expdp_5_5.dat
target +DATA/dumpsets/expdp_5_5.dat
copying file(s)�
file, +DATA/dumpsets/expdp_5_5.dat,
copy committed.
Migration
Q. We are migrating to a new storage array. How do I move my ASM database from
storage A to storage B?
Ans:
� Given that the new and old storage are both visible to ASM, simply add the new
disks to the ASM disk group and drop the old disks. ASM rebalance will migratedata
online.
� For pre-11gR2, See Note 428681.1, which covers how to move OCR/Voting disks to
the new storage array
ASM_SQL> alter diskgroup DATA drop disk data_legacy1, data_legacy2, data_legacy3
add disk
�/dev/sddb1�, �/dev/sddc1�, �/dev/sddd1�;
ASM Rebalancing
� Automatic online rebalance whenever storage configuration changes
� Only move data proportional to storage added
� No need for manual I/O tuning
� Online migration to new storage
Q. Is it possible to unplug an ASM disk group from one platform and plug into a
server on another platform (for example, from Solaris to Linux)?
Ans. No. Cross-platform disk group migration not supported. To move datafiles
between endian-ness
platforms, you need to use XTTS, Datapump or Streams.
ACFS
Q. What is ASM Cluster File System (ACFS)?
� General purpose scalable file system
� Journaling, extent based
� Single node and cluster
� POSIX, X/OPEN file system solution for UNIX/Linux
� Windows file system solution for Windows platforms
� Accessible through NAS protocols (NFS, CIFS)
� Leverages ASM technology
� Integrated with Oracle Clusterware for cluster support
� Multi OS platform (Linux and Windows at initial release)
� Integrated with Oracle system mgt tools
� Oracle installation and configuration
� Enterprise Manager and ASM Storage mgt tools
� Native OS File System Management tools
ACFS Features
Provides filesystem snapshots (FCOW)
� File system integrity and fast recovery via ACFS metadata checksums and
journaling.
� ACFS designed as a peer to peer, multi-node, shared file system model and
delivers coherent data access
� ACFS file system is installed as a dynamically loadable OS VFS driver
� Starting with RHEL5, Redhat now supports a �white list� -kernel APIs which they
commit they will not change in updates or patches. APIs used by ACFS-ADVM were
added to their �white list�.
� Customers should be able to install an update or patch to the kernel and our
drivers should not be impacted
Q. Can ACFS be used to store database datafiles? What about archive logs?
Ans. No. Currently we will not support database file to bestored in ACFS. This is
due to performance reasons. Though you can do this in test/Q&A environments where
performance is not essential
Q. Can I sue ACFS to store BFILE data or other non-database related data
Ans. Yes. ACFS is POSIX compliant filesystem, and thus can store any file data type
(besides database files ?)
Q. Will ACFS support other Data services, such advanced cloning, replication, de-
dupe, etc..
Ans. Yes. ACFS Replication will be introduced in the next patchset release. Other
advanced features are part of the roadmap.
Q. Is ASMLIB required on Linux systems and are there any benefits to using it?
Ans. ASMLIB is not required to run ASM, but it is certainly recommended.
ASMLIB has following benefits:
� Simplified disk discovery
� Persistent disk names
� Efficient use of system resources
Conclusion:
�ASM requires very few parameters to run
�ASM based databases inherently leverage raw disk performance
�No additional database parameters needed to support ASM
�Mixed ASM-database version support
�Facilitates online storage changes
�RMAN recommended for backing up ASM based databases
�Spreads I/O evenly across all disks to maximize performance and eliminates hot
spot
*************************ASM genral questions. *********************
1. What is the use of ASM (or) Why ASM preferred over filesystem?
Ans: ASM provides striping and mirroring.
6. How to find out the databases, which are using the ASM instance?
ASMCMD> lsct
SQL> select DB_NAME from V$ASM_CLIENT;
8. What is allocation unit and what is default value of au_size and how to change?
Every ASM disk is divided into allocation units (AU). An AU is the fundamental unit
of allocation within a disk group. A file extent consists of one or more AU. An ASM
file consists of one or more file extents.
CREATE DISKGROUP disk_group_2 EXTERNAL REDUNDANCY DISK �/dev/sde1� ATRRIBUTE
�au_size� = �32M�;
RBAL, ARBn
The database communicates with ASM instance using the ASMB (umblicus process)
process. Once the database obtains the necessary extents from extent map, all
database IO going forward is processed through by the database processes,
bypassing ASM. Thus we say ASM is not really in the IO path. So, the question how
do we make ASM go faster�..you don�t have to.
4) What init.ora parameters does a user need to configure for ASM instances?
The default parameter settings work perfectly for ASM. The only parameters needed
for 11g ASM:
� PROCESSES*
� ASM_DISKSTRING*
� ASM_DISKGROUPS
� INSTANCE_TYPE
5) How does the database interact with the ASM instance and how do I make ASM go
faster?
ASM is not in the I/O path so ASM does not impede the database file access. Since
the RDBMS instance is performing raw I/O, the I/O is as fast as possible.
8) We have a 16 TB database. I�m curious about the number of disk groups we should
use; e.g. 1 large disk group, a couple of disk groups, or otherwise?
For VLDBs you will probably end up with different storage tiers; e.g with some of
our large customers they have Tier1 (RAID10 FC), Tier2 (RAID5 FC), Tier3 (SATA),
etc. Each one of these is mapped to a diskgroup.
9) We have a new app and don�t know our access pattern, but assuming mostly
sequential access, what size would be a good AU fit?
For 11g ASM/RDBMS it is recommended to use 4MB ASM AU for disk groups. See Metalink
Note 810484.1
10) Would it be better to use BIGFILE tablespaces, or standard tablespaces for ASM?
The use of Bigfile tablespaces has no bearing on ASM (or vice versa). In fact most
database object related decisions are transparent to ASM.
12) In 11g RAC we want to separate ASM admins from DBAs and create different users
and groups. How do we set this up?
For clarification
� Separate Oracle Home for ASM and RDBMS.
� RDBMS instance connects to ASM using OSDBA group of the ASM instance.
Thus, software owner for each RDBMS instance connecting to ASM must be
a member of ASM's OSDBA group.
� Choose a different OSDBA group for ASM instance (asmdba) than for
RDBMS instance (dba)
� In 11g, ASM administrator has to be member of a separate SYSASM group to
separate ASM Admin and DBAs.
14) Where do I run my database listener from; i.e., ASM HOME or DB HOME?
It is recommended to run the listener from the ASM HOME. This is particularly
important for RAC env, since the listener is a node-level resource. In this config,
you can create additional [user] listeners from the database homes as needed.
16) When should I use RMAN and when should I use ASMCMD copy?
RMAN is the recommended and most complete and flexible method to backup and
transport database files in ASM.
ASMCMD copy is good for copying single files
� Supports all Oracle file types
� Can be used to instantiate a Data Guard environment
� Does not update the controlfile
� Does not create OMF files
17) I�m going to do add disks to my ASM diskgroup, how long will this rebalance
take?
Rebalance time is heavily driven by the three items:
1) Amount of data currently in the diskgroup
2) IO bandwidth available on the server
3) ASM_POWER_LIMIT or Rebalance Power Level
18) We are migrating to a new storage array. How do I move my ASM database from
storage A to storage B?
Given that the new and old storage are both visible to ASM, simply add the new
disks to the ASM disk group and drop the old disks. ASM rebalance will migrate data
online.
Note 428681.1 covers how to move OCR/Voting disks to the new storage array
19) Is it possible to unplug an ASM disk group from one platform and plug into a
server on another platform (for example, from Solaris to Linux)?
No. Cross-platform disk group migration not supported. To move datafiles between
endian-ness platforms, you need to use XTTS, Datapump or Streams.
22) What are the file types that ASM support and keep in disk groups?
Control files
Flashback logs
Data Pump dump sets
Data files
DB SPFILE
Data Guard configuration
Archive logs
Transport data files
ASM SPFILE
26. How many ASM Diskgroups can be created under one ASM Instance?
29) Diagram that how database interacts with ASM when a request is to read or open
a datafile.
1A. Database issues open of a database file
1B. ASM sends the extent map for the file to database instance. Starting with 11g,
the RDBMS only receives first 60 extents the remaining extents in the extent map
are paged in on demand, providing a faster open
2A/2B. Database now reads directly from disk
3A.RDBMS foreground initiates a create tablespace for example
3B. ASM does the allocation for its essentially reserving the allocation units
for the file creation
3C. Once allocation phase is done, the extent map is sent to the RDBMS
3D. The RDBMS initialization phase kicks in. In this phase the initializes all
the reserved AUs
3E. If file creation is successful, then the RDBMS commits the file creation
Going forward all I/Os are done by the RDBMS directly
30) Can my disks in a diskgroup can be varied size? For example one disk is of
100GB and another disk is of 50GB. If so how does ASM manage the extents?
Yes, disk sizes can be varied, Oracle ASM will manage data efficiently and
intelligent by placing the extents proportional to the size of the disk in the disk
group, bigger diskgroups have more extents than lesser ones.
Configure oracleasm:
# oracleasm configure -i
creating a disk:
# oracleasm createdisk data0101 /dev/sdb1
querying a disk:
# oracleasm querydisk -d DATA0101
Oracle ASM Filter Driver (Oracle ASMFD) is installed with an Oracle Grid
Infrastructure installation. If you have an existing Oracle ASM library driver
(Oracle ASMLIB) configuration, then depending on whether you want to use Oracle
ASMLIB or Oracle ASMFD, consider the following scenarios:
If you use Oracle ASMLIB to manage your Oracle ASM devices and you want to continue
to use Oracle ASMLIB, then upgrade to Oracle Grid Infrastructure 12c Release 1
(12.1.0.2).
Although Oracle ASMFD is installed, Oracle ASMLIB continues to be used for device
persistence.
If you use Oracle ASMLIB to manage your Oracle ASM devices and you want to migrate
to Oracle ASMFD, then perform the following steps:
Upgrade to Oracle Grid Infrastructure 12c Release 1 (12.1.0.2).
This process installs Oracle ASMFD.
g:\prints\interview\automated task.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In 11g, There are 3 main automated maintenance tasks in every database enabled by
default:
These tasks can run up to 20 hours on Saturdays & Sundays utilizing a good portion
of your hardware.
How would you decide your backup strategy and timing for backup?In fact backup
strategy is purely depends upon your organization business need.
If no downtime then database must be run on archivelog mode and you have to take
frequently or daily backup.
If sufficient downtime is there and loss of data would not affect your business
then you can run your database in noarchivelog mode and backup can be taken in-
frequently or weekly or monthly.
In most of the case in an organization when no downtime then frequent inconsistent
backup needed (daily backup), multiplex online redo log files (multiple copies),
different location for redo log files, database must run in archivelog mode and
dataguard can be implemented for extra bit of protection.
What is the benefit of running the DB in archivelog mode over no archivelog mode?
When a database is in no archivelog mode whenever log switch happens there will be
a loss of some redoes log information in order to avoid this, redo logs must be
archived. This can be achieved by configuring the database in archivelog mode.
If an oracle database is crashed? How would you recover that transaction which is
not in backup?If the database is in archivelog we can recover that transaction
otherwise we cannot recover that transaction which is not in backup.
Why RMAN incremental backup fails even though full backup exists?If you have taken
the RMAN full backup using the command �Backup database�, where as a level 0 backup
is physically identical to a full backup. The only difference is that the level 0
backup is recorded as an incremental backup in the RMAN repository so it can be
used as the parent for a level 1 backup. Simply the �full backup without level 0�
can not be considered as a parent backup from which you can take level 1 backup.
Can we perform RMAN level 1 backup without level 0?If no level 0 is available, then
the behavior depends upon the compatibility mode setting (oracle version).
If the compatibility mode less than 10.0.0, RMAN generates a level 0 backup of
files contents at the time of backup.
If the compatibility is greater than 10.0.0, RMAN copies all block changes since
the file was created, and stores the results as level 1 backup.
How to put Manual/User managed backup in RMAN?In case of recovery catalog, you can
put by using catalog command:
RMAN> CATALOG START WITH �/oracle/backup.ctl�;
How to check RMAN version in oracle?If you want to check RMAN catalog version then
use the below query from SQL*plus
SQL> Select * from rcver;
run
{
allocate channel channel1 type disk;
allocate channel channel2 type disk;
allocate channel channel3 type disk;
allocate channel channel4 type disk;
backup database plus archivelog format '/u01/backup/dbname/dbname_%U' TAG
before_task;
backup current controlfile format '/u01/backup/dbname/control.bkp';
}
run
{
allocate channel channel1 type disk;
allocate channel channel2 type disk;
allocate channel channel3 type disk;
backup incremental level=0 database;
backup archivelog all;
backup current controlfile;
}
Note:
----
Need controlfile, backup and parameter file for recoverying database.
4. Restore Controlfile.
$rman target /
RMAN> restore controlfile;
6. Restore and recover & Point-In-Time Recovery of all data back to a particular
date/time in the past.
run
{
set until time "to_date('2013-03-20:14:40:00','YYYY-MM-DD:hh24:mi:ss')";
restore database;
recovery database;
}
NOTE:
----
As soon as you have done a resetlogs run a full backup, this is important as should
you suffer a second failure you will not be able to perform a second recovery
because after resetting the logs the SCN numbers will no longer match any older
backup files.
if +FRA,
select * from V$FLASH_RECOVERY_AREA_USAGE;
(see what kind of files are available in the Flash Recovery Area)
rman target /
crosscheck archivelog all;
delete expired archivelog all;
crosscheck backup;
show all;
LIST BACKUP OF ARCHIVELOG FROM TIME 'sysdate-1'; ------List all archivelog backups
for the past 24 hours
list backup of archivelog all completed before 'sysdate -1';
ls -ltr archivebackup.cmd
tail -f archivebackup_dbname_DDMONYY.log
if required,
BACKUP BACKUPSET ALL FILESPERSET 10 DELETE INPUT;
list archivelog all backed up 1 times to DEVICE TYPE DISK completed before
'sysdate-7';
delete archivelog all backed up 1 times to DEVICE TYPE DISK completed before
'sysdate-7';
backup archivelog [all] [until time 'sysdate']| [sequence between 100 to 110 thread
1] as filesperset 5 delete
input;
backup archivelog from sequence 100 until sequence 110 thread 1 delete input;
backup archivelog from logseq 100 until logseq 110 thread 1 delete input;
report obsolete;
DELETE OBSOLETE REDUNDANCY = 3;
DELETE OBSOLETE RECOVERY WINDOW OF 7 DAYS;
----
List the most recent Level 0 backups
Here,
incremental level 0 backups which runs
on Sunday using "backup as compressed backupset incremental level 0 ...."
We have incremental level 1 backups which runs
everyday other than Sunday using "backup as compressed backupset incremental level
1 database...."
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- -------------------- ------- ------- ---------- ---
LIST
RMAN> report schema; // �schema� is confusing. this just shows datafiles and has
nothing to do with user objects.
RMAN> report need backup;
RMAN> report need backup days 3;
RMAN> report need backup redundancy 3;
RMAN> report obsolete;
RMAN> report obsolete redundancy 2; // shows backups that are older than two others
DELETE
These views and data are contained in the control file only (not recovery catalog).
V$BLOCK_CHANGE_TRACKING � to monitor block change tracking
V$BACKUP_FILES
V$BACKUP_SET
V$BACKUP_PIECE
V$BACKUP_REDOLOG � each archived log that has been backed up
V$BACKUP_SPFILE � each spfile that has been backed up
V$BACKUP_DEVICE � names of sbt devices
V$RMAN_CONFIGURATION
Parameters
level 0 incremental backup the base for subsequent incremental backups, copies
all blocks containing data.
You can create a level 0 database backup as backup sets or image copies.
level 1 cumulative incremental backup backs up all blocks changed after the
most recent incremental backup at level 0
level 1 differential incremental backup backs up all blocks changed after the
most recent incremental backup at
An example is shown below where we are checking the validity of a database backup
for a database which has a
weekly level 0 backup. Note that the RESTORE DATABASE VALIDATE command will cause
RMAN to check for the last level
0 backup which has been performed in this case on the 15th of November.
ORACLE_SID=`ps -ef | grep asm_smon | grep -v 'grep' | grep -v 'sed' | awk '{printf
$8}' | awk 'BEGIN{FS="_"} {printf $3}'`
-----------------------------------------
tar -cvf $ORACLE_HOME $ORACLE_HOME/oraInventory | gzip >
Backup_Software_Version.tar.gz
Note:
tar -cvf <destination_location> <source_location>
cd /u01/before_patch_backup
Controlfile Backup
---------------------
alter database backup controlfile to trace;
g:\prints\interview\Backup_Strategy.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Backup Strategies
==================:
Q)I am new to apps and my understanding is that I have to backup application code,
logs, ... datafiles ALL
in one script. Is this true?
Ans) Not necessarily, just bear in mind that it should be synchronous. So whenever
you make a change at the Application and such a change update the DB then you
should backup both.
Q)I am using RMAN to backup other databases and can posibly employ it to backup
apps d/b, right?
Ans) Apps DB is just like any other Oracle DB. Definitely you can use RMAN to back
it up.
Q) So if the middle tier services are up and running a backup (normal copy) of the
APPS tier is valid. There are no constraints here. Is that correct ?
Some Operating System will not let you take a backup (i.e. copy the files) when it
is in used, so you need to shutdown the application tier first. You can take a
backup of the application tier on Linux/Unix while it is open, but it is not
recommended.
If you do not do any changes on the application tier, then I would suggest you can
take a full offline backup, and then take an incremental online backup for the CM
log files, and Concurrent Requests log/out files
-After patching the middle-tier it is good to take a backup of the APPS tier and
the database tier as well.
Currently we are taking cold backup and we are planning to migrate to Hotbackup
using RMAN...can any recommend any startegy for backups ?..No downtime .......??
for the applicaiton server you need to have one full backup at least and then
before each patch you have to take backup. you can sechdual a weekly full backup
for the application tire.
for the database you can schudaly a daily backup for the arichive redo logs and a
weelkly backup for the whole database.
Currently we dont have a backup software with open file agent..so we are shutting
down the DB every week and taking the backup. We thought of migrating to RMAN..any
comments ?
Please be informed that more the backup strategy less the performance. So monitor
the performance aswell and accordingly apply the backup strategies.
Q) if any body could tell me the application files located in application tier to
be backed up with steps....?
Make sure you shutdown the application services (verify using ps -ef | grep -i
applmgr) before taking the backup.
Q) Make sure you shutdown the application services (verify using ps -ef | grep -i
applmgr) before taking the backup...?
Just to ensure that none of the application files are used when you take a backup
so that it will not be skipped by the backup software.
Oracle BAM Active Viewer is the thin user interface for the business user.
When new, information is available; the user receives an instant message that
contains a link to the information.
The user opens Active Viewer through this link and a report is displayed.
Report formats include charts, columns, cross tab, spread sheets, KPIs, lists and
more.
These different formats can be combined in one report or viewed in separate
reports.
Active Studio
Oracle BAM Active Studio is the thin user interface for the power user.
Through Active Studio, the power user can create and edit reports.
Report creation includes field selection, formatting, filtering, calculated fields,
and summaries.
Reports may be published and rules can be created for determining the scheduling
and delivery of the reports.
View types include: charts, columnar, cross tab, spread sheets, KPIs, lists and
more.
Architect
Oracle BAM Architect is the thin user interface for the data designer focused on
creating data objects in the Oracle BAM Active Data Cache so that power users can
create reports.
Through Oracle BAM Architect, the data designer creates data objects, creates and
schedules data flow plans, imports and creates metadata, and maintains the data
objects and rules.
Oracle BAM Architect is seamlessly integrated with Oracle BAM Active Studio.
Administrator
Oracle BAM Administrator is the thin user interface for the system administrator
who is responsible for user management and overall server management.
Through Oracle BAM Administrator, the system administrator can add or delete users,
define security levels for users and objects, manage the Oracle BAM Active Data
Cache, and maintain and configure Oracle BAM services.
Question: How to get data from JMS queue/topic to BAM data object.
Answer: By using EMS (Enterprise Message Source).
g:\prints\interview\bgprocess.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Database 11g introduced 56 new background processes
==========================================================:
Note:
The following post based on the Oracle Database 11g and briefly describes some
important processes.
These processes are mandatory and can be found in all typical database environment.
CKPT � Checkpoint
Ensures data consistency and easy database recovery in case of crash by
sychronizing all the data file headers and control files with recent checkpoint
information.
DBW0�j � DB Writer
Flushing or writing modi?ed dirty data (buffers) from database buffer cache to
disks (datafiles). You can configure addition DB writer processes (up to 20) from
DBW0-DBW9 and DBWa through DBWj.
These are introduced in Oracle Database 11g. The first three is mandatory and
others could be running depending upon the features being used.
DIA0 � Diagnostic
Responsible for detecting hangs and resolving deadlocks
g:\prints\interview\blackout creation.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database BLACKOUT
OEM BLACKOUT
------------
OEM ->
Targets ->
enter the target dbhost name ->
select blackout ->
enter blackout name ->
select the reason ->
select add(if required to add more) ->
select all ->
next ->
select immediate time from & select end time ->
next
cd $AGENT_HOME/bin
./emctl config agent listtargets
"-nodeLevel" tells the agent to stop monitoring all targets on the server.
"-d Duration" allows you to set a duration in the format of [days] hh:mm.
cd $AGENT_HOME/bin
./emctl start blackout alltargets_onserver �nodeLevel----->Blackout entire host
indefinitely
<Perform Maintenance Tasks>
"-nodeLevel" tells the agent to stop monitoring all targets on the server.
"-d Duration" allows you to set a duration in the format of [days] hh:mm.
cd $AGENT_HOME/bin
./emctl start blackout Blackoutname database1 -d 6:00
<Perform Maintenance Tasks>
Examples:
--------
To start an immediate indefinite blackout called "Blackoutname" for all targets on
the host:
./emctl start blackout Blackoutname -nodeLevel
To start an immediate blackout called "Blackoutname" for all targets on the host
for 6 hours:
./emctl start blackout Blackoutname -nodeLevel -d 06:00
A Btree Index is a Default Index. In a BTree Index all the lower values are placed
on the left side & Higher Values on the Right Side.
A Bitmap Index is created on columns with repeated values. And it mostly created on
Transaction Tables on which the data is continously being added.
Bitmap Indexes can also be very useful in OLAP as well as OLTP. Many data
warehouses use Bitmap indexes to improve performance.
Bitmap index:
------------
A type of index that uses a string of bits to quickly locate rows in a table.
Bitmap indexes are normally used to index low cardinality columns in a warehouse
environment.
Btree index:
------------
A type of index that uses a balanced tree structure for efficient record
retrieval. B-tree indexes store key data in ascending or descending order.
b-tree indexes are used usuall when we have too many distinct columns and for high
cardinaties . and bitmap indexex are used for low cardinaties, usually when we
have repeated columns.
g:\prints\interview\catctl.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The catctl.pl Utility In 12c
=============================:
The catupgrd.sql script Upgrade Utility to process the upgrade singled threaded.
Now there is a faster way to upgrade your Oracle Database to 12c, you can use the
catctl.pl the Parallel Upgrade Utility � a perl script, which replaces catupgrd.sql
and provides both parallel processing mode and serial mode. This will greatly help
reduce downtime for a database upgrade to 12c and I highly recommend you use this
option.
The �n option Specifies the number of processes to use for parallel operations
(default = 4). The maximum is 8. Set this parameter to 0 to run catctl.pl in serial
mode.
The catctl.pl Parallel Upgrade Utility is integrated with DBUA the gui upgrade
utility. However, for manual, command line upgrades, you can run catctl.pl with
various parameters
Once you start the database in upgrade mode by issuing the following command:
SQL> STARTUP UPGRADE
Once the database is started in upgrade mode, only queries on fixed views execute
without errors until after the catctl.pl script is run. Before running catctl.pl,
queries on any other view or the use of PL/SQL returns an error.
g:\prints\interview\conc interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Question:Error:
========
After submitting the concurrent program, i am getting the status as inactive and no
manager and when i clicked on diagnostics button its showing a message like
This request will not be processed because there are currently no managers running
that can process it.
This is an error condition. There are one or more managers defined that can process
this request that should be running at this time, but do not appear to be running.
Contact your system administrator and/or check the manager log files for errors.
Solution:
=========
to resolve that, just u simple startup concurrent manager by executing the
./adcmctl.sh script
Question:
=========
want to create a new �MANAGER�
Ans:
====
sysadmin guide for that
http://download-uk.oracle.com/docs/cd/B25516_11/current/html/docset.html
To figure out the issue.
3)280295.1 REQUESTS.sql Script for Parent/Child Request IDs and Trace File IDs
ANALYZEPENDING.SQL - Analyze all Pending Requests Doc ID: Note:134033.1
Question :
===========
Solution
========
are the concurrent requests are custom or default concurrent programs....did you
check the concurrent managers status.....
2:
Try enabling trace on the particular concurrent request,may be that should help to
diagnose the problem?
Question:
=========
What is environment variable APPLCSF in Apps environment?
Ans:
==
If environment variable APPLCSF is set then u can
get the logfiles of concurrent managers under $APPLCSF/$APPLLOG.
If APPLCSF is not set, Request Log files will go to
$<MODULE>_TOP/$APPLLOG
$<MODULE>_TOP/$APPLOUT
QUESTION:
=========
How and why to configure PCP(Parallel Concurrent Processing)?
Answer:
========
PCP is nothing but a load balancing methodology for concurrent processing server.
To load balance on concurrent processing server, this is required. In a multinode
architecture, it is being used.
Oracle E-Business Suite Release 11i with 9i RAC: Installation and Configuration
using AutoConfig
Doc ID: Note:279956.1
Question:
=========
CM is not working after cloning?
Answer
======
1.Bounce CM
2.check FND_NODES correctlly updated for concurent manager
3.if is there custom tops ..if so means...add those to any env file..after that set
env
then Bounce the concurrnet managers..
Question:
=========
Concurrent manager "Inactive, No Manager"
1. We are facing this problem even when no other job is running
2. We dont face this problem on daily basis- it can happen sometimes thrice in a
day and sometimes once in a month.
3. This program generally runs atleast 10 times in a day.
4. Configuration of the concurrent manager is (this is not standard manager):
No. of processes is: 8, Cache Size: 10, Sleep time: 10
Answer:
=========
sol_1
====
This problem seems to be inactive ICM.
When ICM is not up u will get error inactive-no manager.
Just check with manager and make it up.
ps -ef|grep LIBR
if it shows the manager is down then start the CM using script adcmctl.sh.
And if the manager is up but it is showing the inactive-nomanager then check for
the log file and do the needful.
Sol_2:
======
Most importantly, see try reassigning the request to a different manager instead of
the Standard Manager (maybe a custom one which only it belongs to) and see if you
get the same behavior. Also check to see there are no unnecessary incompatibilities
listed for the Program under the Program definitions.
sol_3:
========
I'd like to add that we checked the work schedule which is set to standard (24X7)
and specialised rules against the standard Concurrent manager in the define manager
screen. In adition we recreated the Conc mgr views, also created our own manager
which gave the same message Phase Inactive No Manager.
Sol_4:
=======
What is the value of your GSM Enabled profile setting?
We had it set at Y but since changed it to N. We have also changed the appldcp
context value to NO. Nothing seems to make any difference
Sol_5:
=======
after cloning you are getting inactive manager
go to applmgr user
$TNS_ADMIN / path
edit
(SID=FNDSM) to (SID=FNDSM_VIS)
Sol_6:
=====
check the disc space of this instance, and increase
QUESTION:
=========
What are the differences between the functionality of purging concurrent request,
FNDCPPUR and CMCLEAN.
Answer:
=======
FNDCPPUR is executable name of Purge Concurrent Request and/or Manager Data
Program.
When you run this request, it will delete all the requests from Tables and log, req
and manager log files from OS leve.
cmclean.sql is used to clean the concurrent manager tables, when there is any
problem with managers starting up..
Question:
=======
If ICM stop the othar manager ST which are already
started will continue but the new manager will not start
At the same time confict resolution manager will pickup all the request
How to know the ICM is down
Answer:
========
FNDSM is ICMs agent which will be doing the job for ICM(starting stoppin managers
etc..). if that goes down everything else related to concurrent processing shuts
off.
So you could grep for this FNDSM process continously at OS level to check ICMs
status using a script
LOCKING:
========
Check V$session and V$locked_object. You can formulate a query by joining these two
views to get the required info..Do a describe on them and try to create a query.
>How to resolve locking
using the two views mentioned above you can find out which session is blockin which
sessions.If the culprit session is INACTIVE, then you may kill it using alter
system kill session command. That would release the blockage
Question:
=========
what is PMON cyle,QUEUE size and sleep time:
ANS:
===
While the basic ICM definition should not be changed, you can if required modify
the sleep time (number of seconds the ICM waits between checking for new concurrent
requests), PMON (process monitor) cycle time (number of sleep cycles the ICM waits
between checking for failed workers), and queue size (duration between checks for
number of active workers, measured in PMON cycles). If Parallel Concurrent
Processing (described below) is being used, you can also set some options for this.
what does these failed "workers" refer to?? What are these workers?
A/These workers are nothing but the Operating System processes associated with the
concurrent managers.
Question:
==========
Answer:
=========
Reasons when concurrent manager fail?
There can be N number of reason for CM failure , check CM log file for exact
message and cause
Few of them are --
Database listener down,
wrong password while starting CM,
corruption in FND_NODES ...
Actual is actual number of manager running at that time and target is the number of
Manager should be running at that particular time.
Qestion:
========
How to check the CM is up?
Answer:
========
ps -ef|grep FNDLIBR
Question:
========
which concurrent manager will run, which concurrent programs?
ANS_!:
========
Basically there are four types of Conc Mgrs
You can use include and exclude options for the managers depending upon the your
requirement if you want the program to be run by only one user.
ANS_3:
========
From concurrent manager define and administrator screen we can find out what are
all the concurrent programs that manager is running.
We can find out currently running request and which manager queue this request is
running from the script $FND_TOP/sql/afrqrun.sql.
But my question is, I want general script or query to find from back end,
Which request (completed, errored, schedule, running etc) goes to which manager?
ANS_4:
=======
Use this query. Provide short name as concurrent_program_name.
Output will show you Which program is excluded from standard manager and included
in other manager.
Question:
=========
What to do when Concurrent request is queing up and not being completed.
$APPLCSF/log/<Context Name>/FNDSM9999.mgr
Question
==========
What cmclean.sql will do?
Answer:
=========
cmclean.sql is non destructive script to clean CM tables. To run this script, CM
has to be down since it does some updates on the tables. The script resets the
flags of the requests to 'COMPLETED' and clean the CM tables so allowing the
concurrent managers to come up. You need to run this script whenever you have an
issue with the CM startup.
DESCRIPTION
Concurrent managers cleanup script.
To be called by rapidinstall ONLY.
- Delete all site specific information (nodes, services, printers, etc).
- Delete requests that are in Completed and Running states.
- Delete/reset all concurrent manager state information.
- Cancel all Pending Oracle Reports based requests.
Question:
========
What is CONCSUB
Ans:
=====
CONCSUB is a utility run at the operating system level to submit a concurrent
program to the concurrent manager.
Question:
=========
How to purge concurrent request espcially those who has .req and .log extension
name on OS side, is it safe to purge concurrent request?
Answer:
========
A/To avoid running out of space on your disk drives, you should periodically
delete Oracle Applications log files, output files and purge these tables
with the FNDCPPUR program (Purge Concurrent Request and/or Manager Data).
The FNDCPUR purge program maintains the number of log and output files the
operating system retains, and manage tables that store information about concurrent
requests and concurrent manager processes.
You can run the program FNDCPPUR once and automatically resubmit the program for
your specific time intervals.
Depending on the usage you might have a different strategy for purging the
concurrent requests log/out files eg.
WARNING : When you purge concurrent request information, you lose audit details
which are used by the Signon Audit Concurrent Requests report.
If your business requires to see the requests run back in time then you need to
keep archive on disk or tape.
B/The log and out files go to a common location for all modules.
If $APPLCSF is not set, it places the files under the product top of
the application associated with the request. For example, a PO report
would go under $PO_TOP/$APPLLOG and $PO_TOP/$APPLOUT
Logfiles go to: /u01/appl/po/9.0/log
Output files to: /u01/appl/po/9.0/out
All these directories must exist and have the correct permissions.
Note that all concurrent requests produce a log file, but not necessarily
an output file.
Concurrent manager logfiles follow the same convention, and will be
found in the $APPLLOG directory.
Use the find command to move files which are more than N days old to another
directory and zip them up or archive to tape. You can also use utilities like TSM
(Trivoli Storage Manager) for backing up the filesystem.
Question:
=========
15 custom CM's , in which one is down . so what is the way to troubleshoot it to
bring it up.
Answer:
=====
you can go with anyone:
1. 1st check the log file of the cm. if your error message is not enough to find
out the problem, then change DIAG_PARAM ="" to DIAG_PARAM ="Y" in adcmctl.sh.
2.you can use cmclean.sql and then check the status of that cm.
3. check the values of target and actual column for that cm in frontend.
Question:
===========
CM is down Status Inactive and No Manager?
Ans:
===
1Check in icm log file to see issue
$APPLCSF/$APPLLOG/<SID>_<timestamp>.log
Ans_2:
======
This is way too big of a question to be answered in one post but in general:
1. Ensure you have enough Standard Manager processes to handle all of the requests.
The default number is 3, this can be increased in the Manager Definitions
(Workshift).
3. Ensure that you don't have any unnecessary manager processes running in the
manager queues.
4. Set a low priority if possible on the jobs which generally run the longest. If
you are consistently getting slow performance on jobs, check to see if they also
execute slowly from the SQL PLUS. If they do, the issue is with the code, not the
managers.
DBA_EXTENTS or DBA_OBJECTS Table..there you can get the SIZE of the Objects
Question:
=========
submitted a request and it completed with the status as completed normal
But not able to see log file?
Answer:
========
A, RRA profile agaent & apps listener adalnctl.sh
B, whatever you have operating system , you need to restart the listener again even
if it's working status and if the users are connected to the Apps. then you have to
restart the Apatche first then the listener of the application 8.0.6.
Question:
========
DB tier and Concurrent Manager on one node
Apps Tier(Forms, Apache) on another node.
How to move the Concurrent Manager to a new node
Ans:
====
Theoretically, you'll need to add a node to the Apps Tier using the Rapid Clone
addnode.pl
This should give you an overall idea.You'll need to tweak this to your requirement.
How do I deregister an application tier from the Net Services Topology Data Model?
Answer:
To deregister the current application tier from the Net Services Topology Data
Model, invoke the following command:
perl <AD_TOP>/bin/adgentns.pl appspass=<APPSpwd> contextfile=<CONTEXT>
-removeserver
Regarding step ( 8 ) : This would need to be run from Forms/Web node I believe. Not
familiar with it's prompts, but it should be straightforward as we have the NEW CM
node already ready by the time we execute this. Please ensure that once this is
run, the entries in the context file on this node reflect your new node. I would
check entries in the following section in context XML
<oa_admin_server>
<oa_cp_server>
For addnode.pl refer to note: Note:230672.1 Cloning Oracle Applications Release 11i
The entries here should match with what we needed to start with.
1) Entry for DB node
2) Entry for Forms/Web Node
3) Entry for *NEW* CM node
4) No entries for *OLD* CM node
I hope you are doing this on test first? Let me know how it goes.
Question:
========
Want to configur PCP?
Ans:
===
241370.1 Concurrent Manager Setup and Configuration Requirements in an 11i RAC
Environment
312731.1 Configuring Oracle Applications Release 11i with
10g Release1 Real Application Clusters and Automatic Storage Management
Section 3.11 Configuring Parallel Concurrent Processing
Question:
=========
Why only for Concurrent Manager, we specify apps/apps password & not for other?
Ans:
======
Concurrent Manager is used for processing requests..it means...for example...I want
to run one report based on Current Month GL Balance...So we have to run one report
to show balance...this balance will be stored in the Database tables..right.....
Concurrent Manager runs this request by connecting to the database using apps user
password.....
Ans:
====
doc id: 105133.1(given in teachme oracle-Metalink Notes Section).
When you modify the Printer Driver you have to restart the Manager which runs the
request which is attached to that Printer Driver, however,if you do not know which
manager then you have to restart the Internal manager because the printer driver
can be used by multiple managers and multiple requests. If only a concurrent
program definition is modified, running a verify on the Internal Manager will pick
up the changes without the need for bouncing the manager.
QUESTION:
==========
I have defined a new manager and submitted request in it.
But the job is always running and it never stops.
ANS:
====
issue initially the process specified for the new ASAP manager is below 10.
But as per the thumb rule for that specified application and the manager
the process should be more than 20.Thumb rule for the manager which we created was
q/a
Below is the relevant content from adcmctl.sh:
printf "Shutting down concurrent managers for $TWO_TASK ...\n" >> $LOGFILE
$FND_TOP/bin/CONCSUB "$unpw" SYSADMIN $WAIT_PARAM 'System Administrator' SYSADMIN
CONCURRENT FND SHUTDOWN
exit_code=$?
QUESTION
==========
CM is not shuting down.
Ans?
===
As u defined that CM is hanged due to some pending request,
the one option that i think would be feasible is to make cancel that request from
backend
keeping status_code='E' and phase_code='C' ,
So , once the request got completed the CM will automatically come down with no
problem
run Cmclean.sql and start the Cm
precisley knowing your FNDLIBR process you can try this in command line:
The above command will list out FNDLIBR process related to instance ORCL only.
Question :
=======
CM is up but Oracle Applications Manager. it shows down?
Ans:
======
- Dashborad collection manager is down
- GSM might be disabled
- Monitoring/SErvice Update in OAM might be diabled
10. What setting to make to make the concurrent program to appear in the SRS
window?
Enable the option �Use in SRS�.
13. Inside Stage in Request, how the individual request process?(Choose One)
a. Parallel
b. Sequential
c. Manager chooses the method
d. Depends on the setting in Concurrent Program
Ans: a. Parallel
16. What are the Optimizer Modes available in Concurrent Program session control?
All Rows, First Rows, Rules and Choose
17.When you go for best throughput which mode you prefer? Choose one
i. All Rows
ii. Choose
iii. First Rows
iv. Rules
29. What are the various statuses of Running Phase of a concurrent process?
a. Normal
b. Paused
c. Resuming
d. Terminating
30. Using SRS, can you schedule a single request or a set or request to run
automatically? True / False
Ans: True
g:\prints\interview\concurrent managers.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1: What are different types of concurrent manager?
Answer : It is responsible for controlling all other concurrent managers. Its main
task is to make sure that all other concurrent managers are up and running. It
controls other manager through the requests made to the service manager. It also
starts, stops and restarts the service manager for all nodes.
Answer
c) ALL the standard concurrent Manager and special manager continuously poll the
FND_CONCURRENT_REQUESTS table .The job of a concurrent manager is to execute
concurrent requests that are in Pending / Normal phase / status and that it is
qualified to run according to its specialization rules.
Concurrent Manager Processes
� Act independently
� Select only requests that: (a) match the manager specialization rules, (b) are
Pending/Normal, (c) have a requested start time <= sysdate
6: Business user create the task that Concurrent request is taking a lot of time to
complete. What will be your approach for debugging it?
Answer :1) First find the status of the concurrent request. It may be scheduled
later on or it could be pending/standby mode or all the concurrent manager are
occupied running other request. If it is pending/standy, we need to find the
incompatible program running and inform user.Many times the users schedule the
request to run at a later time.
2) Find out the database sid of the concurrent request and check it is waiting on
any locks. We will kill the blocking session to order to complete the job
3) We can run a trace on the request id to find the sql running and then generate
the explain plan for it. You can see if the sid is stuck on particular sql . If it
is particular sql, then it is good to check the statistics of the table involved .
We can look for tuning option for that query
4) We can check the parameters with which the request is run. (For example, once a
user came saying the request is not printing the output. On Checking the possible
things, it was realized that he scheduled the request with print copies = 0.)
7: What happens when the internal concurrent manager dies abruptly? Are all the
managers also killed immediately after it?
Answer: No ALL the standard manager keep running and executing the request. if the
internal manager dies, below queue control request are not performed
8: Does the internal manager run or schedule any request for itself?
Answer :No, the internal manager does not run or schedule any requests. It has
nothing to do with scheduling requests, or deciding which manager will run a
particular request. Its function is only to run �queue control� requests
Answer
We can increase the target processes of the concurrent manager in order to increase
the parallelism. This can be done using define concurrent manager form or through
direct update from sqlplus
10 : If the internal manager goes down, do I need to kill all the managers before
restarting the internal manager?
Answer
No, if the internal manager goes down you need not kill all the managers. You can
simply start the internal manager using startmgr.
Concurrent Manager troubleshooting
11 : What are the problems u have faced while shutting down applications?
Answer
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.
Answer: Internal Monitors are used specifically in PCP to allow for ICM failover to
other available middle tier nodes.
a) Place an Internal Monitor on any node where the ICM can start in case of a
failure.
b) Internal Monitors are seeded on every registered node by default.
c) If the ICM goes down, the Internal Monitor will attempt to start a new ICM on
the local node.
d) If multiple ICMs are started, only the first will stay active. The others will
gracefully exit.
Answer:Yes, you can delete any concurrent manager. For deleting, query for the
manager in the defined concurrent manager form and then delete the row.
Deleting the predefined concurrent managers is not recommended and it should never
be done. Deletion may cause instability in the system.
Answer
In case of parallel concurrent processing, all the managers are assigned a primary
and a secondary node. The managers are started in their primary node by default. In
case of node failure or Oracle instance failure, all the concurrent managers on
that node are switched to their secondary nodes. Once the primary node is available
again the concurrent managers on the secondary nodes are migrated back to the
primary node. During the migration process, a manager may be spread across both
primary and secondary nodes.
16: What are the circumstances in which you need to bounce the concurrent manager?
Answer: There can be many situation where you need to bounce the concurrent manager
Answer:
The concurrent manager hangs due to many reasons. A few of them are:
� Long running jobs
� The internal manager was activated by someone other then owner of the application
system
� The operating system files system is full
� It�s not able to create the log file
� You�ve shut down the internal manager, but actual has a number in it
� The database is hanging may be because the archive log files have filled
� Pending/standby requests are too many
Answer: It can be done using profile options �Concurrent: Use ICM�. Set it to �Y�
to enable Conflict Resolution manager. To disable it, set the profile option to
�N�.
20: How the mechanism of viewing log and output files works from browser?
Answer
The sequence of events is as follows:
1. A user within an Applications session requests to view a log or out file.
2. The browser receives the request and spawns the cgi program FNDWRR.exe
3. FNDWRR.exe logs into the database and queries FND_CONCURRENT_REQUESTS to
discover on which node the files for this request are stored.
4. FNDWRR.exe constructs the service name for the file server on that node. And
makes the tns call to contact the listener for this service name.
5. The listener responds by spawning the local FNDFS executable, as defined in it�s
listener.ora file. Now, FNDFS and FNDWRR.exe are able to communicate directly now,
using RPC calls.
6. FNDWRR.exe requests FNDFS to transfer the file that was selected by the user.
7. FNDFS transfers the file contents to a temporary file directory on the web
server�s node.
8. The web server displays the file contents to the user.
21: Why does the Concurrent manager put a concurrent program into a queue? Why
doesn�t the manager simply let the program run?
Answer: Because at any given point in time a concurrent manager can run no more
than say 10 programs concurrently. This figure of 10 is configurable of course.
First the manager puts a submitted program into a queue, next the manager checks if
there is a slot available (i.e. Less than 10 programs are currently running). If a
slot is found available, the concurrent manager then runs the program, or else it
keeps the concurrent program in a queue with status Pending.
Answer: Service Managers are spawned on the middle-tier nodes of a GSM enabled
system in order to act as an agent of the ICM. When the ICM sees that it needs An
Service Manager to perform some function, such as start a concurrent manager
process, on a middle-tier node, it will make remote procedure control (RPC) calls
to the Apps listener on that node to start the Service manager. Once the Service
manager has been started and initialized, the ICM communicates directly to the SM
through RPC, giving it information to manage the services on that node. The SM is
spawned from the APPS TNS Listener.The APPS TNS Listener must be started on every
middle-tier node in the system, and started by the user that starts ICM (e.g.
applmgr) .TNS Listener spawns Service Manager to run as agent of ICM for the local
node
The Service Manager is started by ICM on demand when needed. If no management
actions are needed on a node a Service Manager will not be started by ICM until
necessary. When ICM exits its Service Managers exit as well.
Answer: The ICM itself and each process spawned by the ICM has an entry in
FND_CONCURRENT_PROCESSES and holds a uniquely named DBMS lock.
The unique lock of the ICM has a format of FNDCPLK_ICM. This database session lock
is the method that the ICM ensures each PMON cycle that manager and service
processes are still alive. If the ICM can get the DBMS session lock of a process,
the ICM will start a new process for that manager or service.
This is the reason you will often see entries like dead process found ,starting new
process in ICM log files.
1) How to set pga size, can you change it while the database is running?
show parameter pga_aggregate_target;
alter system set pga_aggregate_target=100m;
Yes the pga can be changed while the database is up and running.
6) What is an index, how many types of indexes you know? Why you need an index
Index is an oracle object which is used to retrieve the data much faster rather
than scanning entire table.Typically this is like an index page in a book which
contains the links to the pages,where we can go through easily through out the
book.
If index page is not there,we have to search each and every page for our need,so we
use indexes in oracle also to retrive the data quickly.
Types of indexes:
Btree index: Used for searches mostly when used select statements(Ex:pincode)
bit map index: when having low cardinolity (low priority) columns used in the
statements.for example: gender column
function based index: sum(salary), upper(ename), lower(ename)
reverse index: used mostly to increase the speed of inserts (its like btree only
but the key is reverse).
7) What is synonym ?
Synonym is used to hide the complexity of the original object.
for example user �a� has table �t� which user �a� wants to hide the name but user
�b� has to access it.
In this case user �a� can create a synonym on table �t� and give a select
priviledge to user �b�.
SQL> create synonym aishu on t;
SQL> grant select on aishu to b;
View: DBA_SYNONYMS
8) What is sequence?
Sequence is a oracle object which used to create the unique and sequential
numbering for a column
example: employee num,account id
create table employee(id number ,name varchar2(10),salary number);
create sequence aishu_seq start with 1 increment by 1;
insert into employee values (aishu_seq.nextval,�paddu�,120000);
10) What is the difference between Locally managed tablespace and dictionary
managed tablespace?
LMT: Locally Managed Table space stores all the extent mapping or allocation
details in the header of the data file
DMT:Dictionary Managed Table space stores all the extent mapping or allocation
details in the dictionary table called UET$ and FET$
Since everytime an allocation of extents generate some recursive sql on UET$ and
FET$ this is contention in dictionary cache, hence this is not good for performance
of database, but LMT can store this outside of dictionary , coz it stores in header
of the data file.
By Default from 10g the management is LMT only
11) What is Automatic segment space management? and how to find the tablespace in
ASSM?
Oracle will allocates the extents automatically to the table or segment depending
upon the size of the table.We need not to give the storage parameters.
SQL>desc dba_tablespaces;
SQL> select tablespace_name,
allocation_type,segment_space_management,extent_management from dba_tablespaces;
14) How to find the datafiles that associated with particular tablespace? Ex:
System
SQL> desc dba_data_files
SQL> select * from dba_data_files where tablespace_name=�SYSTEM�;
15) How to see which undo tablespace is used for database?
SQL> show parameter undo_tablespace
PROPERTY_NAME
����������
PROPERTY_VALUE
���������������������������
DEFAULT_TEMP_TABLESPACE
TEMP2
17) How to see what is the default block size for a database ?
SQL> show parameter block_size;
Yes it is possible but we have to create multiple DB buffer pools while setting the
required block size parameter.To do that it require database bounce.
For example if you want to have 2k size along with default 8k
SQL> show parameter db_2k_cache_size
SQL>alter system set db_2k_cache_size=100M scope=spfile;
SQL>shut immediate
Now we can create the table space using new 2k block size
example:SQL>
create tablespace test_2k datafile �/u01/oradata/paddu/test2k.dbf� size 100M block
size 2k;
20) Can you change the blocksize once the database is created?
Obsolutely no becoz once the datafiles is formatted into 8k we cannot change the
database block sizes , if you need, you have to create fresh database with new
block size and restore from backup or import.
21) Can you change the database name once the database is created?
Yes we can but the database has to be shutdown and also this will change all of the
headers of the files
Option 1
1) Using NID utility
a)SQL>alter database close;
b) nid target=sys as sysdba dbname=ketan(this will change the control files and
headers of the datafiles with the correction of new name)
c)cd $ORACLE_HOME/dbs
d) cp initaishu.ora initketan.ora
e)vi initketan.ora
find db_name parameter and change it to ketan
f)vi /etc/oratab
change the name aishu to ketan
g) . oraenv
set the variable ORACLE_SID=ketan
f) startup the database
SQL> startup (but the database open will error out since the datbase should open
with resetlogs)
h) alter database open resetlogs;
Option 2
By changing the control file
a)alter database backup control file to trace;
22) Can you change the instance name once the database is created?
SQL>alter system set instance_name=�test� scope=spfile;
shut immediate;
cp spfilepaddu.ora spfilekarthika.ora
export ORACLE_SID=karthika
startup
desc dba_data_files;
28) Where you can see the tempfile or tablespace information?(for a particular
database)
desc dba_temp_files;
desc dba_tablespaces;
30) What is the difference between a role and privilege , can you provide an
example?
Set of priviliges is nothing but a role.
providing authorisation to an user such as
create,alter,delete,drop,truncate,insert,update.
role_tab_privs can be used to know what are all the object privileges assigned to
that role
dba_role_privs can be used to know the grantees assigned to that role
For privileges:-
dba_tab_privs: can be used to know what all privileges assigned to a user
SQL> select grantee,owner,table_name,grantor,privilege from dba_tab_privs where
grantee=�AISHU�;
32) What is the difference between with grant option and with admin option while
assigning privileges?
Grant option : We can grant that grant to other user
admin option : can be used for sysdba privileges to grant other
grant select on T to aishu with grant option;
Aishu can grant select on table T to any one;
36) What are constraints? Can you list them and when will you use them?
Constrains in oracle are use to protect the integrity of the data.
for example a not null constraint will not allow any null value in the column
a unique constraint will not allow any duplicate value in the column
a primary key constraint will not allow any duplicate value and null in the
column.
a foreign key constraint will be from the one of the primary key of the table which
means data must resides in the primary key table(Master list table)
37) What is Row chaining? When does it occur? where can you find it? What is the
solution?
When the row is not adequate to fit in the block while inserting oracle will insert
half row in one block and half in another block leaving a pointer between these
two blocks.
select table_name,chain_cnt from dba_tables where table_name=�tablename�;
Solutions:
create a table with bigger the block size
1) Create tablespace ts data file �/u01/oradata/aishu/paddu.dbf� size 100m
blocksize 16k;
2) alter table employee move to ts;
Here TS is the tablespace name with bigger size, before creating tablespace it is
assumed that you have created a db buffer cache for it.
38) What is row migration? When does it occur? Where can you find this information?
Row migration happens when update occurs at one column and the row is not adequate
to fit in the block then the entire row will be moved to the new block.
41) How to create a database manually , can you provide steps briefly?
1) create a parameter file in /dbs directory with necessary parameters like
db_name,instance_name,control file locations,sga_max_size etc..
2)create necessary directories for datafiles,trace files,redo log files, control
files according OFA
3)prepare the create db command
4)create catalog views (compile,invalid)
5)add entries in listner.ora,tnsnames.ora
6) add entry in /etc/oratab
44) Do you know about statistics , what is the use of it? What kind of statistics
exists in database?
Statistics is a collection information about data or database
There are different types of statistics that oracle maintains-
1)System-Statistics: statistics about the hardware like cpu speed,I/O speed,read
time write time etc : select * from aux_stats$
2)Object statistics : For a table oracle collects the information about no.of
rows,no.of blocks,avg row length etc.We can view
SQL>select table_name,num_rows,blocks,avg_row_len from dba_tables
for index oracle collect statistics on index column about no.of rows,no.of root
blocks,no.of branch blocks,no.of leaf blocks,no.of distinct values etc.
These statistics wil help the query execution engine called optimizer to determine
how best the data can the accessed
50) How to move datafiles from one location to another location? Can you provide
the steps?
1.Connect as SYS DBA with CONNECT / AS SYSDBA command.
2.Make offline the affected tablespace with ALTER TABLESPACE <tablespace name>
OFFLINE; command.
3.Copy the datafiles from old location to new location using OS cp
4.Modify the name or location of datafiles in Oracle data dictionary using
following command syntax:
ALTER database RENAME DATAFILE ?<old location>? TO ?<new location>�;
5.Bring the tablespace online again with ALTER TABLESPACE alter tablespace
<tablespace name> ONLINE; command
51) What is profile? what is the benefit of profile? Where do you see the
information of profiles? Provide an example of profile?
Profile is a set of properties assign to an user
For an example password complexity,password reuse,password expiry,idle time etc
SQL>desc dba_profiles;
SQL> select username,profile from dba_users;
Note: with grant option provides user to grant the privilege to other users as
well, kind of admin
56) Can you delete alert log while database is up and running?
Yes database can create a new alert log file,but whenever any activity happens in
the database it creates a new alert log file
Yes one can delete or move the alert log file while the database is up and running
there will be no impact,oracle will automatically creates a new alert log if it not
found any in the directory
PL/SQL program can control the context area and what happens to it as
the statement is processed. Two important features about the cursor are implict and
explict cursors
59) Can you tell various dynamic views you know about and their purpose?
Row exclusive � Any DML that happens on any row locks as exclusive so that no one
can modify
Row shared � Select statement ran, during that period the rows will be in shared
mode so that no modification to be done until that select retrieve all rows.
Table Lock � When an update statement ran on column , no other can moidfy the
structure of table, and allow row exclusive
v$sgastat : Displays information about sga individual pool sizes and also displays
free memory in the sga
SQL> select * from v$sgastat;
v$sga_resize_ops : Displays information about sga resize operation when sga target
is set
SQL> select * from v$sga_resize_ops;
V$ views are dynamic and populated from base table like X$BH and USER$ etc etc
DBA_** views are the the views built on top of v$ views in combination. for example
v$session has been built from v$session,user$ etc
60) Where to view the session information?
If you do not know the sid replace with any column information you know in where
condition.
67) Explain the difference between a data block, an extent and a segment.
Data block is a lowest level storage structure, a block cannot span multiple
extents
Extent is a set of block which resides inside the table space, an extent cannot
span multiple segments
Segment is set of extents nothing but an object, a segment can spawn multiple
datafiles
68) How to get the DDL of a table or index? i.e create statement?
SQL> select dbms_metadata.get_ddl(�AISHU�,�T�,�TABLE�) from dual
SQL> select dbms_metadata.get_ddl(�TABLE�,�T�,�AISHU�) from dual;
DBMS_METADATA.GET_DDL(�TABLE�,�T�,�AISHU�)
���������������������������
For user
DBMS_METADATA.GET_DDL(�USER�,�AISHU�)
���������������������������
Log switch occurs when the current redo log is full and the log writer has to go to
next redo log group.
72) How to set the log archive destination? can we have multiple destinations for
archivelogs?
Yes we can have multiple destination for achivelogs
we can have 30 destination from 11g onwards
to see destiantion you can use follow and set accordingly
System altered.
System altered.
SQL> alter system set log_archive_dest_2=�location=/u01/archives/paddu�
scope=memory;
System altered.
SQL>
78) Can you drop the redo log groups while the database is up and running?
Yes we can drop the redolog group but the redo log should be inactive
79) Can you drop the system tablespace, if so what happened to database?
No we can�t drop the system tablespace.Oracle will not allow it
80) Can you drop the normal tablespace, if so what happened to database?
Yes we can drop the normal table spaces but the associated objects will be dropped
but the table space should be empty if not we have to use
SQL>drop tablespace tablespace name including contents;
if you want to drop the associated datafiles also with table space we should use
SQL>drop tablespace tablespace name including contents and datafiles;
81) What is the difference between Oracle home and oracle base
ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath
ORACLE_BASE is where the oracle products reside.
83) How to kill the blocking session, how to find the blocking session?
We have to find the blocking session information by using
SQL>select sid,username,serial#,status,event,blocing_session from v$session where
username=�SYS�;
Now check the blocking_session column for the sid that is blocking and confirm with
the application team to kill
Now execute
SQL> alter system kill session �sid,serial#� immediate;
alternatively we can also find the lock informatin in v$lock
84) Can you kill the pmon or smon or ckpt ? what happens to database?
These are all the mandatory process to run the database.if we kill any of the
process the DB will be crash.
I have also kept SGA_MAX_SIZE=400M in pfile and started the database which one the
Oracle consider, 410M or 400M
410M, if the sga_max_size is lesser than the all pools total if specified in pfile
then sga_max_size parameter is ignored.
86) List Process you follow to start looking into Performance issue at database
level (If the application is running very slow, at what points do you need to go
about the database in order to improve the performance?)
Answer ( Although i have never worked directly on performance issues, the below can
be steps)
Run a TOP command in Unix to see CPU usage (identify CPU killer processes)
Run VMSTAT, SAR, and PRSTAT command to get more information on CPU and memory usage
and possible blocking
Run AWR report to identify:
1. TOP 5 WAIT EVENTS
2. RESOURCE intensive SQL statements
See if STATISTICS on affected tables needs to be re-generated
IF poorly written statements are culprit, run a EXPLAIN PLAN on these statements
and see whether new index or use of HINT brings the cost of SQL down.
89) How to know how many oracle homes or oracle instances exists in database host?
Once the oracle installation is completed the installer will update the file called
/etc/oratab with new home with this file we can find how many homes are existed
To find how many instances are running use
ps -eaf | grep pmon
Tns entry is a address to the database host and database written in the
tnsnames.ora, generally tnsnames.ora located at $ORACLE_HOME/network/admin
95) How to set the same password to oracle user when the password is expired?
select username,password from dba_users where username=�username�;
SQL>alter user username identified by values �above password�;
Tablespace created.
System altered.
Fastest Way, since the original import will not happen only metadata creation will
happen, as the transportable import has been performed, In TTS the associated
datafiles will be attached to new user , hence the datafiles with existing
object(tables/indexex etc) will be point to new user.
g:\prints\interview\crsctl.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CRSCTL commands in Oracle 11g Release 2
How to shutdown CRS on all nodes and Disable CRS as ROOT user:
-------------------------------------------------------------
#crsctl stop crs
#crsctl disable crs
How to Enable CRS and restart CRS on all nodes as ROOT user:
-----------------------------------------------------------
#crsctl enable crs
#crsctl start crs
#/etc/init.d/init.crs start
#/etc/init.d/init.crs stop
#/etc/init.d/init.cssd stop
#/etc/init.d/init.cssd start
g:\prints\interview\Database Architecture.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Database Architecture
Shared pool
============
The size of shared pool is defined by the parameter called shared_pool_size .
Shared pool contains many components but important components are
library cache,data dictionary cache and control structure .
Library cache
=============
Lib cache consists of shared sql and pl/sql area .
SQL and PL/SQL area stored most recently used sql and pl/sql statements .
We cannot declare the size of lib cache ,but it is complete based on shared pool
size .
If the size of lib cache is small ,the statements are continously reload in the lib
cache which
can effect the performance .
It is managed through LRU.
The data dictionary cache also known as row cache ,because it store the infromation
in the form of rows instead of buffers.
If the size of DDC is small ,then database has to query database tables repeatedly
which degarde the performance.
Control Structure
=================
Locking information will be stored in control structure.
1)
DB_KEEP_CACHE_SIZE
==================
It will retain the block in the memory which are likely to be used.
DB_RECYCLE_CACHE_SIZE
====================
It will eliminate the blocks from memory which are having little chances of being
used .
Buffer modes
+++++++++++
unused
++++++++
The buffer is ready to use or available to use ,as it was never used .
Cleaned
+++++++++
The data has been written to database and available for use .
dirty
++++
The data has been modified but not written to the disk .
JAVA POOL
=========
The size of java_pool is defined by the parameter called java_pool_size.
If you want to execute java commands inside the database then java pool will be
used.
Whenever you run dbca,netca etc the memory is allocated from java pool .
Large pool
==========
The size of large_pool is defined by the parameter called large_pool_size.
Whenever a rman session is initiated the memory is allocated from large pool and
once finished the memory is de allocated.
It does not follow LRU algorithm.
g:\prints\interview\database creation.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database Creation in Easy 6 Steps
==================================:
Step1:
Create Necessary Directory Structure using LINUX -- �MKDIR� command
Step2:
Create the Parameter File.
db_name=my1
instance_name=my1
compatible=11.2.0
control_files=/u01/app/oracle/oradata/my1/control01.ctl
undo_tablespace=u01
sga_target=300m
diagnostic_dest=$ORACLE_BASE
:wq!
Step3:
Step4:
Create the Control File ..
Vi dbScript.sql
Step5:
Run the control script at database level
Step6:
Run these post script (below)
SQL> @$ORACLE_HOME/rdbms/admin/catalog.sql
This script to create data Dictionary tables,
SQL> $ORACLE_HOME/rdbms/admin/catproc.sql
script to create procedure And packages
g:\prints\interview\dataguard interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle DBA Interview Questions and Answers - Dataguard
What is Dataguard?
Data Guard provides a comprehensive set of services that create, maintain, manage,
and monitor one or more standby databases to enable production Oracle databases to
survive disasters and data corruptions. Data Guard maintains these standby
databases as copies of the production database. Data Guard can be used with
traditional backup, restoration, and cluster techniques to provide a high level of
data protection and data availability.
What is DG Broker?
DG Broker �it is the management and monitoring tool�.
Oracle dataguard broker is a distributed management framework that automates and
centralizes the creation , maintenance and monitoring of DG configuration.
All management operations can be performed either through OEM, which uses the
broker (or) broker specified command-line tool interface �DGMGRL�.
Dataguard :
Dataguard is mechanism/tool to maintain standby database.
The dataguard is set up between primary and standby instance .
Data Guard is only available on Enterprise Edition.
Standby Database :
Physical standby database provides a physically identical copy of the primary
database, with on disk database structures that are identical to the primary
database on a block-for-block basis.
Standby capability is available on Standard Edition.
What are the differences between Physical/Logical standby databases? How would you
decide which one is best suited for your environment?
Physical standby DB:
As the name, it is physically (datafiles, schema, other physical identity) same
copy of the primary database.
It synchronized with the primary database with Apply Redo to the standby DB.
Logical Standby DB:
As the name logical information is the same as the production database, it may be
physical structure can be different.
It synchronized with primary database though SQL Apply, Redo received from the
primary database into SQL statements and then executing these SQL statements on the
standby DB.
We can open �physical stand by DB to �read only� and make it available to the
applications users (Only select is allowed during this period). we can not apply
redo logs received from primary database at this time.
We do not see such issues with logical standby database. We can open the database
in normal mode and make it available to the users. At the same time, we can apply
archived logs received from primary database.
What is the Default mode will the Standby will be, either SYNC or ASYNC?
ASYNC
Dataguard Architecture
The Oracle 9i Data Guard architecture incorporates the following items:
Primary Database:
A Data Guard configuration contains one production database, also referred to as
the primary database, that functions in the primary role. This is the database that
is accessed by most of your applications.
Standby Database:
A standby database is a transactionally consistent copy of the primary database.
Using a backup copy of the primary database, you can create up to nine standby
databases and incorporate them in a Data Guard configuration. Once created, Data
Guard automatically maintains each standby database by transmitting redo data from
the primary database and then applying the redo to the standby database.
The types of standby databases are as follows:
What are the services required on the primary and standby database ?
The services required on the primary database are:
� Log Writer Process (LGWR) - Collects redo information and updates the online redo
logs. It can also create local archived redo logs and transmit online redo to
standby databases.
� Archiver Process (ARCn) - One or more archiver processes make copies of online
redo logs either locally or remotely for standby databases.
� Fetch Archive Log (FAL) Server - Services requests for archive redo logs from FAL
clients running on multiple standby databases. Multiple FAL servers can be run on a
primary database, one for each FAL request. .
The services required on the standby database are:
� Fetch Archive Log (FAL) Client - Pulls archived redo log files from the primary
site. Initiates transfer of archived redo logs when it detects a gap sequence.
� Remote File Server (RFS) - Receives archived and/or standby redo logs from the
primary database.
� Archiver (ARCn) Processes - Archives the standby redo logs applied by the managed
recovery process (MRP).
� Managed Recovery Process (MRP) - Applies archive redo log information to the
standby database.
Maximum Availability
This protectionmode provides the highest level of data protection that is possible
without compromising the availability of a primary database. Transactions do not
commit until all redo data needed to recover those transactions has been written to
the online redo log and to at least one synchronized standby database. If the
primary database cannot write its redo stream to at least one synchronized standby
database, it operates as if it were in maximum performance mode to preserve primary
database availability until it is again able to write its redo stream to a
synchronized standby database.
This mode ensures that no data loss will occur if the primary database fails, but
only if a second fault does not prevent a complete set of redo data from being sent
from the primary database to at least one standby database.
Maximum Performance
This protectionmode provides the highest level of data protection that is possible
without affecting the performance of a primary database. This is accomplished by
allowing transactions to commit as soon as all redo data generated by those
transactions has been written to the online log. Redo data is also written to one
or more standby databases, but this is done asynchronously with respect to
transaction commitment, so primary database performance is unaffected by delays in
writing redo data to the standby database(s).
This protection mode offers slightly less data protection than maximum availability
mode and has minimal impact on primary database performance.
This is the default protection mode.
Maximum Protection
This protection mode ensures that zero data loss occurs if a primary database
fails. To provide this level of protection, the redo data needed to recover a
transaction must be written to both the online redo log and to at least one
synchronized standby database before the transaction commits. To ensure that data
loss cannot occur, the primary database will shut down, rather than continue
processing transactions, if it cannot write its redo stream to at least one
synchronized standby database.
Because this data protection mode prioritizes data protection over primary database
availability, Oracle recommends that a minimum of two standby databases be used to
protect a primary database that runs in maximum protection mode to prevent a single
standby database failure from causing the primary database to shut down.
A standby database automatically applies redo logs when they arrive from the
primary database. But in some cases, we want to create a time lag between the
archiving of a redo log at the primary site, and the application of the log at the
standby site.
DB_NAME=chicago
DB_UNIQUE_NAME=chicago
LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,boston)'
CONTROL_FILES='/arch1/chicago/control1.ctl', '/arch2/chicago/control2.ctl'
LOG_ARCHIVE_DEST_1=
'LOCATION=/arch1/chicago/
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=chicago'
LOG_ARCHIVE_DEST_2=
'SERVICE=boston LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=boston'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
LOG_ARCHIVE_MAX_PROCESSES=30
DB_NAME=chicago
DB_UNIQUE_NAME=boston
LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,boston)'
CONTROL_FILES='/arch1/boston/control1.ctl', '/arch2/boston/control2.ctl'
DB_FILE_NAME_CONVERT='chicago','boston'
LOG_FILE_NAME_CONVERT=
'/arch1/chicago/','/arch1/boston/','/arch2/chicago/','/arch2/boston/'
LOG_ARCHIVE_FORMAT=log%t_%s_%r.arc
LOG_ARCHIVE_DEST_1= 'LOCATION=/arch1/boston/
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=boston'
LOG_ARCHIVE_DEST_2= 'SERVICE=chicago LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=chicago'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
STANDBY_FILE_MANAGEMENT=AUTO
FAL_SERVER=chicago
FAL_CLIENT=boston
g:\prints\interview\dataguard protection modes.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Protection Modes
=================:
Maximum Performance
===================
Default protection mode with the primary concern on the performance. In this mode,
transaction commits as soon as redo data written to the local redo logs. It
provides less data protection compared to other modes.
Maximum Availability
===================
Highest level of data protection while the primary database is available.
Transaction commits, when redo written to the local redo logs and at least one
standby location. In case of no standby location is available, the primary doesn�t
shut down and continue to generate redo entries.
Maximum Protection
==================
No (Zero) data loss. Redo entries must be written to the local online redo logs and
at least one standby location before a transaction commits on primary. Primary will
shut down if it can�t write redo to the standby database.
Some terminology
Switch-over
Switch-over is planned role changes between primary and standby databases usually
to allow maintenance activities to be performed on primary.
Fail-over
On the other hand, Fail-over occurs in the event of taking the primary database
offline (can be because of unplanned failure). In this case one of the standbys
becomes new primary and original primary may need to be rebuilt.
The main difference between switchover and failover is primary database is still
available in the case of switchover.
g:\prints\interview\dataguard.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Required parameters:
Note:
Master Table :
The Master Table is created in the schema of the current user running the Pump Dump
export or import, and it keeps tracks of lots of detailed information.
The Master Table is used to track the detailed progress information of a Data Pump
job.
Note : The Master Table is the key to Data Pump�s restart capability in the event
of a planned or unplanned job stoppage.
The keep_master parameter can be set to Y to retain the Master Table at the end of
a successful job for debugging purposes
The name of the Master Table is the same as the Data Pump job name and has the
following columns:
1.To divide the loading and unloading of data and metadata tasks and handle the
worker processes;
2.To manage the information in the Master Table and record job activities in the
log file.
Worker Process:
�This handles the request assigned by the master control process. This process
maintains the current status of the job, like : �pending� or �completed� or
�failed�.
�The worker process is responsible for loading and unloading data and metadata.
�The number of worker processes needed can be defined by assigning a number to the
parallel parameter.
Shadow Process :
�This process is created when a client logs into the Oracle server.
�The shadow process creates a job, which primarily consists of creating the Master
Table, creating the queues in Advanced Queues (AQ) used for communication among the
various processes, and creating the master control process.
�Once a job is running, the shadow process� main job is to check the job status for
the client process. If the client process detaches, the shadow process goes away;
however, the remaining Data Pump job processes are still active.
�Another client process can create a new shadow process and attach to the existing
job.
g:\prints\interview\datapump scenario.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Datapump Scenarios - Frequently Asked
======================================:
Q. How to split the datapump dumpfiles, into multiple and at multiple directories ?
PARALLEL parameter is used to improve the speed of the export.
This will be also more effective if you split the dumpfiles with DUMPFILE parameter
across the filesystem.
Create 2 or 3 directories in different filesystems and use the commands
effectively.
Q. How to import the dumpfile if the Database version are not same ?
VERSION parameter is used while taking export if you want to create a dumpfile
which should be imported into a DB which is lower than the source DB
Example:
If your source DB is 11g and target DB is 10g, you can't use the dumpfile taken
from 11g expdp utility to import into 10g DB.
If you don�t use this VERSION parameter, then it will show you the error as Below
1) Import of full database should be split as tables first and indexes next. Use
the parameter exclude effectively to improve the speed of import.
EXCLUDE = INDEX,STATISTICS
This will not import the indexes and statistics which in turn only import the
tables, hence improving the performance
2)Always set init.ora parameter cursor_sharing to exact which has a good effect on
import's performance.
The above command gives all the CREATE USER statements and CREATE TABLESPACE
statements
which will be useful in many cases.
Note: You can also get the INDEXES and TABLES creation ddl from the dumpfile as
well.
I�ll be updating the post whenever I come across things that can help improving the
performance of datapump.
g:\prints\interview\Datapump.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TABLE_EXISTS_ACTION during IMPORT (IMPDP)
In data pump import the parameter TABLE_EXISTS_ACTION help to do the job. The
default value of this parameter is SKIP which means if table to be imported already
existed in the database table will be skipped and data not to be imported and
continue processing next object. However if in your import job if CONTENT=DATA_ONLY
is specified, the default is APPEND, and then data will be appended into existing
table.
2)APPEND: This option loads rows from the source and leaves existing rows
unchanged. This is a default option is CONTENT=DATA_ONLY is specified.
3)TRUNCATE: This option deletes existing rows and then loads rows from the source.
4)REPLACE: This option drops the existing table in the database and then creates
and loads it from the source. This is not a valid option if the CONTENT parameter
is set to DATA_ONLY.
Note
- If you use TRUNCATE or REPLACE, make sure that rows in the affected tables are
not targets of any referential constraints.
- If you use SKIP, APPEND, or TRUNCATE then existing table dependent objects in the
source, such as indexes, grants, triggers, and constraints, are ignored. In case of
REPLACE, the dependent objects are dropped and again created from the source, if
they were not explicitly or implicitly excluded (using EXCLUDE) and they exist in
the source dump file or system.
- If you use APPEND or TRUNCATE, checks are made to ensure that rows from the
source are compatible with the existing table prior to performing any action. If
the existing table has active constraints and triggers, it is loaded using the
external tables access method. If any row violates an active constraint, the load
fails and no data is loaded. You can override this behavior by specifying
DATA_OPTIONS=SKIP_CONSTRAINT_ERRORS on the Import command line.
If you want data must be loaded but causes constraint voilations, you can disable
constraints, import data, delete the rows which causes problems and then enable
constraints.
- When you use APPEND, the data is always loaded into new space. So if you have any
existing space available the space is not reused. So after the import operation,
you may wish to compress your data after the load.
In case of original import use ignore=y option to append data into an existing
table. ignore=y causes rows to be imported into existing tables without any errors
or messages being given.
ASMCMD> lsdg
ASMCMD> cd FRA/TESTDB/EXPDP
ASMCMD> ls
dumpfile1.dmp
dumpfile2.dmp
dumpfile3.dmp
ASMCMD> cp dumpfile1.dmp dumpfile1.dmp dumpfile1.dmp /oracle/backup/testdb/expdp
copying +FRA/TESTDB/EXPDP/dumpfile1.dmp ->
/oracle/backup/testdb/expdp/dumpfile1.dmp
copying +FRA/TESTDB/EXPDP/dumpfile2.dmp ->
/oracle/backup/testdb/expdp/dumpfile2.dmp
copying +FRA/TESTDB/EXPDP/dumpfile3.dmp ->
/oracle/backup/testdb/expdp/dumpfile3.dmp
ASMCMD> exit
$cd /oracle/backup/testdb/expdp/
$ls -lrt dumpfile*.dmp
dumpfile1.dmp
dumpfile2.dmp
dumpfile3.dmp
ASMCMD> lsdg
ASMCMD> cd FRA/TESTDB/IMPDP
ASMCMD> ls
ASMCMD> cp /oracle/backup/testdb/expdp/dumpfile1.dmp '+FRA/TESTDB/EXPDP/'
copying /oracle/backup/testdb/expdp/dumpfile1.dmp ->
+FRA/TESTDB/EXPDP/dumpfile1.dmp
ASMCMD> cp /oracle/backup/testdb/expdp/dumpfile2.dmp '+FRA/TESTDB/EXPDP/'
copying /oracle/backup/testdb/expdp/dumpfile2.dmp ->
+FRA/TESTDB/EXPDP/dumpfile2.dmp
ASMCMD> cp /oracle/backup/testdb/expdp/dumpfile3.dmp '+FRA/TESTDB/EXPDP/'
copying /oracle/backup/testdb/expdp/dumpfile3.dmp ->
+FRA/TESTDB/EXPDP/dumpfile3.dmp
ASMCMD> ls
dumpfile1.dmp
dumpfile2.dmp
dumpfile3.dmp
How to create Datapump Export Dumps within ASM diskgroups
Schema Status
-------------
select username,account_status,default_tablespace from dba_users where
username=upper('&username');
select owner,sum(bytes)/1024/1024 "SIZE in MB" from dba_segments where
owner=upper('&owner') group by owner;
select owner,object_type,count(*) from dba_objects where owner=upper('&owner') and
object_name not like 'BIN$%' group by object_type,owner order by object_type;
EXPORT (EXPDP)
We can create export dumps to the ASM diskgroups. But we can�t write expdp log to
ASM (as it is a text file).
$vi schema_export_in_ASM.par
user_id="/ as sysdba"
directory=DATAPUMP_ASM_DIR
dumpfile=source_schemaname_expdp_%U.dmp
logfile=DATAPUMP_LOG_DIR:schema_export_in_ASM.log
schemas=schema1,schema2
exclude=statistics
parallel=6
compression=all
cluster=n ---- 11g
:wq
$nohup expdp parfile=schema_export_in_ASM.par &
$tail -f nohup.out or
$tail -f schema_export_in_ASM.log
Optional Parametrs:
------------------
ESTIMATE={BLOCKS | STATISTICS}
FLASHBACK_SCN=scn_number
FLASHBACK_TIME="TO_TIMESTAMP()"
The Import ESTIMATE parameter is valid only if the NETWORK_LINK parameter is also
specified.
The FLASHBACK_SCN parameter is valid only when the NETWORK_LINK parameter is also
specified. This is because the value is passed to the source system to provide an
SCN-consistent data extraction.
This parameter is valid only when the NETWORK_LINK parameter is also specified.
This is because the value is passed to the source system to provide a time-
consistent import.
How Datapump works internally? What resources will be utilized at Network level,
in Memory level?
EXPORT STATUS
-------------
jobs
or
ps -ef| grep expdp or ps -ef| grep exp or ps -ef|grep <processid>
or
ls -lrth
tail -f nohup.out
tail -f SOURCE_TABLENAME_EXP.log
cat SOURCE_TABLENAME_EXP.log
(OR)
EXPORT STATUS
-------------
$expdp attach=<JOB_NAME>
username: / as sysdba
EXPDP>STATUS
IMPORT STATUS
------------
jobs
or
ps -ef| grep impdp or ps -ef| grep imp or ps -ef|grep <processid>
or
ls -lrth
tail -f nohup.out
tail -f IMPORT_SOURCE_TABLENAME_EXP.log
cat IMPORT_SOURCE_TABLENAME_EXP.log
(OR)
IMPORT STATUS
------------
$impdp attach=<JOB_NAME>
username: / as sysdba
IMPDP>STATUS
CTRL+C
IMPDP>ATTACH=SOURCE_TABLE_IMPORT
IMPDP>STATUS
IMPDP>STOP_JOB=IMMEDIATE (OR) KILL_JOB
g:\prints\interview\db patching.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Database Patching (OPatch)
Patch is required for any bug fix or some additional features. Databse patches are
mainly applied for security fixes, Priority fixes and patchset is used for
upgradation like 10.2.0.1 to 10.2.0.4.
Critical Patch Update(CPU): These are the patches for security fixes and released
each quarter.
Patch Set Update(PSU): These are cumulative patches that include both security
fixes and priority fixes. PSU are the minor version upgrades (e.g., 11.2.0.1.1 to
11.2.0.1.2).
Once PSU is applied, PSU has to be applied each quarter till we upgrade our
database to new base version.
Patches are downloaded from metalink (My Oracle Support) and it has readme.txt file
with the patching instructions and we can follow as suggested by oracle with read
me file.
* Database Version
* OS version
* Opatch Version
* Download CPUJan2012 patch for 11.2.0.2.0
* Unzip the patch and read the instructions from read me file.
* Sessions Status
* Invalid objects
* Shutdown database and listner.
* Backup the $ORACLE_HOME and Inventory
* Go to patch directory : Opatch apply
* Apply Opatch
* Verify the status of patch applied
Post Installation
$ORACLE_HOME/cfgtoollogs/opatch
export ORACLE_HOME=/u03/oracle/JECLN/u01/oracle/PROD/db/tech_st/11.1.0/
export PATH=$PATH:
$HOME/bin:/u03/oracle/JECLN/u01/oracle/PROD/db/tech_st/11.1.0/OPatch/
export PATH=$PATH:$ORACLE_HOME/Opatch
g:\prints\interview\dba interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Q. What is the difference between process and thread.
Creation of new process requires new resources and Address space whereas the thread
can be created
in the same address space of the process which not only saves space and resources
but are also easy to
create and delete, and many threads can exists in a process.
Q. What is PGA ?
PGA - Program Global Area
or the Process Global Area is a memory region that contains
data and control information for a single
server process or a single background process.
The PGA is allocated when a process is created and de-allocated when the process is
terminated.
PGA is an area that is used by only one process.
Statement failure failed SQL is automatically rolled back and an error is returned
to user.
User Process failure abnormal disconnect PMON detects and rollsback and releases
locks.
User Error (drop table, data) DBA is required to recover data (import or incomplete
recovery)
Media Failure Loss or corruption of files DBA needs to apply appropriate recovery.
Instance Failure Abnormal shutdown Instance simply needs restarted, SMON auto
recovers by:
-Rolling forward changes in the redo log not recorded in the data files before
Open of database.
-Rollbacks can occur after the database is open, when block data is requested.
Q. When should more than one DB writer process be used? How many
should be used?
If the UNIX system being used is capable of asynchronous IO then only one is
required,
if the system is not capable of asynchronous IO then up to twice the number of
disks used by Oracle number of DB writers should be specified by use of the
db_writers initialization parameter
Tell me the two methods you could use to determine what DDL changes have been made.
Logminer or Streams
Q. Locally Managed TEMP Tablespace is 100% FULL and there is no space available to
add datafile to increase TEMP tablespace. What can you do that might free up TEMP
space?
A.) You can try one of the following to free up TEMP space
1. Issue ALTER TABLESPACE PCTINCREASE 1 followed by
ALTER TABLESPACE PCTINCREASE 0 command;
2. Close some of the idle sessions connected to the database
2.Beside the DBAs and system administrators, who has access to the "Oracle"
operating system account?
4.Are the DBAs co-located with the teams they support? How is capacity planning
performed?
1. Creates a new incarnation of the database, putting a new SCN in all data file
headers.
2. Reset Log Sequence number to 1
3. Reformats ONLINE REDO LOGFILES if they exists
What is Row chaining and how can you find it? and how you will resolve the issue ?
When you are inserting record if a row is not fit into the single block� it will
chain across multiple blocks leaving a pointer between these blocks.
To Overcome :
create a table with bigger the block size
1) Create tablespace tbs1 data file �/u01/oradata/test/data01.dbf� size 100m
blocksize 16k;
2) alter table tablename move to tbs1;
Here tbs1 is the tablespace name with larger block size and before creating
tablespace it is assumed that you have created a db buffer cache for it.
What is row migration? When does it occur? Where can you find this information?
Row migration happens when update occurs at one column and the row is not adequate
to fit in the block then the entire row will be moved to the new block.
Do you know about statistics , what is the use of it? What kind of statistics
exists in database?
Statistics is a collection information about data or database
There are different types of statistics that oracle maintains-
1)System-Statistics: statistics about the hardware like cpu speed,I/O speed,read
time write time etc : select * from aux_stats$
2)Object statistics : For a table oracle collects the information about no.of
rows,no.of blocks,avg row length etc.We can view
SQL>select table_name,num_rows,blocks,avg_row_len from dba_tables
for index oracle collect statistics on index column about no.of rows,no.of root
blocks,no.of branch blocks,no.of leaf blocks,no.of distinct values etc.
Sql>select a.SID "Blocking Session." ,b.SID "Blocked Session" from v$lock a, v$lock
b
where a.SID != b.SID and a.ID1 = b.ID1 and a.ID2 = b.ID2 and b.request > 0
and a.block = 1;
g:\prints\interview\dba questions.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.what is regular activities in current project?
Ans)Monitoring Databse(checking alert log file,issues related to freespace and used
space),Creating Users,Tablespaces,other database objects,Taking Backup(Hot &
Cold),Recovery of the dbarabase in case of disaster,User Management,Tablespace
amnagement,Statspack report,explainplan tkprof...Dblinks,Net8config
7.what is the difference ALTER DATABASE BACKUP CONTROLFILE TO TRACE and ALTER
BACKUP CONTROLFILE TO����/BACKUP/�..CONTROLFILE
14.one table is missing 11.30am.dba found 12.30.? what should you do as DBA?
Ans)
1.shutdown the database
2.take a fresh coldbackup in to 12:30 cold directory
3.restore from the yesterdays coldbackup
4.startup mount
5.alter database recover automatic using backup control file until time "2007-04-
04:11:29:00"
6.Alter database open reset logs
7.$exp file=scott_emp.dmp log=scott_emp.log tables=scott.emp
8.conn as sysdba
9.restore 12:30 cold backup
10.startup the database and import the dumpfile
$imp file=scott_emp.dmp log=scott_emp.log
fromuser=scott touser=scott.
REDOFILES
Ans) 1.shut abort
2.restore all dbf files from the backup
3.startup mount
4.alter databse recover automatic until cancel
5.recover cancel
6.alter database open reset logs.
(3) Now everything goes as normal....New Records are inserted into the Datafile and
Records are updating as normal.....normal means what will happen when tablespace is
out of backup mode Except only two things
(4) Once u put of the Backup mode,. Latest SCN will be updated in the Datafile
Headers syncronizing with Database SCN.
(5) If any recovery is needed, Oracle will apply all the archived log files from
Freezed SCN to Latest SCN.
-------------------------------------------------------------------
when tablespace is in the begin backup mode, Database writer does its works as
normal means, it writes the data to data files when check point occurs wether it is
commited or uncommited transactions
Starting with 9i, the rollback segment way is referred to as Manual Undo Management
Mode and the new Undo Tablespaces method as the Automatic Undo Management Mode.
Although both rollback Segments and Undo Tablespaces are supported in Oracle 9i,
Both modes cannot be used. System Rollback segment exists in both the modes. Since
we are all familiar with the manual mode, lets look at the features of the
Automatic Undo Management (Undo Tablespaces )
Init.ora Parameters for Automatic Undo Management
UNDO_MANAGEMENT : This parameter sets the mode in which oracle manages the Undo
Information.
The default value for this parameter is MANUAL so that all your old init.ora files
can be used without any changes. To set the database in an automated mode, set this
value to AUTO. ( UNDO_MANAGEMENT = AUTO)
UNDO_RETENTION : This value specifies the amount of time, Undo is kept in the
tablespace. This applies to both committed and uncommitted transactions since the
introduction of FlashBack Query feature in Oracle needs this information to create
a read consistent copy of the data in the past. Default value is 900 Secs
( UNDO_RETENTION = 500)
UNDO_SUPRESS_ERRORS : This is a good thing to know about in case your code has the
alter transaction commands that perform manual undo management operations. Set this
to true to suppress the errors generated when manual management SQL operations are
issued in an automated management mode.
Monitoring :
36.01555-ora error?
Ans)Error: ORA-01555: snapshot too old (rollback segment too small)
Cause: This error can be caused by one of the problems, as described below.
Action: The options to resolve this Oracle error are:
1. This error can be the result of there being insufficient rollback segments.
A query may not be able to create the snapshot because the rollback data is not
available. This can happen when there are many transactions that are modifying
data, and performing commits and rollbacks. Rollback data is overwritten when the
rollback segments are too small for the size and number of changes that are being
performed.
To correct this problem, make more larger rollback segments available. Your
rollback data for completed transactions will be kept longer.
41. When we put tablespace in the backup mode what will the oracle do with
tablespace/datafile (means wht abt DBWR process or data users are updating) ?
Ans)Once u put the Tablespace in the Begin Backup mode, The Datafiles Headers
belong to that tablespace are frozen. They will not update till u put the
tablespace out of backup mode
43.whether the data will be in rollback segments or in datafile when the tablespace
is in Backup mode.
Ans: in the Datafile itself
Database
Q6:What is a Tablespace?
Ans: A database is divided into Logical storage unit called tablespace. A
tablespace used to grouped related logical structures together
Q7: Explain the relation ship among the database,tablespace and datafiles?
Ans: Each database logically divided in to one or more tablespaces. One or more
datafiles are explicitly created for each tablespace.
Q11: Can you name few DBMS Package names and their use?
Ans: DBMS_JOBS, DBMS_STATS,DBMS_SQLTUNE..
Q12: How Do you find whether the instance was started with PFILE or SPFILE?
Ans: Sho parameter spfile or query from v$parameter.
Q13: What Column differentiates the v$views to the gv$views and how?
Ans: The INST_ID Column which indicates the instance in a RAC environment the
information came from ..
Q19: What view Would you use to determine free space in a tablespace?
Ans: dba_free_space
Q21: List out the views names we can use to find about undo usage?
Ans: V$undostat,dba_undo_segs
Q23: Using which view will check for session and process details?
Ans: V$session,v$process
Q24: Using which view will you find out , how much % Operation or job completed
sofar it is running in database?
Ans: v$session_longops
Q25: How will you find out running job names from database?
Ans: Querying from dba_jobs,Dba_jobs_running views
Q26:How will find out Database creation time details? What is the column name?
Ans: v$database; created is column
Q29: How will you find active/inactive session count from database?
Ans: select status,count(*) from v$session group by status;
Q33: If your database contain 4 undo tablespaces..how will you find out which undo
tablespace is used by database?
Ans: Sho parameter undo_tablespace
Q34: If you database contain 5 temporary tablespaces how will you find out what is
default temporary tablespace to databse?
Ans: By querying database_properties
Q35. What is alert log file and how will you find out the location of file from
database?
Ans : Sho parameter dump
UNIX:
Q36: How can you determine if an Oracle Instance is up from the Operating system
level?
Ans: ps �efgrep smon/pmon
Q43: How will you find out the count of Oracle processes running on server?
Ans: ps �efgrep wc �l
Q47 : I have a very big file at OS and I want see last 50 lines of the file
only..Which command will you use?
Ans : tail -50
Q48: How can you find , file last accessed ( modified )date?
Ans : ls �l Q49: How will you find out howmany instances are running on a server?
Ans : ps �efgrep smon (gives all instance names which are running)
Q49 : What is the command we can use to find trace of process at OS level?(means
what process is doing)
And : strace �p
Ans:
An Oracle instance is comprised of memory structures and background processes.
The Systems Global Area (SGA) and shared pool are memory structures. The process
monitor is a background process (DBWn, LGWR, ARCn, and PMON). The Oracle database
consists of the physical components such as data files; redo log files, and the
control file.
Q51: Which background process and associated database component guarantees that
committed data is saved even when the changes have not been recorded in the data
files?
Ans:
LGWR (log writer) and online redo log files. The log writer process writes data to
the buffers when a transaction is committed. LGWR writes to the redo log files in
the order of events (sequential order) in case of a failure.
Q52: What is the maximum number of database writer processes allowed in an Oracle
instance?
Ans:
The maximum is ten. Every Oracle instance begins with only one database writer
process, DBW0. Additional writer processes may be started by setting the
initialization parameter DB_WRITER_PROCESSES (DBW1 through DBW9).
Q53: Which background process is not started by default when you start up the
Oracle instance?
Ans:
ARCn. The ARCn process is available only when the archive log is running
(LOG_ARCHIVE_START initialization parameter set to true). DBWn, LGWR, CKPT, SMON,
and PMON are the default processes associated with all instances (start by
default).
Q55: Choose the right hierarchy, from largest to smallest, from this list of
logical database structures?
Ans:
Database, tablespace, segment, extent, data blocks.
Q56: Which background process is responsible for writing the dirty buffers to the
database files?
Ans:
The purpose if the DBWn is to write the contents of the dirty buffer to the
database file.
This occurs under two circumstances � when a checkpoint occurs or when the server
process searches the buffer cache for a set threshold.
Q60: If you are updating one row in a table using the ROWID in the WHERE clause
(assume that the row is not already in the buffer cache), what will be the minimum
amount of information read to the database buffer cache?
Ans:
The block is the minimum amount of information read/copied to the database buffer
cache.
Q61: What happens next when a server process is not able to find enough free
buffers to copy the blocks from disk?
Ans:
To reduce I/O contention, the DBWn process does not write the changed buffers
immediately to the disk. They are written only when the dirty buffers reach a
threshold or when there are not enough free buffers available or when the
checkpoint occurs.
Q63: When a SELECT statement is issued, which stage checks the user�s privileges?
Ans:
Parse checks the user�s privileges, syntax correctness, and the column names
against the dictionary. Parse also determines the optional execution plan and finds
a shared SQL area for the statement.
Q64: Which memory structure records all database changes made to the instance?
Ans:
The redo log files holds information on the changes made to the database data.
Changes are made to the database through insert, update, delete, create, alter, or
drop commands.
Q65: What is the minimum number of redo log files required in a database?
Ans:
The minimum number of redo log files required in a database is two because the LGWR
(log writer) process writes to the redo log files in a circular manner.
Q68: Which two values from the V$SESSION view are used to terminate a user session?
Ans:
The session identifier (SID) and the serial number (SERIAL #) uniquely identify
each session and both are needed to kill a session. Ex. SQL > ALTER SYSTEM KILL
SESSION �SID�,� SERIAL #�;
Q71: Which parameter value is use to set the directory path where the alert log
file is written?
Ans:
The alert log file is written in the BACKGROUND_DUMP_DEST directory. This directory
also records the trace files generated by the background processes. The
USER_DUMP_DEST directory has the trace files generated by user sessions. The
CORE_DUMP_DEST directory is used primarily on UNIX platforms to save the core dump
files. ALERT_DUMP_DEST is not a valid parameter.
Q72: Which SHUTDOWN option requires instance recovery when the database is started
the next time?
Ans:
SHUTDOWN ABORT requires instance recovery when the database is started the next
time. Oracle will also roll back uncommitted transactions during start-up. This
option shuts down the instance without dismounting the database.
Q73: Which SHUTDOWN option will wait for the users to complete their uncommitted
transactions?
Ans:
When SHUTDOWN TRANSACTIONAL is issued, Oracle waits for the users to either commit
or roll back their pending transactions. Once all users have either rolled back or
committed their transactions, the database is shut down. When using SHUTDOWN
IMMEDIATE, the user sessions are disconnected and the changes are rolled back.
SHUTDOWN NORMAL waits for the user sessions to disconnect from the database.
Q76: Which privilege do you need to connect to the database, if the database is
started up by using STARTUP RESTRICT?
Ans:
RESTRICTED SESSION privilege is required to access a database that is in restrict
mode. You can start up the database in restrict mode by using STARTUP RESTRICT, or
change the database to restricted mode by using ALTER SYSTEM ENABLE RESTRICTED
SESSION.
Q77: At which stage of the database start-up is the control file opened?
Ans:
The control file is opened when the instance mounts the database. The data files
and redo log files are opened after the database is opened. When the instance is
started, the background processes are started.
Q78: Which command will �bounce� the database-that is, shut down the database and
start up the database in a single command?
Ans:
STARTUP FORCE will terminate the current instance and start up the database. It is
equivalent to issuing SHUTDOWN ABORT and STARTUP OPEN.
Q79: When performing the command SHUTDOWN TRANASACTIONAL, what actions oracle
performs internally?
Ans:
SHUTDOWN TRANSACTIONAL waits for all user transactions to complete. Once no
transactions are pending, it disconnects all sessions and proceeds with the normal
shutting down process. The normal shut down process performs a checkpoint, closes
data files and redo log files, dismounts the database, and shuts down the instance.
Q80: When you issue the command ALTER SYSTEM ENABLE RESTRICTED SESSION, what
happens to the users who are connected to the database?
Ans:
If you enable the RESTRICTED SESSION when users are connected, nothing happens to
the already connected sessions. Future sessions are started only if the user has
the RESTRICTED SESSION privilege.
Q81: Which view has information about users who are granted SYSDBA or SYSOPER
privilege?
Ans:
A dynamic view of V$PWFILE_USERS has the username and a value of TRUE in column
SYSDBA if the SYSDBA privilege is granted, or a value of TRUE in column SYSOPER if
the SYSOPER privilege is granted.
Q84: Which environment variable or registry entry variable is used to represent the
instance name?
Ans:
The Oracle_SID environment variable is used to represent the instance name. When
you connect to the database without specifying a connect string, Oracle connects
you to this instance.
Q85: Which initialization parameter cannot be changed after creating the database?
Ans:
The block size of the database cannot be changed after database creation. The
database name can be changed after re-creating the control file with a new name,
and the CONTROL_FILES parameter can be changed if the files are copied to a new
location.
Ans:
The catalog.sql script creates the data dictionary views. The base tables for these
views are created by the script sql.bsq, which is executed when you issue the
CREATE DATABASE command.
Q87: How do you correct a procedure that has become invalid when one of the tables
it is referring to was altered to drop a constraint?
Ans:
The invalid procedure, trigger, package, or view can be recompiled by using the
ALTER COMPILE command.
Q88: How many data files can be specified in the DATAFILE clause when creating a
database?
Ans:
You can specify more than one data file; the files will be used for the SYSTEM
tablespace. The files specified cannot exceed the number of data files specified in
the MAXDATAFILES clause.
Q93: When you create a control file, the database has to be:
Ans:
Not mounted.
Q94: Which data dictionary view provides the names of the control files?
V$CONTROLFILES shows the names of the control files.
Q95: The initialization parameter file has LOG_CHECKPOINT_INTERVAL = 60; what does
this mean?
Ans:
LOG_CHECKPOINT_INTERVAL ensures that no more than a specified number of redo log
blocks (OS blocks) need to be read during instance recovery. LOG_CHECKPOINT_TIMEOUT
ensures that no more than a specified number of seconds worth of redo log blocks
need to be read during instance recovery.
Q96: What will happen if ARCn could not write to a mandatory archive destination?
Ans:
Oracle will write a message to the alert file and all database operations will be
stopped. Database operation resumes automatically after successfully writing the
archived log file. If the archive destination becomes full you can make room for
archives either by deleting the archive log files after copying them to a different
location, or by changing the parameter to point to a different archive location.
Q97: What are the valid status codes in the V$LOGFILE view?
Ans:
Valid status codes V$LOGFILE views include STALE, INVALID, DELETED, or the status
can be blank. STALE means the file contents are incomplete; INVALID means the file
is not accessible; DELETED means the file is no longer used; and blank status means
the file is in use.
Q98: If you have two redo log groups with four members each, how many disks does
Oracle recommend to keep the redo log files?
Ans:
You should keep a minimum of two redo log groups, with a recommended two members in
each group. Oracle recommends that you keep each member of a redo log group on a
different disk. The maximum number of redo log groups is determined by the
MAXLOGFILES database parameter. The MAXLOGMEMBERS database parameter specifies the
maximum number of members per group.
Q99: When does the SMON process automatically coalesce the tablespaces?
Ans:
When the PCTINCREASE default storage of the tablespace is set to 0. You can
manually coalesce a tablespace by using ALTER TABLESPACE COALESCE.
Q100: How would you drop a tablespace if the tablespace were not empty?
Ans:
Use DROP TABLESPACE INCLUDING CONTENTS.
The INCLUDING CONTENTS clause is used to drop a tablespace that is not empty.
Oracle does not remove the data files that belong to the tablespace; you need to do
it manually using an OS command. Oracle updates only the control file.
Q101: Which command is used to enable the auto-extensible feature for a file, if
the file is already part of a tablespace?
Ans:
To enable auto=extension, use ALTER DATABASE DATAFILE AUTOEXTEND ON NEXT MAXSIZE .
Q102: How would you determine how much sort space is used by a user session?
Ans:
The V$SORT_USAGE shows the active sorts in the database; it shows the space used,
username, SQL address, and hash value. It also provides the number of EXTENTS and
number of BLOCKS used by each sort session, and the username. The V$SORT can be
joined with V$SESSION or V$SQL to obtain more information on the session or the SQL
statement causing the sort.
Q103: When a table is updated, where is the before image information (which can be
used for undoing the changes) stored?
Ans:
Rollback segment. Before any DML operation, the undo information (before-image of
data) is stored in the rollback segments. This information is used to undo the
changes and to provide a read-consistent view of the data.
Q104: Which parameter specifies the number of transaction slots in a data block?
Ans:
INITRANS specifies the number of transaction slots in a data block. A transaction
slot is used by Oracle when the data block is being modified. INITRANS reserves
space for the transactions in the block.
Q105: Which data dictionary view would you query to see the free extents in a
tablespace?
Ans:
DBA_FREE_SPACE shows the free extents in a tablespace. DBA_EXTENTS shows all the
extents that are allocated to a segment.
Q106: Which portion of the data block stores information about the table having
rows in this block?
Ans:
Row Data. The table directory portion of the block stores information about the
table having rows in the block. The row directory stores information such as row
address and size of the actual rows stored in the row data area.
g:\prints\interview\dg broker.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Q) How start the DMON process on both the primary and standby databases?
Q) To turn off redo transport to all remote destinations on the primary database:
There are many changes in Oracle EBS R12.2.x when compared to Oracle EBS R12.1.x
version.
Few of the major architectural changes and new features are mentioned below,
1. Oracle E-Business Suite R12 (12.2) uses Oracle Fusion Middleware 11g R1 PS3
(11.1.1.4) including WebLogic 10.3.4 as its application server (Note: In previous
version of R12 i.e. 12.0.X and 12.1.X this is 10g R3 i.e. 10.1.3.X). Oracle HTTP
server in R12.2 is 11.1.1.4 .
2. Oracle E-Business Suite R12.2 uses Oracle Application Server 10g R3 (10.1.2.3)
for Forms & Reports (Note: In previous version of R12 i.e. 12.0.X and 12.1.X, forms
are reports are of same version i.e. 10.1.2.3)
3. Default Database for Oracle E-Business Suite R12.2 is 11g R2 (11.2.X) . (Note:
In previous version of R12 i.e. 12.0.X, default database is 11.1 and 12.1.X,
default database is 11.2.0.3)
4. 12.0.X and 12.1.X Oracle JSP Compiler (OJSP) 10.1.3.5 is replaced by WebLogic
JSP Compiler 11.1.1.4 in R12 version 12.2.x
Use RESETLOGS after incomplete recovery (when the entire redo stream wasn't
applied). RESETLOGS will initialize the logs, reset your log sequence number, and
start a new "incarnation" of the database.
Use NORESETLOGS when doing complete recovery (when the entire redo stream was
applied). Oracle will continue using the existing (valid) log files.
NORESETLOGS
The NORESETLOGS option does not clear the redo log files during startup and the
online redo logs to be used for recovery. Only used in scenario where MANUAL
RECOVERY is started, CANCEL is used, and then RECOVER DATABASE is started.
RESETLOGS
CAUTION: Never use RESETLOGS unless necessary.
Once RESETLOGS is used then the redo log files cannot be used and any completed
transactions in those redo logs are lost!!
Before using the RESETLOGS option take an offline backup of the database.
The RESETLOGS option clears all the online redo logs and modifies all the online
data files to indicate no recovery is needed. After resetting the redo logs none of
the existing log files or data file backups can be used. In the control file, the
log sequence number is modified, which is very important for recovery purposes. The
recovery will be applied only to the log files whose sequence number is greater
than log sequence number in the control file. One has to be very cautious when
using RESETLOGS option. It is important to remember that all datafiles must be
online otherwise they will become useless once the database is up
g:\prints\interview\dp PT.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Data Pump Performance Tuning
=============================:
I was tasked to move an entire small database from 1 server to another and finish
the task ASAP. The reason was the site will be down until the task is completed. A
quick test of exporting, coping files to remote server then importing had the
following numbers:
We figured the import will be improve significantly as well, but we were a bit
disappointed
Now total time of entire operation: 26 minutes down from 1:08 hours, not bad
We can still improve by copying files in parallel between servers, but this wasn�t
needed.
Tip: This is another tip that will improve importing time. When importing using
Data Pump, exclude statistics and then use dbms_stats package to calculate
statistics in parallel after Data Pump finishes importing. Importing using Data
Pump is done serially (one segment after another, not in parallel) even when you
use the parallel option, Data Pump will still have 1 thread only calculating
statistics.
Here is an example:
High Level Steps to integrate Oracle EBS R12 with OAM for Single Sign-On
Below are the high-level steps to integrate Oracle E-Business Suite with Oracle
Access Manager to enable SSO.
1. Install Database for IAM (OID/OAM)
2. Install Oracle Internet Directory (OID)
3. Install Oracle Access Manager (OAM)
4. Integrate OAM with OID
5. Integrate EBS with OID
6. Install Oracle HTTP Server (OHS)
7. Install WebGate
8. Integrate EBS with OAM
9. WNA configuration (Optional but recommended)
-http://samiora.blogspot.ae/2015/03/wna-configuration-in-oracle-access.html
10. Test OAM-EBS Integration
E-Business Suite (EBS) integration with Oracle Access Manager (OAM) for Single
Sign-On
(SSO) involves integrating EBS with Oracle Internet Directory (OID) for user
synchronization,
pointing OAM�s identity store to use OID, and delegating EBS authentication to OAM.
Synchronization component is used to sync users/groups between OID and other LDAP
servers
like Microsoft Active Directory (MS-AD) or IBM Directory Server.
Provisioning component is used to sync OID with applications like EBS, Portal, and
Collaboration Suite. For user synchronization between OID and EBS, DIP uses its
provisioning component.
DIP Provisioning component will be used to sync users between OID and E-Business
Suite
WebLogic version 10.3.6 (11g) can be used for both OAM & OID (DIP/ODSM) where EBS
AccessGate (EBS-AG) will be deployed on OAM WebLogic Domain.
7. Web Gate
Web Gate is a web server plug-in (deployed with WebServer like Apache, OHS, IHS)
which
intercepts user's request and send it to Oracle Access Manager Server to check if
user is authenticated/authorised to access requested resource. Web Gate is
installed on same machine, as
WebServer (OHS) and webgate configuration settings are pointed OHS configuration
file (httpd.conf). For Web Gate to work an instance of Web Gate must be configured
in OAM
Server using Remote Registration (RREG) utility or OAM Console and Web Gate must be
installed with OHS using same user as OHS.
8. mod_wl_ohs
This is module in Oracle HTTP Server (OHS) which forward request from OHS to
WebLogic
Server where EBS Access Gate is deployed as defined in mod_wl_ohs.conf
� Application SSO Type (APPS_SSO) - This profile option can be set only at site
level
from one of four values SSWA, Portal, SSWA w/SSO or Portal w/SSO. To inform
EBusiness
Suite that Single Sign-On is configured and redirect user to Single Sign-On
Page and NOT to Local Login page, set this profile option to either SSWA w/SSO or
Portal w/SSO
� Application Authentication Agent (APPS_AUTH_AGENT) - When this profile option
is set with profile option Application SSO Type, user is redirected to page
generated
from value of this profile option. Lets assume value of profile option Application
SSO
Type is set to http://ohsserver:ohsport/ebsauth_eprd/ then user will be redirected
to page
http://ohsserver:ohsport/ebsauth_dev/OAMLogin.jsp . Value of profile option
Application Authentication Agent is set to format http://server:port/<context_root>
where server is name of server where Oracle HTTP Server (OHS) with Web Gate
installed, port is OHS Listen Port and context_root is context root defined during
AccessGate deployment.
Note- If Application Authenticate Agent profile option is missing ensure you have
below
patches applied as per the version:-
For R12.1.1 � Patch Number � 9824524
For R12.1.2/R12.1.3 � Patch Number � 9454600
g:\prints\interview\edit.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Apps DBA Interview Questions
Q. What is difference between fresh database and vision database install types ?
Fresh Database � Database is installed with Apps but with no data
Vision Database � Database installed with Apps with dummy data
Q. What is minimum approx. disk requirement for 11.5.10 (Note these disk
requirement changes as per type of installation, languages installed and release )
For 11.5.10
Application Tier File System � 26 GB
Database Tier (Fresh install) � 31 GB
Database Tier (Vision install) � 65 GB
Q. What exactly happens when you put an Oracle Apps instance in maintenance mode ?
Maintenance mode provides a clear separation between normal runtime operation of
Oracle Applications and system downtime for maintenance. Enabling the maintenance
mode feature
a) shuts down the Workflow Business Events System and
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)
Q. Which two tables created at start of Apps Patch & drops at end of Patch ?
FND_INSTALLED_PROCESSES &AD_DEFFERED_JOBS are the tables that get updated while
applying a patch mainly d or unified driver.
Q. What is FNDSM ?
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.
Q. Why does a worker fails in Oracle Apps Patch and few scenarios in which it
failed for you ?
This question sounds stupid but this is asked quite often in Apps DBA Interview.
Apps Patch worker can fail in case 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...
Q. If APPS_MRC schema is not used in 11.5.10 and higher then How MRC is working ?
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.
Q. When you apply C driver patch does it require database to be Up & Why ?
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.
Q. What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
.ldt & .lct stands for Loader datafile & Loader configuration files, used
frequently in migrating customization, profile options, configuration data, etc..
across Instances.
Q. In a Multi Node Installation, How will you find which node is running what
SErvices ?
You can query for table FND_NODES and check for column , SUPPORT_CP ( for
Concurrent Manager) SUPPORT_FORMS ( for forms server) , SUPPPORT_WEB (Web Server),
SUPPORT_ADMIN( Admin Server), and SUPPORT_DB for database tier.
You can also check same from CONTEXT File (xml file under APPL_TOP/admin)
Q. If your system has more than one Jinitiator, how will the system know, which one
to pick. ?
When client makes a forms connection in Oracle Applications, forms client session
uses configuration file defined by environment variable FORMS60_WEB_CONFIG_FILE
also called as appsweb config file. These days this file is of format
appsweb_$CONTEXT.cfg The initiator version number defined by parameter
jinit_ver_name in this file will be used .
Q. While applying Apps patch using adpatch, if you want to hide the apps password,
how will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password being displayed on Users Screen.
Q. What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
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.
Q. How to retrieve SYSADMIN password ?
If forgot password link is enabled and sysadmin account is configured with mail id
user forget password link else you can reset sysadmin password via FNDCPASS.
Q. If you have done two node Installation, First machine : Database and concurrent
processing server. 2nd machine: form,web Which machine have admin server/node?
Admin Server will be on First machine with concurrent processing server. More on
Admin Server coming soon..
Q. Whats is TWO_TASK in Oracle Database ?
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
Q. What happens if you don't give cache size while defining Concurrent Manager ?
Lets first understand what is cache size in Concurrent Manager. When Manager picks
request from FND CONCURRENT REQUESTS Queues, it will pick up number of requests
defined by cache size in one shot & will work on them before going to sleep. So in
my views if you don't define cache size while defining CM then it will take default
value 1, i.e. picking up one request per cycle.
Thanks to vish for pointing out that answer to above Q's copied from pervious Q's.
If you find any disperancy do mail me.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
Q. Where will you find forms configuration details apart from xml file ?
Forms configuration at time of startup is in script adfrmctl.sh and
appsweb_$CONTEXT_NAME.cfg (defined by environment variable FORMS60_WEB_CONFIG_FILE)
for forms client connection used each time a user initiates forms connection.
Q. What are different modes of forms in which you can start Forms Server and which
one is default ?
You can start forms server in SOCKET or SERVLET by defualt Forms are configured to
start in socket mode.
Q. How to confirm if Apps Listener is Up & Running ?
execute below command
lsnrctl status APPS_$SID (replcae SID with your Instance Name)
so If your SID is VISION then use lsnrctl status APPS_VISION out put should be like
Services Summary...
FNDFS has 1 service handler(s)
FNDSM has 1 service handler(s)
The command completed successfully
Q. What is Web Listener ?
Web Listener is Web Server listener which is listening for web Services(HTTP)
request. This listener is started by adapcctl.sh & defined by directive (Listen,
Port) in httpd.conf for Web Server. When you initially type request like
http://becomeappsdba.blogspot.com:80 to access application here port number 80 is
Web Listener port.
Q. What is RRA/FNDFS ?
Report Review Agent(RRA) also referred by executable FNDFS is default text viewer
in Oracle Applications 11i for viewing output files & log files. As most of apps
dba's are not clear about Report Server & RRA, I'll discuss one on my blog and
update link here .
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.
24. What is adctrl?
Ans: Adctrl is one of the adutilities, which is used to check the status of workers
and to manage the workers.
25. Can u name some of the menu options in adctrl?
Ans: Check the status of workers, tell manager that worker has quited, restart a
failed worker etc�.
26. How to skip a worker and why?
Ans: We can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
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.
28. What is FNDLOAD ?
Ans: FNDLOAD is a utility which is similar to sqlloder but loads code objects into
database, where as SQLLOADER loads data objects into database.
29. What c-driver will do?
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.
31. What is the adpatch log file location?
Ans : APPL_TOP/admin/SID/log
32. What is the worker log file name and its location?
Ans : adwork01,adwork02�� and location is APPL_TOP/admin/SID/log
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 :1.Interactive � default mode
2.Non interactive � Use defaults files to store prompt values
(adpatch defaultsfile= interactive=no)
3. Test � Without actually applying a patch just to check what doing.(adpatch
apply=no)
36. How u will monitor u r applications as well as database?
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.
37. What are the latest ORA errors u have encountered?
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?
Ans : bytes column in dba_free_spaces and dba_data_files
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.
41. What is autoconfig?
Ans : Autoconfig is an adutility which is used to maintain application environment
and configuration files.
42. What are the parameter autoconfig will ask for?
Ans : Context file name and apps password
43. What is context file?
Ans : Context file is a central repositary, which stores all application
configuration information. The name is like _ .xml
44. How you will find autoconfig is enabled/not for u r applications?
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
45. How autoconfig will create env and configuration files?
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.
46. In how many phases autoconfig will run?
Ans : Autoconfig will run in 3 phases.
1.INIT � Instantiate the drivers and templates
2.SETUP � Fill the templated with values from xml and create files
3.PROFILE � Update the profile values in database.
47. What is the location of adconfig log file?
Ans : APPL_TOP/admin//log/
48. Is it possiable to restore a autoconfig run?
Ans : 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.
49. How to run autoconfig in test mode?
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.
50. How to find autoconfig is enabled or not for database?
Ans: If we have appsutil directory under RDBMS_ORACLE_HOME
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.
52.What is apps.zip/appsbrog2.zip file?
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
53. What is the location of apps.zip/appsbrog2.zip?
Ans : AU_TOP/java and JAVA_TOP
54. What is for �validating apps schema� option in adadmin?
Ans: It will check for the corrupted objects in apps schema
55. What is �compile apps schema� option in adadmin?
Ans : It will compile the invalid database objects.
56. How to find invalid objects in database?
Ans : select count(*) from dba_objects where status=�INVALID�;
57. How to find MRC is enabled or not?
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.
59. What is mean by MRC?
Ans: MRC stands for Multiple reporting Currency, this should be enabled to see the
reports in different currencies like (rupees,yaans etc).
60. What is Multi-Org?
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: adconfig.txt @APPL_TOP/admin
62. What is adrelink?
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.
63. How to find the version of a file?
Ans : 1. adident Header 2. strings -a filename grep Header
64. What is adodfcmp utility?
Ans : This utility is used to recreate/repair corrupted database objects from
odf(object defination files) files.
65. How you will change apps password?
Ans: FNDCPASS 0 y apps/ system/ SYSTEM APPLSYS
66. What if apps password is changed with alter command?
Ans : Applications won�t work.
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
67. Where the FNDCPASS utility is located?
Ans : Concurrent node @FND_TOP/bin
68. How to find out what component of u r oracle applications were installed on
which node?
Ans : Xml file (context file)
69. How to find the version of httpd/Apache web server?
Ans : $IAS_ORACLE_HOME/Apache/bin/httpd �version
70. What is the configuration file for httpd and what is the location of it ?
Ans : httpd.conf @IAS_ORACLE_HOME/Apache/Apache/conf
71. Where you will see when you have some problem with u r webserver(httpd/Apache)?
Ans : access_log & error_log @IAS_ORACLE_HOME/Apache/Apache/logs
72. When Apache starts what other components its start ?
Ans : PL/SQL Listener, Servlet Engine, OJSP Engine
73. What is jserv?
Ans : jserv is nothing but servlet engine which will run u r servlets. It�s a
module of apache which supports servlets.
74. What is self service application?
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 : access_log,error_log, error_pls, jserv.log, wdbsvr.app(for apps password)
76. What is the location of jserv.log?
Ans : IAS_ORACLE_HOME/Apache/Jserv/log
77. What is the location of wdbsvr.app ?
Ans : IAS_ORACLE_HOME/Apache/modplsql/cfg
78. What are jserv.conf and jserv.properties files?
Ans : These are the configuration files which were used to start jvm�s(servlet
engine) by apache.
79. What is mean by clearing cache and bouncing apache?
Ans : 1. Stop apache (adapcctl.sh stop apps)
2. Clear cache � Go to $COMMON_TOP/html/_pages and delete _oa_html directory
(rm �r _oa__html)
3. Start apache (adapcctl.sh start apps)
80. What is forms configuration file and its location?
Ans : appsweb_contextname.cfg @$COMMON_TOP/html/bin
81. What are the different modes u can start u r form server?
Ans : socket and servlet
82. What is the difference beween socket and servlet mode?
Ans : In socket mode forms sessions are represented by f60webmx
In servlet mode forms sessions are represented by apache processes.
83. What is forms metric server and client?
Ans : When there are more than one form sever instances then forms metric server
and clinet will be used to load balance.
84. Where the forms server related errors will be logged?
Ans : access_log and error_log
85. What is report server configuration and log file name and its location?
Ans : Configuration file � REP_.ora
Log file � REP_.log @806_ORACLE_HOME/reports60/server
86. What is CGIcmd.dat file and its location?
Ans : CGIcmd.dat file is the run time parameter file the report server located @
806_ORACLE_HOME/reports60/server
87. What is the significance of DISPLAY variable?
Ans : Vnc server should be up and running at the specified port value in DISPLAY
variable, otherwise reportserver may not able to show the graphics in Reports.
88. Where is the concurrent manager log file located?
Ans : $COMMON_TOP/admin//log or $APPLCSF/$APPLLOG
89. Is apps password necessary to start all the components of oracle application?
Ans : No. Only to start/stop concurrent managers apps password is needed.
90. What is a concurrent manager?
Ans : A concurrent manager is one which runs concurrent requests.
91. What are the different types of concurrent managers?
Ans : 1. Internal concurrent manager � Will start all other managers and monitor
2. Standard Manager � All concurrent request by default will to go this
3. Conflict resolution manager � Concurrent programs with incompatabilites will be
handled by this
4. Transaction manager � Handle all transaction requests
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.
Target and Actual should be always same.
93. What if Target and Actual are not same?
Ans : It means at operating system level resources are low to accomidate the
required processes for concurrent managers.
94. What are work shifts?
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 : we need to bounce the concurrent manager using adcmctl.sh
96. How to bounce a single concurrent manager?
Ans : From frontend using �Administer Concurrent Manager form�.
97. When we change apps password , is it necessary to bounce application?
Ans : Only we need to bounce concurrent managers.
98. What is dbc file and its location?
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?
Ans : apachectl @IAS_ORACLE_HOME/Apache/bin
100. What is the configuration file for PL/SQL listener?
Ans : httpd_pls.conf @IAS_ORACLE_HOME/Apache/Apache/conf
101. How to skip copy portion while applying a patch?
Ans : Adpatch options=nocopyportion
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
103. What is the Tiered architecture of u r instance?
Ans : Two Tier: Web and Forms on one node and Conc, admin and report on other node.
104. How to find formserver version?
Ans: f60gen and press enter, it will tell u the formserver version or we can find
out from the frondend using help menu.
105. What is RRA?
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�.
106. What is apps listener?
Ans : Apps lintener is the combination of FNDFS and FNDSM. FNDSM is service manager
which will monitor application services on that node when GSM:enable profile value
is �Y�.
107. What is GSM?
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.
108. How to find the application version like 11.5.8/11.5.9�.?
Ans : select release_name from fnd_product_groups;
109. How to find the database/sqlplus version?
Ans : select banner from v$version;
110. How to find out what are the languages enabled in u r applications?
Ans : Query fnd_languages
111. What is the size of u r database?
Ans : 200 to 500 GB
112. How to find operating system version?
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.
115. How to find the locks and what is the resolution?
Ans : we can find general locks with the following query:
select * from sys.dba_dml_locks order by session_id.
We can find the dead locks with the following query:
select * from v$lock where lmode > 0 and id1 in (select distinct id1 from v$lock
where request > 0)
If it�s a dead lock, we need to kill that session.
116. How to kill a database session?
Ans : alter system kill session �&sid,&sno�;
117. How to find adconfig is enabled for oracle operating system user/database?
Ans : If appsutil directory is there in RDBMS_ORACLE_HOME
118. Which files tell u the database helath?
Ans : alert log file @RDBMS_ORACLE_HOME/admin//bdump
119. How to apply a rdbms patch?
Ans : Using opatch
120. How to find opatch is enabled or not for u r database?
Ans : If Opatch directory exists under RDBMS_ORACLE_HOME.
121. What is the pre-req for applying a rdbms patch?
Ans : Inventory should be set in file oraInst.loc @/var/opt/oracle or /etc
122. What is Inventroy?
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.
123. What are different types of inventories?
Ans: The Global inventory (or Central inventory) The Local inventory (or Home
inventory)
124. What is Global inventory?
Ans : The Global Inventory is the part of the XML inventory that contains the high
level list of all oracle products installed on a machine. There should therefore be
only one per machine. Its location is defined by the content of oraInst.loc.The
Global Inventory records the physical location of Oracle products installed on the
machine, such as ORACLE_HOMES (RDBMS and IAS) or JRE. It does not have any
information about the detail of patches applied to each ORACLE_HOMEs.The Global
Inventory gets updated every time you install or de-install an ORACLE_HOME on the
machine, be it through OUI Installer, Rapid Install, or Rapid Clone.
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.
125. What is local inventory?
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.
126. What is rapid clone?
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
127. How do I determine if my system is rapid clone enabled?
Ans : First, verify that your system is AutoConfig enabled. Then, verify that you
have applied the latest Rapid Clone patch.
128. Explain the cloning process?
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
2. Take the cold/hotbackup of source database
3. Copy the five directories appl,comn,ora , db,data to target
4. Rename the directories, and change the permisssion
5. Set the inventory in oraInst.loc
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
8. Run autoconfig with the ports changed as per requirement in xml.
9. Run perl adcfgclone.pl appsTier as applmgr
10. Run autoconfig with the ports changed as per requirement in xml.
129. What is the location of adpreclone.pl for oracle user?
Ans : RDBMS_ORACLE_HOME/appsutil/scripts/
130. What is the location of adpreclone.pl for applmgr user?
Ans : $COMMON_TOP/admin/scripts/
131. What is the location of adcfgclone.pl for oracle user?
Ans : $RDBMS_ORACLE_HOME/appsutil/clone/bin
132. What is the location of adcfgclone.pl for applmgr user?
Ans : $COMMON_TOP/clone/bin
133. What is statspack?
Ans : Statspack is a database utility to gather database and session level
performance information.
134. How to install statspack?
Ans : Run the script spcreate.sql @RDBMS_ORACLE_HOME/rdbms/admin
Note more details on statspack refer metalink noteid: 149113.1
135. How to enable trace at database level?
Ans : set init.ora parameter sql_trace
136. How to enable trace for a session?
Ans: Alter system set sql_trace=true;
Execute the sql query
Alter system set sql_trace=false;
This will create a trace file at
$RDBMS_ORACLE_HOME/admin/contextname/udump with the spid of the current sql
session.
137. How to enable trace for other session?
Ans : exec sys.dbms_system.set_sql_trace_in_session(sid,serial#,true/false)
Eg: To enable trace for sql session with sid 8SQL> exec
sys.dbms_system.set_sql_trace_in_session(8,121,true);
PL/SQL procedure successfully completed.
To disable trace
SQL> exec sys.dbms_system.set_sql_trace_in_session(8,121,false);
138.What is the location of inint.ora ?
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.
140. What is the syntax for tkprof?
Ans: tkprof explain=apps/ sys=no
141.How do we find adpreclone is run in source or not ?
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 � � *
144. What is a database link? How to create it?
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.
1.Login as oracle user
2.sqlplus �/as sysdba�
3. create database link connect to identified by using �;
Ex
SQL> create database link TEST1_TO_TEST2 connect to apps identified by apps using
�TEST2';
Database link created.
SQL> select name from v$database@ TEST1_TO_TEST2;
NAME
���
TEST2
SQL>select db_link from dba_db_links;
4. Add destination database tns entry in tnsnames.ora
145. How many clonings u have done?
Ans : If u r very much confident on cloning processes then say 5 to 8 otherwise
just 2 or 3.
146. What u know abt RMAN?
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.
147. What is netapp?
Ans : Netapp is a storage technology.
148. What is formserver url?
Ans :http://hostname.domain:/dev60cgi/f60cgi
149. What is jinitiator?
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.
150. What is discoverer server?
Ans : Discoverer server is reporting tools which allows novoice user to use oracle
application reports. Discoverer will come along with oracle applications when
installed.
151. What is discoverer viewer url?
Ans: /discoverer4i/viewer152. What is discoverer plus url?
Ans : Ans : Aoljtest is a web based utility to test the availability of the
different components of oracle applications like jserv,modplsql,jsp,forms etc
URL: /OA_HTML/jsp/fnd/aoljtest.jsp
154. What is adsplicer?
Ans : Adsplicer is a uitility used to register off cycle products.
155. What is licence manager?
Ans : Licence manager(adlicmgr) utility is used to licence/unlicence , enable new
languages,enbale country specific functionality.
156. What is tnsping?
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.
158. How to compile a form using f60gen?Ans :
f60gen module=/TEST/testappl/au/11.5.0/forms/F/ARXTWMAI.fmb userid=APPS/APPS
output_file=/TEST/testappl/ar/11.5.0/forms/F/ARXTWMAI.fmx module_type=form
batch=yes compile_all=special
160. What is APPLPTMP environment variable?
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.
162. Is that necessary to enable maintanance mode while applying a patch?
Ans : We can even apply a patch without enabling maintanance mode with the
following option
Adpatch options=hotpatch
163. How to find out oracle application framework version?
Ans : 1. Through aoljtest2. cd $COMMON_TOP/html/3. adident Header OA.jsp
164. How to find out what are the rdbms patches applied to an oracle home?
Ans :1. opatch lsinventory
2. $RDBMS_ORACLE_HOME/.patch_storage directory contains the directories with the
rdbms patch number, which are applied to this oracle home.
165. Is that necessary to shutdown database while applying a database patch?
Ans : Yes.
166. What is the command line utility to submit a concurrent request?
Ans : CONSUB
167. What is the significance of utl_file_dir parameter in init.ora file?
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.
168. How you will find out discoverer version?
Ans : cd $806_ORACLE_HOME/discwb4/lib strings libd* grep �Version:�
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:
Opatch apply no_inventory
172. Have you applied rdbms patches and for what?
Ans : We got ORA-7445 error in alert log, for which oracle recommended to apply a
rdbms patch.
173. What are the patch errors , you have encountered?
Ans :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.
174. How Frequently you apply patches
Ans : As and when I get a requirement.
175. What type of patches you have applied so far?
Ans : One-off,Mini,Family
177. What are the clone errors, you have encountered?
Ans : Error:
RC-50013: Fatal: Failed to instantiate
driver/u01/fms2c/appfms2c/fms2cora/iAS/appsutil/driver/instconf.drvCauseThe source
instance has files that adpreclone flags as �autoconfigable� but in reality they
are not. So adpreclone.pl adds these files into the instconf.drv. Then when
adcfgclone.pl is run on target it looks for the template file to instantiate for
these files and since there isn�t a template file adcfgclone.pl fails.
SolutionModify the target�s instconf.drv and remove the offending lines. Then rerun
adcfgclone.pl
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.
179. How you will find workflow version?
Ans : Run wfver.sql@FND_TOP/sql script as apps user
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)?
Ans: query ad_patch_drivers.
182. How to find out whether a language patch is applied for a perticular patch?
Ans : Query ad_patch_driver_langs.
183. How to validate that sysadmin password is correct or not from backend?
Ans: select fnd_web_sec.validate_login(�SYSADMIN�,�Qwert8765') from dual;
184. How to compile jsp�s(other than from adadmin)?
Ans: Force compilation of all jsps using the following command ojspCompile.pl
�compile �flush
185. How to rotate logs for apache logs?
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 : select multi_currency_flag from fnd_product_groups;
187. How to compile rdf?
Ans: Either using adadmin or rwcon60
189. How to change file/directory owner in linux/solaris?
Ans : chown � R :
Ex: chown � R applmgr:dba testappl
190. How to change the permission of file/directory in linux/solaris?
Ans : chmod �R
Ex : chmod �R 755 testappl
191. What are the files which contain apps password?
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
192. What is the script to find out ICM status?
Ans : afimchk.sql@FND_TOP/sql
193. What is the script to list the concurrent request status?
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
195) How can I determine whether a template is customizable or non-customizable?
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.
196) How to find out JDBC version :
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
197)How to findout XML Parser Version
Ans : SQL> select WF_EVENT_XML.XMLVersion() XML_VERSION from sys.dual;
198)How to find out WorkFlow Version
Ans SQL> select TEXT Version from WF_RESOURCES where TYPE = �WFTKN� and NAME =
�WF_VERSION�;
199) How to find a file version in Application DB:
select v.version,v.CREATION_DATE,c.CREATION_DATE from AD_FILES c,AD_FILE_VERSIONS v
where c.FILENAME like �ARPURGEB.pls� AND c.file_id = v.file_id AND c.app_short_name
= �AR�;
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 : By using below Query we can find.
SQL>select t.application_name, t.application_id, i.patch_level,
decode(i.status,�I�,�Fully Installed�,�N�,�Not
Installed�,�S�,�Shared�,�Undetermined�) statusfrom fnd_product_installations i,
fnd_application_vl twhere i.application_id = t.application_idorder by
t.application_id;
Q. How would you know that your applications setup is a using shared APPL_TOP
configuration ?
� If you apply a patch, it should be visible on all nodes (APPL_TOP) which are part
of shared APPL_TOP configuration.
� Since APPL_TOP is on a shared disk, create file in APPL_TOP from one node, it
should be visible from other nodes.
To Know more on shared APPL_TOP check metalink note
243880.1 Shared APPL_TOP FAQ
384248.1 Sharing The Application Tier File System in Oracle E-Business Suite
Release 12
233428.1 Sharing the Application Tier File System in Oracle Applications 11i
Q. What is difference between shared APPL_TOP and shared Application Tier ?
� In shared APPL_TOP, only APPL_TOP & COMMON_TOP are shared across multiple middle
tier where as in Shared Application Tier ORACLE_HOME (Middle Tier 806 & iAS
directory) are also shared except configuration files (iAS).
Q. How would you know about which servers are running on a particular node ?
i) Check value of variable, isConc, isWeb, isForms, isAdmin in CONTEXT FILE
ii) Control scripts � only the services which are running from particular node will
have the corresponding control scripts installed on that node (This answer is
partially right, depending on AD & FND version).
iii) Check FND_NODES table
Q. Adsplice � I have a 3 node installation: 1. Forms 2. Web 3. CM/Admin/Reports
and DB which node I will run the adsplice on, to install a new product ?
� You must run adsplice on all nodes (APPL_TOPs) so that application utilities
recognize new product.
Q. There are four Oracle Databases running on a mahine. How would you check the
location of their Oracle Homes ?
� Check entry in oratab file
� If you know any other way to find out update it as comment
Q. How would you check if the tablespace is in backup mode ?
� Check in v$backup
SQL> SELECT d.tablespace_name, b.status FROM dba_data_files d, v$backup b
WHERE d.file_id = b.FILE# and b.STATUS = �ACTIVE� ;
Q. When Database is up, listener is up. listener.ora and tnsnames.ora both are
configured properly, still client is not being able to make a connection to the
database. What may be the possible issues ?
� Firewall blocking db port between client and server
� Authentication restricted in sqlnet.ora (Client allowed from only selected
machines)
Q. What is �Custom TOP� in apps ?
� Custom top is similar to other tops under APPL_TOP but containing custom (client)
specific functionality. Apps DBA need to define custom TOP and register all custom
code under CUSTOM TOP
Q. if you find that under $FND_TOP/secure directory, there are many .dbc files, how
would you know which is the correct one ?
� System picks up dbc file based on profile option value �Applications Database ID�
Oracle Apps DBA Interview Question : Apps / SSO / OID integration
Q. How to find if your E-Business Suite is integrated with SSO/OID (10g Identity
Management)
� There are multiple ways to find out Apps 11i/R12 is integrated with SSO/OID
a) Check if SSOSDK schema exists (in Apps 11i/R12) and check table in SSOSDK schema
b) Check if log file exists at $OAD_TOP/rgf/$CONTEXT_NAME/sso
c) Profile option Option �Application SSO Types�
Q. If Single Sign-On server & OID is down, can users still login ?
Yes, use localLogin
Q. Name few Profile Option w.r.t. SSO Integration
- Application SSO Types
� Application SSO login types
� Application SSO Auto link User
* Make sure you know about these profile option as explain these profile option and
how they effect SSO Integration
Q. Which SSO build version you are currently working ?
- Build 1, 2.1, 2.2, 3, 3.1, 4, 5, 6
Q. What is OID version you used for Apps-SSO/OID Integration ?
Latest certified OID version is 10.1.4.0.1 (Other certified were 10.1.2.0.2,
9.0.4 )
Q. What was direction of User synchronization ?
- From OID to Apps
� Apps to OID
� Bidirectional
Q. What extra steps you need to do after changing apps password in SSO Integrated
Apps Instances ?
� Update provisioning profile in OID with new apps password
Q. If new users created is not able to login, how will you troubleshoot ?
- Check if user exist in both Apps (FND_USER) and OID (If not check if user
provisioning is working fine)
� If user exist check Password (in FND_USER) is set to External (If set to LOCAL
user should try AppsLocalLogin.jsp)
Q. User is currently set to Login via SSO, what steps you need to do to change user
for Local Login
(AppsLocalLogin.jsp)
� Set Profile Option �Applications SSO Login Types� to LOCAL or BOTH
� Reset User Password using FNDCPASS
� Login using URL /OA_HTML/AppsLocalLogin.jsp
Q. Where is log file for Apps Registration to SSO/OID ?
$APPLRGF/sso ($COMMON_TOP/rgf/$CONTEXT_NAME/sso)
Q. Where is log file for User Provisioning ?
On OID Node under $ORACLE_HOME/ldap/odi/log
Q. How you clone Oracle Apps (11i/R12) Instance Integrated with OID/SSO
On Apps
� Clone E-Business Suite using Rapid Clone
On OID/SSO
� Migrate User/Groups from source to target using ldifwrite & bulkload.sh
� Migrate Password Policy, DAS Admin Group
and finally Register target Apps to Target OID/SSO
Q. What all issues you encountered during SSO/OID Integration ?
Q. What is Subscription List ?
Q. What is mapping file w.r.t. User provisioning between Apps & OID and what is
default location of oracle shipped
mapping file in Apps ?
� $FND_TOP/admin/template/*.tmp
Q. What is ODISRV in OID ?
ODISRV stands for Directory Integration Server and used during user provisioning
between Apps and OID
Q. How to load initial Set of user from Apps to OID or Vice-Versa ?
From Apps to OID
� Create intermediate LDIF file
� Using ldifmigrator create final LDIF file
� Use bulkload to load ldif file containing users to OID
� Finally create subscription for bulkloaded users
From OID to Apps
� Use ldifwrite to create dump of users into LDIF file
� Using LDAPUserImport to import user to apps
DBA Interview Questions with Answers Part7
My database was terminated while in BACKUP MODE, do I need to recover?
If a database was terminated while one of its tablespaces was in BACKUP MODE (ALTER
TABLESPACE xyz BEGIN BACKUP;), it will tell you that media recovery is required
when you try to restart the database. The DBA is then required to recover the
database and apply all archived logs to the database. However, from Oracle 7.2, one
can simply take the individual datafiles out of backup mode and restart the
database.
SQL> ALTER DATABASE DATAFILE �C:\PATH\FILENAME� END BACKUP;
One can select from V$BACKUP to see which datafiles are in backup mode From
Oracle9i onwards, the following command can be used to take all of the datafiles
out of hotbackup mode:
SQL>ALTER DATABASE END BACKUP;
Note: This command must be issued when the database is mounted, but not yet opened.
Does Oracle write to data files in begin/hot backup mode?
When a tablespace is in backup mode, Oracle will stop updating its file headers,
but will continue to write to the data files. When in backup mode, Oracle will
write complete changed blocks to the redo log files. Because of this, increased log
activity and archiving during on-line backups. To solve this problem, simply switch
to RMAN backups.
Difference Consistent and Inconsistent Backup
The backup taken in shutdown state or in same point in time are referred to as
consistent. Unlike an inconsistent backup, a consistent whole database backup does
not require recovery after it is restored, here all header of datafile belongs to
writable tablespace have the same SCN. These datafile donot have any change past
this check point SCN. The SCN of datafile header matches exactly controlfile
checkpoint.
An inconsistent backup is a backup of one or more database files that you make
while the database is open or after the database has shut down abnormally. This
means that the files in the backup contain data taken from different points in
time. This can occur because the datafiles are being modified as backups are being
taken. Not any of the above mentioned properties are exist here. A recovery
(Applying all the archive and online redo logs) is needed in order to make the
backup consistent.
Difference between restoring and recovering?
Restoring involves copying backup files from secondary storage (backup media) to
disk. This can be done to replace damaged files or to copy/move a database to a new
location.
Recovery is the process of applying redo logs to the database to roll it forward.
One can roll-forward until a specific point-in-time (before the disaster occurred),
or roll-forward until the last transaction recorded in the log files.
Difference between Complete and Incomplete Recovery?
Complete recovery involves using redo data or incremental backups combined with a
backup of a database, tablespace, or datafile to update it to the most current
point in time. It is called complete because Oracle applies all of the redo changes
contained in the archived and online logs to the backup. Typically, you perform
complete media recovery after a media failure damages datafiles or the control
file.
Incomplete recovery, or point-in-time recovery we do not apply all of the redo
records generated after the most recent backup or when archive redo log is missing.
Because you are not completely recovering the database to the most current time,
you must tell Oracle when to terminate recovery. You can perform the following
types of media recovery.
Time based Recovery, Cancel based Recovery, Change based Recovery, Log sequence
Recovery
What happens when we open the database with Resetlogs option after incomplete
recovery?
The RESETLOGS operation creates a new incarnation of the database�in other words, a
database with a new stream of log sequence numbers starting with log sequence 1.
Before using the OPEN RESETLOGS command to open the database in read/write mode
after an incomplete recovery, it is a good idea to first open the database in read-
only mode, and inspect the data to make sure that the database was recovered to the
correct point. If the recovery was done to the wrong point, then it is easier to
re-run the recovery if no OPENRESETLOGS has been done.
Difference between online and offline backups?
A hot (or on-line) backup is a backup performed while the database is open and
available for use (read and write activity). Except for Oracle exports, one can
only do on-line backups when the database is ARCHIVELOG mode. A cold (or off-line)
backup is a backup performed while the database is off-line and unavailable to its
users. Cold backups can be taken regardless if the database is in ARCHIVELOG or
NOARCHIVELOG mode.
It is easier to restore from off-line backups as no recovery (from archived logs)
would be required to make the database consistent. Nevertheless, on-line backups
are less disruptive and doesn't require database downtime.
Point-in-time recovery (regardless if you do on-line or off-line backups) is only
available when the database is in ARCHIVELOG mode.
What is the difference between Views and Materialized Views in Oracle?
Views evaluate the data in the tables underlying the view definition at the time
the view is queried. It is a logical view of your tables, with no data stored
anywhere else. The upside of a view is that it will always return the latest data
to you. The downside of a view is that its performance depends on how good a select
statement the view is based on. If the select statement used by the view joins many
tables, or uses joins based on non-indexed columns, the view could perform poorly.
Materialized views are similar to regular views, in that they are a logical view of
your data (based on a select statement), however, the underlying query result set
has been saved to a table. The upside of this is that when you query a materialized
view, you are querying a table, which may also be indexed. Materialized views
having several other advantages over simple view.
What happens when you set CONTROL_FILE_RECORD_KEEP_TIME to 0
Never set CONTROL_FILE_RECORD_KEEP_TIME to 0. If you do, then backup records may be
overwritten in the control file before RMAN is able to add them to the catalog. As
we know that The CONTROL_FILE_RECORD_KEEP_TIME initialization parameter determines
the minimum number of days that records are retained in the control file before
they are candidates for being overwritten.
How to find the last refresh of your database (when the recovery with resetlogs
performed)?
If the cloned database has been opened with RESETLOGS option, you can try checking
out V$DATABASE.RESETLOGS_TIME. if the V$DATABASE.CREATED is not equal to
V$DATABASE.RESETLOGS_TIME...there is a possibility that it might be opened with
resetlogs option. I don't have the required set up to check and confirm this
myself....but this is something you can get it a shot.
Command to find files created a day before
find . -type f -mtime 1 -exec ls -lth �{}� \;
Initially Flashback Database was enabled but noticed Flashback was disabled
automatically long time ago. What is the Issue?
Reason:
It could be because the flashback area 100% Once Flashback Area become 100% full
then oracle will log in Alert that Flashback will be disabled and it will
automatically turn off Flash Back without user intervention.
How can I check if there is anything rolling back?
It depends on how you killed the process. If you did and alter system kill session
you should be able to look at the used_ublk block in v$transaciton to get an
estimate for the rollback being done. If you killed to server process in the OS and
pmon is recovering the transaction you can look at V$FAST_START_TRANSACTIONS view
to get the estimate
How do you see how many instances are running?
In Linux, Unix the command: ps -ef|grep pmon
In Windows: services.msc
Which is more efficient Incremental Backups using RMAN or Incremental Export?
Rman
The current logfile gets damaged. What you can do now?
Once current redolog file is damaged, instance is aborted and it needs recovery
upto undamaged part. Only undamaged part can be recovered. Here DBA must apply time
based recovery, means it can be a point in time or specified by SCN. It leads to
incomplete recovery
Where should the tuning effort be directed?
Consider the following areas for tuning in order to increase performance of DB
Application Tuning:
Experience showed that approximately 80% of all Oracle system performance problems
are resolved by coding optimal SQL. Also consider proper scheduling of batch tasks
after peak working hours.
Memory Tuning:
Properly size your database buffers (shared pool, buffer cache, log buffer, etc) by
looking at your buffer hit ratios. Pin large objects into memory to prevent
frequent reloads.
Disk I/O Tuning:
Database files needs to be properly sized and placed to provide maximum disk
subsystem throughput. Also look for frequent disk sorts, full table scans, missing
indexes, row chaining, data fragmentation, etc
Eliminate Database Contention:
Study database locks, latches and wait events carefully and eliminate where
possible.
Tune the Operating System:
Monitor and tune operating system CPU, I/O and memory utilization. For more
information, read the related Oracle FAQ dealing with your specific operating
system.
What are the common Import/ Export problems?
ORA-00001: Unique constraint (...) violated - You are importing duplicate rows. Use
IGNORE=NO to skip tables that already exist (imp will give an error if the object
is re-created).
ORA-01555: Snapshot too old - Ask your users to STOP working while you are
exporting or use parameter CONSISTENT=NO
ORA-01562: Failed to extend rollback segment - Create bigger rollback segments or
set parameter COMMIT=Y while importing
IMP-00015: Statement failed ... object already exists... - Use the IGNORE=Y import
parameter to ignore these errors, but be careful as you might end up with duplicate
rows.
By mistake a use drop or truncate a Table then what is the best method to recover
it?
There are several methods possibly through RMAN such as:
Restore and recover the primary database to a point in time before the drop. This
is an extreme measure for one table as the entire database goes back in time.
Restore and recover the tablespace to a point in time before the drop. This is a
better option, but again, it takes the entire tablespace back in time.
Restore and recover a subset of the database as a DUMMY database to export the
table data and import it into the primary database. This is the best option as only
the dropped table goes back in time to before the drop.
How to find running jobs in oracle database
select sid, job,instance from dba_jobs_running;
?select sid, serial#,machine, status, osuser,username from v$session where
username!='NULL'; --all active users
select owner, job_name from DBA_SCHEDULER_RUNNING_JOBS; --for oracle 10g
How to find long running jobs in oracle database
select username,to_char(start_time, 'hh24:mi:ss dd/mm/yy') started, time_remaining
remaining, message from v$session_longops
where time_remaining = 0 order by time_remaining desc
Login without password knowledge
This is not the genuine approach consider it as a practice.
SQL> CONNECT / as sysdba
Connected.
SQL> SELECT password FROM dba_users WHERE username='SCOTT';
PASSWORD
--------------- ---------------
F894844C34402B67
SQL> ALTER USER scott IDENTIFIED BY anything;
User altered.
SQL> CONNECT scott/anything
Connected.
OK, we're in. Let's quickly change the password back before anybody notices.
SQL> ALTER USER scott IDENTIFIED BY VALUES 'F894844C34402B67';
User altered.
While applying the CPU Patch why we need to update the Oracle Inventory?
Because when you apply the CPU it updates the oracle binaries.
/u01/db/tech_st/11.1.0/OPatch
[oracle@apps OPatch]$ opatch version
Invoking OPatch 11.1.0.6.2
Solaris:
======
isainfo -v
Uname -X
select count(*),module from v$session where program like %jdbc% group by module;
11i *: $APPL_TOP/admin/<sid>_<hostname>.xml
R12*: $INST_TOP/appl/admin
The procdure is same in 11i and R12 but the location is different.
cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
in the above location you will find adautocfg.sh file.just give filename and hit
enter it will ask for apps password.
R12
===
in the above location you will find adautocfg.sh file.just give filename and hit
enter it will ask for apps password.
if you run adautocfg.sh file which in turn call adconfig.sh file which further call
adconfig.pl.you should not worry about the later two script its only for
information.
yes you can we have utility called adblxml to build context file.
but in R12 we don't have this.
cd $AD_TOP/bin
ls -tlrh adchkcfg.sh ===>run this file it will ask for apps password ,you can use
it in 11i/r12
adchkcfg.sh ===> It will generate HTML report.
This report will list all files and profile options going to change when you run
autoconfig.
cd $APPL_TOP/admin/<SID>/restart
.rf9 file used during the restart of the patch incase of patch failure because of
some reason.
14)while applying apps patch ,if you want to hide apps password.how will that
possible?
adpatch flags=hidepw
15)when you apply c driver patch does it require database to be up and why?
Yes,database and database listener should be up and running when you apply any
dirver patch in apps.Even if driver is not updating any database objects connection
is required to validate apps &
other schema and to upload patch history information in database tables.
No.'C' driver only copies files from patch top to appl top.
Database object might be invalided during 'D' driver when these objects are
created/dropped/modified.
uname -r.
26)In multinode intallation,how you will find which node is running what services?
27)what is the utility to upgrade database from one version to another version.
dbua.
/u02/apps/apps_st/appl/au/12.0.0/forms/US
[applmgr@apps US]$ adident Header IGSPR004.fmb
IGSPR004.fmb:
$Header APPSTAND.fmb 115.33 2002/04/04 11:13:40 pkm ship
$
$Header IGSPR004.fmb 120.0 2005/07/05 12:49 appldev noship
$
[applmgr@apps US]
(OR)
RELEASE_NAME
--------------------------------------------------
12.1.1
NAME
---------
PROD
SQLPLUS>@$FND_TOP/sql/wfver.sql
101) What URL you use to access Disco viewer & Disco plus .
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)
40)How can you determine if an Oracle instance is up from the operating system
level?
[oracle@apps ~]$ ps -ef|grep -i pmon
oracle 26829 1 0 18:18 ? 00:00:00 ora_pmon_PROD
oracle 31937 31839 0 19:18 pts/3 00:00:00 grep -i pmon
[oracle@apps ~]$
41)How to check database listener is up and running from the operating system
level?
42)Where would you look for errors from the database engine?
alert logfile.
Database altered.
SQL>
File created.
SQL>
sun_plugin_version=1.6.0_07
[applmgr@apps ~]$
TEXT
--------------------------------------------------------------------------------
2.6.0
54)How to check whether forms are in servlet mode/Socket mode?
OR
Ex:
SQL> select fnd_web_sec.validate_login('SYSADMIN','SYSADMIN123') from dual;
FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','SYSADMIN123')
--------------------------------------------------------------------------------
N
SQL> select fnd_web_sec.validate_login('SYSADMIN','SYSADMIN') from dual;
FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','SYSADMIN')
--------------------------------------------------------------------------------
Y
I--INSTALLED,
B--BASE,
D--DISABLE
Custom Top is nothing but Customer Top, which is created for customer only. we can
have multiple custom tops based on client requirement. It is used to store
developed & customized components. whenever we apply application patches it will
over ride on all the modules except custom top. that's why we will use custom top.
63)I am applying a patch, can I open another session in another node and run
adpatch?
No.
64)How you will know what are the files the patch is going to change just my
unzipping the patch?
When we unzip a patch it will keep all the files related to a particular product
under that directory inside you are patch directory for example if the patch
delivering files related to GL product then it will create a sub directory under
the patch directory with the name GL in which it will put all related files to that
product.
When we apply a patch it will take the backup of the files which it is going to
change during patching and it is done under backup directory of the patch.
GWYUID stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
adjava
75)How do you relink an executable of a product?
By relinking option in adadmin or adrelink
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=apps)(Port=1626))
STATUS of the LISTENER
------------------------
Alias APPS_PROD
Version TNSLSNR for Linux: Version 10.1.0.5.0 - Production
Start Date 13-MAY-2013 10:35:35
Uptime 0 days 0 hr. 7 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/inst/apps/PROD_apps/ora/10.1.2/network/admin/list
ener.ora
Listener Log File /u02/inst/apps/PROD_apps/logs/ora/10.1.2/network/apps_
prod.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apps.user.com)(PORT=1626)))
Services Summary...
Service "FNDFS" has 1 instance(s).
Instance "FNDFS", status UNKNOWN, has 1 handler(s) for this service...
Service "FNDSM" has 1 instance(s).
Instance "FNDSM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[applmgr@apps scripts]$
OR
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=apps)(Port=1626))
STATUS of the LISTENER
------------------------
Alias APPS_PROD
Version TNSLSNR for Linux: Version 10.1.0.5.0 - Production
Start Date 13-MAY-2013 10:35:35
Uptime 0 days 0 hr. 9 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u02/inst/apps/PROD_apps/ora/10.1.2/network/admin/listener.ora
Listener Log File
/u02/inst/apps/PROD_apps/logs/ora/10.1.2/network/apps_prod.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apps.user.com)(PORT=1626)))
Services Summary...
Service "FNDFS" has 1 instance(s).
Instance "FNDFS", status UNKNOWN, has 1 handler(s) for this service...
Service "FNDSM" has 1 instance(s).
Instance "FNDSM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[applmgr@apps scripts]$
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=apps)(Port=1626))
STATUS of the LISTENER
------------------------
Alias APPS_PROD
Version TNSLSNR for Linux: Version 10.1.0.5.0 - Production
Start Date 13-MAY-2013 10:46:13
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u02/inst/apps/PROD_apps/ora/10.1.2/network/admin/listener.ora
Listener Log File
/u02/inst/apps/PROD_apps/logs/ora/10.1.2/network/apps_prod.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apps.user.com)(PORT=1626)))
Services Summary...
Service "FNDFS" has 1 instance(s).
Instance "FNDFS", status UNKNOWN, has 1 handler(s) for this service...
Service "FNDSM" has 1 instance(s).
Instance "FNDSM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[applmgr@apps scripts]$
80)what are the two tables will create while applying the patches?
FND_INSTALL_PROCESSES and AD_DEFERED_JOBS
No existing users will be able to continue their work. Any new connection will not
be able to go through.
88)Suppose we need to apply AR and AP patches � can we merge the patches together
and apply ?
Yes we can merge them and apply as they belong to the same family ( Finance
Module ).
FNDFS � Also known as RRA(Report Review Agent) is the default text viewer within
Oracle Applications, which allows users to view report output and log files.
HOME_URL
--------------------------------------------------------------------------------
http://apps.user.com:8000/OA_HTML/AppsLogin
SQL>
91)What is APPLSYSPUB ?
92) Which two parameters are required when we do clone using RMAN ?
APPLSYS :
==========
Applsys schema contains all the tables required for administarative purpose. The
default password is apps.
APPLSYS schema contains shared APPS foundation objects like FND,AD,WF related data
like tables and Indexes.
This uses APPLSYSPUB schema to authenticate and validate AOL username & password
(OPERATIONS/WELCOME using GUEST user account).
c) 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.
95)What would happen if you change the passwords for APPS, APPLSYS with �alter
user� command?.
Changing the apps password using �alter user� corrupts the password
Thus changing the password using �Alter User� command will not reflect the password
in FND_ORACLE_USERID.
exec fnd_conc_clone.setup_clean;
97)Where custom top information will be there ?
/u01erpapp/appl/APPLSYS.env file.
98)After applying patch why we need to take snapshot and what is the use of it ?
Snapshot is a view of the system at specific time. In apps, Patch Wizard uses
Global snapshot to determine which patches have been applied to the system and
Autopatch uses APPL_TOP snapshot to determine what patches have been applied to
that APPL_TOP.
Snapshot actually records the list of files,file versions and bug fixes. Both
snapshot are views, they are created once during installation and then updated
during patching. APPL_TOP snapshot information is stored in the AD_SNAPSHOTS,
AD_SNAPSHOT_FILES, and AD_SNAPSHOT_BUGFIXES tables.
100)Why we need to put maintenance mode when we are applying a patch ?******
Enabling the maintenance mode feature shuts down the Workflow Business Events
System and 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.
Main reason:
Meta link id [ID 233044.1] ==> check for heading Maintenance Mode
b<patch number>.ldt which tells the database to apply the pre requisite patch.
cd $APPL_TOP/admin/SID/log.
FNDLOAD.
By running autoconfig.
cd $INST_TOP/admin/install
By executing a file adgendbc.sh file.
Its better to run adgendbc.sh file as it will take less than a minute to create dbc
file where as autoconfig will take more than 5mins.
As a dba we have to save the time.
f60srvm
10
odf stands for Object Description Files used to create tables & other database
objects.
118)What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
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.
121)What are the table u r adpatch will create and when?
122)Which table you will query to check the temp tablespace space issues?
dba_temp_files
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.
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 DEV1_TO_DEV2 connect to apps identified by apps using
�DEV2';
NAME
���
DEV2
http://hostname.domain:/dev60cgi/f60cgi
131)What is jinitiator?
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.
132)What is adsplicer?
134)What is tnsping?
tnsping is command used to check the connectivity to the database server node from
other nodes.
1. Through aoljtest
2. cd $COMMON_TOP/html/
3. adident Header OA.jsp
CONSUB
137)How to find out whether a language patch is applied for a particular patch?
Query ad_patch_driver_langs.
140)can you apply a patch without putting oracle application in maintenance mode
11i/r12?
Yes,we can using adpatch optoins=hotpatch
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Server process.
144)How to check whether your database startup with the pfile or spfile ?
SQL> startup
ORACLE instance started.
NAME
VALUE
--------------------------------------------------------------------------------
--------------------------------------------------
spfile
/u01/home/oracle/product/10.2.0/db_1/dbs/spfilePRO
D.ora
145)How to put the database in archivelog mode ?
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Database altered.
ARCHIVE
-------
STARTED
LOG_MODE
------------
ARCHIVELOG
NAME DBID
--------- ----------
EBSOFDP 219858109
SQL>
nid is utility to change the dbid/dname .for help use nid help=y.
TO change dbid/dbname you need to have sysdba privileges.
above steps are very important which are highlighted in yellow color and in pink .
Database altered.
NAME DBID
--------- ----------
EBSOFDP 631773769
SQL>1)shutdown immediate
2)startup mount
3) os level nid target=/ (/ means operating system authentication or sysdba
privileges)
NAME DBID
--------- ----------
EBSOFDP 219858109
SQL>
147)what are different modes of forms in which you can start form server and which
is the default in oracle apps 11i/R12?
We can switch from servlet to socket and socket to servlet and it depends on the
business what they
like it.
By defalut forms are running in servlet mode in oracle apps R12.
what is oraInventory?
All the other managers will keep working. ICM only takes care of the queue control
requests, which means starting up and shutting down other concurrent managers.
Look at the log of the failed worker, identify and rectify the error and restart
the worker using adctrl utility.
4)Provide a high-level overview of the cloning process and post-clone manual steps.
Run pre-clone on the source (all tiers), duplicate the DB using RMAN (or restore
the DB from a hot or cold backup), copy the file systems and then run post-clone on
the target (all tiers).
Manual steps (there can be many more):
Change all non-site profile option values (RapidClone only changes site-level
profile options).
Modify workflow and concurrent manager tables.
Change printers.
5)Provide an introduction to AutoConfig. How does AutoConfig know which value from
the XML file needs to be put in which file?
AutoConfig uses a context file to maintain key configuration files. A context file
is an XML file in the $APPL_TOP/admin directory and is the centralized repository.
When you run AutoConfig it reads the XML files and creates all the AutoConfig
managed configuration files.
For each configuration file maintained by AutoConfig, there exists a template file
which determines which values to pick from the XML file.
6)Can you tell me a few tests you will do to troubleshoot self-service login
problems? Which profile options and files will you check?
Check guest user/password in the DBC file, profile option guest user/password, the
DB.
Check whether apache/jserv is up.
Run IsItWorking, FND_WEB.PING, aoljtest, etc.
7)What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME and
LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at the FND_NODES
table. Look at the FNDFS_entry in tnsnames.ora.
8)How will you change the location of concurrent manager log and output files?
9)If the user is experiencing performance issues, how will you go about finding the
cause?
Trace his session (with waits) and use tkprof to analyze the trace file.
Take a statspack report and analyze it.
O/s monitoring using top/iostat/sar/vmstat.
Check for any network bottleneck by using basic tests like ping results.
11)Provide the location of the DBC file and explain its significance and how
applications know the name of the DBC file.
You will use script adautocfg.sh (on both Database & Application tier) which inturn
will call adconfig.sh , which further will calladconfig.pl. You should not worry
about later two scripts its for information only. adautoconfig.sh is script which
you use to run autoconfig.
2.) Do I need to run autoconfig on both appl and db node after I change user
applsys password.
3.) Must I stop all running application processes before I run autoconfig. i.e by
running adstpall.sh?
Yes, if you are running autoconfig on application tier u need to stop the
application tier, always database should be up
All the other managers will keep working. ICM only takes care of the queue control
requests, which means starting up and shutting down other concurrent managers.
Look at the log of the failed worker, identify and rectify the error and restart
the worker using adctrl utility.
4)Provide a high-level overview of the cloning process and post-clone manual steps.
Run pre-clone on the source (all tiers), duplicate the DB using RMAN (or restore
the DB from a hot or cold backup), copy the file systems and then run post-clone on
the target (all tiers).
Manual steps (there can be many more):
Change all non-site profile option values (RapidClone only changes site-level
profile options).
Modify workflow and concurrent manager tables.
Change printers.
5)Provide an introduction to AutoConfig. How does AutoConfig know which value from
the XML file needs to be put in which file?
AutoConfig uses a context file to maintain key configuration files. A context file
is an XML file in the $APPL_TOP/admin directory and is the centralized repository.
When you run AutoConfig it reads the XML files and creates all the AutoConfig
managed configuration files.
For each configuration file maintained by AutoConfig, there exists a template file
which determines which values to pick from the XML file.
6)Can you tell me a few tests you will do to troubleshoot self-service login
problems? Which profile options and files will you check?
Check guest user/password in the DBC file, profile option guest user/password, the
DB.
Check whether apache/jserv is up.
Run IsItWorking, FND_WEB.PING, aoljtest, etc.
7)What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME and
LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at the FND_NODES
table. Look at the FNDFS_entry in tnsnames.ora.
8)How will you change the location of concurrent manager log and output files?
9)If the user is experiencing performance issues, how will you go about finding the
cause?
Trace his session (with waits) and use tkprof to analyze the trace file.
Take a statspack report and analyze it.
O/s monitoring using top/iostat/sar/vmstat.
Check for any network bottleneck by using basic tests like ping results.
11)Provide the location of the DBC file and explain its significance and how
applications know the name of the DBC file.
1)I submitted a concurrent request.It was running fine and it takes just 5 minutes
to finish..Bt today its taking 1hr bt still its not yet been finished.Then how do
you troubleshoot?Plz explain all the possiblities?
3)If mountpoint gets full then how will we know..everytime we dont go to the server
and we wont issue df -h.Then how can we know that its getting full?
4)Patch was applied fine in test instance bt when it came to production instance
its taking lot of time then how to troubleshoot?
5)On development instance you are applying patch.But you couldnt complete it within
maintainence time..then what will you do?will you up the instance without applying
the patch or what will you do that time?
8> how many concurrent users are currently loggedin to the application and
database?
9> What is local=no?its a connection from remote pc?then even if we connect from
directly into the server also we are getting local=no?then whats exactly local=no
process and how to know the user id and name ?
10> What u mean by it, we do a American upgrade patch which is used to upgrade from
11i to R12
11> Consolidate Upgrade patches sir...CU 1 and CU 2 like that wil be there rite? so
what is the highest CU patch for 11.5.10.2 and for r12.
what is a workflow?
what is smtp?
what is imap?
15>
what happens when we run
why dont we just run autoconfig by ourselves without giving that command??
plz tell me
16> Why do we always run adcfgclone.pl on dbtier first then on appstier?
some more
Posted on: 2012-06-15 05:43:09 By: akr14feb
1. How do we take care of customization while doing an upgrade.what kind of
roadmaps do u give to client before upgrading.
3. How do you recommend to your client for applying cpu patches.How to they impact
the business.
4. Have you applied timezone patches. why do you apply how do they the affect the
business if they are not applied
5. why apps and applsys should have same password. can't we have diff password for
each.
6. In R12 multi node installation why all the node status( support_cp,support_forms
etc ) is marked yes on all nodes in fnd_nodes table.-- is this represents the
concept of unified appl top.
10. How to answer this question in an interview " How many implementation
Projects are you involved / worked ". Is it better to say that i am
involved only in support or is it ok to say one or two implementation
projects. How long does an implementation project goes and what is the
process or procedure to start with and how to answer these questions
and what are involved.
11.Difference between 3460000 and 3480000 when both are used to upgrade
to 11.5.10.2
13. we used the gsm profile and set it to N , the fndlibr process are
up but the target and source values are not same and log file show as
service started and ended
14. I thought to apply the latest autoconfig patch but the patch tells
me to upgrade to dev 6i, i thought it is of no issue to upgrade dev6i
if it is a conc mgr issue.
How would you go about verifying the network name that the local_listener is
currently using?
You have 4 instances running on the same UNIX box. How can you determine which
shared memory and semaphores are associated with which instance?
What view(s) do you use to associate a user�s SQLPLUS session with his o/s process?
What is the recommended interval at which to run statspack snapshots, and why?
What spfile/init.ora file parameter exists to force the CBO to make the execution
path of a given statement use an index, even if the index scan may appear to be
calculated as more costly?
Assuming today is Monday, how would you use the DBMS_JOB package to schedule the
execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run
subsequently every other day at 2AM.
How would you edit your CRONTAB to schedule the running of /test/test.sh to run
every other day at 2PM?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?
In which dictionary table or view would you look to determine at which time a
snapshot or MVIEW last successfully refreshed?
How would you best determine why your MVIEW couldn�t FAST REFRESH?
How does propagation differ between Advanced Replication and Snapshot Replication
(read-only)?
Which dictionary view(s) would you first look at to understand or get a high-level
idea of a given Advanced Replication environment?
How would you begin to troubleshoot an ORA-3113 error?
Which dictionary tables and/or views would you look at to diagnose a locking issue?
An automatic job running via DBMS_JOB has failed. Knowing only that �it�s failed�,
how do you approach troubleshooting this issue?
How would you extract DDL of a table without using a GUI tool?
You�re getting high �busy buffer waits� - how can you find what�s causing it?
What query tells you how much space a tablespace named �test� is taking up, and how
much space is remaining?
Database is hung. Old and new user connections alike hang on impact. What do you
do? Your SYS SQLPLUS session IS able to connect.
Database crashes. Corruption is found scattered among the file system neither of
your doing nor of Oracle�s. What database recovery options are available? Database
is in archive log mode.
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX
and/or Solaris).
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the
current date, changes the date format to include minutes & seconds, issues a drop
table command, displays the date again, and finally exits.
Explain how you would restore a database using RMAN to Point in Time?
How does Oracle guarantee data integrity of data changes?
Which environment variables are absolutely critical in order to run the OUI?
What SQL query from v$session can you run to show how many sessions are logged in
as a particular user account?
Why does Oracle not permit the use of PCTUSED with indexes?
What would you use to improve performance on an insert statement that places
millions of rows into that table?
What would you do with an �in-doubt� distributed transaction?
What are the commands you�d issue to show the explain plan for �select * from
dual�?
In what script is �snap$� created? In what script is the �scott/tiger� schema
created?
If you�re unsure in which script a sys or system-owned object is created, but you
know it�s in a script from a specific directory, what UNIX command from that
directory structure can you run to find your answer?
How would you configure your networking files to connect to a database by the name
of DSS which resides in domain icallinc.com?
You create a private database link and upon connection, fails with: ORA-2085:
connects to . What is the problem? How would you go about resolving this error?
I have my backup RMAN script called �backup_rman.sh�. I am on the target database.
My catalog username/password is rman/rman. My catalog db is called rman. How would
you run this shell script from the O/S such that it would run as a background
process?
Explain the concept of the DUAL table.
What are the ways tablespaces can be managed and how do they differ?
From the database level, how can you tell under which time zone a database is
operating?
What�s the benefit of �dbms_stats� over �analyze�?
Typically, where is the conventional directory structure chosen for Oracle binaries
to reside?
You have found corruption in a tablespace that contains static tables that are part
of a database that is in NOARCHIVE log mode. How would you restore the tablespace
without losing new data in the other tablespaces?
How do you recover a datafile that has not been physically been backed up since its
creation and has been deleted. Provide syntax example.
==============================
The Following are the few of Apps DBA 11i interview question, PLease watch this
space for more question. These questions are intended to help newbee DBA to start
their career as Oracle Apps DBA.
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
10. What is Family pack ?
Ans : A Family pack is one which will upgade the patchset level of all the products
in that family to perticular patchsetlevel.
11. What is Maintanance pack ?
Ans : A maintanance pack will upgrade applications from one version to another like
11.5.8 to 11.5.9
12. What is a Rollup patch?
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.
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.
Ans : adpatch
18. What inputs you need to apply a patch other than driver name and etc?
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 can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
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.
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.
32. What is the worker log file name and its location?
Ans : adwork01,adwork02�� and location is APPL_TOP/admin/SID/log
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
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 :
This mode will be usefull to discrease upgrade downtime as its applies bus fixes
without running SQL,EXEC and generate portion of patch.
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.
37. What are the latest ORA errors u have encountered?
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?
Ans : bytes column in dba_free_spaces and dba_data_files
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.
2.SETUP � Fill the templated with values from xml and create files
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.
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.
61. What is the configuration file for adutilities (like adadmin,adconfig etc)?
Ans: adconfig.txt @APPL_TOP/admin
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
68. How to find out what component of u r oracle applications were installed on
which node?
Ans : Xml file (context file)
70. What is the configuration file for httpd and what is the location of it ?
Ans : httpd.conf @IAS_ORACLE_HOME/Apache/Apache/conf
71. Where you will see when you have some problem with u r webserver(httpd/Apache)?
Ans : access_log & error_log @IAS_ORACLE_HOME/Apache/Apache/logs
Ans : jserv is nothing but servlet engine which will run u r servlets. It�s a
module of apache which supports servlets.
75. Where u will see when u r not able to get self service applications?
Ans : access_log,error_log, error_pls, jserv.log, wdbsvr.app(for apps password)
(rm �r _oa__html)
81. What are the different modes u can start u r form server?
Ans : socket and servlet
85. What is report server configuration and log file name and its location?
Ans : Configuration file � REP_.ora
89. Is apps password necessary to start all the components of oracle application?
Ans : No. Only to start/stop concurrent managers apps password is needed.
1. Internal concurrent manager � Will start all other managers and monitor
92. What are actual and target count in �Adminster Concurrent Managers form�?
95. What if internal concurrent manager target and actual are not same?
Ans : we need to bounce the concurrent manager using adcmctl.sh
99. What is the other script by which u can start apache other than adapcctl.sh?
Ans : apachectl @IAS_ORACLE_HOME/Apache/bin
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
110. How to find out what are the languages enabled in u r applications?
Ans : Query fnd_languages
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)
If it�s a dead lock, we need to kill that session.
117. How to find adconfig is enabled for oracle operating system user/database?
Ans : If appsutil directory is there in RDBMS_ORACLE_HOME
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.
The Global inventory (or Central inventory) The Local inventory (or Home inventory)
Ans : The Global Inventory is the part of the XML inventory that contains the high
level list of all oracle products installed on a machine. There should therefore be
only one per machine. Its location is defined by the content of oraInst.loc.The
Global Inventory records the physical location of Oracle products installed on the
machine, such as ORACLE_HOMES (RDBMS and IAS) or JRE. It does not have any
information about the detail of patches applied to each ORACLE_HOMEs.The Global
Inventory gets updated every time you install or de-install an ORACLE_HOME on the
machine, be it through OUI Installer, Rapid Install, or Rapid Clone.
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 :
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 : 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.
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.
1.Login as oracle user
---------
TEST2
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 : 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:
Opatch apply no_inventory
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 : Error:
RC-50013: Fatal: Failed to instantiate
driver/u01/fms2c/appfms2c/fms2cora/iAS/appsutil/driver/instconf.drvCauseThe source
instance has files that adpreclone flags as 'autoconfigable' but in reality they
are not. So adpreclone.pl adds these files into the instconf.drv. Then when
adcfgclone.pl is run on target it looks for the template file to instantiate for
these files and since there isn't a template file adcfgclone.pl fails.
SolutionModify the target's instconf.drv and remove the offending lines. Then rerun
adcfgclone.pl
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)?
Ans: query ad_patch_drivers.
182. How to find out whether a language patch is applied for a perticular patch?
Ans : Query ad_patch_driver_langs.
183. How to validate that sysadmin password is correct or not from backend?
Ans: select fnd_web_sec.validate_login('SYSADMIN','Qwert8765') from dual;
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?
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
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.
196) How to find out JDBC version :
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 :
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
This will delete all the entries in the fnd_nodes table, to populate it with target
system node information, Run autoconfig on DB node and Applications node.
FND/AOL Tables
--------------
FND_APPL_TOPS
FND_LOGINS
FND_USER
FND_DM_NODES
FND_TNS_ALIASES
FND_NODES
FND_RESPONSIBILITY
FND_DATABASES
FND_UNSUCCESSFUL_LOGINS
FND_LANGUAGES
FND_APPLICATION
FND_PROFILE_OPTION_VALUES
AD/Patches
-------------
AD_APPLIED_PATCHES
AD_PATCH_DRIVERS
AD_BUGS
AD_INSTALL_PROCESSES
AD_SESSIONS
AD_APPL_TOPS
Q) How to find out if any patch except localisation patch is applied or not, if
applied, that what all drivers it contain and time of it's application
select A.APPLIED_PATCH_ID, A.PATCH_NAME, A.PATCH_TYPE, B.PATCH_DRVIER_ID,
B.DRIVER_FILE_NAME, B.ORIG_PATCH_NAME, B.CREATION_DATE, B.PLATFORM, B.SOURCE_CODE,
B.CREATIONG_DATE, B.FILE_SIZE, B.MERGED_DRIVER_FLAG, B.MERGE_DATE from
AD_APPLIED_PATCHES A, AD_PATCH_DRIVERS B where A.APPLIED_PATCH_ID =
B.APPLIED_PATCH_ID and A.PATCH_NAME = ''
Q) How to know that if the patch is applied successfully, applied on both node or
not, start time of patch application and end time of patch application, patch top
location , session id ... patch run id */
select D.PATCH_NAME, B.APPLICATIONS_SYSTEM_NAME, B.INSTANCE_NAME, B.NAME,
C.DRIVER_FILE_NAME, A.PATCH_DRIVER_ID, A.PATCH_RUN_ID, A.SESSION_ID, A.PATCH_TOP,
A.START_DATE, A.END_DATE, A.SUCCESS_FLAG, A.FAILURE_COMMENTS from AD_PATCH_RUNS A,
AD_APPL_TOPS B, AD_PATCH_DRVIERS C, AD_APPLIED_PATCHES D where A.APPL_TOP_ID =
B.APPL_TOP_ID AND A.PATCH_DRIVER_ID = C.PATCH_DRIVER_ID and C.APPLIED_PATCH_ID =
D.APPLIED_PATCH_ID and A.PATCH_DRIVER_ID in (select PATCH_DRIVER_ID from
AD_PATCH_DRIVERS where APPLIED_PATCH_ID in (select APPLIED_PATCH_ID from
AD_APPLIED_PATCHES where PATCH_NAME = '')) ORDER BY 3;
Q) How To get file version of any application file which is changed through patch
application
select A.FILE_ID, A.APP_SHORT_NAME, A.SUBDIR, A.FILENAME, max(B.VERSION) from
AD_FILES A, AD_FILE_VERSIONS B where A.FILE_ID = B.FILE_ID and B.FILE_ID = 86291
group by A.FILE_ID, A.APP_SHORT_NAME, A.SUBDIR, A.FILENAME
Q) How To get information related to how many time driver file is applied for bugs
select * from AD_PATCH_RUN_BUGS where BUG_ID in (select BUG_ID from AD_BUGS where
BUG_NUMBER = ''
Some more
Posted on: 2012-12-23 09:53:14 By: akr14feb
1. What is a snapshot? In which table we get Information?
2. How will check Apache is working in Front-end and Back End
3. Write down the methods to identify whether the application is in maintenance
mode or not
4. What is the result of unsetting APPLCSF
5. How are the AOL Developers Environment variables set
6. How do we get access to the initial sigon to application?
7. From where are the Report files picked up for execution
8. Where are the Reports plsql files located
9. Which ORACLE HOME is used by ad utilities
10. Which file contains the product dependencies information
11. When apps password is given wrong for adstpall.sh, what is the effect on the
services
12. What are the Various Statuses of Workers
13. How do you restart a failed patch process
14. What are the table/tables created when workers are initiated and in which
schema
15. Create defaults file for �Compile Apps Schema�
16. Execute �Compile Apps Schema� in noninteractive mode
17. Where are the custom files placed
18. Difference between ad_bugs and ad_applied patches
19. What happened Relink adslpice and adpatch?
20. What are Oracle Apps DBA Important Tables we use in daily activities?
21. What is .lct and .ldt files in Patch Directory?
22. What are the tables updated when you apply application patch?
23. Can you apply Opatch without inventory? If there is no inventory, how do you
apply Opatch?
24. What are the tables get created during Apps Patching?
25. How do you hide apps password during adpatching? (adpatch flags=hidepw)
26. What is interoperability patch
27. How do you compile jsp files?
28. Types of profile options?
29. Opatch log file location?
30. How do you clone a context file or how do you change existing port pool?
31. How do you run autoconfig in test mode?
32. What are mandatory users in oracle apps?
33. What is the location of apache and plsql cache?
34. What is adlicmgr ?
35. When do you relinking?
36. What is DAD?
37. How do you compile a schema?
38. What is the utility to clean the concurrent manager tables?
39. How do you stage the 11.5.10 Apps software?
40. ADPATCH has failed and it indicated there was an error with a worker. What
steps can be taken to investigate this problem?
41. How can I check to see if a concurrent manager is running?
42. Where do concurrent request or manager logfiles and output files go?
43. What is the function of the �Conflict Resolution Manager�?
44. Unable to Bring Up Concurrent Manager after Running Autoconfig.
45. When should I run AutoConfig?
46. Which files / profile options get changed when I run AutoConfig?
47. What is cloning?
48. How do I determine if my system is Rapid Clone enabled?
49. Can I clone from one operating system version to another?
50. Can I change the database dbf files layout while cloning?
51. What is the difference between Concurrent Requests, Programs, and Processes
52. What is iAS Patch?
53. Why does a worker fails in Oracle Apps Patch and few scenarios in which it
failed for you?
54. When you apply C driver patch does it require database to be Up & Why?
55. What are the important options to reduce patch down time?
56. Can you apply patch without putting Applications 11i in Maintenance mode?
57. What is difference between adpatch & opatch? Can you use both adpatch & opatch
in Apps?
58. Why do I have invalid objects? What causes them? How you identify them ?
59. Is there a file that lists all of the patches that have been applied to the
application?
60. What is the difference between apps listener & web listener?
61. Why only for Concurrent Manager, we specify apps/apps password & not for other?
62. What�s the significance of batch size? What r the effects when we increase r
decrease the batch size it defaults to 1000.
63. What is the purpose of using the option Phtofile in adpatch?
64. How do I configure AutoConfig for a multi-node system?
65. How do you identify the No. of nodes in Middle tier and db Tier
66. What is a Shared APPL_TOP? How do you identify whether it is a shared appl_TOP
or not?
67. What is a Jinitiator? (Jinitiator is the Oracle JVM used to run the applet
instead of using browsers own JVM)
68. Where would i find .rf9 file, and what exactly it dose?
69. What is .dbc file, where its stored , what�s use of .dbc file ?
70. What is the use of adident utility ?
71. What is adsplice utility ?
72. How can you licence a product after installation ?
73. What is access_log in apache , what entries are recored in access_log ? Where
is default location of this file ?
74. How to determine Oracle Apps 11i Version ?
75. What is PCP is Oracle Applications 11i ?
76. How to convert pll to pld file or pld file to pll ?
77. Where are the Application usrs details stored?
78. How to find plsql version?
79. When do you use startmgr.sh script? Where its locate?
80. What is the yellow Bar Issues?
some more
Posted on: 2013-04-09 09:10:35 By: akr14feb
http://www.appsdbatraining.com/2011/03/17/oracle-apps-dba-interview-questions-vi/
some more
Posted on: 2013-06-17 21:47:10 By: akr14feb
http://oracle-latest-technology.blogspot.in/2011/03/apps-dba-tutorial-01-
concurrent-manager.html
Some more
Posted on: 2013-06-27 18:17:06 By: akr14feb
http://www.appsdbatraining.com/2013/03/25/oracle-apps-dba-r12-interview-questions/?
fb_action_ids=3268953420302&fb_action_types=og.likes&fb_ref=below-
post&fb_source=other_multiline&action_object_map=%7B
%223268953420302%22%3A497420333656343%7D&action_type_map=%7B%223268953420302%22%3A
%22og.likes%22%7D&action_ref_map=%7B%223268953420302%22%3A%22below-post%22%7D
http://dbamind.wordpress.com/2014/02/16/oracle-database-administration-scripts-dba-
bundle/
http://www.youtube.com/watch?v=Zw4liZDvgLk
========================
4) SQL profiling/tuning
14) adpreclone.pl dbTier & appsTier --- what happens in background & same with
adcfgclone.pl
26) issues faced during db upgrade process ? (asked abt some unique constraint
error)
28) how do u come to conclusion whether u need to apply a patch in hotpatch or cold
mode ?
Q) Did you work in Production Enviorment ? explain the Procedure of some tasks
acheived ?
Q) Explain about your team ?(number of apps dba , their roles and responsibilites)
Q) what are the meetings you are involved in day to day activities ? (weekly
meetings,monthly meetings)
Q) Explain any issue what you trouble shooted with Global users ?
Q) How many concurrent managers are there ? how did you come up with the right
number of concurrent managers ? who are involved in this process
please explain
Q) what are the tools you used for migration of apps objects Explain?
Q) DId you work on code migration on all the instances ? (dev ,and Prod) explain
the procedure?
Some more
Posted on: 2014-06-15 11:04:09 By: akr14feb
Apps DBA Interview Questions
maintenance. Enabling the maintenance mode feature shuts down the Workflow Business
Events System and 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. For more
information, refer to Preparing your System for Patching
Q: After applying patch why we need to take snapshot and what is the use of it ??
A: Snapshot is a view of the system at specific time. In apps, Patch Wizard uses
Global snapshot to determine which patches have
been applied to the system and Autopatch uses APPL_TOP snapshot to determine what
patches have been applied to that APPL_TOP.
Snapshot actually records the list of files,file versions and bug fixes. Both
snapshot are views, they are created once during
AD_SNAPSHOT_BUGFIXES tables
A: We can�t apply 2 patches at a time because when patch started it will create 2
tables in db (AD_DEFERRED_JOBS AND
Big Patches, Minipacks, ATG patches, Tech Stack, and AD Patches. If there are no
changes, then i don�t think there is any need to
preclone it again.
Example: When you run adpreclone.pl, it essentially does an �alter database backup
controlfile to trace� and stores the information from
gathered at this time represents the state of the source at this time. If you does
not run adpreclone.pl again when u do clone next time,
Your backup (your target) represents an earlier time (prior to the addition of that
datafile), so the �create controlfile� step
A: FND_NODES
FND_CONCURRENT_PROCESSES (fcproc)
FND_CONCURRENT_REQUESTS (fcr)
FND_CONCURRENT_QUEUES (fcq)
FND_CONCURRENT_PROGRAMS (fcprog)
FND_EXECUTABLES
FND_CP_SERVICES
FND_CONCURRENT_QUEUE_SIZE
FND_CONCURRENT_QUEUE_CONTENT
FND_CONCURRENT_PROGRAM_SERIAL
FND_CONCURRENT_TIME_PERIODS
FND_CONCURRENT_PROCESSORS
Q: What is FNDFS ??
output files and log files. As most of Applications DBA�s are not clear about
Report Server and RRA.
A: FNDSM is executable & core component in GSM. 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 is down ICM through FNDSM & other processes will try to start it even on
remote server) With GSM all services are
monitor is running.
afcmcreq.sql � Displays the concurrent manager and the name of its log file that
processed a request.
afrqwait.sql � Displays the requests that are pending, held, and scheduled.
afimlock.sql � Displays the process id, terminal, and process id that may be
causing locks that the ICM and CRM are waiting to
get. You should run this script if there are long delays when submitting jobs, or
if you suspect the ICM is in a gridlock with
A: When PCP is enabled, can you check that FNDSM is running on all your CCM nodes?
That process is mainly reponsible to getting
A: $APPL_TOP/APPLSYS.env file.
A: It will collect all info of the environment and store in seperate template
files.
A: EXEC FND_CONC_CLONE.SETUP_CLEAN
2. What is OraInventroy?
Ans: The oraInventory is the location for the OUI (Oracle Universal Installer)�s
bookkeeping. The orainventory 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 orainventory (or Central inventory) The Local inventory (or Home
inventory)
Ans : The Global oraInventory is the part of the XML inventory that contains the
high level list of all oracle products installed on a machine. There should
therefore be only one per machine. Its location is defined by the content of
oraInst.loc.The Global OraInventory records the physical location of Oracle
products installed on the machine, such as ORACLE_HOMES (RDBMS and IAS) or JRE. It
does not have any information about the detail of patches applied to each
ORACLE_HOMEs.The Global OraInventory gets updated every time you install or de-
install an ORACLE_HOME on the machine, be it through OUI Installer, Rapid Install,
or Rapid Clone.
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 OraInventory synchronized.
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
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
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
19. 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.
23. 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 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.
Ans : Ans : Aoljtest is a web based utility to test the availability of the
different components of oracle applications like jserv,modplsql,jsp,forms etc
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
39. 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.
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.
Ans :
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/adminident
itydb.obj@applmgr home
Ans : Running adjkey �initialize and then runnning adadmin to regerate jar files.
Ans : Error:
49. 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.
51 . 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.
52. How to find out which patch driver is applied(like c,d,g or u)?
53. How to find out whether a language patch is applied for a perticular patch?
54. 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.
57. 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
64. 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.
70. How to check whether the product is install,shared and Not installed in Apps.?
Ans :
===================================================================================
===============================
2. What is adrelink?
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.
7. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
12. 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.
16. 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.
Ans :
(rm �r _oa__html)
22. 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.
26. 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
Ans : Vnc server should be up and running at the specified port value in DISPLAY
variable, otherwise reportserver may not able to show the graphics in Reports.
30. Is apps password necessary to start all the components of oracle application?
Ans :
1. Internal concurrent manager � Will start all other managers and monitor
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.
36. 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
40. What is the other script by which u can start apache other than adapcctl.sh?
43. 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 : 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 : Apps lintener is the combination of FNDFS and FNDSM. FNDSM is service manager
which will monitor application services on that node when GSM:enable profile value
is �Y�.
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.
51. How to find out what are the languages enabled in u r applications?
Ans : uname �a
54. 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.
55. 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)
58. How to find adconfig is enabled for oracle operating system user/database?
RELEASE_NAME��������11.5.10.2
Ans :
Ans : opatch is utility to apply database patch , In order to find opatch version
execute�$ORACLE_HOME/OPatch/opatch version�
4. How to find out invalid objects in the database
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 : 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.
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.
Ans : adpatch
20. What inputs you need to apply a patch other than driver name and etc?
21. What are the table u r adpatch will create and when?
Ans: FND_INSTALL_PROCESSES table will store the worker information like what job is
assigned to which worker and its status. AD_DEFERRED_JOBS will come into picture
when some worker is failed, it will be moved to AD_DEFERRED_JOBS table, from where
again adpatch will take that job and try to resign, after doing this 3 times if
still that worker is failing, then adpatch will stop patching and throw the error
that perticular worker has failed. We need to trouble shoot and restrart the
worker.
Ans: Yes . why because adpatch will connect to database and update so many tables
etc�..
25. 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: Adctrl is one of the adutilities, which is used to check the status of workers
and to manage the workers.
27. Can u name some of the menu options in adctrl?
Ans: Check the status of workers, tell manager that worker has quited, restart a
failed worker etc�.
Ans: We can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
29. 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.
32. 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
34. What is the worker log file name and its location?
35. 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
Ans: When we apply a patch it will keep the copy of the files which its going to
change in file system.
37. What are the different modes you can run your adpatch?
Ans :
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.
40. Which table u will query to check the tablespace space issues?
41. Which table u will query to check the temp tablespace space issues?
Ans : dba_temp_files
42. 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 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 : 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.
53. 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: In adadmin if covert to MRC options is there , then MRC is not enabled,If
maintain MRC options is there , then MRC is enabled.
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).
$AD_TOP/bin
For each utility three files are presented.
[applvision@apps bin]$ ls -ltrh adadmin adadminnew adadmin_wrapper
-rwxr-xr-x 1 applvision applmgr 9.2K Dec 31 2006 adadmin_wrapper
-rwxr-xr-x 1 applvision applmgr 9.2K Mar 27 2009 adadmin
-rwxr-xr-x 1 applvision applmgr 3.5M Mar 30 2009 adadminnew
[applvision@apps bin]$
First two files are wrapper files and both are same in size.
Scenario:
BY using adadmin
Choose Maintain Applications file menu.
Create application environment file
Above is applicable in 11i and in R12 i don't see this option.
(or)
Run autoconfig.
All the executable for forms are generated from fmb files.
cd $AU_TOP/forms/US.
Force generation
================
Force generation will generate all jar files.
FNDSCSCG.fmx
It is located in $FND_TOP/forms/US
Bismillah
=========
Ad utilities stand for the application DBA utilities. These are a set of tools used
for
installing, up gradating, maintaining and patching Oracle Applications. There are
around
15 Ad utilities, which are shipped along with Oracle Applications.
The default log file location for all the Ad utilities is $APPL_TOP/admin/
$TWO_TASK/log. The log file is in the format <adutility_name>.log. For example the
log file of the adadmin will have the name adadmin.log.
The Adadmin performs two types of works � one which is performed at database level
and other which is performed at the file system level. The users are requires to
provided
all the inputs at the Adadmin prompt which normally involves choosing from the
various
options from the Adadmin menu. This doesn�t mean that Adadmin can�t be used non-
interactively. You can run some task non-interactively also and this is really
useful for
scheduling routine tasks that require little or no user intervention.
To run adadmin in non-interactive mode, you must at first create a defaults file.
Once the
defaults file is created, you can run the adadmin in non-interactive mode using
this file.
To create a defaults file, specify defautlsfile= <filename> at the Ad
Administration
command line. The defaults file must be located under APPL_TOP/admin/<SID>.
$adadmin defaultsfile=APPL_TOP/admin/emstest/default.txt
In order to choose which task the defaults file will run, you add menu_option=<menu
choice> to the utility start command. For example,
8. What are the adadmin activities that can be run in a parallel way?
The following adadmin tasks are supported to be run in parallel mode.
� Recreate grants and synonyms
� Compile APPS schema
Yes, starting from AD.I all Ad utilities support the �help� option. The help can be
invoked by typing
<AD Utility name> help=y
The only exception to this is admrgpch that takes �help option.
This is the first option in the menu if adadmin. This option takes care if
generating all the
Oracle message files. Oracle Application uses these files to display messages. This
task
generates message binary files (extension .msb) from Oracle Application library
tables.
Once this option is selected, it asks a couple of questions like the number of
workers for
parallel processing and the list of products for which the message files need to be
generated.
12. How can you regenerate all the forms files using adadmin and what does it do
internally?
The generate forms files option of adadmin takes care of generating the forms files
(extension .fmx) from binary forms definition files (extension .fmb). These binary
forms
definition files are normally located at $AU_TOP, and the executables files are
stored
under each product�s directory. Oracle Applications use the binary form files to
display
data entry forms. Like the previous option, this option also asks for a couple of
questions
before generating the forms. This task should be performed anytime you have issues
with
a form or a set of forms.
13. You have accidentally deleted the environment file. How can you recreate it?
You can recreate the environment file by using the option create applications file
from
adadmin. This option creates an environment file that defines your system
configuration.
It prompts for Oracle Applications environment name.
14. In adadmin there is an option validate APPS schema. What does it mean and what
does it do?
Validating APPS schema means verifying the integrity of the APPS schema. It checks
whether the apps schema has proper roles and privileges or not. It determines the
problems you must fix specific to APPS schema as well as the problems you must fix
not
specific to the APPS schema. This task produces a report named <APPS schema name>.
1st which is located at $APPL_TOP/admin/$TWO_TASK/out.
Validation of the APPS schema is in turn taken care by a SQL script advrfapp.sql.
The
location of the same is $AD_TOP/admin/sql. The same script can also be run from the
sql
prompt.
15. How do you recreate the grants and the synonyms for the APPS schema?
The recreation of the grants and the synonyms in the APPS schema can be done using
the option recreate grants and synonym for the APPS schema available in the
adadmin. This task takes care of recreating grants and synonyms for APPLSYSPUB,
recreates grants in some packages from SYSTEM to APPS and recreating grants and
synonyms for APPS schema.
Each product�s data objects are created in its own schema (such as the GL schema)
but
the user accesses all the data objects through the APPS schema, therefore the APPS
schema must have the appropriate grants and synonyms for those objects.
16. What is the significance of the DUAL table? Who owns this table and how many
rows it should have?
The DUAL table is created automatically by Oracle along with the data dictionary.
It is located in the schema of SYS. It has one column named DUMMY of type VARCHAR2
and contains one row with a value of �X�. In case it has more than one row,
application system may not function properly.
Oracle often releases new products after the base release of Oracle Applications.
These
products are known as off cycle products. Ad splice is the utility which takes care
of
incorporating and off cycle product into Oracle Applications so that it is
recognized by
the ad utilities as a valid Oracle Application product. Ad splice registers off
cycle
products as active in the system and as a result the ad utilities recognize the off
cycle
products as valid product for a specific release. Then you can use adpatch to
install the
product�s component file system and database object.
19. What are the three files which ad splice requires at the time of splicing?
The three files are newproducts.txt, <prod>prod.txt and <prod>terr.txt, where
<prod>
refers to the product name.
� Sizing factor: This is the sizing factor which the Oracle Applications use when
creating
the tables and index for this product. The default value of 100 refers to 100%
which
means that the objects are created with the defaults size as determined by Oracle
and the
default value is recommended.
With distributed AD, the workers can utilize the additional resources of the remote
nodes where they are running apart from the primary node. This capability improves
scalability, performance, and resource utilization and completion of worker in a
faster time.
Basically, there are two types of snapshots: APPL_TOP snapshot and global snapshot.
An APPL_TOP snapshot lists patches and versions of files in the APPL_TOP. A global
snapshot lists patches and latest versions of files in the entire applications
system (that is
across all APPL_TOP). Both APPL_TOP snapshots and global snapshots may be either
current view snapshot is created once and updated to maintain a consistent view. A
named view snapshot is a copy of the current view snapshot at a particular time
(not
necessarily the latest current view snapshot) and is not updated.
A complete current view snapshot is required for automatic prerequisite patch
checking
to operate. During the installation, RapidInstall created a current snapshot as a
baseline.
And, each time you run AutoPatch; it automatically creates a new (updated) snapshot
so
that the information is current as of the application of the patch
The same can be done using the adadmin utility.
Yes, adctrl can be in a non-interactive way exactly in the same way it runs for
adadmin.
The same defaults file which is used for the adadmin can also be used for running
adctrl
in non-interactive manner. Only the menu option needs to be added for running the
adctrl
in case same defaults file is used. If you want to
create a new defaults file then the same can be created exactly in the same way as
created
for adadmin.
adctrl interactive=n\
defaultsfile=$APPL_TOP/admin/emstest/ctrldefs.txt\
menu_option=SHOW_STATUS \
logfile=adctrl.log
The menu option for the defaults file for adctrl is listed below:
ACKNOWLEDGE_QUIT
RESTART_JOB
Tell worker to restart a failed job
SHOW_STATUS
Show worker status
SHUTDOWN_WORKER
START_WORKER
The option force=y will relink the executables regardless the status of the
libraries or the object files. Force=n will relink only if the libraries or object
files are some recent than the current executable program.
The object description file comparison utility is known as adodfcmp. Each Oracle
application product is made up of one or more building blocks. For example, journal
entry is one building block of Oracle General Ledger. There is an object descriptor
file
(ODF) describing the tables, views, indexes, sequences and privilege sets for the
particular building block.
The ODF comparison utility compares an ODF with the database objects in an Oracle
account, detects any differences in database structure, and runs SQL
statements to remove the differences, so that the objects in the account will match
the
descriptions in the ODF file. The ODF comparison utility is used to compare the
data
model of a customer�s data to a standard set of data model files form the current
Oracle
application release. It can optionally modify the database to match the standard
data
model. ODF comparison compares the building block to the ODF.
5. What is rapidclone?
Rapid clone is the new cloning utility which is used for autoconfig enabled
environments.
Rapid clone leverages the new installation and configuration technology utilized by
RapidInstall.
� Check for the applications context file in the APPL_TOP/admin directory. This
file will typically be named <SID>,xml or <SID>_<HOSTNAME>.xml. If the application
system is autoconfig enabled there will be a corresponding xml file
� Check for the applications context file in the RDBMS ORACLE_HOME under the
appsutil directory. This file will typically be named <SID>.xml or
<SID>_<HOSTNAME>.xml. If the application system is autoconfig enabled there will
be a corresponding xml file
7. I have the context file in the APPL_TOP admin directory and all my configuration
files
also say that the application system is managed by autoconfig but when I login to
the
database server I am not able to see the context file. Is my application system
really
autoconfig enabled?
It means that autoconfig is not enabled in the database tier. You need to enable
the
autoconfig in the database tier also.
Yes, you can do a cloning from one platform to another as long as the target
application
system platform is binary compatible with the source system platform. For example,
you
can do a cloning from a lower version of Solaris to higher version of Solaris but
not from
Solaris to Windows. Also with in a same platform, you can clone from a 32bit source
system to a 64bit target system.
9. My source and target platforms have different binaries. Say I have AIX platform
in the
source and I want the target platform in Linux. Is there any way I can clone the
environment
Yes, you can clone or migrate the application system from any platform to Linux or
any supported Unix platform. For doing this, you need to refer the metalink note
migrating to Linux within Oracle Applications.
10. Is it possible to clone from a single node installation to a multiple node
installation?
Yes, you can clone a single node installation to a multiple node installation using
the
rapid clone.
11. Explain briefly the steps to clone from a single node to a multi-node cloning?
Once the database cloning is over, the next step is to login to the APPL_TOP as the
owner of application file system viz, applmgr and run the adcfgclone.pl from the
COMMAN_TOP/clone bin. While running adcfgclone.pl, it asks �Does the target system
have more than one application tier server node�. Enter yes. Then it prompts for
the
target system�s concurrent processing node, admin node, forms node and the Web
node.
Fill in node details from where you want these processes to run. It then prompts
for the
various mount point details and creates the context file for you. Follow the same
process
form all the nodes.
12. You have a multi-node shared APPL_TOP. Explain briefly the cloning process for
the same.
If you have a shared APPL_TOP then apart from running the adcfgclone.pl you also
need
to run �adclonectx.pl sharedappltop� for sharing the APPL_TOP from all the nodes.
In
this case, you need to run adcfgclone.pl only from the first node and you can
create the
context file using the adclonectx.pl in the other nodes by giving the reference to
the XML
file of the first node. Then you need to run the txkSOHM.pl form
$FND_TOP/patch/115/bin which will create the 8.0.6 and iAS Config Home for your
application system.
13. Can you clone a multi-node APPL_TOP to a single node APPL_TOP? Explain
briefly the process for the same.
Yes, you can clone a single node APPL_TOP form a multi-node APPL_TOP. For this,
you have to merge multiple APPL_TOP and COMMAN_TOP files system into a single
APPL_TOP and COMMAN_TOP. For doing the same, the first step would be to login to
each application tier node and run the �maintain snapshot task� from the adadmin.
Once done, login to one of the APPL_TOP and run the adpreclone.pl for merging the
APPL_TOP. The same can be run using the command:
$ cd <COMMAN_TOP>/admin/scripts/<CONTEXT_NAME>
$perl adpreclone.pl apps Tier merge
Once done, you need to login to the other nodes and run the adoreclone.pl for
merging all
the APPL_TOP�s but from the other nodes the command would be different.
Login as the APPLMGR user to each of the secondary nodes being merged and run:
$ cd <COMMAN_TOP>/admin/scripts/<CONTEXT_NAME>
$ perl adpreclone.pl appltop merge
For creating a clone of the multi-node APPL_TOP to a single node APPL_TOP you need
to merge all the multi-node APPL_TOPs to a single APPL_TOP. You can merge all the
APPL_TOPs together in a separate mount point so that the source application system
is not affected with the clone.
Copy the following directories from the first node to the place you want to create
the
merged APPL_TOP.
<APPL_TOP>
<OA_HTML> (when this directory exists)
<OA_JAVA>
<COMMAN_TOP>/util
<COMMAN_TOP>/clone
<COMMAN_TOP>/_pages (when this directory exists)
<806 ORACLE_HOME>
<iAS ORACLE_HOME>
14. Does rapid cloning take care of updating all the profile options?
Rapidclone only takes care of the site level profile options. All the other profile
options
need to be manually updated.
15. How do you prepare the template before cloning the application system?
You can prepare the template executing the following commands from the database and
the application tier.
� At database tier: Login as Oracle user and run the following cd < RDBMS
ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
Perl adpreclone.pl db tier
� At the Application tier: Login as applmgr and run the following:
cd <COMMAN_TOP>/admin/scripts/<CONTEXT_NAME>perl adpreclone.pl apps tier
16. From the APPL-TOP, what are the files that you need to copy for creating a
clone
application system?
You need to copy the following files from the APPL_TOP
� APPL_TOP
� OA_HTML
� OA_JAVA
� OA_JRE_TOP
� COMMAN_TOP>/util
� COMMAN_TOP>/clone
� COMMAN_TOP>/_pages (if this directory exists
� 806 ORACLE_HOME
� iAS ORACLE_HOME
17. What exactly happens when you run adpreclone.pl? Does it anyway effect the
source
application system?
18. If you are told to clone a environment manually without using rapidclone, how
will
you do it?
For doing a manual clone, you need to change all the configuration files with the
correct
path of the APPL_TOP, product top, database SID, and port numbers. For doing the
same, you need to change the following important configuration files.
$APPL_TOP/APPLSYS.env or APPSORA.env
$APPL_TOP/admin/adovars.env
$APPL_TOP/admin/hostname_twotask.xml
$APPL_TOP/admin/topfile.txt
$APPL_TOP/admin/adjborg.txt
$APPL_TOP/admin/adjborg2.txt
$FND_TOP/secure/hostname_twotask.dbc
$OA_HTML/bin/appsweb.cfg
Once these changes are done, you need to update the FND_PROFILE_OPTIONS value
table in the database with the correct values of all the profiles and the FND_NODES
with the node information. Here we are assuming that you are keeping the existing
technology stack for doing the cloning. If you are bringing the technology stack
also from the source env, you also need to change all the apache configuration
files with the correct port and then need to link the iAS_ORACLE_HOME and the
middle tier ORACLE_HOME and then run the autoconfig. Once done, start all the
services.
19. How can you reduce time in cloning? What are the steps you can follow to clone
an
environment quickly?
These are the steps you can follow to clone an env quickly. If the technology stack
of the source and the target environment are at the same patch level then you need
not copy the 8.0.6 ORACLE_HOME and the IAS_ORACLE_HOME every time. You can keep the
existing technology stack. Before deleting the APPL_TOP, you can take a backup of
the
existing context file (the xml file in $APPL_TOP/admin) and then once the APPL_TOP
and COMMAN_TOP copy is done then you can revert back the same xml file rather than
regenerating the same. If you are using the same XML file, you need not run the
rapidclone as simply running of autoconfig will take care of all the things. In
case you are
using the shared APPL_TOP, you need to run the script txtSOHM.pl from
$FND_TOP/patch/115/bin which will create the 8.0.6 and iAS Config Home for your
application system.
21. Is it possible that I use different set of ports for the cloned application
system rather
than the one which I am using for the source application system?
Yes, you can choose any port pool for the cloned application system. Adclone
prompts
for the port pool at that time put the port pool in which you want to run
application
system.
22. How adcfgclone.pl knows the values for the target application system?
Adcfgclone.pl prompts for the values required to create the new context file used
to configure the target system. You need to provide the values for the prompts
which adcgfclone.pl uses for creating and configuring the target application
system.
23. What are the various questions that adcfgclone.pl prompts for and what should I
answer to the prompts?
When an Oracle Application user submits a request to run a program, it�s called
concurrent request. Concurrent manager are the programs, which are responsible for
running the concurrent requests. When a user submits a report to be run as a
concurrent
request, the job enters in a request queue. Concurrent managers continuously read
request
from the master queue and run the requests based on the request�s schedule,
priority, and
compatibility rules. Concurrent managers run in background and they take care of
initiating and completing the concurrent requests.
The internal manager is the one which is responsible for controlling all other
concurrent
managers. Its main task is to ensure that all other concurrent managers are up and
running. The internal concurrent manager starts, sets the number of active
processes,
monitors and terminates all other concurrent processes through requests made to the
service manager, including restarting any failed processes. The internal concurrent
manger also starts and stops, and restarts the service manager for each node.
The standard manager is the master concurrent manager. This manager is always
running
and it can take care of processing any concurrent request. It has no specialization
rules.
This manager runs 24 hours a day for the whole year. The definition of this manager
should never be altered. In case if you alter the definition of the standard manger
and you
have not defined additional managers to run your requests, some of the programs may
not
run in a proper way.
There is a system profile option �Concurrent: Use ICM�. The default value of this
profile
option is No which allows the conflict resolution manager to be started. Setting
the same
to Yes will cause the conflict resolution manager to be shutdown and the internal
concurrent manager will take care of the conflict resolution duties. Using the
internal
concurrent manager to resolve the conflicts is not recommended.
Concurrent manager can be stopped using the script adcmctl.sh. It can also be
stopped using the Concsub utility. Form the operating systems, the concurrent
manager can be stopped by querying the FNDLIBR process and killing the same.
9. In administer concurrent manager form there are two columns labeled as actual
and
target. What are these columns and what is their significance?
Target column lists the number of processes that should be running for each manager
for
this particular workshift. Actual column lists the number of processes that are
actually
running. If the actual column is zero, there are no processes running for this
manager. If
the target column is zero, then either a workshift has not been assigned to this
manager,
or the current workshift does not specify any target processes. If the target
column is not
zero, then the manager processes have either failed to start up, or has gone down.
10. How do I run/schedule a concurrent request from operating system level without
logging in to the application?
A concurrent request can be schedule/run from the operating system using the
CONCSUB utility. CONCSUB means Concurrent Submit.
22 pg
11. What are the different ways to check if concurrent manager (CM) is running or
nor?
There are a couple of ways through which one can check if the CM is running or not.
Form the operating system, it can be checked by querying the FNDLIBR process. Form
the forms, it can be checked from the Navigation > Concurrent > Manager >
Administer.
It can be also checked using the scripts adcmctl.sh status and finally it can also
be
checked from Oracle Application Manger.
13. I have submitted a request and it�s showing the status inactive/no manager.
Concurrent manager is up and running and the request are being picked after some
time.
What could be the reason for the same?
f the concurrent manager is up and running and the request goes to the status
inactive/no
manager for some time it means that cache cycle is less. Cache size is set on the
Concurrent> Manager> Define form. Basically, this regulates how many requests a
manager will pick up for each sleep cycle. The solution is either to increase the
cache size
of the manager or increase the actual number of the manager process. The manager
could
be standard manager or any other manager for which the issue is coming.
14. I have submitted a request; it has gone to pending standby status for a long
time
whereas other requests are getting completed normally without any issues. What
could be
the reasons?
If any particular request is going to pending standby status and others are getting
completed, it means that either it is waiting for the output of some other request
or is
conflicting with some other request. If the request is conflicting, check the queue
of the
conflict resolution manager for troubleshooting.
If you want to process more requests simultaneously, there are two ways for the
same � one, increase the number of the target process for the manager and second,
change the cache size of the concurrent manager.
When the tables reach 20,000 rows, the performance beings to diminish. You may want
to run purge concurrent request on a regular basis, depending on the amount of
requests being run.
17. What are the concurrent request log file and output file naming conventions?
18. What happens when the internal concurrent manager dies? Are all the managers
also
killed immediately after it?
No, if the internal manager dies, the request continues to run normally except for
the
queue control requests.
19. Does the internal manager run or schedule any request for itself
No, the internal manager does not run or schedule any request. It has nothing to do
with
scheduling requests, or deciding which manager will run a particular request. Its
function
is only to run �queue control� requests, which are requests to startup or shutdown,
other
managers. It is responsible for startup and shut down of the whole concurrent
processing
facility, and it also monitors the other managers periodically, and restarts them
it they
should go down. It can also take over the conflict resolution manager�s job, and
resolve
incompatibilities.
20. If the internal manager goes down, do I need to kill all the managers before
restarting
the internal manager?
No, if the internal manager goes down you need not kill all the managers. You can
simply
start the internal manager using startmgr.
Asking a manager to restart sets the status to restart. The internal concurrent
manager will
start in the next process monitor session or the next time internal concurrent
manager
starts. Use activate, to start a manager immediately. Also, when a manager is
deactivated
manually, the internal concurrent manager will not restart it. You will need to set
it to
restart, or activate it manually.
25. I tired to stop the concurrent manager using the script adcmctl.sh. I can still
see from the operating system that a few FNDLIBR processes are still running and
adcmctl.sh is not able to stop the concurrent manager completely. What do I do in
this situation?
If you are not able to stop the concurrent manager using the script, query for the
FNDLIBR process using the command
Ps �ef | grep FNDLIBR
26. What are the circumstances in which you need to bounce the concurrent manager?
The following are the situations in which one may need to bounce the concurrent
manager:
� When you modify the definition of the printers
� When you modify the environment variables. Say you have changed the APPLTMP and
APPLTMP variable
28. How can you stop concurrent manager using the CONSCUB utility?
Concurrent manager can be stopped using the CONSCUB utility by the following
command:
CONCSUB apps/apps@<dbname> SYSADMIN �system Administrator� SYSADMIN
CONCURRENT FND SHUTDOWN
29. What are the different parameters of the startmgr utility?
The parameters of the startmgr utility is given in the following table.
Parameters
Description
Default
Sysmgr
Sqlplussername/password that owns the foundation tables
Applsys/<passwd>
Mgrname
The name of the manager
Internal manager
Log file
The log file of the manager
$FND_TOP/$APPLLOG/$mgr
name.mgr
or
$APPLCSF/$APPLLOG/$mgrname.mgr
Step
The number of seconds the ICM should wait before checking new request from the
table
FND_CONCURRENT_REQUESTS
60 Seconds
Restart
If the CM goes down abnormally it will automatically restart the manager. Y = the
number of minutes the ICM waits before restarting the manager
N=not to restart after abnormal termination
mailto
MAILTO is a list of users who should receive mail whenever the manager terminates
Current user
Printer
The default printer for sending the output files
Diag
This is used for diagnosis. If the CM is started with the parameter diag=y then
full
diagnostic output is prodiced in the log file
N
Pmon
The number of sleep cycles ICM will wait before checking failed Managers
20
Quesiz
Number of pmon cycles the ICM wairs between times it checks for normal changes in
concurrent manager operation. Normal changes include the start or end of a work
shift and changes to the concurrent manager definitions entered in the Define
Concurrent Manager form. (Default 1)
1
31. In the administer concurrent manager form, what is the significance of the
terminate
button?
The terminate button is used to terminate any concurrent manager. When you
terminate
internal manager, all the managers automatically get deactivated and all the
running
requests are terminated. If you want to terminate a particular manager, select the
manager
and click the terminate button. The status of the manager changes to deactivate
after a
few seconds and all the requests processed by that manager are immediately
terminated.
Once a manager is terminated, it doesn�t restart automatically. You have to
manually
restart it using the restart button.
For deactivating a particular manager, select the manager and press the deactivate
button.
In case of deactivation, all the requests processed by the manager are allowed to
complete
before the manager shuts down. If you deactivated the internal manager, all the
managers
automatically get deactivated but all the running requests are allowed to complete
before
the manger is shut down. This is the only difference between termination and
deactivation. In termination, all the running requests are terminated immediately
where as
in case of deactivation all the running requests are allowed to complete first.
33. In administer concurrent manager form, what is the significance of the verify
button
and for which managers it�s available?
The verify button becomes enable only when you select the internal manager. One of
the
functions of the internal manger is to monitor the processes of each concurrent
manger.
The process of monitoring the other concurrent manger by internal manager is known
as
the PMON cycle. When you click the verify button you can force the process
monitoring
or the PMON activity to occur. The verify button is also available for the conflict
resolution manager which checks for the program incompatibilitie
34. What is parallel concurrent processing and what is the significance of the
same?
In case of parallel concurrent processing, all the managers are assigned a primary
and a
secondary node. The managers are started in their primary node by default. In case
of
node failure or Oracle instance failure, all the concurrent managers on that node
are
switched to their secondary nodes. Once the primary node is available again the
concurrent managers on the secondary nodes are migrated back to the primary node.
During the migration process, a manager may be spread across both primary and
secondary nodes.
In case of parallel concurrent processing, it may happen that in a node where
parallel
concurrent processing is configured; the Oracle instance may or may not be running.
The
node which is not running Oracle, the concurrent managers connects via Net8 to a
node
which is running Oracle.
The internal concurrent manager can run on any node, and can activate and
deactivate
concurrent managers on all nodes. Since the internal concurrent manager must be
active
at all times, it needs high fault tolerance. To provide this fault tolerance,
parallel
concurrent processing uses internal monitor processes. The job of the internal
monitor
process is to constantly monitor the internal manager and start it when it fails.
Only one
internal monitor process can be active on a single node. You decide which nodes
have an
internal monitor process when you configure your system. You can also assign each
internal monitor process a primary and a secondary node to ensure fail over
protection.
Internal monitor processes, like concurrent managers, can be assigned work shifts,
and
are activated and deactivated by the internal concurrent manager.
The concurrent log and output files from requests that run on any node are
accessible
online from any other node. Users need not log onto a node to view the log and
output
files form requests running on that node.
36. Where can I define the primary and the secondary nodes for the concurrent
manager
from?
For defining the primary and secondary nodes of each manager, you need to launch
forms
with system administer and need to navigate the Concurrent > Manager > Define form.
Query for the manager in which you want to define the primary and secondary node.
In
this screen, put the values for the primary and the secondary nodes and save.
37. I have defined for nodes of the concurrent manager. Now do I need to start the
concurrent manager from all the nodes?
No, even if you have defined the concurrent manager in four different nodes you
need not
start the concurrent manager from all the nodes. You just need to start the
concurrent
manager form the primary node and GSM takes care of starting the concurrent manager
from all the other nodes.
38. My request is making error out with the error � unable to create temporary
files
XXXXX.tmp. How do I fix it?
This issue normally comes if the values of $APPLTMP, $APPLPTMP in the APPL_TOP
and the utl_file _dir parameter of the database are not in sync. All the three
variables
should be exactly the same. If these issues come, change the values to make all
these
three in sync. If you change the values in the APPSORA.env, you need to bounce the
concurrent manager for the changes to get effected. In case if you change the
values of
the init.ora, you need to bounce the database to reflect the changes. (Of course
you need
to bounce the application tier also if you are bouncing the database.)
39. The user comes to you saying that the request is taking a lot of time to
complete.
What will be your approach for debugging it?
You can check the parameters with which the request is run. (For example, once a
user came saying that request is not printing the output. On checking the possible
things, it was realized that he scheduled the request with print copies = 0.)
40. How can you know which trace file is created for the particular request?
You can find out the same using the script given below. The trace will be located
in the
udump location of the database server.
Promt
Accept request promt �please enter the concurrent request id for the appropriate
concurrent program:�
Promt
�Trace id: �|| oracle_process_id, �Trace Flag: �|| req.enable_trace, �Trace Name:
�|| dest.value||�
�|lower(dbnm.value)||�_ora_�||oracle_process_id||
�.trc�,
�prog.Name:
�||prog.user_concurrent_program_file_name||
Execname.subroutine_name ,
�Status :
�||decode (phase_code,�R�,�Running�)
||�-�||decode (status_code,�R�,�Normal�),
�STD Serial: �||ses.sid||�,�||
Ses.serial#,
�Module : �||ses.module
From fnd_concurrent_requests req,
And dest.name=�user_dump_dest�
And dbnm.name=�db_name�
And req.concurrent_program_id =
Prog.concurrent_program_id
And req.program_applicaiton_id =
Execname.application_id
And
Prog.executable_id=execname.executable_id;
41. What are the things that need to be taken care when you define a concurrent
program?
When defining a concurrent program the following things need to be taken care.
� Selecting an executable file to run the program
� Choosing the execution method for the program (when defining your executable in
For scheduling the concurrent requests, you need to click the schedule button while
submitting the request. The concurrent program can be scheduled only once,
periodically
or on some specific days. You can also save this schedule for future reference and
can
use the same schedule for a different concurrent program by using the option apply
a
saved schedule. If you don�t schedule the request then by default the concurrent
requests
are submitted immediately.
43. What does the completion option mean at the time of submitting a request?
The completion option refers to what Oracle Application will do once the request is
completed. It can notify people via email, can save the output in a file, can take
a print
out of the same or simply won�t do anything.
44. What is a work shift?
The work shift defines the time for which the concurrent manager is active. You can
define some fixed date or time for manager or can make the manager run
24*7 making it active all the times. The work shifts are defined by using the work
shift
form from the following navigation > Concurrent > Manager > Work Shifts.
45. What are the important scripts related to the concurrent managers and what are
their
location?
The following SQL scripts located under $FND_TOP/sql are useful when diagnosing
concurrent manager problems.
1. afimchk.sql Informs about the status of the ICM and PMON method.
2. afcmstat.sql Lists active manager processes.
3. afrqrun.sql Lists all the running, waiting and terminating requests.
4. afrqwait.sql Lists requests that are constrained and waiting for the ICM to
relea
5. afrqscm.sql Prints log file name of managers that can run a given request. It
can be
used to check for possible errors when a request stays in pending status. It
requires a
request id value.
6. afcmcreq.sql Prints the log file name of the manager that processed the request.
7. afrqstat.sql Summary of completed concurrent requests grouped by completion
status
and execution type. It requires number of days prior to the current date, when to
report
parameter.
8. afimlock.sql Lists locks that the internal concurrent manager is waiting to get.
9. afcmrrq.sql Lists managers that currently are running a request.
46. What are the things you need to check if you are not able to view the logs of
the
concurrent manager?
Contents:
1. Architecture
2. Installation
3. Forms
4. Concurrent Manager
5. Patching
6. Ad Utilities
7. Cloning
8. Up gradation
9. R12
1.
ARCHITECTURE
1. Describe the architecture of Oracle Applications.
No, a tier does not mean a physical machine. It is basically a logical portioning.
Each tier has more than one physical server and each physical server can
accommodate mire than one different tier. For example, the middle-tier can be
configured in 4-5 different servers and any server can be used for hosting database
as well as Web server.
4. If I am not installing the client software in the desktop PC, then how will I
acces
oracle Applications?
The Client desktop accesses Oracle Applications through Java enabled Web browser
with
JInitiator and forms client applet.
6. What is JInitiator?
Oracle Applications technology layer provides common basic functionality across all
Oracle Applications product families. The Oracle Applications technology layer is a
collection of product whose functionality is used by all the modules of Oracle
Applications.
11. How many Oracle Homes are there in Oracle Applications and what is the
importance
of each one of them?
Oracle Applications have three Oracle Homes:
I. Database Oracle Home in the database tier that acts as the Oracle Home for the
Oracle
database.
II. Oracle Home in the applications tier, also known as 8.0.6 Oracle Home. It is
called the
technology stack Oracle Home and used by forms, reports and discoverer.
III. iAS Oracle Home, used by the Oracle HTTP server. It is used by the Web
listener.
12. Can I enable real application clusters in the database tier along with Oracle
Applications?
Yes, real application clusters can also be configured with Oracle Applications. In
that
case, more than one instance of Oracle runs and the data files are stored at a
central
location accessible from the entire instance.
The application tier is the place where the application software is located. It
also hosts a
large number of servers which interact with the database and the client-tier. The
application tier architecture shifts software administration from the desktop to
the middle
tier removing the burden of installing the application software at every client.
The
application tier also supports load balancing among multiple forms server,
concurrent
processing server to provide optimum scalability and performance.
16. What is the difference between Apache and Oracle HTTP server?
Oracle HTTP server is the customized form of the Apache. Oracle has customized the
Apache Web server as per its own requirement which is known as the Oracle HTTP
server.
The Web listener accepts the HTTP requests coming from the client browsers, and the
Web server services the request. If the URL needs advanced processing then it
forwards
the same to the servlet engine which in turn contacts the database for processing
the
request and returns back to Web listener. If the incoming request needs parsing a
JSP file
then the following sequence occurs. The client browser makes a request to the Web
listener. The Web listener checks the nature of the request and then contacts the
Jserv
(Servlet Engine) where it runs a JSP. The JSP contacts the database for the
information
and returns a HTML page which is in turn displayed in the Web browser.
19. Where are Apache log filers located, and what are these files?
Apache log files are stored in $IAS_ORACLE_HOME/Apache/Apache/logs. The log
20. Where are Apache configuration files stored and what are the important Apache
configuration files?
21. How do I know which file -httpd.conf or httpds.conf- is being used by the
Apache?
The same can be determined by examining the script apachectl which is located at
$IAS_TOP/Apache/Apache.bin. It is internally called by the script adapcctl.sh which
is
located at the scripts location. In the script apachectl, there is a variable httpd
defined,
which points to either the httpd or the httpds executable. If the httpd variable in
the
apachectl script calls httpd, Apache configuration depends on httpd.conf. If the
apachectl
script calls httpds, Apache configuration depends on httpds.conf.
22. In case of a shared APPL_TOP, where do I see the configuration files and the
log
files for the Apache?
In case of a shared APPL_TOP, the techstack home is also shared across all the
different
server so all the Apache and Jserv configuration files are stored in
$IAS_CONFIG_HOME directory. There will be a separate $IAS_CONFIG_HOME
directory for each node of the application system.
25. What are the important configuration files which are used for making Apache run
along with Jserv?
29. When I login to the Oracle Applications from the PHP-based applications, login
page
simply hangs. What approach should I follow for the debugging?
If the login page hangs, the first step would be to check the Apache log files. Go
to the
Apache log directory and check for the access_log and error_log. You will get some
information there. If you are not able to find anything then check for the Jserv
logs from
there you will get some information. Also, check the logs of the JVM. Try to
analyse all
the errors that you are able to debug anything then do as AOL diagnostics test
which will
tell you where the issue is. You can also enable debug for Apache, Jserv if you are
not
getting any pointer from the logs.
Edit the httpd.conf/httpds.conf file to enable debug for apache. Find the following
section in the apache configuration file and set the Log Level to debug. You may
want to make a backup of this file before you edit. Now the Apache log files will
be written with debug information. You also need to bounce the Apache after the
making the changes.
Edit the Jserv.conf to enable debug for the Jserv module. Find the following
section in
Jserv.conf and ser the LogLevel to debug. Also, edit the Jserv.properties to enable
debug
for the java portion of the Apache Jserv find the following section in
Jserv.properties and
set log=true, log.timestamp=true, and the logging for the channels to true
log.channels=true. You also need to bounce the apache after making the changes. Now
the log files will be written with the debug information.
The JDBC URL is there in the DBC file in the $FND_TOP/secure directory. Open the
file and you will get the JDBC URL from there.
You can check the validity of the DBC file using the AdminAppServer utility. Run
the
following command java oracle.apps.fnd.security.AdminAppServer appsun/appspw
STATUS DBC = [path to dbc]/[dbc_name].dbc
This should return STATUS: VALID
35. I have accidentally deleted DBC file or my status of the DBC file is invalid,
how do I
recreate the same?
Run Autoconfig. It will recreate the DBC file else you can also create the same by
running the script adgendbc.sh located at $COMMON_TOP/admin/install directory.
The mod_pls component of the Apache caches some database content to file. The plsql
cache also known as database cache is of the type session and plsql cache. The
session
cache is used to store the session information and the plsql cache is used to store
the plsql
cache which is used mod_pls. It is stored in the
$IAS_ORACLE_HOME/Apache/modplsql/cache directory.
The following maintenance activities can be performed from the admin server.
� Applying the patches
� Maintaining Oracle Applications
� Applying the ad utilities
� Upgrading Oracle Applications
40. Does admin server also have a process like Apache and forms server?
No, the admin server doesn�t have an operating system process like Apache or forms
server. It is basically a node of the APPL_TOP.
When an Oracle Application user submits a request to run a program, it�s called
concurrent requests. Concurrent manager are the program responsible for running the
concurrent requests. Concurrent requests are processed from concurrent processing
server.
The forms server is that server from which the forms are hosted. It�s component of
middle tier. The forms server can be hosted from more than one node and the load
balancing can be implemented with the forms. The forms user interface is used in
the
desktop clients for working in Oracle Applications.
43. Explain briefly, how the connection of the forms server works?
When the Web server receives the URL, it interprets it. If the URL points to a
static file,
the file will be retrieved from storage. If the URL points to a CGI script, the
file will
essentially be the same as the static version, but some pieces of
that file will be dynamically generated by the CGI script. If dynamic, CGI script
asks
load balancing server for least loaded server. If the URL points to a CGI script,
the CGI
script will poll the load balancing server.
� HTTP Listener sends HTML page back to browser
Browser decodes HTML page, and detects the <APPLET> tag indicating a Java Applet.
As the browser decodes the HTML file returned by the Web server, it detects the
<APPLET> tag. This is the designator that indicates a java Applet. Specifically,
this is
the thin client that will connect to the forms server.
The <APPLET> tag contains the name Applet, along with numerous parameters
including (a) the name of the form to run, (b) the name of the forms server to use,
(c)
login information, (d) any other parameters you need to pass to your forms session.
� Browser sends request (URL) to HTTP Listener for Java Applet
The browser asks the Web server to send it to the Java Applet. Java Applets are
stored
in .class or Java Archive (JAR) files. Oracle Applications use JAR files. JAR files
are
compressed archives that contain multiple .class files. Oracle Applications use JAR
files
because they speed up the downloading of the Java Applet. There are many JAR files
that
Applications must download to run.
� HTTP Listener returns Applet (JAR files) to browser
Browser receives Java Applet (JAR files) and begins to run them in its JVM
(JInitiator).
The JVM JInitiator checks the version of the files being sent. If the version of
the JAR
files is newer than the version cached on the client, JInitiator will continue the
download.
If the version is the same or older, JInitiator will begin to run the cached Java
files. Java
Applet is now running in the JVM. Browser is no longer part of the equation. The
Java
thin client connects to the forms listener via a TCP/IP socket or an HTTP port. The
forms
listener is already started, and listens for these requests.
� Forms Listener allocates a forms runtime engine
When the Forms Listener gets the request, it starts a new forms runtime engine for
this
thin client. This started forms runtime engine can either be a newly spawned
process, or it
can be an allocation of an already running process (which greatly speeds up the
connection process).
� Java Applet connection is passed from Forms Listener to forms runtime engine
The Forms Listener hands-off the connection to the thin client, and then has no
further role in the process. Forms runtime engine loads module(s) needed to run the
requested form. When the thin client connected, it passed a parameter entry,
serverArgs. In that parameter entry, there was a name of a form to run. At this
point, the forms runtime engine loads the form and any libraries and/or menus
required by that form.
� Forms runtime engine opens a connection to the database
The details of this connection depend on the whether the Forms Runtime Engine is a
newly spawned process, or if it was allocated from a pool of already running
processes.
Load balancing is a server process that monitors loading on all of the forms
servers. Each
of the forms servers runs a load balancing client which keeps the load balancing
server
apprised of its load.
45. How can you find how many forms users are connected to the application system
form the operating system level?
You can do the same by querying the f60webmx process and counting the same. You can
use the following command to check this.
Ps �ef | grep f60webmx | wc �l
47pg
46. In my PC, I can see lots of JInitiators are installed. How can I find which
JInitiator is
being used by the forms process?
When the forms is launched, the Java console displays all the information about the
forms process. There it displays which version of the JInitiator the forms is
using.
Alternatively, you can also open the appsweb.cfg file and check the parameter
jinit_ver_name in that file. It will tell which version of the JInitiator is being
used.
Reports server is also a component of the middle tier and is hosted in the same
node of the concurrent processing server. Report server is used to produce business
intelligence reports. Report server is started by executable rwmts60 which is
located at
$ORACLE_HOME/bin
48. How can you check from the operating system whether the reports server is up
and
running?
Reports server can be checked from operating system by querying for the process
rwmts60. You can check the same using the following command.
Ps �ef | grep rwmts60
You can do the same using the adrepgen utility as shown below.
adrepgen apps/<apps_passwd>source=$PRODUCT_TOP/srw/filename/rdf
dest=$PRODUCT_TOP/srw/filename.rdf stypr=rdfile dtype=rdffile
logfile=<path_of_log> overwrite=yes batch=yes dunit=character
52. What is the product directory in the APPL_TOP and what is the importance of the
same?
For each product there is a separate directory in the APPL_TOP. There are more than
two
hundred products in the 11.5.10 release. The product directories are named with the
product�s standard abbreviation like bis for Business Intelligence System, ec for
e-
commerce.
The product files are stored in the product directories.
<Prod_Top> refers to <APPL_TOP> / <prod> / version. For example
$FND_TOP=$APPL_TOP/fnd/11.5.0.
Under each product top there are a large number of directories. If we go to FND_TOP
directory, We will see the following directories.
(appmgr01) emstestappl � bash $ cd $FND_TOP
(appmgr01) 11.5.0 � bash $ pwd
/slot01/appmgr/emstestappl/fnd/11.5.0
Adovars.env
SID.xml
Adconfig.txt
Adjareas.txt
Topfile.txt
Appsweb.cfg
Hostname_SID.dbc
Adpltfrm.txt
Adjborg.txt
Adjborg2.txt
54. What is the significance of the appsweb.cfg file and where is it located?
This file defines the parameter values used by forms Web CGI. This is the main
configuration file used by the forms. This file contains the following details:
� Forms server Name, ServerPort, DomainName
� Database Connection Parameters
� JInitiator Version
This file is located at $OA_HTML/bin.
55. What is the significance of the DBC file and whether is it located?
The DBC stands for database connection. This is the file which is responsible for
establishing a connection between the database and the APPL_TOP. The DBC file
stores
all the information for successful connection to the database. The DBC file
contains the
values of GWYUID, FNDNAM, and TWO_TASK & GUEST_USER_PWD.
GWYUID stands for Gateway User ID and should have APPLSYSPUB/PUB as User
ID/Password
The defaults User ID/Password for Oracle Applications is guest/guest, guest/oracle,
oracle/guest. This User ID/Password should match with the record available in the
fnd_profile_options table.
The location of this file is $FND_TOP/secure.
GWYUID is used by thick clients to connect to the database. For example, forms uses
the
GWYUID to get connected. Whenever a new forms connection is established, it uses
APPLSYSPUB/PUB to authenticate the session, whereas GUEST_USER_PWD
(Guest/Oracle) is used by JDBC thin client.
58. If you go to FND_TOP/secure directory, you can see lots of DBC files located
there.
How do you find which one is used by the application system?
To find out which DBC file is used by the application system you can query for the
profile Application Database ID. If the profile name is SID then SID.dbc is used by
the
application.
The $APPL_TOP/admin directory contains the scripts and the files which are used by
the AD utilities. This directory also contains the log and output files created
during patching and running of ad utilities. Following are the important files in
the $APPL_TOP/admin directory.
� <sid>.xml � This is the context file which is used by the Oracle Applications
� Adovars.env � This is an important configuration file about which we have already
discussed
� <sid>/log � This directory contains all the logfiles which are generating during
60. How can you change the password of the application users?
The password of the application users as well as the password of all the schemas
including apps can be changed using the ENDCPASS utility. For running the
FNDCPASS, you need to have the system and the apps password. FNDCPASS is run in
the following manner.
61. What is �0� and �Y� in flag in FND executables like FNDCPASS, FNDLOAD?
�0� means the request id. Since the request is not submitted via the Concurrent
Request
submission forms, request id zero is assigned to it.
�Y� indicates the method of invocation. It�s invoked directly from the operating
system
and not through the concurrent request.
62. What are the tables which store the information about the various application
users
and their passwords?
Two tables � FND _USERS and FND_ORACLE_USERID � store the information about
the application users and the passwords.
You can�t delete an application user but you can put the end date the application
user
making the user inactive.
64. In case of a multi-node installation, how can you check which service is being
run
from which node?
OATM refers to the Oracle Application tablespace model. In the previous releases of
Oracle Applications, there were two tablespace for each product. One was for data
and
the other was for the index and there user to be a lot of overhead in managing all
the
tablespaces. The new tablespace model replaces the old tablespace model by 12
tablespaces making it lot easier to manage the tablespaces.
67. Where are all the middle tier start/stop scripts located?
The forms server can be controlled with the script adfrmctl.sh which is located at
the
common locations of all the scripts viz $COMMON_TOP/admin/scripts/<sid>. The
forms server can be started/stopped in the following way.
Adfrmctl.sh { stop | start | status }
The log file which is created by the scripts is f60svrm.txt available at he common
location of the log files.
Alternatively, the forms server can also be started manually without using the
scripts with
the f60ctl executable which is located at $ORACLE_HOME/bin. This is 8.0.6 Oracle
Home and should not be confused with the Oracle Home of the database server.
The forms server can be started manually in the following way.
F60ctl start port=<port name> mode=socket exe=f6owebmx logfile=/location of
logfile.
Reports server can be controlled with a script adrepctl.sh. It uses the executable
FNDSVCRG which is located at $FND_TOP/bin. The defaults name of the reports server
log file is rep60_<sid>.txt and is located at same place along with the log files
of the
other components of the middle tier.
Reports server can be controlled by
Adrepctl.sh { start | stop | status }
71. How you can start/stop all the middle tier components at one go?
For starting and stopping all the middle tiers, Oracle provides two different
scripts which
take care of starting and stopping all the middle tiers at one go.
For starting all the middle tiers, the script is adstrtal.sh. It takes the apps
user id and apps
password as parameters.
Adstrtal.sh < appsusername/appspassword>
Similarly, for stopping all the middle tiers at one go, the script is adstpal.sh.
This also
takes the apps user if and apps password as parameters.
Adstpal.sh <appsusername/appspassword>
Both these scripts create a logfile in which it contains detailed information. The
logfile
name is in the following format <Month><Date><Hour><Minute>.log
It gives a formatted report in the log file with the details of which components
are started,
which are already running, which are disable and which are not running.
1. How do I check from the server if the forms server is running or not?
Check for the process f60cd. If the process is running it means the forms are up
and
running.
2. How do I change the port of the forms server?
Modify the file appsweb.cgf which is available at $OA_HTML/bin
3. How do I enable FRD (forms Runtime Diagnostics)
5. My forms server is up and running but while connecting to the forms I am getting
the
error �your connection to the server was interrupted. This can be due to a result
of
network error, or a failure on the server. You will need to reestablish your
session�, what
do I do?
Relink the f60webmx and then bounce the forms server.
6. What is FORMS^)_TIMEOUT?
This is an environment setting which refers to the maximum idle time before
f60webmx
shuts down. This will only terminate an idle middle tier process.
It can be generated from the command line using the following command:
F60gen module=form_name.fmb userid=apps/apps outpur_file=form_name.fmx
module_type=form batch=yes compile_all=special
� Adfmcctl.sh � This script starts and stops the forms metric client for apps
instance located in $COMMAN_TOP/admin/scripts. It uses the forms d2lc60 executable
to accomplish this.
� Adfmsctl.sh � This script starts and stops the forms metric server for apps
instance
located in $COMMAN_TOP/admin/scripts. It uses the forms d2ls60 executable to
accomplish this.
� Adfrmctl.sh � This script starts and stops the forms server listener located in
$COMMAN_TOP/admin/scripts. It calls the f60ctl founded in
$ORACLE_HOME/6iserver/bin of IAS.
� Appsweb.cfg � This file defines parameter values used by the forms web CGI
located in
$OA_HTML/html/bin. It has the details of the forms server port, host, domain etc.
� Appsbase.html � This is the default HTML file for starting an applet using
JInitiator and
is located in $OA_HTML/<language>
� D2lc60.txt � This is the forms metric client log file, located in
$COMMAN_TOP/admin/install
� D2ls60.txt � This is the forms metric server log file, located in
$COMMAN_TOP/admin/instal
� F60svrm.txt � This is the adfrmctl.sh log file located in
$COMMAN_TOP/admin/install. This is not the same as the forms server log file which
not only logs start up and shut down info but also client connectivity. For
example, which
client IP is associated with which f60webmx process and debug stack trace info.
� Oracle Applications.dat � This file determines the path Oracle Apps uses to find
their
icons and is located in $JAVA_TOP/oracle/fnd/formsClient
11. I am not able to launch the forms through the php. It�s simply hanging however
I am
able to launch the direct forms, how should I fix this?
If you are not able to launch the forms then check for profile ICX: Forms Launcher
system profile. Set properly the forms URL here and you should be able to launch
the
forms.
12. What is the ICX: forms launcher system profile is used for?
This profile option is used by the self service Web application personal home page
(also known as ICX) to determine the base URL needed to launch an application,
which in this case is a forms application.
15. How do you determine version information about a Oracle Applications forms?
Form the Oracle Applications; open the form whose version you want to know. Go to
the
menu bar, select Help>About Oracle Applications. Near the bottom of the information
screen, you will find a heading of �FORMS�. Under this heading you will find the
name
and version information of the currently selected form.
16. How do you enable tracing for the forms session and where is the trace file
located?
You can start the tracing for the particular forms session by the going to the menu
bar of
the Oracle Applications forms session and by selecting Tools and then Trace Enable.
Once you click Enable it will tell you the full path and name of the trace file.
It�s
normally located in the udump location of the database server.
17. I want to launch the direct forms for debugging but when I try to launch the
direct
forms I get the error, �This application server is not authorized to access this
database�.
How can I launch the direct forms?
The following command is used for turning the authentication off java
oracle.apps.fnd.security.AdminAppServer apps/apps AUTHENTICATION OFF
DBC=<name of dbc file>
Once the authentication is set to off then the direct forms URL can be accessed.
18. After logging to the forms you are getting the error � the Menu compilation has
failed
or Oracle Error there is no valid responsibility available. How will you
troubleshoot the
same?
If you are getting the errors like this it means that the system has not been
completely
taken out of the maintenance mode or it is still there in the maintenance mode.
Once the
system is out of the maintenance mode you will be able to login.
19. When the forms are being launched you can see a yellow bar in the bottom. How
to
fix the same?
Regenerate the JAR file using adadmin. The problem will be fixed.
20. What is the difference between the forms running in socket mode and servlet
mode?
If the forms are run in the socket mode, there will be a dedicated connection
between the
client desktop and the forms server whereas when the forms are started in the
servlet
mode, the forms request are processed by the Jserv.
21. How do I find whether the forms are running in servlet mode or in socket mode?
For checking the same, query the f60 process. It will reply in which mode the forms
is
running.
22. How do I change form the socket to servlet mode and vice versa?
For doing the same, login to the Oracle Applications manager and follow the
navigation
>Site Map> Autoconfig. From there, you will be able to change from socket mode to
servlet mode and vice versa. You have to run autoconfig form the backend and bounce
the forms server after doing the same.
2INSTALLATION
1. What is the minimum disk space requirement for installing Oracle Applications?
The approximate file sizes in a single-node installation are:
� Application tier file system � 26 GB (includes iAS/8.0.6 ORACLE_HOME
COMMON_TOP, and APPL_TOP)
� Database tier file system (fresh install with a production database) � 31GB
� Database tier file system (fresh install with a Vision Demo database) � 65GB
� Total space for a single node system, not including stage area, is 57GB for a
fresh install with a production database, and 91GB for a fresh install with a
Vision Demo database.
2. How much stage area is required for RapidInstall?
To run RapidInstall from a stage area, you need at least 24GB to accommodate the
files.
3. How much space an additional language needs?
To install an additional language, it needs approximately around 10GB space.
4. Do in need to install any other software before starting the RapidInstall?
Before installing Oracle Applications, the JDK needs to be installed. The version
of JDK
which needs to be installed depends on which version of Oracle Applications you
want to
install. The latest 11.5.10 release of Oracle Applications needs JDK1.4.2. Apart
from
JDK, you must have Perl 5.00.53 installed and which should be there in your PATH.
If
you don�t have Perl installed, download the same from www.perl.com.
RapidInstall needs to be started only wit the root user. It can also be started
with any
other user as well, but that is not recommended as you have two different users �
one for
database and other for application file system.
6. How many operating system users I need for Installing Oracle Application
Oracle recommends that you should have two Unix users for Installing Oracle
Applications � one Oracle user (Oracle) who owns the file system of the database
and
one application (applmgr) user who owns the application file system.
7. What are the individual disks included in the Release 11i software Bundle?
The 11.5.10 software comes in DVD format. The individual disks included in the
Release 11i software bundle are labeled as follows:
� Start Here � Disk l
� APPL_TOP � Disk n
� RDBMS � Disk n
� Tools � Disk n
� Database � Disk n
10. How many directories are there in the stage area of Oracle Applications?
The following six directories are there in the stage area of Oracle Applications.
� StartCD
� oraApps
� oraDB
� oraiAS
� oraAppDB
� oraNLS (Optional only if you have a NLS Software)
� Verify the file system base install directories have write access granted to the
user that
will own the software (on UNIX the RapidInstall Wizard may be run as root but the
install runs as the user that will owns the software, therefore this user must have
write
access to the baser install directories).
� Verify the required ports are available for the installation.
� Verify system parameters are sufficient for the Oracle software (especially the
database)
to run.
� Verify the all the OS patches have been applied as per Oracle documentation.
Single node installations is the one in which all the servers (concurrent
processing, forms,
Web, reports), the database and all product directories are installed on a single
node. In
other words, in single node installation the entire Oracle Applications are
installed on a
single server.
63 pg
The single node installation is generally used for smaller installations and also
used for
demonstration purpose.
Express configuration installs a fully configured single node system with either a
fresh
database or Vision Demo database. Only a few basic parameters such as database
name,
top level install directories and port settings needs to be specified in this and
express
configuration take care of installing Oracle Applications with out any user
intervention.
During installation RapidInstall asks many questions from the user. It saves all
the
configuration parameters you enter in a new configuration file (config.txt) which
it uses
to configure the system for the new installation. In case the installation fails
the same
configuration file can be used for restarting the installation without answering
all the
questions again from the scratch. For multi-node installation, this configuration
file is
used for the installation in other nodes.
16. I have started RapidInstall but nothing is coming in the screen. What could be
the
reason?
The display might not be set properly. Set the display and start RapidInstall
again.
18. In a multi-node installation how do I find what services are nothing from which
node?
orms server, SUPPORT_WEB for the apache host and SUPPORT_ADMIN to know the
admin tier.
19. What benefits do I get with multi-node installation?
Incase if multi-node installation, various components of the middle tier are hosted
across
different physical servers. Shared APPL_TOP means the APPL_TOP will be installed
only in one of the physical servers and all the other servers of the application
tier will
shard the file system of the APPL_TOP. Any changes made in the shared APPL_TOP
file system are immediately visible on all nodes. This helps a lot in managing the
application system, Incase if patching, it needs to be done only once as all the
servers
share the same APPL_TOP. With 11.5.10 release, RapidInstall creates a shared
APPL_TOP by default for multi-node installation.
21. What is Shared APPL_TOP and how does it help in case of multi-node
installation?
24. Can I share the APPL_TOP across different platforms of operating system?
No, sharing of the APPL_TOP is not possible across different platforms because the
binaries and libraries of the application file system are platform specific.
25. As of now I am using two different APPL_TOP. Can I merge the existing
APPL_TOPs to go for the shared APPL_TOP model?
Yes, you can merge APPL_TOPs which are spread across different nodes. The metalink
document 23428.l. mentions in details about doing the same.
Load balancing distributes processes for Oracle Applications across multiple nodes.
This
distribution of the workload improves the performance and enhances scalability. If
the
load balancing then even if the component is down, the application system continues
to
work. For example, if Apache load balancing is enabled across two nodes then in
case
one of the nodes in down, all the incoming connections will automatically be
redirected
to the other node.
29. How can I tell what is installed and licensed after finishing an install?
The script AD_TOP/sql/adute.sql against the APPS user schema will generate a
detailed file (adutconf.lst) with information about the database configuration and
what products are installed and licensed after the rapid installation process
complete.
30. I have already done the installation but forgot to license a product I want to
use. Can I
license it after the installation?
Yes, licensing can be done after the installation. You can do in two ways.
1) Go to AD_TOP and run the script adlicmgr.sh. This will prompt for the additional
products to be licensed.
2) From Oracle Applications Manager go to OAM > License Manger > License
additional products.
31. I have already done the installation. Now I want to add an additional language.
Is it
possible?
Yes, it�s possible to add a separate language after the installation. For this, you
need to
make the language as active from Oracle Applications Manger and need to download
and
install the NLS software.
32. I don�t want to use the defaults port that�s being used by RapidInstall. What
options
do I have for changing the ports to some other value?
There are two options for assigning different ports rather than using the default
ports
while running RapidInstall.
1) You can use the port pool option with which you can increment all the port
values at
one go. Say you choose a port pool of 5 then all your port values will be
incremental by 5
from the default value.
2) You can use the Advance Edit button for assigning the ports of your choice but
make
sure that the ports which you are assigning are not in use.
existing port.
2) Port Uniqueness: There is no duplicate defined port for the processes.
3) File space check: It ensures whether the file system have sufficient space for a
smooth
installation.
4) OS Patch Check: It ensures that the right operating system patches are there or
not.
5) Operating system check: It checks the operating system.
6) File system check: It checks whether the files are mounted properly and have
correct
permission.
7) Host/domain check: It verifies the hostname and the domain name.
8) System utilities check: It checks whether the linking utilities like make, ld
and cc are
available or not.
9) OS user and group check: It checks that the OS user exists and the OS user is a
part of
correct group.
35. Once the installation is done, what checks RapidInstall does to ensure that the
installation is successful?
RapidInstall checks the following to ensure the installation is successful.
1) Database availability check: The database is up and running
2) Environment file check: Checks whether the environment file is created properly
3) DBC file check: The DBC file has been created (location $FND_TOP/secure)
4) HTTP check: Check s if the apache is up and running
5) JSP check: Checks if the JSPs are working fine
6) PHP check: Checks if the PHPs are working fine
37. What information is written in the log files of the RapidInstall of db and
application
tier?
In the db tier RapidInstall log file contains the following information:
� Instantiation drivers
� XML creation
� JSP check
� PHP check
� 806infrun.log-Windows only-Updating Registry with Tools 8.0.6 ORACLE_HOME
information
� Iasinfrun.log-Windows only-Updating Registry with Tools iAS ORACLE_HOME
information
� iASInstalling-Information on Unzipping stages for oraiAS-Tools 8.0.6 and iAS
Techstack
� installAppl.log-Information on Unzipping stages for oraAPPS-APPS_TOP
� installiasinf.log-Information in creating the Registry update.inf files
In simple language,
Patch + Patch = Minipack
Minipack + Minipack = Maintenance Pack
Patches are created and released by Oracle whenever some new enhancements are made
in Oracle Applications or if there is some issue with Oracle Applications. A patch
may
contain a fix for a single issue or a collection of issues.
During a release cycle, a product combines all the individual patches in to a
minipack.
When these minipacks are combined together into a single patch, it is called a
maintenance pack. In earlier release, these minipacks were referred as patch sets
and
maintenance packs were referred as release updates.
The copy driver copies all the files that are there in the patch to the APPL_TOP.
The
copy driver is named as c<patch number>.drv. Apart from copying the files to the
APPL_TOP, the copy driver also does the following tasks.
� Copies the files that are there in the patch to the $APPL_TOP.
� Extracts the appropriate files from each product�s C library.
� Relinks the Oracle Applications products.
� Regenerates the JAR files and compiles the Java Server Pages (JSP) files.
� Compares the files in the patch with the files in the $APPL_TOP. If the files in
the
patch are of higher version then only adpatch copies the files from patch to
$APPL_TOP
The database driver contains all the commands to change the database object. Just
like
the copy driver, the database driver is also named as d<patch number>.drv. The
database
driver applies all the assorted scripts copied by the copy driver to the database.
There are
many scripts that make changes to the database which are applied by the D driver.
Here is
the brief description of all the scripts that are run by the D driver.
� It makes a list of all the invalid objects that are there in the database.
� Runs SQL scripts which make changes to the database objects.
� Compiles all the invalid objects that are there in the database.
Just like the copy driver and database driver, the generate driver is also named as
g<patch
number>.drv. The generate driver regenerates all the forms, reports and pl/sql
libraries
that have been affected by the patch.
A patch is applied in using the adpatch utility. It�s an interactive utility which
prompts for
the various details like the patch number, driver details, number of workers, apps
password and system password. When all the details are provided, adpatch applies
the
patch.
73 pg
8. What exactly happens when a patch is applied? What is the sequence of steps
adpatch
follows?
The AutoPatch extracts the appropriate files from the product library. It compares
the
extracted object modules with their corresponding files in the patch directory. If
a file in
the patch directory is a more recent version than the product�s current file,
AutoPatch
backs up the product�s current file in to a subdirectory of the patch directory.
Specifically, it backs up
<PROD>_TOP/<subdir(s)>.<old_file_name>
To
<patch_dir>.backup/<env_name>/<appl_top_name>/<prod>/<subdir(s)>/ \
<old_file_name>.
No, you can�t apply all the patches together. You can apply only one patch at a
time. If you want to apply multiple patches together, then you can merge all the
patches together using the merge patch utility and can apply the merged patch at
one go.
You can apply a patch in a non-interactive manner using a patch defaults file. The
defaults file stores all the information that is normally asked by the adpatch and
uses
them to apply the patch in a non-interactive manner.
This will prompt all the questions that are normally asked during interactive
patching. Answer all the questions and when asked for the directory where your
patch has been unloaded, enter an abort at he command prompt. This will create a
def.txt file at the location specified in the command prompt. Verify whether this
defaults file is created properly or not. Once the defaults file is created for the
application system, we can run AutoPatch in non interactive way.
The test mode is used to determine the action of the patch without actually
applying the
patch. When the patch is run in test mode it does not perform any action as such
but
documents the operations it would have performed. In other words, it lists each
file it
would have copied, generated, executed or relinked. This is used when you want to
know
what wxactly the patch is going to do and what is going to be the impact of the
same.
14. Under what circumstances one needs to run a patch in a pre-install mode and how
is it
run?
15. From release 11.5.10 onwards one needs to put his application system into
maintenance mode before applying any patch. How can I apply any patch without
putting
my application system into maintenance mode?
You can apply a patch without putting the application system into maintenance mode
by
using the hotpatch option. Type the following from the command line.
Adpatch options = hotpatch
16. I was applying a patch and the patch failed. I contacted Oracle support and
they
advised me to apply one more patch as a fix and then restart my previously failed
patch
from the point where it had failed. How do I do that?
If you want to restart your patch from the point where it failed then backup the
out and
restart directories from the $APPL_TOP/admin/$TWO_TASK. Also take a backup of the
FND_INSTALL_PROCESS and AD_DEFERRED_JOBS table from the database and
apply the new patch. Once the new patch is applied, put the files that have taken
the
backup in the place and revert the old table. You should be able to apply the patch
from
the point where is failed.
17. How can I determine the effects a patch will have on my application system?
You can do the patch impact analysis through the patch wizard in the Oracle
Applications
Manger. The patch impact analysis feature of patch wizard will give the following
details.
18. I have a two node APPL_TOP. Do I need to apply adpatch from all the nodes?
If you have a shared APPL_TOP which is mounted across both the nodes then you need
not apply patches from both the nodes. But if shared APPL_TOP is not
enabled and you are maintaining two different APPL_TOP from two different servers
then you have to apply the adpatch from both the nodes.
19. In case of multi-node installation, how do I know which driver file needs to be
run
from which application server?
In case of a multi-node installation, you need to run the C driver from all the
nodes as it
copies the files that are there in the patch to the APPL_TOP. The D driver needs to
be run
only once from the admin tier and the G driver needs to be run from the servers
where the
forms servers are hosted.
20. How do I know what servers are hosted from which nodes?
You can check the same either from the Oracle Application Manger�s dashboard or
from
the context file or from the FND_NODEs table.
21. In my patch only U driver is there. I tried applying the patch earlier but it
failed due to some database issue. I have fixed that issue and now I want only the
D and G driver�s portions to run and I don�t want to run the C driver portion of
the patch again. Can I do the same?
Yes, you can skip the C driver part from the patch by typing the following at the
command prompt
Adpatch options = nocopyportion.
Similarly, you can skip the D and G drivers part also by the option
nodatabaseportion and
nogenerateporion.
22. While applying patch using adpatch, how can you hide the passwords?
You can use adpatch flags = hidepw while applying patches to hide apps or system
password
23. What happens if I apply the driver in the wrong sequence? Say I apply the G
driver
before the C and D drivers?
The driver always needs to be applied in the C, D and G sequence. If you try to run
the G
driver before the C driver the patch won�t be able to find the forms which the G
driver
wants to generate, as the C driver has not copied them in the APPL_TOP and hence
the
path will fail.
Restart files store information about completed processing in the event of a patch
or
system failure. They allow AutoPatch, AutoUpgrade, and AD Administration to
continue
processing at the point where they stopped.
The restart files are located at $APPL_TOP/admin/<SID>/restart.
The patch log files are located in the $APPL_TOP/admin/$TWO_TASK/log directory. The
default name of the patch log file is adpatch.log but it is recommended to change
it as patch driver.log in order to identify the patch log easily.
26. What are all the log files which the patch creates?
Running the patch creates the following log files.
� Adpatch.log : It contains the information about the patch run.
� Adpatch.lgi : It contains the other information about the patch run.
For example, the files which has not been copied by the adpatch.
� Adrelink.log : It contains the relinking information which the patch does.
� Adworkxx.log : it contains the various workers log.
28. What is difference between ad_applied_patches and ad_bugs tables for finding
the
patch information?
The table ad_applied_patches is updated only if the patch is applied by the adpatch
utility. If the patch is a part of some other big patch then that information won�t
be there
in the ad_applied_patch as it is not applied using adpatch. But that patch
information will
be there in ad_bugs. Alsom if all the patches are applied using the adpatch
utility, that
information is also stored in the ad_bugs table.
29. While applying patch, it�s showing me �tafnw1� as default APPL_TOP value. What
does it mean?
30. I was applying a patch and the workers have failed. How do I skip and restart
the
failed workers?
For this, you need to open a new terminal and invoke the adctrl utility. Choose the
eighth
options which are generally hidden for skipping and restarting the worker.
31. You were applying a patch and it has failed. What do you do?
If the patch has failed then the first step would be to check the patch log file to
find out where exactly it has failed. If the patch fails at D driver or G driver
then you should also check the workers log to find out the exact error. Then try to
fix the issue. If it is fixed, restart the patching using the adctrl utility.
32. You have applied a patch which brings new files to the APPL_TOP but after
applying the patch the users are complaining that they are not able to see the new
changes. How do you troubleshoot this?
Check the log file of the patch in the log location. You will get some clue whether
adpatch has copied or applied that file or not. Else clear the cache from the
server and
bounce the apache.
In the COMMON_TOP directory, there will a directory starting with _pages. This is
the
directory where the files are cached in the server. Delete all the files from there
for
clearing the cache.
34. You have to apply a multiple number of patches. How can you reduce the
downtime?
You can reduce the patching time in a number of ways.
� You can merge all the patches into one single patch using admergepatch admrgpch.
� You can choose the max number of the workers which your CPU permits.
� In case you are applying all the patches one by one, you can choose the options
No, the upgrade process is different if you are upgrading from an 11i instance to
11.5.10
and from non-11i instance to 11.5.10.
2. What are the pre-upgrade steps that need to be taken for the up gradation of a
non-11i
instance to 11.5.10?
TUMS is a utility to help customers reduce the number of steps necessary in the
upgrade.
It looks at a customer�s specific situation, and identifies which steps are
irrelevant for that
customer. The output of TUMS can be used to reduce upgrade time. The upgrade manual
scripts (TUMS) is used to create a report that lists the upgrade steps that don�t
apply to
Oracle Application installation. You can ignore the steps that are generated with
the
report of TUMS.
For generating the TUMS report, you need to download and apply the TUMS 3422686
patch from metalink using the adpatch utility. The TUMS patch needs to be applied
for both 10.7 and 11.0.x version of Oracle Applications.
Once the patch is applied successfully, the adtums.sql script is used to generate
the
TUMS report. For the <DIRECTORY> value, enter the full path of the directory that
you
want the TUMS report to be written to. This directory must be listed in the
UTL_FILE_DIR parameter of your init.ora before TUMS can write the report and must
have the appropriate permissions to write the report (tums.html).
4. After the application of the TUMS patch, where does the script adtums.sql need
to be
run from?
If you are upgrading from release 10.7, the script needs to be run from the
following
location:
For UNIX users:
$ cd $AD_TOP/patches/107/sql
$ sqlplus <APPS username> / < APPS password>
@adtums.sql <DIRECTORY>
For Windows users:
C:\> cd %AD_TOP%\patches\107\sql
C:\> sqlplus <APPS username>/<APPS password>
@adtums.sql <DIRECTORY>
If you are upgrading from release 11.0, the script needs to be run from the
following
location:
For UNIX users:
$ cd $AD_TOP/patches/110/sql
$ sqlplus <APPS username> / < APPS password>
@adtums.sql <DIRECTORY>
For Windows users:
C:\> cd %AD_TOP%\patches\110\sql
C:\> sqlplus <APPS username>/<APPS password>
@adtums.sql <DIRECTORY>
Custom.pll is the custom library. If you have done some customization in Oracle
Applications, you must preserve the custom library (custom.pll) which contains the
details of the customizations done in the application system. It is used to migrate
to 11i
6. What is the actual upgrade process for doing an upgrade foe a non-11i
application
system?
Once all the pre-upgrade tasks are done, we can start the actual upgrade. The
upgrade
starts with running RapidInstall. It needs to run twice � one for doing the actual
upgrade
and secondly, for configuring all application systems once the upgrade is complete.
This
is the sequence in which the upgrade works from a 10.7 or 11.0.x release to
11.5.10CU2.
� Enter configuration parameters and run RapidInstall
� Run autoUpgrade to upgrade products and database objects
� Run AutoPatch to apply the patches
� Run RapidInstall to configure and start all the servers and services
7. If I run the RapidInstall, does it mean that it creates a new application system
for me?
What happens to the existing database?
RapidInstall connects to the existing database and creates the new database
ORACLE_HOME, APPL_TOP and the Tech stack. Once the RapidInstall is run,
you need to migrate the existing database to 9i run AutoUpgrade and then to switch
to the new application system. Once this is done, you need to take care of all the
customizations is the new APPL_TOP, apply the required patches and then run the
RapidInstall again to configure all the servers.
Once the RapidInstall is run successfully the next step is to run AutoUpgrade. It
is used to upgrade Oracle application product from the earlier version to the base
version of the latest release. It can be started from the command prompt by
invoking the AutoUpgrade utility by typing adaimgr.
This is the third step in the AutoUpgrade process. Here it prompts for the
following:
� How do you wish to enable parallel concurrent processing
� Do you wish to use the 8.3 file name convention [No]
� Enter the common area for the log and the out files
� Enter the directory for applications temporary files
� Enter the directory for reports temporary files
� Enter the Web server host machine
� Enter the port number
Once all the information is given, the AutoUpgrade starts running and verifies the
files
for all the products one by one.
11. Explain in details what are the pre-upgrade steps for upgrading to 11.5.10 for
11i
application system?
The following are the pre-upgrade steps for the upgrade process for 11i application
system.
Announcing downtime
The first step towards an upgrade is announcing a downtime. All the users must be
communicated with the downtime well in advance and the downtime should be planned
in such a way that it affects the least in terms of revenue. Ideally the upgrade
should be
planned in weekends or holidays where you can afford to have a downtime.
Backing up application system
85 pg
A full backup of the database and the APPL_TOP must be taken before starting the
upgrade process so that in case of any upgrade failures you can revert back to the
existing
system. A cold backup of the database should be taken with the normal shutdown.
Running TUMS utility
TUMS is a utility to help customers reduce the number of steps necessary in the
upgrade.
It looks at a customer�s specific situation, and identifiers which steps are
irrelevant for
that customer. The output of TUMS can be used to reduce upgrade time. The upgrade
manual script (TUMS) is used to create a report that lists the upgrade steps that
don�t
apply to Oracle Application installation. You can ignore the steps that are
generated with
the report of TUMS.
The TUMS for 11.5.10 maintenance pack report will be created in the directory
UTL_FILE_DIR. So make sure that this directory has proper write permission.
Once the patch is applied successfully, the TUMS report can be generated using the
following command:
$ cd $AD_TOP/patch/115/sql
$ sqlplus <APPS username>/<APPS password>
@adtums.sql <DIRECTORY>
For updating the auto config tech stack components, you need to apply the patch
4489303. Make sure you follow all the steps as mentioned in the readme of the
patch.
Running tech stack validation utility
Apply the patch 4318672 in all the nodes of the APPL_TOP to install the utility
which
verifies the minimum technology stack components version and the other
configuration
requirements which are associated with the 11.5.10 CU 2 maintenance pack. Once this
patch is applied you need to run the technology stack validation utility at the
APPL_TOP
as well as at the database.
The utility can be run with the following command:
At APPL_TOP
$ADPERLPRG $FND_TOP/patch/115/bin/TXKScript/p1
- script=$FND_TOP/patch/115/bin/txkVa111510MP.p1
- txktop=$APPLTMP
- appspass=<apps_password>
- outfile=$APPLTMP/txkVa111510MP.html
A full backup of the database and the APPL_TOP must be taken before starting the
upgrade process so that in case of any upgrade failures you can revert back to the
existing
system. A cold backup of the database should be taken with the normal shutdown.
Running TUMS utility
TUMS is a utility to help customers reduce the number of steps necessary in the
upgrade.
It looks at a customer�s specific situation, and identifiers which steps are
irrelevant for
that customer. The output of TUMS can be used to reduce upgrade time. The upgrade
manual script (TUMS) is used to create a report that lists the upgrade steps that
don�t
apply to Oracle Application installation. You can ignore the steps that are
generated with
the report of TUMS.
The TUMS for 11.5.10 maintenance pack report will be created in the directory
UTL_FILE_DIR. So make sure that this directory has proper write permission.
Once the patch is applied successfully, the TUMS report can be generated using the
following command:
$ cd $AD_TOP/patch/115/sql
$ sqlplus <APPS username>/<APPS password>
@adtums.sql <DIRECTORY>
For updating the auto config tech stack components, you need to apply the patch
4489303. Make sure you follow all the steps as mentioned in the readme of the
patch.
Running tech stack validation utility
Apply the patch 4318672 in all the nodes of the APPL_TOP to install the utility
which
verifies the minimum technology stack components version and the other
configuration
requirements which are associated with the 11.5.10 CU 2 maintenance pack. Once this
patch is applied you need to run the technology stack validation utility at the
APPL_TOP
as well as at the database.
The utility can be run with the following command:
At APPL_TOP
$ADPERLPRG $FND_TOP/patch/115/bin/TXKScript/p1
- script=$FND_TOP/patch/115/bin/txkVa111510MP.p1
- txktop=$APPLTMP
- appspass=<apps_password>
- outfile=$APPLTMP/txkVa111510MP.html
At Database
$ADPERLPRG $ORACLE_HOME/appstil/bin/TXKScript/p1
- script=$ORACLE_HOME/appsutil/bin/txkVa111510MP.p1
- txktop=$ORACLE_HOME
- appspass=<apps_password>
- outfile=$ORACLE_HOME/appsutil/temp/txkVa111510MP_DB.html
-The utility must return the �[ALLPASS]� status on each application tier server
node as
well as database server nodes in order for you to be able to continue with the
installation of the release 11.5.10 maintenance pack. If the �[FAIL]� status is
returned for any test on any node, you must take the specified action to fix the
problem, re-run the utility on each node that reported a failure, and ensure that
the �[ALLPASS]� status is returned.
Converting to OATM model (optional)
The database must be configured for the new products, which are added since the
release of 11i. For this, you need to apply the patch 3180164 which takes care of
adding the new product details in your environment. Follow all the steps as
mentioned in the readme of the patch.
Product specific steps
Apart from these steps there are many product specific pre-install steps that need
to be done before the application of the maintenance pack. Since these tasks are
specifically related to products that are installed so we are not discussing the
same here. You must check this with the Oracle manual while doing an upgrade.
12. Explain in details the actual upgrade steps for upgrading to 11.5.10 for an 11i
application system.
The following are the actual upgrade steps for upgrading to 11.5.10 for an 11i
application
system.
Stop middle tier
Shutdown all the components of the middle tiers before starting the patching. For
stopping the same, you can use the script adstpall.sh which is located in the
$APPLCSF/scripts/<sid> directory.
Upgrading database
Before applying the 11.5.10 CU2, the database must be upgraded to 9i release 2 or a
higher version of Oracle RDBMS. If you are planning to upgrade to 9.2.0 version
then
you must follow the steps given in the metalink note 216550.1 and if
you are planning to upgrade to 10g release 1 then you must follow the steps given
in the
metalink note 282038.1.
Apply 11.5.10 CU 2 maintenance pack
Apply the 11.5.10 CU 2 patch 3480000. in case you have a multiple node APPL_TOP
then the patch should be applied at the admin tier at first and then should be
applied in
all the other nodes of the APPL_TOP one by one. If you have any other languages
installed other than American English then you must apply the NLS patch immediately
after the base patch. In case you are upgrading from release 11.5.4 or earlier
version, you
must run the adadmin and choose the option �Maintain multi-lingual tables�. The NLS
patch also needs to be applied from all the nodes in case of a multiple node
installation.
The autopatch also takes care of performing the post-installation steps during the
patching itself like compiling Apps schema, compiling the flexfields, maintaining
MRC,
compiling JSPs, generating JAR files, generating forms etc. which earlier needs to
be
done manually after patching.
13. What are the post-upgrade steps that need to be followed once the upgrade is
done
to the application system should not be given till you complete all the steps.
Registering new products
The new products, that are added, don�t get registered in the database
automatically. They
need to be done manually. For this, you have to use the license manager which can
be
invoked using the Oracle Application Manger.
Dropping MRC schema
The Multiple Reporting Currencies (MRC) schema is no longer used anymore. You can
safely drop the schema at any time. This can be done online also and no downtime is
required for this. The following script needs to run for doing the same.
$ cd $APPL_TOP/admin
$ sqlplus SYSTEM/<SYSTEM password>
@addrpmrc.sql <APPLSYS_USERNAME> SAFE
Product-specific tasks
Apart from all these tasks, there are a lot many product-specific tasks that need
to be
done as a part of Oracle Application Upgradation. Consult the Oracle manual for
getting
a list of all those tasks.
Sanity testing
Once all the product specific tasks are done, do a sanity test to check that the
environment is working fine. If you are facing some issue after the upgradation,
then
contact the Oracle support with full details of the error.
Announce environment to users
Once the sanity testing is done and all the logins are working fine then announce
the environment to the users so that they can start using it. Take a complete
backup of the environment as soon as possible.
14. How can you upgrade the database or the techstack using the RapidInstall
For starting the database or techstack upgrade using the RapidInstall, the
RapidInstall
screen is invoked by typing rapidwiz � techstack from the command prompt. It then
gives
two options to choose from
Upgradation to 9i ORACLE_HOME
Upgrading to 9iAS 1.0.2.2.2.
Interview questions:
Based on file location I am sure you can say this is related to Apache, &
looking into modplsql/cfg, I am sure you will say its related to mod_pls (mod plsql
component of Apache/Oracle 11i WebServer) configuration file. 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 (in our example its VISION11I) &
Sample entry in wdbsvr.app
[DAD_VISION11I]
connect_string = VISION11I
Password = apps
Username = APPS
default_page = fnd_web.ping
10. Where would i find .rf9 file, and what exactly it dose?
These files are used during restart of patch in case of patch failure because of
some
reason.
Multi Node System in Oracle Applications 11i means you have Applications 11i
Component on more than one system. Typical example is Database, Concurrent Manager
on one machine and forms, Web Server on second machine is example of Two Node
System.
13. Can you clone from multi node system to single node system & vice versa ?
Yes, this is now supported via Rapid Clone, Check if your system has all pre-req.
patches
for Rapid Clone and you are on latest rapid clone patch.
14. Does rapid clone takes care of Updating Global oraInventory or you have to
register
manually in Global OraInventory after clone?
Rapid Clone will automatically Update Global oraInventory during configuration
phase.
You don't have to do any thing manually for Global oraInventory.
15. What is .dbc file , where its stored , whats use of .dbc file ?
dbc as name says is database connect descriptor file which stores database
connection
16. What things you do to reduce patch timing? You can take advantage of following
-
Merging patches via admrgpch
Use various adpatch options like nocompiledb or nocompilejsp
Use defaults file
Staged APPL_TOP during upgrades
Increase batch size (Might result into negative)
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.
18. Can you apply patch without putting Applications 11i in Maintenance mode?
Yes, use options= hotpatch as mentioned above with adpatch.
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.
24. What is JVM (Java Virtual Machine) and which component uses JVM?
JVM stands for Java Virtual Machine
25. What is access_log in apache, what entries are recorded in access_log? Where is
default location of this file?
Access_log in Oracle Application Server records all users accessing oracle
applications
11i.
This file location is defined in httpd.conf with default location at
$IAS_ORACLE_HOME/Apache/Apache/logs.
27. What is session time out parameter & where all you define these values?
To know about session time out parameter & location where its defined Click Here
Main configuration files in Oracle Apps Web Server are httpd.conf, apps.conf,
oracle_apache.conf, httpd_pls.conf jserv.conf, ssp_init.txt, jserv.properties,
zone.properties plsql.conf, wdbsvr.app, plsql.conf
30. What is profile option, what are various types of profile options
41. How to check if Oracle Apps 11i System is Rapid Clone enabled?
For system to be Rapid Clone enabled, it should be Autoconfig enabled (Check above
How to confirm if Apps 11i is Autoconfig enabled). You should have Rapid Clone
Patches applied, Rapid Clone is part of Rapid Install Product whose Family Pack
Name is
ADX. By default all Apps 11i Instances 11.5.9 and above are Autoconfig & Rapid
Clone
enabled.
42. What is the difference between two env files in <CONTEXT>.env and
APPS<CONTEXT>.env under $APPL_TOP?
44. What is your Oracle Apps 11i Webserver Version and how to find it?
From 11.5.8 to 11.5.10 Webserver version is iAS 1.0.2.2.2, In order to find version
under
$IAS_ORACLE_HOME/Apache/Apache/bin execute ./httpd -version
./httpd -version
caches some database content to file. This database/plssql cache is usually of type
session
& plsql cache
session cache is used to store session information.
plsql cache is used to store plsql cache i.e. used by mod_pls
49. What is *.dbc file & what is the location of dbc file?
dbc as name stands for is database connect descriptor file used to connect to
database.
This file by default located in $FND_TOP/secure directory also called as
$FND_SECURE directory.
GUEST_USER_PWD
APPS_JDBC_URL
DB_HOST
51. There are lot of dbc file under $FND_SECURE, How to determined that which dbc
file to use from $FND_SECURE?
This value is determined from profile option "Applications Database ID"
Report Review Agent(RRA) also referred by executable FNDFS is default text viewer
in Oracle Applications 11i for viewing output files & log files. As most of apps
dba's are not clear about Report Server & RRA, I'll discuss one on my blog and
update link here.
PCP is acronym for 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
& secondary CM on machine1.
55. Why I need two Concurrent Processing Nodes or in what scenarios PCP is used?
Well if you are running GL Month end reports or taxation reports annually these
reports might take couple of days. Some of these requests are very resource
intensive so you can have one node running long running; resource intensive
requests while other processing your day to day short running request.
Another scenario is when your requests are very critical and you want high
resilience for
your Concurrent Processing Node, you can configure PCP. So if node1 goes down you
still have CM node available processing your requests.
56. Output & Logfiles for requests executed on source Instance not working on
cloned
Instance
Here is exact problem description - You cloned an Oracle Apps Instance from
PRODBOX to another box with Instance name say CLONEBOX on 1st of August. You can
any CM logs/output files after 1st of August only becuase these all are generated
on CLONEBOX itself, But unable to view the logs/output files which are prior to 1st
August. What will you do & where to check ?
Log , Output file path & location is stored in table FND_CONCURRENT_REQUESTS.
Check
Report Server is started by executable rwmts60 on concurrent manager Node & this
file
is under $ORACLE_HOME/bin .execute command on your server like
ps -ef | grep rwmts60
You should get output like
applmgr....... rwmts60 name=REP60_VISION
where VISION is your Instance name.
Else you can submit a request like "Active Users" with display set to PDF, check
output
& log file to see if report server can display PDF files.
58. What is difference between ICM, Standard Managers & CRM in Concurrent
Manager?
ICM stand for Internal Concurrent Manager, which controls other managers. If it
finds other managers down, it checks & try to restart them. You can say it as
administrator to other concurrent managers. It has other tasks as well.
Standard Manager these are normal managers which control/action on the requests &
does batch or single request processing.
CRM acronym for Conflict Resolution Manager is used to resolve conflicts between
managers & request. If a request is submitted whose execution is clashing or it is
defined
not to run while a particular type of request is running then such requests are
actioned/assigned to CRM for Incompatibilities & Conflict resolution.
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.
Web Listener is Web Server listener which is listening for web Services(HTTP)
request.
This listener is started by adapcctl.sh & defined by directive (Listen, Port) in
httpd.conf
for Web Server. When you initially type request like
http://becomeappsdba.blogspot.com:80 to access application here port number 80 is
Web
Listener port.
100 pg
You can use ojspCompile.pl perl script shipped with Oracle apps to compile JSP
files.
This script is under $JTF_TOP/admin/scripts. Sample compilation method is
perl ojspCompile.pl --compile --quiet
68. Where will you find forms configuration details apart from xml file ?
Forms configuration at time of startup is in script adfrmctl.sh and
appsweb_$CONTEXT_NAME.cfg (defined by environment variable
FORMS60_WEB_CONFIG_FILE) for forms client connection used each time a user
initiates forms connection.
69. What is forms server executable Name ?
f60srvm
70. What are different modes of forms in which you can start Forms Server and which
one is default ?
You can start forms server in SOCKET or SERVLET by defualt Forms are configured to
start in socket mode.
72. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle
Tier) and One in Database Tier.
ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This is
used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
All the other managers will keep working. ICM only takes care of the queue
control requests, which means starting up and shutting down other concurrent
managers.
How will you speed up the patching process?
2.
o
You can merge multiple patches.
o
You can create a response file for non-interactive patching
Run pre-clone on the source (all tiers), duplicate the DB using RMAN (or restore
the DB from a hot or cold backup), copy the file systems and then run post-clone on
the target (all tiers).
Manual steps (there can be many more):
o
Change all non-site profile option values (RapidClone only changes site-level
profile options).
o
Modify workflow and concurrent manager tables.
o
Change printers.
Provide an introduction to AutoConfig. How does AutoConfig know which value from
the XML file needs to be put in which file?
5.
AutoConfig uses a context file to maintain key configuration files. A context file
is an XML file in the $APPL_TOP/admin directory and is the centralized repository.
When you run AutoConfig it reads the XML files and creates all the AutoConfig
managed configuration files.
For each configuration file maintained by AutoConfig, there exists a template file
which
determines which values to pick from the XML file.
Can you tell me a few tests you will do to troubleshoot self-service login
problems?
Which profile options and files will you check?
6.
o
Check guest user/password in the DBC file, profile option guest user/password,
the DB.
o
Check whether apache/jserv is up.
o
Run IsItWorking, FND_WEB.PING, aoljtest, etc.
What could be wrong if you are unable to view concurrent manager log and output
files?
7.
Most likely the FNDFS listener is down. Look at the value of
OUTFILE_NODE_NAME and LOGFILE_NODE_NAME in the
FND_CONCURRENT_REQUESTS table. Look at the FND_NODES table. Look at the
Oracle Applications 11i (version 11.5.9 and version 11.5.10) is now certified for
use with
the Oracle Database 10g Release 2 (minimum version 10.2.0.2) running on Linux x86
and other platforms. Requisite patches and other instructions have been published
via
MetaLink Note# 362203.1 (Interoperability Notes - Oracle Applications 11i with
Oracle
Database 10g Release 2). For specific platform versions supported, please check
Certify.
Oracle Applications 11i (version 11.5.9 and version 11.5.10) is certified for use
with the
Oracle Database 10g Release 1 (minimum version 10.1.0.4) running on Linux x86 and
other platforms. Requisite patches and other instructions have been published via
MetaLink Note# 282038.1 (Interoperability Notes - Oracle Applications 11i with
Oracle
Database 10g Release 1). For specific platform versions supported, please check
Certify.
2. Will there be additional database patches required on top of 10g ?
Yes.
All the required patches for Oracle Database 10g Release1 are documented in
MetaLink
Note# 282038.
All the required patches for Oracle Database 10g Release2 are documented in
MetaLink
Note# 362203.1
3. What are the supported versions for 9ir2 Database ( 9.2.0.x ) and E-Business
Suite ?
Currently 9.2.0.8 is certified on E-Business Suite 11.5.7 and above. You can refer
Metalink Note# 216550.1 for more details..
4. Are the Real Application Clusters ( RAC ) and Automatic Storage Management
(ASM) features also certified with 10g ?
Yes. If 10g certification is announced on a platform, RAC and ASM are also
certified on
that platform
5. My customer would like to start planning for 10g Real Application Clusters ( RAC
)
and Automated Storage Management (ASM) upgrade immediately, are there any
development programs to assist him?
Yes, for customers planning on using 10g RAC or 10g ASM they can avail of the 10g
APPSRAP program. This program is available on invitation for all customers.
Customers
interested in this program can direct their Account Manger or Service Delivery
Manager
to the Oracle Internal AppsRAP website:
http://appsrap.us.oracle.com and contact the Program Manager, Vamsi Mudumba
( vamsi.mudumba@oracle.com )
6. What are the supported versions for 9i RAC and E-Business Suite ?
Currently 9.2.0.8 RAC is certified on E-Business Suite 11.5.7 and above. For the
latest
information on certified combinations ,platform information please go to Certify on
MetaLink
7. Which Application Modules in the E-Business Suite support Real Application
Clusters
( RAC ) ?
All E-Business Suite modules work when deployed in a RAC enabled database platform.
For specific Application specific best practices, look at the Section on
Application
Specific Best Practices
Technical Architecture
Oracle Web Cache is certified for use with Oracle iStore 11i. See MetaLink Note#
186981.1 for a more detailed discussion on this topic
6. Is the use of separate Operating Systems supported for Midtier and Database ?
Yes. This is called a split configuration for 11i. For more details on what
combinations
are certified look at Certify on Metalink
Install
The Self�Service infrastructure (ICX), by default, uses the database instance name
as part of the cookie name if the cookie name has not been explicitly set by the
administrator. In the RAC environment, the database instance name can change based
on which instance the users were connected. Hence, you should explicitly set the
cookie name
(SESSION_COOKIE_NAME) to a constant value in the ICX_PARAMETERS table.
Update the ICX_PARAMETERS table from the Apps schema using the following
example.
SQL> update ICX_PARAMETERS
set SESSION_COOKIE_NAME=�VISRAC1�;
3. What's the impact of setting the profile option Applications Database Id in a
RAC
environment ?
Concurrent Processing
3. Is there a requirement for a NAS device ( like NetApp) to store all the output
and log
files when using PCP ?
No. PCP can be used with files that are stored on local servers. You will have to
setup
FNDFS appropriately so that files on one node can be accessed by requests from
another
node. It is also recommended to set the init.ora parameter
max_commit_propagation_delay= 0. For Compaq Tru64 clusters only, please set
max_commit_propagation_delay= 1.
7. We run a huge number of concurrent requests in our environment. What are general
tips for better performance ?
1) Check the corresponding concurrent manager parameters and tune them - process,
sleep, cache
2) Check the process and session parameters in init.ora or spfile for the database
instance
3) Check to see if there are any fnd tables that are frequently locking and
increase the
freelist parameter ( if not using Automatic Segment Space Management, ASSM )
8. How do Java concurrent programs work ? Can I direct load for Java concurrent
programs to a specific node ?
Java Concurrent Programs and Self-service applications use the connect string
specified
in DBC file. Currently there is no way to create a separate dbc file for Java
Concurrent
programs and constrain where they run in a RAC environment if the CP tier and Web
tier
are shared.
Partitioning
2. Are there documented best practices for partitioning E-Business Suite objects ?
Currently there are no documented best practices on this topic. Customers intending
to
partition should understand the data access paths, growth rates, access patterns
and
modules that the object is used in.
Disaster Recovery
1. Is Logical Standby supported with E-Business Suite 11i ?
No. Logical standby is not supported with E-Business Suite 11i.
second during each interval. It would be useful to understand how the interconnect
traffic
varies over time and what the system is doing when these numbers are high.
2) Run Statspack at level 7 (or higher) to get segment statistics. This should show
which
segments that contribute to the interconnect traffic. You can also check
gv$segment_statistics and gv$cache_transfer.
3) Monitor gv$session_wait to see which sessions are involved in RAC related waits.
This might give us an idea about which users or modules that are involved in
generating
the interconnect traffic. It will also give us the specific blocks.
4) Use OS utilities to monitor the interconnect traffic as well. Look for
variations over
time.
5) Keep an eye on the statistic 'global cache blocks lost' which might indicate
problems
with the interconnect.
6) Watch for any network errors reported by the OS monitoring utilities.
Database Load Balancing
2. Can I use Advanced Planning and Scheduling ( APS ) on a separate database that
is a
RAC cluster ?
Yes, you can. Merging APS into OLTP database and isolating the load to a separate
RAC
instance is supported. Refer MetaLink Note# 279156.1 and MetaLink Note# 286729.1
for more details.
3. Can I run Email Center in a RAC environment ?
Yes, see MetaLink Note# 272266.1 for RAC related specific instructions.
4. Can I run Oracle Financial Services Applications (OFSA) in a RAC environment ?
Yes, you can. Refer MetaLink Note# 280294.1 for RAC related best practices.
Middle Tier:
54 Linux middle tier machines
Dell 2650
2 x 3.00 GHz 6G Memory ( with hyperthreading )
NetApps Filer Cluster
Capacity is always given first to the "critical queues", which should always
process
with the shortest pending times. The "non-critical" workload is managed by
assigning the
programs to a queue based upon their expected run-times. This framework prevents
long-
running requests from clogging up all the queues, which causes very short, fast
requests
to be stuck up in the queue for a very long time
Critical queues: Business determines which programs are assigned to these queues;
there is a set of of queues for each module (OM, AR, AP/GL, PA, Payroll/HMRS);
programs are assigned to the appropriate critical queue using specialization rules
to
include the specific program name. The critical queue for the application is
directed to
the database node appropriate to the application (e.g., OM Critical queue runs on
node 1)
Non-critical queues: There is a set of 4 queues created for each database node.
The concurrent programs are grouped by application with each application group
directed to a database instance. This load direction is accomplished by defining a
set of
queues for each database instance. The instance a concurrent manager connects to is
controlled by the environment setup on the associated concurrent processing node.
Each
set of managers has a set of specialization rules that "include" the request types
for the
application groups which are associated with the instance the manager assigned to
Storage
1. Are you using standard size devices?
Yes.
2. How many sizes do you maintain? Why ?
Three sizes are maintained:1Gb, 4Gb and 13Gb. We have found that these three sizes
are optimal for the growth that we are seeing. 1Gb is for small tablespaces that
don�t
grow much � e.g. system. 4Gb datafiles are used for all everything else apart from
the
LOB tablespaces and the large tables/indexes that were moved to dedicated
tablespace
3. Are there any standards used for naming datafiles and maintaining them ?
The volumes bear the same names as the datafiles so it is quite a clean
configuration.
We actually refer to the datafiles themselves via links. E.g. filename in
dba_datafiles
refers to a link, which then points to the datafile. Experience has proven that
this
approach is very flexible if we need to perform reorganizations and when creating
copies
(also known as cloning). We use the same approach with our cooked and raw datafile
environments
4. How much free space do you maintain?
Tablespace are maintained with at least 5% free space � we get an automatic alert
at priority two when there is less than 10% free, at priority 1 when there is less
than 5% free.
5. Do you maintain spares, how many, what do you name them?
Spare volumes are created when we have less than 10 left of any size and named
extra_size_XXX (XXX being a number). When these are required to be used for new
datafiles they are renamed to the datafile name with the lvrename command
6. Are you using volume group striping?
Yes � groups of 8 x 68Gb disks ( software striping ) , stripe width is 1024 MB. In
addition, 8-way striping at hardware level is utilized.
7. What was the process of conversion to raw devices ?
No � there really isn�t any difference between using raw and cooked datafiles aside
from the discipline needed to maintain adequate free space, and that is covered by
our EM9. What storage is being used ?
DMX3000
10. Are you using autoextend? What max size? What increment by?
We do not use auto extend as it cannot be used with Raw volumes
11. Do you have multiple dbf�s for the same tablespace? Are all autoextend on?
Yes we have multiple datafiles per tablespace, but we don�t use autoextend
Monitoring & Troubleshooting
1. What tools are used for monitoring space ?
Enterprise Manager
2. What thresholds are set for monitoring
As above � less than 10% free raises a P2 alert, less that 5% free a P1
Examples are various health points of each node of the database (for example,
whether the database is up or down, someone holding a lock which is blocking other
users, etc.). Additionally, we monitor on one of the nodes events which are common
to the entire database (for example, data storage issues etc.). We can also monitor
for concurrent manager events such as long-running and long-pending so that we can
investigate the causes of these � they may be legitimate but it may imply issues.
Measureware tool is used. This collects performance data and PerfView, which
reports for network traffic. Multi Router Traffic Grapher (MRTG) is used to show
each cluster�s interconnect network traffic.
3.How did you implement, phased approach, node at a time? What would you do
differently?
Phased approach � a node at a time. This reflects the manner in which the load
increased as more and more source environments were migrated into the single
instance.
Cloning
1. What sort of cloning mechanism is used ?
[top]
4. Is that really all there is to it?
Well, there are some more subtle differences. In standalone Forms we create the
client by loading f60all.jar or f60all_jinit. In apps Forms we load a lot more, you
can find
a list of these files in the archive= section of your appsweb.cfg. Also since apps
Forms is
only supported to run from Jinitiator and not native browser mode, cab files
(f60all.cab)
is not used unlike in standalone Forms.
[top]
5. What is f60webmx?
The f60webmx is your web forms runtime executable, similar to f60webm except that
it has Apps specific user exits linked into it.
[top]
6. How can you recreate the f60webmx executable?
To do this you issue the following command:
adrelink force=y "fnd f60webmx"
[top]
7. What are some of the related Forms/Apps files?
Yes it is. Unlike standalone Forms that installs the Forms Builder only as part of
the
IAS product suite on Unix. On Windows platforms you would have to install the IDS
product suite to get Forms Builder.
[top
Objects are grouped under their respective nodes. For example, all of the windows
defined in a form module appear under the Windows node; all the LOVs defined in the
form module appearunder the LOVs node and all the program units appear under the
Program Units node. It is important to familiarize yourself with this in case you
need to
navigate within an Apps form during the course of debugging a problem.
[top]
10.Where can you find Forms/Applications certification information for Apps?
Go to http://metalink.oracle.com:
[top]
17. What is FORMS60_TIMEOUT?
Note that like any Apps profiles you can do this on various levels e.g. site, user,
etc.
so that you target your FRD accordingly. Also be aware that FRD incurs significant
overhead to Apps processing so disable it when not in use.
[top]
19. How do you disable direct Forms access through the
http://host:port/dev60cgi/f60cgi
URL?
You can do this by using the mod_rewrite (the Swiss Army Knife of URL
manipulation :) engine of the Apache server. In your httpd.conf file add the
following
lines at the end:
RewriteEngine on
RewriteCond %{QUERY_STRING} !NLS_LANG
RewriteRule ^/dev60cgi/f60cgi$ http://www.oracle.com
You'll have to tighten up the code somewhat but here I am taking advantage of the
fact that the URL for accessing Apps directly and through the personal home page
are not
exactly the same i.e. if the URL does not have certain parameters in it then I
redirect the
user to a different web page of my choice.
[top]
Not at this time. There are plans to bring HTTP support back to Apps but it is
currently undergoing certification and it would most likely only be supported when
using
the Forms servlet. Most of the issues have to deal with how to make the various
Apps
environment settings available to the listener. Bug 1992211 keeps track of this
issue.
For standalone Forms, this feature has been there since patch set 4 and certified
against patch set 5. For Apps, a minimum of patch set 6 will be required and it
will only
work for environments with a single node web forms tier.
[top]
4. Are there any changes to the Forms product components when in Forms listener
servlet?
Yes. With Forms Listener Servlet certain Forms components are replaced:
Forms CGI - Forms Servlet (FormsServlet.class)
Forms Server - Forms Listener Servlet (ListenerServlet.class)
[top]
5. How is Forms load balancing accomplished?
Currently Forms load balancing is done through proprietary programs called Metric
Server and Metric Clients. The Metric clients are setup on machines with a
corresponding
Forms server and they constantly report to a Metric Server their load situation.
The
Metric Server then uses this information to decide which machine to pass a request
to run
a web form. Note 148516.1 Load Balancing in 11i Note 148155.1 Load balancing
implementation and trouble shooting in 11.5.x using metric server are good sources
for
more info.
Forms servlet is now available for use with eBusiness Suite. Load balancing is
enabled using the capability of the HTTP server (Oracle HTTP powered by Apache.)
Reference: Note 201340.1 Using Forms Listener Servlet with Oracle Applications 11i
[top]
7. How to set up Forms to work through a firewall?
Being able to cancel a long running query was a much sought after feature in Apps
both for queries against data blocks and LOVs. The feature was first introduced in
Forms
patch set 3 but it subsequently broke many other functionalities. Patch set 9
finally fixes
all of these. Note 138159.1 Canceling Long Running Queries in Oracle Applications
11i
is your best source for this info.
[top]
2. Why are some Forms files (appsweb.cfg,appsbase.html,etc.) duplicated across an
Apps install?
This is because of the way patching is done in Apps. All patches are initially
copied
to their corresponding products in the $APPL_TOP directory, because some of these
file
are accessed by an external process they will also be copied to directories outside
$APPL_TOP where they can be easily accessed by external processes. Make sure that
any changes you make to one copy propagate to all its duplicates.
[top]
3. How do you generate Apps Forms modules or FMB files?
There are many occassions when you have to regenerate (recreate the FMX) your
Apps forms or when your Apps forms are regenerated, some are true some are not:
This is a generic error message saying your form has attempted to call a program
unit,
which can be a package (Apps encapsulates all function and procedure calls within
packages); a function or a procedure that it cannot find.
Why? Maybe its not defined in the Form itself. Maybe its not defined in the
database.
Maybe you?ve misspelled it. The error itself will provide clues for you to debug
the
where and why of this problem. Here is a typical error that you might get when
generating a form:
Compiling WHEN-BUTTON-PRESSED trigger on SUBMIT_REQUEST item in
DEPT data block...
Once you open the form in Forms Builder you can easily track down this trigger and
see that the there was a misspelling in the name of the function call
(SUBMIT_REQUES is missing a T at the end). The code is as follows:
DECLARE
req_id NUMBER;
BEGIN
req_id := FND_REQUEST.SUBMIT_REQUES(?FND?,?FMDMGEN?,?Message
File?,
?01-NOV-02 00:00:00',FALSE,'x');
END;
Note that the package can reside in the Form under the ?Program Units? node; or as
a
Forms library attached to the form or as a stored object in the database.
[top]
9. What is the sequence in which Forms resolves program unit calls?
Forms will attempt to resolve a program unit call in the following sequence:
Program Units node
Forms Library
Database
This will give you an idea on where first to look for broken packages in your hunt
for the broken package. Oftentimes you might have to dig to the nth level to find
the broken root package that has cascaded its problem up to the package where you
currently see it. Either your amazing PL/SQL skills will find the problem for you
or you can call Oracle Support and use their amazing PL/SQL skills. On occasion the
problem in your package is already fixed in a later release.
[top]
10. What do you do when you find the root broken package?
First you have to determine the files that created the package body and spec. To do
this you either
There was an issue where spinning f60webmx processes are spawned when the Forms
abnormal termination handler is enabled. Disabling this handler (or
FORMS60_CATCHTERM=0) works around the problem and it is also fixed in Forms
v6.0.8.12. This is Bug 1367619,Bug 1394311 and Bug 1396450
[top]
125 pg
User Interface
1. How do you change the background color of a required item in Apps?
Do you support issues encountered when customizing seed or Apps products forms?
Only if it pertains to standalone Forms functionality.
Do you support issues encountered when running customized seed or Apps product
forms? No.
Do you support issues encountered when customizing Apps template forms? Only if
it pertains to standalone Forms functionality.
Do you support issues encountered when running customized Apps template forms?
Only if it pertains to standalone Forms functionality.
Do you support issues encountered when integrating customized Apps template forms
with Apps? Yes.
[top]
2. What if you really want to customize Apps forms?
Apps strives to be a very complete product. It presents you with features that
preclude
the necessity of customizing or building new forms. On top of this it has the added
functionality of being able to do internal customization of its forms through the
use of
flex fields, but if this isn?t enough then the following manuals should help you
accomplish this Oracle Applications Developer's Guide (A75545-02) and Oracle
Applications User Interface Standards for Forms-Based (A75395-01).
[top]
3. How do you integrate custom forms with Apps?
Note 70276.1 HOW TO INTEGRATE APPLICATIONS RELEASE 11 WITH
CUSTOM APPLICATIONS would be a good source of info, official documentation can
be found in Chapter 2 of the Oracle Applications Developer's Guide (A75545-02).
[top]
4. Can you save Form modules (FMB, MMB, PLL) into the database?
Yes and no. Yes if its standalone and no if its part of Apps, this is because Apps
forms are structured so that their dependent modules are all stored as files. In
Forms 9i
(not yet released) you will not be able to store Forms modules in the database
altogether
[top]
5. Where can you find the source Forms modules for Apps?
Apps places all its source (FMB) files in the $AU_TOP/forms/<language> directory
whereas the FMX files reside in their respective $PRODUCT_TOP/forms/<language>
directory. On the other hand, all menu (MMB, MMX) and library (PLL and PLX) files
are copied to the $AU_TOP/resource directory.
[top]
Same as #6 except that the information is under the Current Form section. The Form
Name corresponds to the FMB and FMX file for that form. The Form Version
corresponds to the release level of that form.
[top]
8. How can you confirm the version of the FMX or FMB file?
Oftentimes, once you determine the version and name of the current form you want to
peek into the internal workings of the actual form itself. To ensure that you are
peeking at the right release of the FMB file you can do the following:
$adident Header FNDSCSGN.fmb
If you simply copy the form over to a a machine that does not have Apps installed,
you will run into is a lot of FRM-18108: "Failed to load the following objects"
errors.
This is because an Apps form is usually dependent on a host of other forms,
libaries and
menus.
If you want to open the TEMPLATE.fmb form, make sure you have the following
forms, libraries, copied over as well from the $AU_TOP/forms/<language> and
$AU_TOP/resource directories:
9. How can I open an Apps form in Forms Builder?
If you want to open a product specific form, make sure you have all its associated
forms and libraries copied over. Since it is quite difficult to pinpoint exactly
what this is,
its best to just copy over the entire contents of $AU_TOP/forms/<language> and
$AU_TOP/resource.
Questions and Answers
1. What is cloning?
Answer:
Cloning is the process of creating an identical copy of an already existing Oracle
Applications system.
[top]
2. How can I clone an Oracle Applications system?
Answer:
There are two cloning methods documented in the following white papers available
off of Oracle MetaLink Note 230672.1
* Cloning Oracle Applications Release 11i
* Cloning Oracle Applications Release 11i with Rapid Clone
Note: The third Cloning method (Cloning Oracle Applications Release 11i with
AutoConfig) has been fully replaced by Cloning with Rapid Clone, and is no longer
supported
* Cloning Oracle Applications Release 11i with Rapid Clone is applicable for all
11i systems that have migrated to AutoConfig and enabled Rapid Clone. This method
contains steps to install AutoConfig and Rapid Clone.
[top]
4. What is the AD Cloning utility?
Answer:
AD Cloning utility (adclone.pl) is the name of the cloning command line utility.
This
utility is used to preserve and apply configuration information to the cloned
target
system.
[top]
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. See
OracleMetaLink Note 230672.1 (Cloning Oracle Applications 11i with Rapid Clone) for
instructions on installing and enabling Rapid Clone.
[top]
First, verify that your system is AutoConfig enabled. Then, verify that you have
applied the latest Rapid Clone patch documented in OracleMetaLink Note 230672.1
(Cloning Oracle Applications 11i with Rapid Clone). See Searching the Patch History
Database in the AD Procedures Guide for instructions on searching for patches
applied to
your system.
[top]
7. What is AutoConfig?
Answer:
AutoConfig is a configuration tool that supports automated configuration of an
Oracle
Applications Instance. All of the information required for configuring an
Application
Due to the advancements in the cloning solution with Rapid Clone, all customers are
now recommended to move to using Rapid Clone. if you are on release 11.5.7 or any
release before 11.5.7, you will need to first enable AutoConfig on your system, if
not
already done, before you can use Rapid Clone as documented in the Cloning Oracle
Applications Release 11i with Rapid Clone white paper.
[top]
10. We are running Release 11.5.8 (or any later release), which cloning method can
we
use?Answer:
In 11.5.8 AutoConfig is enabled on the middle tier out of the box. In 11.5.9 and
any
later release, AutoConfig is enabled by default on both the database tier and the
middle
tier. Update AutoConfig and Rapid Clone code to the latest code line and use Rapid
Clone to clone your system. Full instructions are in Cloning Oracle Applications
Release
11i with Rapid Clone document 230672.1 on OracleMetalink.
11. Our Oracle Applications system is on Windows, which cloning method can we use?
Answer:
If your system is on a release prior to 11.5.7 and is not AutoConfig enabled, use
the
method documented in the Cloning Oracle Applications Release 11i white paper. If
your
system is on any AutoConfig-enabled 11i release, use the method documented in the
Cloning Oracle Applications Release 11i with Rapid Clone white paper.
[top]
12. We have a Platinum installation of Oracle Applications. Can we clone our
system?
Answer:
Yes, cloning a Platinum system using the Rapid Clone method is no different than
cloning a non-Platinum installed system.
[top]
13. Can I clone from one operating system version to another?
Answer:
Yes, if the target system platform is binary compatible with the source system
platform. For example, if you have an existing single-node Oracle Applications
system
on Solaris 2.6, you could clone it to a node running Solaris 8, but not to a node
running
HP-UX. Note that cloning from a higher version of a platform to a lower version is
not
supported, for example, from Solaris 8 to Solaris 2.6. Other examples of binary
compatibility for Oracle Applications are:
* AIX 4.3.3 to AIX 5.1 (32-bit)
* HP-UX 11.0 to HP-UX 11i
* Windows NT to Windows 2000
Within a same platform you can also clone from a 32bit source system to a 64bit
target system.
Note (AIX only): when cloning from AIX 32bit to AIX 64bit, apply patch 2896876
(64bit kernel extension for Oracle) on the target system prior to running
adcfgclone.pl.
[top]
Yes, you can clone or migrate the Applications middle tier from any platform to
Linux or any supported Unix platform using the procedure described in document
238276.1 "Migrating to Linux with Oracle Applications Release 11i".
[top]
applied to the source system, the APPL_TOP and the database must be cloned to keep
the file system and database synchronized. See the Recloning section in the white
papers for details.
[top]
16. Can I clone a single-node system to a multi-node system?
Answer:
The Rapid Clone cloning method allows for cloning a single-node system to a multi-
node system. See the Cloning Oracle Applications Release 11i with Rapid Clone white
paper for details.
[top]
17. Can I clone a multi-node system to a single-node system?
Answer:
You can use Rapid Clone to merge multiple APPL_TOP and COMMON_TOP file
systems into a single APPL_TOP and COMMON_TOP file system. For more details
about this procedure, see "Section 3: Merging existing APPL_TOPs into a shared
APPL_TOP" in document 233428.1 on OracleMetaLink.
[top]
18. What cloning options are available for each cloning method?
Answer:
The table below shows the cloning options that are currently available for each
cloning method.
19. Does Rapid Clone modify the source system?
Answer:
No, Rapid Clone does not modify the source system. adpreclone.pl prepares the
source system to be cloned by collecting information about the database and
creating
generic templates of files containing source specific hardcoded values. These
templates
are stored in the appsutil/template directory leaving the original files untouched.
This
process usually takes a few minutes to complete the first time.
Answer
adcfgclone.pl will prompt for the values required to create the new context file
used
to configure the target system. A few values are calculated from the current target
system
(hostname, user and group). The rest of the target specific values are prompted
for:
Prompt
Comment
database SID
Target database SID
domain name
- Hostname
- Database Sid
- Instance number
- Listener port
- Private interconnect name
Answer "no" to this qstion if at least one node of the target RAC cluster has
already
been configured by Rapid Clone (i.e if you already replied "yes" to this question
for any
other node in the cluster). The tool will then prompt for the following information
to
connect to a life node (the answers must describe a node that has already been
configured):
- Hostname
- Database Sid
- Listener port
RDBMS ORACLE_HOME directory Path to the Target system RDBMS
ORACLE_HOME
Number of DATA_TOP's:
target database dbfs, then their paths. Prompts specific to the Apps Tier database
server node
hostname of the machine hosting the database server
Does the target system have more than one applications tier server node (y/n)?
Answer yes if the target system is part of a multi-nodes configuration. The tool
135 pg
Port pool number:[0-99] Enter the port pool that you want to use on the target
system. Make sure to specify the same port pool on the DBTier and the AppsTier. If
the
source and target machines are different, you have the option to preserve the
source port
values on the target system.
[top]
21. What is the port pool? What if I want to give a specific value to a Server
Port?
Answer:
If you are cloning on the same machine or want to redefine the server ports , you
will
be prompted for a port pool. The port pool provides a way to use a set of
predefined
server ports. There are 100 port pools. For example, if you select 3, the default
database
port number (1521) becomes 1524.
The following table lists all the server ports. To see how the port pool
calculation
works,
enter a number between 0 and 99(both inclusive) in the form and click "Get Ports".
Port Name
Autoconfig Variable
(Default) Port Numbers allocated for Port Pool: 0
(Custom) Port Numbers allocated for Port Pool:
Web Listener Port
s_webport
8000 8001
Database Port
s_dbport
1521 1522
RPC Port s_rpcport
1626 1627
Reports Port
s_repsport
7000 7001
s_formsport 9000 9001 Metrics Server Data Port s_metdataport 9100 9101 Metrics
Server Req. Port s_metreqport 9200 9201 JTF Fulfillment Server Port
s_jtfuf_port 9300 9301
iMeeting Collaboration Server Port
s_imtsrvport 9500 9501
iMeeting Recording Server Port s_imtrecport 9600 9601
iMeeting Monitor (iMon) Port s_imtimonport
9700 9701
Map Viewer Servlet Port s_mapviewer_port 9800 9801
OEM Web Utility Port s_oemweb_port
10000 10001
VisiBroker OrbServer Agent Port
s_osagent_port
10100 10101
MSCA Server Port
s_mwaPortNo 10200 10201
MSCA Dispatcher Port s_mwaDispatcherPort
10300 10301
TCF Port s_tcfport
15000 15001
OACORE Servle Port Range
s_oacore_servlet_portrange 16000-16009 16010-
16019
Discoverer Servlet Port Range s_disco_servlet_portrange 17000-17009 17010-
17019
Forms Servlet Port Range
s_forms_servlet_portrange 18000-18009 18010-
18019
XMLSVCS Servlet Port Range s_xmlsvcs_servlet_portrange 19000-19009 19010-
19019
Forms Start Port s_frmStartPort
20000 20001
Java Object Cache Port s_java_object_cache_port 12345 12346
If you want to give a specific value to a port on the target system, independently
from
the port pool, you must first complete the Target System configuration with
adcfgclone.pl
(temporarily select a value for the port pool). Once adcfgclone.pl completes
successfully,
edit the new target context file with editcontext or OAM and modify the
corresponding
Autoconfig variables. Run Autoconfig to refresh the system with the new values (see
OracleMetaLink document 165195.1).
[top]
Yes, a cloned system created with Rapid Clone can then be used as the Source
System in the next cloning. RapidInstall itself is now a clone of a clone using the
Rapid
Clone technology.
[top]
24. Can I change the database dbf files layout while cloning?
Answer:
Yes, Rapid Clone allows to add or remove database mount points or redidtribute dbf
files among mount points in the target system. As long as all the source system dbf
files are present in the target system database mount points specified during the
adcfgclone prompts (see question "How does adcfgclone.pl know the target system
values?"), Rapid Clone will find them and re-create the database control file
accordingly.
[top]
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. On
Unix/Linux, the location of the oraInventory is defined by the content of
oraInst.loc, at:
Extensible Markup Language (XML) format. The XML format allows for easier
diagnosis of problems and faster loading of data Rapid Clone requires the inventory
to be
in XML format in order to clone it, and will take care of performing the binary to
XML
convertion if necessary.
Unlike the binary oraInventory, The XML inventory is divided into 2 distinct
components:
* The Global inventory (or Central inventory)
* The Local inventory (or Home inventory)
More information about these components is available under other questions in this
FAQThe inventory is XML if the following file exists:
$ORACLE_HOME/inventory/ContentXML/comps.xml
[top]
The Global Inventory is the part of the XML inventory that contains the high level
list
of all oracle products installed on a machine. There should therefore be only one
per
machine. Its location is defined by the content of oraInst.loc.
The Global Inventory records the physical location of Oracle products installed on
the
machine, such as ORACLE_HOMES (RDBMS and IAS) or JRE. It does not have any
information about the detail of patches applied to each ORACLE_HOMEs.
The Global Inventory gets updated every time you install or de-install an
ORACLE_HOME on the machine, be it through OUI Installer, Rapid Install, or Rapid
Clone
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.
[top]
29. What is the Local (or Home) Inventory?
Answer:
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.
[top]
30. How does Rapid Clone deal with the oraInventory?
Answer:
Rapid Clone requires OUI 2.2 to be installed in the ORACLE_HOME as a
prerequisite and will performs all the actions necessary to clone the inventory:
* Converts the Global inventory to xml format when it was binary on either the
31. Why don't I need to manually copy the oraInventory when cloning?
Answer:
The local inventory is automatically copied from the source system to the target
system as part of copying the ORACLE_HOME itself.
The Global Inventory is machine specifc and therefore should not be copied. If you
are cloning from one machine to a different machine, Rapid Clone will simply
register the target ORACLE_HOME in the target machine Global Inventory (This action
will automatically create the Global Inventory if it did not exist on that
machine).
[top]
OUISetup.pl is shipped with the OUI patch, listed as a prerequisit to Rapid Clone
(see
Metalink Node 230672.1). It should be run as part of the OUI patch installation and
will
Inventory corruptions that are known to cause problem whilie cloning, such as
- Home indexes out of sync between the Global and Local Inventory
- Duplicate Home Names entries
- Duplicate Home Path entries
1. Oracle Application Server and Oracle E-Business Suite Release 11i
1. What is Oracle Application Server?
Oracle Application Server 10g (OracleAS 10g) is the latest release of Oracle's
Application Server, succeeding Oracle9i Application Server (Oracle9iAS) Release
2.0.
This suite of products includes Oracle Containers for J2EE (OC4J), Oracle HTTP
Server
(powered by Apache), Oracle JDeveloper, Oracle Forms, Oracle Identity Management,
Oracle Portal, Oracle Business Intelligence, Oracle Business Integration, and
Oracle
WebCache.
Oracle Application Server is part of the Fusion Middleware Family of products.
2. What are the differences between 9iAS R2 and 9i R2?
9iAS R1 corresponds to Oracle9i Application Server Release 1, which comprises all
application server (middle-tier) products (e.g. 9iAS 1.0.2.2.2).
9iAS R2 corresponds to Oracle9i Application Server Release 2, which comprises all
application server (middle-tier) products (e.g. 9iAS 9.0.2).
9iR1 corresponds to Oracle9i Database, which comprises all database server products
(e.g. 9i Version 9.0.1.3).
9iR2 corresponds to Oracle9i Database, which comprises all database server products
(e.g. 9i Version 9.2.0.2)
Certification of one combination (e.g. 9iR2 with Applications 11i) does not imply
certification of any others (e.g. 9iAS R2 with Applications 11i). All products must
be individually certified with Applications 11i.
3. What is the difference between Oracle9i Application Server and Oracle
Application
Server 10g?
These names refer to the Fusion Middleware Family of products, which includes
JDeveloper, Forms, Reports, Discoverer, Single Sign-On, Oracle Internet Directory,
Portal, WebCache, and other middleware tools.
Oracle9i Application Server (short name: 9iAS) refers to all application server
delivered as part of the Oracle9i Application Server (9iAS) suite. These individual
components include the Oracle HTTP Server (powered by Apache), PL/SQL, Forms
Server, Reports Server, Discoverer, Workflow, and many others.
The Oracle E-Business Suite Release 11.5.7 and 11.5.8 Rapid Install contains 9iAS
1.0.2.2.2 Enterprise Edition. New installations of these releases will have the
9iAS
1.0.2.2.2 technologies already in place. Note, however, that Applications features
that
depend on 9iAS 1.0.2.2.2 (e.g. the use of Portal 3i as the default launchpad) are
not
enabled by default in these releases. Customers who start with either the 11.5.7 or
11.5.8
Rapid Install will be able to apply additional patches and perform post-install
configuration steps to use the features that depend on 9iAS 1.0.2.2.2.
Customers who apply the 11.5.7 Maintenance Pack or later to an existing Oracle E-
Business Suite Release 11i environment are not automatically upgraded to 9iAS
1.0.2.2.2
Enterprise Edition. In general, Maintenance Packs used to upgrade to the latest
Oracle E-
Business Suite release do not include technology stack upgrades. 11i Maintenance
and
Family Packs generally deliver fixes to Oracle E-Business Suite code. With some
exceptions, this general policy ensures that customers can get bug fixes for Oracle
E-
Business Suite modules without having to upgrade their technology stack.
Customers upgrading originally environments created with the 11.5.1 to 11.5.5 Rapid
Installs may follow the migration instructions in Oracle MetaLink Note 146468.1 to
migrate their existing technology stacks to 9iAS 1.0.2.2.2 Enterprise Edition and
to
configure Oracle E-Business Suite features that depend on it.
5. What are the benefits of integrating an existing Oracle E-Business Suite
environment
with OracleAS 10g?
Manage user credentials exclusively in the native Oracle E-Business Suite Release
11i (FND_USER) directory. User updates in the E-Business Suite may be automatically
synchronized with an external Oracle Internet Directory 10g instance.
Manage user credentials in Oracle Internet Directory
Integrate Oracle E-Business Suite Release 11i with existing third-party single
sign-on
Associate Oracle Internet Directory user accounts with Release 11i user accounts
Associate an Oracle Internet Directory user account with one or more unique Oracle
E-Business Suite Release 11i user accounts. Useful for deployments where single
sign-
on accounts in corporate LDAP directories differ from Oracle E-Business Suite
Release
11i user accounts.
Integrate a central Single Sign-On instance with multiple Oracle E-Business Suite
Release 11i environments
Integrate a central, enterprise-wide Single Sign-On instance with one or more
Oracle
E-Business Suite Release 11i environments.
Portal
Integrate Portal with multiple Oracle E-Business Suite Release 11i environments
Integrate Portal with one or more Oracle E-Business Suite Release 11i environments
Use Discoverer, Oracle's ad hoc query, reporting, analysis, and web publishing
tool,
to allow business users at all levels of the organization gain immediate access to
information from Release 11i. Release 11i users can use Discoverer to analyze data
from
selected business areas in Financials, Operations, Human Resources, Purchasing,
Process
Manufacturing, Activity Based Management, and more.
improvements from Web Cache are particularly notable in high-latency Wide Area
Network (WAN) deployments, where data compression can speed performance
significantly.
6. Is Oracle Application Server 10g certified with Oracle E-Business Suite?
Yes, Oracle Application Server 10g is certified with Oracle E-Business Suite
Release
11i for the use of Oracle Internet Directory, Single Sign-On, Portal, Discoverer,
Web
Cache, and Oracle Integration.
For more details about this certification, see the following Notes on Oracle
Metalink
(http://metalink.oracle.com ):
* 186981.1 : Frequently Asked Questions
* 293849.1 : Roadmap: Using OracleAS 10g with the Oracle E-Business Suite
(Overview Presentation)
* 233436.1 : OracleAS 10g + E-Business Suite Installation Guide
* 261914.1 : Integrating Oracle E-Business Suite Release 11i with Oracle Internet
Yes. For new customers wishing to create new, fresh installations of Oracle E-
Business Suite Release 11i, the 11.5.7 Rapid Install and higher includes 9iAS
1.0.2.2.2
Enterprise Edition. Customers installing 11.5.7 and higher for the first time may
perform
additional post-installation steps to enable 9iAS-based functionality, including
Portal,
Single Sign On, and Discoverer 4i.
Existing Oracle E-Business Suite Release 11i customers may migrate their current
technology stack to 9iAS 1.0.2.2.2 Enterprise Edition by following Oracle MetaLink
Note 146468.1 and may perform additional post-installation steps to enable 9iAS-
based
functionality, including Portal, Single Sign On, and Discoverer 4i.
8. Is Oracle9i Application Server 1.0.2.2.2 certified with Applications 10.7 or
11.0.x?
There are no plans to certify 9iAS 1.0.2.2.2 with Applications 10.7 or 11.0.x. If
those customers upgrade to Oracle E-Business Suite Release 11i using the 11.5.7
Rapid Install or higher, they will receive 9iAS 1.0.2.2.2 as part of the standard
11i technology stack.
No. Oracle has no plans to support the upgrade of the application server of an
existing Oracle E-Business Suite Release 11i environment to Oracle Application
Server
10g. Existing Release 11i environments will remain at the Oracle9i Application
Server
1.0.2.2.2 level, and may be integrated with an Oracle Application Server 10g
instance
deployed on a standalone server or in a separate ORACLE_HOME. Once integrated, an
existing Release 11i environment may take advantage of Oracle Application Server
10g
services on the standalone instance, including Single Sign-On, Oracle Internet
Directory,
Portal, and Discoverer.
The E-Business Suite Release 12 includes Oracle Application Server 10g as part of
its
Rapid Install. For details, see Oracle Application Server with Oracle E-Business
Suite
Release 12
Frequently Asked Questions (Metalink Note 415007.1).
11.Is 9iAS 1.0.2.2.2 certified with Oracle Real Applications Clusters?
Yes, 9iAS 1.0.2.2.2 is certified with Oracle Real Applications Clusters for the
9iR2
and 10gR2 databases. There are no issues with this configuration.
12.What is the authoritative source for certification information for Oracle
products?
New certified configurations and technology stack patches for the E-Business Suite
are released regularly. For breaking news, updates, and technical discussions about
E-
Business Suite technology stack topics, you can also monitor or subscribe to the E-
Business Suite Technology blog on the Oracle Technology Network.
13.What is the roadmap for future certifications of Oracle Application Server with
the E-
Business Suite?
New certified configurations and technology stack patches for the E-Business Suite
are released regularly. For breaking news, updates, and technical discussions about
E-
Business Suite technology stack topics, you can also monitor or subscribe to the E-
Business Suite Technology blog on the Oracle Technology Network.
14.What training is available for migrating Release 11i environments to 9iAS?
Using the Oracle9i Application Server with Applications Release 11i is available on
Oracle University .
This self-paced course reviews the process required to migrate an existing Oracle
E-
Business Suite Release 11i technology stack to Oracle9i Application Server
1.0.2.2.2. It
discusses basic and advanced conceptual topics such as 9iAS disk space and
operating
system requirements and supported systems architectures for Portal 3i and
Discoverer 4i,
Enterprise Single Sign-On, and Oracle Internet Directory. It includes some
discussion of
AutoConfig concepts, configuration management best practices, 9iAS migration
troubleshooting techniques and advice on how to avoid common problems, with
pointers
to additional online resources.
15.What is involved in migrating to 9iAS 1.0.2.2.2?
The following summarises the major components required to migrate an existing
Oracle E-Business Suite Release 11i environment to 9iAS 1.0.2.2.2 Enterprise
Edition:
1. Upgrade to 8.1.7.4 or higher
2. Implement AutoConfig
3. Use the 11.5.9 RapidWiz -techstack method to install 9iAS 1.0.2.2.2
4. Upgrade to latest certified Developer6i Patchset (optional)
5. Install latest certified Discoverer 4i release (optional)
6. Install latest certified Portal release (optional; required for Portal
functionality)
===============
Business Suite Release 11i environment with Oracle Application Server 10g:
1. Upgrade the Release 11i environment to 9iAS 1.0.2.2.2 (if necessary)
2. Install Oracle Application Server 10g on a standalone server or in a separate
ORACLE_HOME
What resources are available to explain patching for Oracle E-Business Suite
Release
11i environments?
For general information about patching Oracle E-Business Suite Release 11i
environments, including discussions about patch types and minimizing patching
downtimes, see:
* Patching Oracle Applications: Frequently Asked Questions (Metalink Note
174436.1)
* Oracle Applications Release 11i - Patching Best Practices and Reducing
Downtime (Metalink Note 225165.1)
2. Why are there two appsweb.cfg files in two different locations?
What are some potential issues after implementing HTTP Layer load-balancing for
Release 11i?
For example, to build a Portal page, the Portal Parallel Engine makes a PL/SQL
request to the visible host and domain name specified by the AutoConfig Web Server
Host and Local Domain Name context values. In order for this loopback connection to
be
successful, both the application-tier and database-tier servers need to be
permitted to
access the hardware-based load-balancer. Certain networking security policies
enforced
by the hardware-based load-balancer may cause the reply to be blocked or routed
incorrectly, breaking the TCP session, and causing failures in Portal connectivity.
To resolve these issues, ensure that you have installed the latest AutoConfig
templates specified in Oracle MetaLink Note 217368.1 and that the AutoConfig Web
Server Host context value is set to the hardware-based load-balancer. Then verify
whether an application-tier server node can establish a loopback connection to
itself. For
example, try to establish a telnet session from the application-tier server node to
itself.
You should also check whether the database-tier server node can perform the same
loopback connection. If the connection is refused, consult your load-balancer
documentation for procedures to enable Secure Network Address Translation (SNAT) or
Virtual Local Area Network (VLAN) support for your network.
3. Is Oracle E-Business Suite Release 11i certified with specific third-party
networking
components?
As such, the Oracle Applications Technology Group does not certify Oracle E-
Business Suite Release 11i with all possible combinations of third-party load-
balancers, routers, switches, firewalls, proxies, or other networking hardware.
Oracle Support will provide best-efforts support to isolate networking-related
problems or conflicts within Release 11i technology stack configurations (e.g. with
AutoConfig). Given limited Oracle resources and expertise with third-party
networking
components, third-party vendors may need be engaged to help isolate problems
encountered.
If problems are isolated to the third-party hardware, then the third-party vendor
may
need to be engaged help resolve the issue. Oracle Support will escalate specific
cases to
the Oracle Applications Technology Group where there are conflicts or issues or
with
Release 11i configuration issues (e.g. with AutoConfig). Where appropriate, the
Oracle
Applications Technology Group may work collaboratively with third-party vendors on
specific escalations that require coordinated updates from both Oracle and the
third-party
vendor.
4. Can Oracle Application Server 10g be installed on an existing Oracle E-Business
Suite Release 11i server?
Yes, Oracle Application Server 10g may be installed on the same physical server
used
for an existing Oracle E-Business Suite Release 11i instance. The OracleAS 10g
Infrastructure database may also be installed on that server. There are some
restrictions,
the most important of which is that Oracle Application Server 10g must be installed
in a
different ORACLE_HOME than the existing Release 11i ORACLE_HOME.
Other restrictions are noted on Oracle MetaLink > Certify > View Certifications By
Product > Product Group: Application Server > Product Selection: Oracle Application
Server > Oracle Application Server 10g and Oracle9i Application Server Release 1
(1.0.2.2.x) Coexistence Restrictions. In particular, note that Discoverer 4i and
Discoverer
10g have dependencies on different Visibroker versions, preventing the simultaneous
operation of both Discoverer versions on the same physical server in some
circumstance
(Bug 3266454 ).
Also see the "Compatibility with Earlier Versions" chapter of the Oracle
Application
Server 10g Installation Guide 10g for your operating system platform.
5. Can Oracle Application Server 10g be installed on a different operating system
platform than Oracle E-Business Suite Release 11i?
Yes. Oracle Application Server 10g may be installed on one or more physical
servers, each on different operating system platforms. These servers do not need to
be running on the sample platform as an existing Release 11i application tier
server node.
For example, the following architecture is supported
The Infrastructure database for Oracle Application Server 10g is installed using
the
"OracleAS Infrastructure 10g" installation option, and may be installed in the
default
database included with OracleAS 10g. The OracleAS 10g Infrastructure database
cannot
be installed in an existing E-Business Suite Release 11i database. The
Infrastructure
database may optionally be installed in a database by using the Repository Creation
Assistant (repca) tool. For more information about this tool, see the Oracle
Application
Server Repository Creation Assistant User's Guide 10g for your operating system
platform.
8. Is it possible to add additional languages to an the E-Business Suite
environment that
is integrated with Oracle Application Server 10g?
Oracle E-Business Suite Release 11i instances and Oracle Application Server 10g
instances use different mechanisms to support NLS languages.
It is possible to add additional languages to an existing Oracle E-Business Suite
The upgrade process for customers following Oracle MetaLink Note 146468.1
installs the latest version of Oracle9i Application Server 1.0.2.2.2 and associated
patches
in a separate ORACLE_HOME on a server that may already have an existing
installation
of Oracle9i Application Server 1.0.2.2.2. At the end of the upgrade process, the E-
Business Suite environment is switched from the old ORACLE_HOME to the new
ORACLE_HOME.
Yes. Oracle Collaboration Suite is certified for use with the Identity Management
components of Oracle Application Server 10g. See Oracle MetaLink > Certify > View
Certifications By Product > Product Group: Collaboration Suite > Oracle Application
Server Information.
Oracle E-Business Suite Release 11i is certified with Oracle Application Server 10g
.
Both the Release 11i and Oracle Collaboration Suite instances may be registered as
partner applications to the same Oracle Application Server 10g instance.
11.What resources are available for Oracle HTTP Server performance tuning?
See Oracle9i Application Server Best Practices Release 1 (v1.0.2.2) (Part Number
A95201-01), available on the Oracle Technology Network .
This documentation may recommend manual changes to configuration files that do not
apply to Oracle E-Business Suite Release 11i environments that have been migrated
to 9iAS 1.0.2.2.2 and AutoConfig. See Oracle MetaLink Note 165195.1 , titled Using
AutoConfig to Manage System Configurations with Oracle Applications 11i and How
does AutoConfig handle manual changes to configuration files?
12.What resources are available for installing and configuring Oracle Application
Server
10g?The Oracle by Example (OBE) series provides hands-on, step-by-step instructions
on
how to implement various technology solutions to business problems. OBE solutions
are
built for practical real-world situations, allowing you to gain valuable hands-on
experience as well as use the presented solutions as the foundation for production
implementation, dramatically reducing time to deployment.
* Oracle By Example Viewlets that demonstrate how to do regular and High
Availability installs of Oracle Application Server 10g
* OracleAS 10g High Availability Solutions
13.Is AutoConfig mandatory for migrating Oracle E-Business Suite Release 11i
environments to 9iAS 1.0.2.2.2?
Yes, AutoConfig is required by the Release 11i interoperability patch used in the
9iAS 1.0.2.2.2 migration. The Rapid Wizard-based installation process documented in
Oracle MetaLink Note 146468.1 uses AutoConfig to configure the new 9iAS-based
components in a Release 11i environment.
14.How does AutoConfig handle manual changes to configuration files?
AutoConfig is a configuration tool which supports automated configuration of an
Applications Instance. See Oracle MetaLink Note 165195.1 , Using AutoConfig to
Manage System Configurations with Oracle Applications 11i. All of the information
required for configuring an Applications Instance running out of an APPL_TOP is
collected into a central repository, called the Applications Context. When the
AutoConfig
tool runs, it uses information from the Applications Context file to generate all
configuration files and update database profiles.
There are several major benefits provided by AutoConfig:
* Configuration Support - AutoConfig delivers a fully functional, supported
configuration of the APPL_TOP and the ORACLE_HOMEs in its supporting technology
stack.
* Configuration Management - AutoConfig provides a mechanism to configure or
re-configure an Applications Instance through one centralized procedure.
Oracle E-Business Suite Release 11.5.1 to 11.5.5 Rapid Installs included Oracle
HTTP Server 1.0.0, which corresponds to Apache 1.3.9 with additional Oracle mods.
The Oracle HTTP Server (powered by Apache) that was originally installed can
optionally be upgraded to Oracle HTTP Server 1.0.2.1s, which corresponds to Apache
1.3.12s with additional Oracle mods. See Metalink Note 161779.1 , "Upgrading Oracle
HTTP Server in Applications 11i."
16.Which security patches should be applied to Oracle HTTP Server for E-Business
Suite environments?
Oracle strongly recommends that all E-Business Suite customers install the latest
Critical Patch Update. Critical Patch Updates are cumulative updates that contain
fixes
for multiple security vulnerabilities.
Resources:
* Oracle Critical Patch Update Program General FAQ (MetaLink Note 290738.1)
* Oracle Critical Patch Updates and Security Alerts
17.What versions of Oracle HTTP Server and Apache were shipped with Oracle E-
Business Suite Release 11i?
Oracle E-Business Suite Release 11.5.1 to 11.5.5 Rapid Installs included Oracle
HTTP Server 1.0.0, which corresponds to Apache 1.3.9 with additional Oracle mods.
There was no Oracle E-Business Suite Release 11.5.6 Rapid Install. Only 11.5.6
Family Packs for ERP and CRM were released, which did not deliver any new
technology stack components.
Oracle E-Business Suite Release 11.5.7 Rapid Install and higher include Oracle9i
Application Server 1.0.2.2.2, which includes Oracle HTTP Server 1.0.2.2, which
corresponds to Apache 1.3.19 with additional Oracle mods.
Customers may have optionally upgraded their 11.5.x environments by following
Metalink Note 161779.1 , "Upgrading Oracle HTTP Server in Applications 11i." This
upgrade included Oracle HTTP Server 1.0.2.1s, which corresponds to Apache 1.3.12s
with additional Oracle mods.
To verify which version of Oracle HTTP Server (Apache) you have installed, issue
the following command:
$APACHE_TOP/Apache/bin/httpd* -version
For a comprehensive summary of all Oracle HTTP Server and Apache versions
delivered with all Oracle products, see Metalink Note 260449.1 Everything You
Wanted
to Know About The Apache-Based OHS Version.
18.What is the latest Oracle HTTP Server rollup patch certified for Oracle E-
Business
Suite Release 11i?
A list of all rollup patches for Oracle HTTP Server certified for Oracle E-Business
Suite Release 11i environments can be found in MetaLink note 254618.1 , Oracle HTTP
Server Patches Certified to be used with E-Business Suite 11i. This Note also lists
the
latest application server security and AutoConfig template patches certified for
Release
11i.
19.Can reverse proxies, demilitarized zones, and multiple domains be used with the
E-
Business Suite?
Yes. For more information, see Oracle MetaLink Note 287176.1, DMZ
Configuration with Oracle E-Business Suite 11i.
20.How can Oracle E-Business Suite Release 11i environments be cloned?
Oracle E-Business Suite Release 11i environments can be cloned using two different
methods. For details, see Frequently Asked Questions: Cloning Oracle Applications
Release 11i.
There are additional implications for Release 11i environments that have been
integrated with Oracle Application Server 10g. For a more extensive discussion, see
In-
Depth: Cloning OracleAS 10g + E-Business Suite Environments.
Cloned Release 11i environments may share a common Oracle Application Server
10g instance. For example, a single Oracle Internet Directory user directory may be
shared by multiple Release 11i instances.
Alternately, system administrators may require that each cloned Release 11i
instance have its own cloned Oracle Application Server 10g instance. In this
scenario, a separate Oracle Application Server 10g instance must be installed, and
the appropriate metadata for the standalone Oracle Application Server 10g instance
must be transported from the original Oracle Application Server 10g instance to the
new Oracle Application Server 10g instance.
Oracle Application Server 10g has a different set of tools for replicating
environments
than Release 11i. At present, individual OracleAS 10g components such as Oracle
Internet Directory and Portal have their own separate tools for copying metadata
between
OracleAS 10g instances. For example, user information in a given Oracle Internet
Directory instance may be copied to a different Oracle Internet Directory instance
using
the built-in OID replication tools or LDIF files.
21.Which versions of Forms and Reports are used by Oracle E-Business Suite Release
11i after a 9iAS migration?
After an existing Oracle E-Business Suite Release 11i environment has been migrated
to 9iAS 1.0.2.2.2, Developer 6i Patchset 6 or higher is required. A complete cross-
reference between Developer 6i Patchsets and Forms and Reports version numbers can
be
found in MetaLink note 125767.1 , Upgrading Developer 6i with Oracle Applications
11i. Forms and Reports run out of the new 8.0.6 ORACLE_HOME created during the
migration to 9iAS 1.0.2.2.2. Release 11i has dependencies on 8.0.6 ORACLE_HOME-
based components in the following areas: user exits, charting, and UTF-8.
22.What ports are used by Oracle E-Business Suite Release 11i application services?
Default ports Oracle E-Business Suite Release 11i environments that have been
AutoConfig-enabled are listed in Oracle MetaLink Note 216664.1 , titled Frequently
Asked Questions Cloning Oracle Applications Release 11i.
4. Discoverer Questions
1. What versions of Discoverer are certified with the Oracle E-Business Suite
Release
11i?The following configuration is Generally Available and supported:
* Discoverer 10g (10.1.2.0.2) + Oracle E-Business Suite Release 11i
157
* Step 1. The system administrator creates a form function for a given Discoverer
workbook, assigns the form function to an E-Business Suite menu and responsibility,
and grants this responsibility to UserA.
* Step 2. UserA signs on to Single Sign-On and Portal, then uses the Applications
Navigator portlet to select the new E-Business Suite responsibility linked to the
menu and
Discoverer workbook form function.
* Step 3. UserA clicks on the link for the Discoverer workbook. The workbook
opens in Discoverer with no additional logins required.
TECHNICAL BACKGROUND
* URLs to the Discoverer form functions shown in the Applications Navigator
portlet can also be added as links to the Applications Favorites portlet
* Discoverer does not look up the user in FND_USER. Discoverer receives all
Single Sign-On session information for the authenticated user via the Oracle
Applications
ICX session information, which is passed to Discoverer via the form function
invocation
through the Applications Navigator and Applications Favorites portlets.
SCENARIO B: Invoking Discoverer workbooks from standalone Discoverer
instances
The Discoverer portlet provider can be used to deliver the contents of any
worksheets that have been developed against the E-Business Suite as a "portlet"
within Oracle Portal. This makes it easy to collate multiple worksheets into a
single Portal page.
To use this feature:
* Step 1. Oracle Portal page designers add the worksheet(s) to the portal page and
specify which E-Business Suite userid and responsibility will be used to retrieve
the
results for each individual portlet ahead of time.
* Step 2. End users sign on to Oracle Portal page via Single Sign-On using their
OID username. These users can view the contents of these portlets, the results of
which
are determined by the choice of Applications userid and responsibility selected by
the
page designer.
* Step 3. Users can customize the connection details for each portlet if given the
appropriate privilege.
SCENARIO D: Use of Discoverer invoked from E-Business Suite menus via E-
Business Suite Home Page
* Step 1. The system administrator creates a form function for a given Discoverer
workbook, assigns the form function to an E-Business Suite menu and responsibility,
and grants this responsibility to UserA.
* Step 2. UserA signs on to Single Sign-On, is shown the E-Business Suite menus
via the E-Business Suite Home Page, and uses the Applications Navigator to select
the
new E-Business Suite responsibility linked to the menu and Discoverer workbook form
function.
* Step 3. UserA clicks on the link for the Discoverer workbook. The workbook
opens in Discoverer with no additional logins required.
TECHNICAL BACKGROUND
* URLs to the Discoverer form functions shown in the Oracle Applications Framework
Applications Navigator can also be added as links to the Applications Favorites
portlet
* Discoverer does not look up the user in FND_USER. Discoverer receives all
Single Sign-On session information for the authenticated user via the Oracle
Applications
ICX session information, which is passed to Discoverer via the form function
invocation
through the Applications Navigator and Applications Favorites regions running on
the E-
Business Suite Home Page.
3. What is needed to install the Discoverer .eex files into the End User Layer?
Oracle does not include a shell interpreter with Oracle E-Business Suite Release
11i
or Oracle9i Application Server. MKS Toolkit (http://www.mkssoftware.com ), a third-
party set of utilities that includes several UNIX shell interpreters and Perl, is
recommended. MKS Toolkit for System Administrators, MKS Toolkit for Developers,
and any other MKS Toolkit suites that include UNIX shell interpreters and Perl are
sufficient to support installation of Discoverer 4i content for Release 11i.
Other third-party shell interpreters for Windows may also work but have not been
tested by Oracle. Cygwin (http://www.cygwin.com ) has been tested and is NOT
compatible with AD utilities due to issues with awk compatibility. Microsoft
Services
for UNIX has been tested and is NOT compatible with the adupdeul.sh shell script.
Customers are strongly advised to use the certified and recommended MKS Toolkit
where possible; unexpected behaviour may result from using uncertified third-party
tools.
For Discoverer 10g: Discoverer 10g supports the creation of End User Layers from
the application-tier server node directly, unlike Discoverer 4i Administration
Edition,
which could only be run on a Windows PC. Discoverer 10g customers on UNIX
platforms (e.g. Solaris, HP-UX, AIX, Linux) may perform .eex imports and EUL
administration tasks on directly their UNIX application-tier servers, eliminating
the
requirement for MKS Toolkit for UNIX platforms.
Windows customers running Release 11i and Discoverer 10g are still required to use
MKS Toolkit to run ADPATCH and other AD utilities.
4. Can the Discoverer tablespace name be customized?
Yes. Oracle recommends that the Discoverer tablespace name where the End User
Layer resides be named 'DISCOVERER', but this may be customized if needed. If
changed from the default, ensure that you specify the new tablespace name when
creating
the End User Layer using the -DEFAULT_TABLESPACE command line parameter for
the eulapi utility (Discoverer 10g), or the /DEFAULT_TABLESPACE command line
parameter for the DIS4ADM.EXE utility (Discoverer 4i).
5. What are the supported Discoverer 4i configurations?
Discoverer 4i was desupported for E-Business Suite users as of October 2006.
Discoverer 4i users are encouraged to upgrade to Discoverer 10g at the earliest
opportunity.
Oracle periodically certifies the Oracle E-Business Suite Release 11i with specific
patchset or release versions of Oracle Discoverer. Specifically, this means that
certain
versions of Discoverer have been tested by Application product teams against the
workbooks and End User Layer that ship with their Applications modules (for example
and tuning?
* Oracle MetaLink Note 360622.1, Capacity Planning for Discoverer 10g (10.1.2)
* Oracle MetaLink Note 175287.1 , Oracle9iAS Discoverer Version 4i Capacity
Planning Guide
This documentation may recommend manual changes to configuration files that do not
apply to Oracle E-Business Suite Release 11i environments that have been migrated
to 9iAS 1.0.2.2.2 and AutoConfig. For more information about AutoConfig, see Oracle
MetaLink Note 165195.1 , Using AutoConfig to Manage System Configurations with
Oracle Applications 11i and How does AutoConfig handle manual changes to
configuration files?
9. Can multiple instances of Discoverer be installed on the same physical server?
It is possible to install multiple instances of Discoverer in separate
ORACLE_HOMEs on the same physical server on UNIX platforms. This is supported
via AutoConfig; see Oracle MetaLink Note 165195.1
Due to limitations in the Windows registry, it is not possible to install multiple
instances of Discoverer on the same physical server on Windows platforms.
10.Can Discoverer be implemented with third-party load-balancers?
Yes, although Oracle does not explicitly certify Discoverer with specific third-
party
load-balancers, and Oracle Support can provide only best-efforts support for this
configuration. Customers with issues that cannot be reproduced in Release 11i
environments without the third-party load-balancer are advised to contact the
third-party
vendor for advanced product-specific assistance. System administrators interested
in
experimenting with this configuration are advised to configure the load-balancer to
handle routing requests for Discoverer services "with affinity" (i.e. "persistent"
connections) so that traffic from a given client is routed to the same application-
tier
server node for Discoverer. This ensures that the existing Discoverer session is
reused,
rather than being recreated from scratch on another server, a process which may
incur
additional processing overhead.
11.Can Discoverer be used with firewalls?
Yes. Some resources for configuring Discoverer with firewalls are available on
Oracle MetaLink :
* DMZ Configuration with Oracle E-Business Suite 11i (Metalink Note 287176.1)
* Discoverer 4i Plus Firewall Step-by-Step Configuration Information (Metalink
Note 183658.1)
*Oracle Discoverer 4i Plus Firewall and SSL Tips (Metalink Note 159200.1)
12.When will Discoverer content in Oracle E-Business Suite Release 11i be
translated?
Discoverer content in Oracle E-Business Suite Release 11i includes the End User
Layer and workbooks. This content is available in U.S. English only and is not
expected
to be translated.
13.Can intranet Discoverer users use Discoverer in SSL?
Yes, this is fully supported. See:
* How To Configure Discoverer 10g (10.1.2) Plus/Viewer For HTTPS (SSL)
Access (Metalink Note 338071.1)
* Discoverer 4i Plus Firewall Step-by-Step Configuration Information (Metalink
Note 183658.1)
*Oracle Discoverer 4i Plus Firewall and SSL Tips (Metalink Note 159200.1)
14.Are all Oracle Applications Framework versions certified with Discoverer?
Discoverer is never called directly from Oracle Applications Framework and there
are
no specific version dependencies between the two technologies.
5. Portal Questions
The integration between Oracle E-Business Suite Release 11i and Portal is via the
Oracle Applications Framework Web Provider integration. The E-Business Suite
Release 11i is a partner application to Single Sign-On. For more information, see:
* Oracle Application Server Portal Configuration Guide 10g
*Oracle Application Server Single Sign-On Administrator's Guide 10g
3. What versions of Oracle Portal are certified with the Oracle E-Business Suite
Release
11i?Portal 10g (10.1.4) is certified with all Oracle E-Business Suite Release
11.5.8 and
higher environments as part of the certification with Oracle Application Server
10g. See
Using Oracle Portal 10g with Oracle E-Business Suite 11i (Metalink Note 305918.1).
Environments built with the 11.5.10 Rapid Install may only be used with Portal 10g.
This configuration requires the use of Oracle Application Server 10g.
All future certifications of Portal will be for architectures where Portal is
installed on
a standalone server or a separate ORACLE_HOME distinct from the Release 11i
environment.
Oracle Portal 3.0.9.8.4 will be desupported for E-Business Suite users in July
2007.
Customers currently using Portal 3.0.9.8.4 should evaluate their plans for
migration to
Portal 10g at the earliest opportunity. Customers using Portal 3.0.9.8.4 for
homepage
functionality without custom Portal content may wish to consider using the Oracle
Applications Framework-based home page.
Can Oracle E-Business Suite Release 11i be integrated with third-party portals?
This depends on the capabilities of the third-party portal. Oracle does not certify
third-party portal products with Oracle E-Business Suite Release 11i.
The key Oracle E-Business Suite Release 11i portlets are described in Integrate
Enterprise Applications Into Oracle Application Server Portal. This whitepaper is
also
published in the Integration and Collaboration area on the Oracle Technology
Network.
6. Why are there hundreds of new portlets available when customizing a Portal page
after upgrading to 11.5.9?
The portlets, such as Profit & Loss and Expense Management KPIs, were part of
Daily Business Intelligence 5.0. Daily Business Intelligence 5.0 seed data, such as
the
portlet names, was inadvertently included in the 11.5.9 maintenance pack. DBI 5.0
used
Oracle Portal to render DBI overview pages. DBI 5.0 was previously available under
the
Early Adopter Program but is no longer available.
All new DBI implementations must start with DBI 6.0 or later. The overview page
rendering technology was switched in DBI 6.0 to OA Framework instead of Oracle
Portal
to simplify the implementation. DBI overview pages and drill-down reports can be
accessed from Oracle Portal via the Applications Navigator portlet or the
Applications
Favorites portlet.
7. Does Oracle Portal comply with the WSRP and JSR-168 specifications?
The current architecture for OracleAS Portal 10g already adheres to the design
principles of OASIS WSRP and JSR-168; as a result, Oracle has been able to
contribute
significantly to the WSRP specification. Oracle is also a member of the expert
group for
JSR-168 and one of the primary advocates in the JSR-168 process for ensuring
compatibility with WSRP.
See Oracle Technology Network: WSRP and JSR 168 Standards
8. Can PortalTools be used with Portal 3.0.9 and Release 11i?
The Performance & Sizing (Oracle Technology Network) area provides guidance on
estimating hardware sizing and optimizing performance of Oracle Portal
environments.
Release 11i system administrators should be aware that the documents on this site
are
written for generic environments using Oracle Portal. While all of the general
principles
for sizing and performance optimization for Oracle Portal apply, specific
recommendations for fine-tuning configuration files in Oracle E-Business Suite
Release
11i environments must be executed through the Release 11i AutoConfig tool.
10.Can Release 11i environments with Portal 3.0.9 be migrated to Portal 10g?
Oracle Portal 3.0.9.8.4 will be desupported for E-Business Suite users in July
2007. Customers currently using Portal 3.0.9.8.4 should evaluate their plans for
migration to Portal 10g at the earliest opportunity.
Migration instructions for upgrading Portal 3.0.9 to Portal 10g are published on
the
Oracle Technology Network Portal Center . It is important to note that these
instructions
will apply to the migration of the Portal metadata repository in standalone
configurations;
these instructions will not be validated for Oracle E-Business Suite Release 11i
environments.
When Portal 3.0.9 is installed with 9iAS 1.0.2.2.2 in a Release 11i environment,
the
Portal metadata repository resides in the Release 11i database. Due to the
complexity of
moving the metadata repository out of the Release 11i database safely, Oracle will
not be
certifying or recommending this upgrade path for Release 11i customers. Release 11i
customers with Portal 3.0.9 implementations are advised to install Portal 10g in a
standalone environment and manually recreate their existing Portal content in the
new
environment.
11
Yes. Portal 10g from Oracle Application Server 10g may be installed on a separate
standalone server, or in a separate ORACLE_HOME on an existing server. See Using
Oracle Portal 10g with Oracle E-Business Suite 11i (Metalink Note 305918.1).
For Portal 10g: Yes. Integration of Portal with multiple Oracle E-Business Suite
Release 11i instances is supported with Portal 10g from Oracle Application Server
10g.
See Is Oracle Application Server 10g certified with Oracle E-Business Suite?
Release 11i portlets are instantiated for each instance. For example, if two
Release
11i instances are registered with a single Portal 10g instance, there will be two
Applications Navigator Portlets - one for each Release 11i instance.
For Portal 3.0.9: No. Portal 3.0.9 from Oracle9i Application Server 1.0.2.2.2 may
be
integrated with a single Release 11i instance only. There are known issues with
integrating multiple Release 11i instances with Portal 3.0.9 that are resolved with
the
certification of Portal 10g and higher.
The Oracle Applications Framework Web Provider running on the Release 11i
instance relies on the Java Portal Development Kit (JPDK) for Single Sign-On
integration. JPDK is bundled only as part of the Portal 3.0.9.8.4 installation. To
deliver
this prerequisite, Portal 3.0.9.8.4 needs to be installed in the filesystem of the
Oracle E-
Business Suite Release 11i application tier server node.
The Portal 3.0.9 schemas do not need to be installed on the Release 11i database
tier, and Portal 3.0.9 is not used for any Portal services. All Portal services are
delivered by the Oracle Application Server 10g instance running Portal 10g.
15.Can Portal 9.0.2 be used with Identity Management 9.0.4 and Oracle E-Business
Suite Release 11i?
No. Portal 9.0.2 (released with Oracle9i Application Server Release 2) is not
certified
with Oracle E-Business Suite Release 11i.
16.How are non-Applications Portal users authenticated when using FND_USER?
If Login Server 3.0.9 authentication has been configured to use the Oracle E-
Business
Suite Release 11i's FND_USER user directory to store user information, all Portal
3.0.9
users must be registered in FND_USER and managed with the Applications user
administration forms. Do not assign Applications responsibilities to Portal users
if they
are not authorized to be Release 11i users.
17.Should the Web Provider and the Application Portal URLs be set to HTTP or
HTTPS?
Security alerts for all Oracle products can be found on the Oracle Technology
Network: http://otn.oracle.com/deploy/security/alerts.htm . Please refer to that
website
for information on contacting Oracle's Security Alert team if you believe that you
have
identified a security vulnerability, or if you have questions about whether a
particular
security issue is resolved by a given Critical Patch Update.
2. What are some security-related resources for Oracle E-Business Suite Release
11i?
E-Business Suite Release 11i may optionally be integrated with Oracle Single Sign-
On 10g and Oracle Internet Directory 10g, parts of Oracle Identity Management. For
integration steps, see Installing Oracle Application Server 10g with Oracle E-
Business
Suite Release 11i (Metalink Note 233436.1).
When integrated with these components, E-Business Suite Release 11i delegates user
authentication to Oracle Single Sign-On 10g. User administration, including
password
resets, may be managed in Oracle Internet Directory 10g. For conceptual information
about the various scenarios for managing users and passwords in this integrated
architecture, see the "Oracle Single Sign-On Integration" chapter in Oracle
Application
System Administrator's Guide - Release 12 (Part No. B31451).
4. Can Oracle Single Sign-On and Oracle E-Business Suite work with third-party
single
sign-on products?
Yes. E-Business Suite Release 11i environments may be integrated with Oracle
Single Sign-On 10g. Oracle Single Sign-On 10g may be integrated, in turn, with
third-
party authentication systems.
For conceptual information about the various scenarios for managing users and
passwords in this integrated architecture, see the "Oracle Single Sign-On
Integration"
chapter in Oracle Application System Administrator's Guide - Release 12 (Part No.
B31451).
Oracle provides general support for isolating integration issues between third-
party
authentication systems and Oracle Single Sign-On 10g. Although Oracle will attempt
to
resolve third-party integration issues to the best of their ability, users of
third-party
products may be advised to contact the third-party vendor for detailed support for
third-
party issues.
5. Can Oracle Internet Directory and Oracle E-Business Suite work with third-party
LDAP directories?
Yes. E-Business Suite Release 11i environments may be integrated with Oracle
Internet Directory 10g. Oracle Internet Directory 10g may be integrated, in turn,
with
third-party LDAP 3/X.500 compliant directories.
For conceptual information about the various scenarios for managing users and
passwords in this integrated architecture, see the "Oracle Single Sign-On
Integration"
chapter in Oracle Application System Administrator's Guide - Release 12 (Part No.
B31451).
Oracle provides general support for isolating integration issues between third-
party
LDAP directories and Oracle Internet Directory 10g. Although Oracle will attempt to
resolve third-party integration issues to the best of their ability, users of
third-party
products may be advised to contact the third-party vendor for detailed support for
third-
party issues.
6. Can Oracle E-Business Suite Release 11i be used directly with a third-party LDAP
directory instead of Oracle Internet Directory?
No. Replacing Oracle Internet Directory directly with a third-party LDAP directory
for Release 11i is not supported. Release 11i is certified with the Oracle Identity
Management services included in Oracle Application Server 10g, which include Oracle
Internet Directory and Oracle Single Sign-On. Third-party LDAP directories must be
integrated with Oracle Application Server 10g, which in turn may be integrated with
Release 11i .
7. How can Microsoft Active Directory and Windows Native Authentication be used
with Oracle Internet Directory and Oracle E-Business Suite Release 11i?
For Oracle Application Server 10g users: Release 11i may be integrated with Oracle
Application Server 10g . Once integrated, Oracle Application Server 10g provides
multiple methods for integrating Oracle Single Sign-On and Oracle Internet
Directory
with Microsoft Windows environments and Microsoft Active Directory. Windows
Native Authentication is an authentication scheme for those who use Internet
Explorer on
Microsoft Windows. When this feature is enabled in OracleAS Single Sign-On, users
log
in to single sign-on partner applications automatically using Kerberos credentials
obtained when the user logs in to a Microsoft Windows computer. See:
The AppsLogin servlet supercedes older Release 11i login mechanisms and certain
product-specific login pages. The AppsLogin servlet detects the login mode by
reading the "Applications SSO Type" profile option for the current Oracle E-
Business Suite Release 11i instance and transparently redirects to the appropriate
login page.
The AppsLogin servlet may be installed for Release 11i environments running 9iAS
1.0.2.2.2 , or Release 11i environments integrated with Oracle Application Server
10g
and Single Sign-On 10g.
9. Can Oracle Internet Directory groups be mapped to Oracle E-Business Suite
Release
11i responsibilities?
Presently, user information in Oracle Internet Directory 10g and Release 11i may be
automatically synchronized. Users must still be granted Release 11i
responsibilities via the Release 11i security administration forms.
10.Are passwords synchronized between Oracle Internet Directory and Oracle E-
Business Suite Release 11i instances?
No. Oracle E-Business Suite Release 11i uses passwords and credentials stored and
managed in Oracle Internet Directory.
11.What is the difference between Oracle Login Server and Oracle Single Sign-On
Server?
Various Oracle documentation may alternately refer to Login Server, Single Sign-On
Server, and Single Sign-On. These terms all refer to the same product at different
times in its lifecycle:
* Oracle9i Application Server 1.0.2.2.2 uses the term Login Server
Oracle9i Application Server 9.0.2 and higher use the term Single Sign-On Server,
or simply Single Sign-On
12.Where can one find more information about the Oracle Workflow Business Event
System?
Oracle Internet Directory and Oracle E-Business Suite Release 11i keep user
information synchronized by raising events in the Oracle Workflow Business Event
System. For details about the business events raised when users are added or
modified in
either location, see Note 261914.1 Integrating Oracle E-Business Suite Release 11i
with
Oracle Internet Directory and Oracle Single Sign-On. For more information about the
Oracle Workflow Business Event System, see the Oracle Workflow Developer's Guide.
13.How can new users added to Oracle Internet Directory be automatically added to
the
E-Business Suite Release 11i instance?
For maximum security in the default configuration, new users added to Oracle
Internet Directory must be manually added to the subscription list of a registered
E-
Business Suite Release 11i instance. In the default configuration, the process of
adding a
new user requires the following steps:
1. Add user in Oracle Internet Directory using the Delegated Administration
Services tool (or equivalent mechanism when OID is integrated with a third-party
LDAP
directory).
2. Add user to subscription list of a registered 11i instance using the
provsubtool.orc
tool.
3. User information is automatically propagated via the Directory Integration &
Provisioning Platform to the 11i instance's FND_USER table.
4. Grant 11i responsibilities to the newly created user, using the 11i "User
Define"
forms.
Note the distinction between user authentication (which validates that the user is
whom they claim to be) and user authorization (which validates that the user has
access
to specific Release 11i functions and data).
For Release 11i environments that have been integrated with Oracle Application
Server 10g and Oracle Internet Directory, user authentication is done by Single
Sign-On
against Oracle Internet Directory, and user authorization is done by Release 11i
against
FND_USER. FND_USER is still used internally by Release 11i for user authorization,
transaction records, audit trails and other internal 11i security management.
Since the user authentication and user authorization functions are tightly
integrated
but performed by Single Sign-On and Release 11i, respectively, user namespaces in
Oracle Internet Directory and Release 11i's FND_USER must always be kept
synchronized.
No. Oracle Single Sign-On always authenticates users against Oracle Internet
Directory. Oracle Internet Directory is a mandatory requirement when integrating
Oracle
Application Server 10g with Oracle E-Business Suite Release 11i.
17.Can Oracle Internet Directory 3.0.1 be used with Oracle E-Business Suite Release
11i?Effective October, 2003, Oracle suspended distribution of Oracle Internet
Directory
For all other customers, Single Sign-On support for Oracle E-Business Suite Release
11i will be restricted to user authentication with the native Oracle E-Business
Suite
Release 11i (FND_USER) repository. Although Note 150832.1 will continue to be
available for reference purposes on Oracle Metalink, the corresponding Oracle
Internet
Directory synchronization patches have been withdrawn from general circulation.
Who will be affected
1. Customers planning to integrate third-party LDAP products with Oracle E-
Business Suite Release 11i environments using Oracle Internet Directory 3.0.1.
2. Depending on the deployment, customers planning to integrate third-party single
sign-on services with Release 11i environments using Login Server 3.0.9. Customers
will
have to ensure that user repositories used by third-party single sign-on services
are
manually synchronized with Release 11i's (FND_USER) user directory.
Recommended alternative
Oracle has certified Oracle Application Server 10g and Oracle Internet Directory
with
Oracle E-Business Suite Release 11i. For more information, see Is Oracle
Application
Server 10g certified with Oracle E-Business Suite?
18.What Oracle database releases can Oracle Internet Directory 3.0.1 run on?
releases (e.g. Oracle9i 9.2.0.3) must ensure that they maintain OID 3.0.1 on an
Oracle9i
Release 1 database.
19.Where can one find more information about Netegrity SiteMinder compatibility
with
Oracle Application Server?
For the platforms on which CA SiteMinder has been certified, Oracle has released
MetaLink Note 297880.1, Integrating OracleAS 10G Single Sign-On With Netegrity
SiteMinder for Unix Systems: January 2005.
20.How can PKI X.509 V3 digital certificates be used with Oracle E-Business Suite
Release 11i?
Yes. E-Business Suite Release 11i must be integrated with Single Sign-On 10g and
Oracle Internet Directory 10g to support the use of Public Key Infrastructure (PKI)
X.509
digital certificates. PKI digital certificates are stored in Oracle Internet
Directory 10g.
Users' browsers present the PKI digital certificates at the authentication stage to
Oracle
Single Sign-On 10g, which passes them on to Oracle Internet Directory 10g for
validation.
For details on integrating E-Business Suite Release 11i with Single Sign-On 10g and
Oracle Internet Directory 10g, see Installing Oracle Application Server 10g with
Oracle E- Business Suite Release 11i (Metalink Note 233436.1).
For more information about using digital certificates with Single Sign-On 10g, see
the
"Signing on with Digital Certificates" chapter in Oracle Application Server Single
Sign-
On Administrator's Guide 10g Release 2 (10.1.2) (Part No. B14078)
21.What resources are available for load-balancing, sizing, or implementing High
For existing Oracle Internet Directory 3.0.1 users: Switching between the two
possible user directories, Oracle Internet Directory 3.0.1 and FND_USER, is
supported.
One scenario where this may be desirable is where the Release 11i FND_USER
directory
is initially used for a small-scale Release 11i environment enabled for Single
Sign-On
support. The same environment may be upgraded later to use Oracle Internet
Directory to
integrate with third-party LDAP directories in a broader implementation. See Oracle
Metalink Note 146469.1 , Installing and Configuring Oracle Login Server and Oracle
Portal 3i with Oracle Applications 11i.
To switch from one external authentication method to another, execute the steps
corresponding to the desired user directory. For example, if Step 4.1 has already
been
executed to configure FND_USER as the default external authentication, execute Step
4.2 to switch to Oracle Internet Directory.
For Oracle Internet Directory 10g users: In Release 11i environments that have been
configured to delegate user authentication to Oracle Application Server 10g via
Single
Sign-On and Oracle Internet Directory, individual users may be designated as
"local"
users or "external" users. "Local" users are authenticated against the native
Release 11i
FND_USER directory. "External" users are authenticated against the external Oracle
Internet Directory user directory.
23.How can existing user information from Applications FND_USER be uploaded to
Oracle Internet Directory?
Some capabilities exist for synchronizing passwords, but this is generally not
necessary, since these environments typically also include third-party
authentication
systems that authenticate users against the third-party LDAP directories. For a
detailed
discussion, see the "Choose Where to Store Passwords" chapter in the Oracle
Identity
Management 10g Integration Guide (Part No. B14085).
Password hashes from third-party LDAP directories can be included in LDIF-based
imports into Oracle Internet Directory. The following hash algorithms are
supported:
MD4, MD5, SHA, SSHA, and UNIX Crypt. For more details, see Migrating Data from
Other LDAP-Compliant Directories in Oracle Internet Directory Administrator's Guide
10g.
For Oracle Internet Directory 3.0.1 users: Earlier documentation and announcements
stated that Customer Relationship Management Self-Service Web Applications
components are not compatible with Single Sign-On.
Further analysis has been performed, and the list of "Single Sign-On exceptions"
has
been isolated to a smaller subset applications in Release 11i.
Note 150832.1 , Implementing Single Sign-On for Oracle Applications 11i with
Login Server Authentication Using Oracle Internet Directory, has been updated with
a
preliminary summary of this new information. The "Functional Limitations for Oracle
Internet Directory Users" section of this document contains the current list of
Release 11i
applications that have special requirements for Single Sign-On support.
The Applications Technology Group is preparing a further update with the latest
list of Release 11i modules that are not compatible with Oracle Internet Directory
3.0.1. For more information about the availability of the latest list on Metalink,
contact Remi
Aimsuphanimit.
For Oracle Internet Directory 10g users: The majority of Release 11i modules are
compatible with Single Sign-On 10g with the release of 11.5.10; a list of
exceptions may
be found in MetaLink Note 233436.1. Customers using earlier 11i versions may need
to
apply product-specific patches to enable Single Sign-On for selected products.
26.How can one identify the currently installed version of Oracle Internet
Directory?
There are at least three possible methods of identifying the currently installed
version
For Oracle Internet Directory 10g: The set of user attributes that may be
synchronized between Oracle Internet Directory 10g and Oracle E-Business Suite
Release 11i differs depending upon the direction of synchronization. For more
details,
see Oracle MetaLink Note 261914.1 , Integrating Oracle E-Business Suite Release 11i
with Oracle Internet Directory and Oracle Single Sign-On.
For Oracle Internet Directory 3.0.1: The following directory information can be
synchronized between Oracle Internet Directory and Release 11:
* User identities from Oracle Human Resources. See Chapter 27, "Synchronizing
with Oracle Human Resources" in the Oracle Internet Directory Administrator's Guide
Release 3.0.1 (Part Number A90151-01).
* MAIL
* DESCRIPTION
* FACSIMILETELEPHONENUMBER
* EMPLOYEENUMBER
* CUSTOMER_ID
* SUPPLIER_ID
* USER_NAME
28.Is it possible to prevent multiple concurrent logins for a single user account?
Yes. See Oracle MetaLink Note 375403.1, How Can I Restrict Applications Users
To Be Signed In Only Once At Any Time.
Questions and Answers
Overview and Terminology
1. What is AutoConfig?
Answer:
* The application tier (also called the middle tier) consists of a number of
servers,
such as the concurrent processing server, web server, forms server, and
administration
server, that process the transactions of the Release 11i system, as well as provide
communication between the desktop tier and the database tier. (Such servers are
also
referred to as application tier servers. Likewise, the nodes on which such servers
run are
also referred to as application tier server nodes.)
* The database tier consists of the database server, which stores all the data of
the
Release 11i system.
The primary location of the files used by the application tier servers is the
APPL_TOP, whereas the primary location of the files used by the database server is
the
Oracle8i or Oracle9i ORACLE_HOME.
For more information about the Release 11i architecture, refer to Oracle
Applications
Concepts, Release 11i.
[top]
3. How can I identify the application tier and the database tier in a multi-node
system?
Answer:
A node can contain one or more servers, and can therefore belong to one or more
tiers.
In a single node system, that node belongs to both the application tier and the
database tier, since all servers are contained on that single node
In a multi-node system, each node contains one or more servers, and therefore
belongs to one or both tiers. If the node contains any of the application tier
servers,
including the web server, forms server, concurrent processing server, or
administration
server, which means that there is an APPL_TOP on the node, then the node belongs to
the application tier, and is considered an application tier server node. If the
node contains
the database server, which means that there is an Oracle8i or Oracle9i ORACLE_HOME
and the Applications database instance on the node, then the node belongs to the
database
tier, and is considered a database server node.
Let's analyze a common configuration where the database server and the concurrent
processing server exist on one node (Node 1), and the other servers exist on a
second
node (Node 2). Since Node 1 contains both an application tier server (the
concurrent
processing server) and the database server, Node 1 belongs to both the database
tier and
the application tier. But since Node 2 contains only application tier servers, Node
2
belongs only to the application tier.
[top]
4. How do I configure AutoConfig for a multi-node system?
Answer:
The AutoConfig patch is applied using AutoPatch. Therefore, it must be applied to
each application tier server node, which means to each node that contains an
APPL_TOP.
If the database server node contains only the database server and no other servers,
then you would not apply an AutoConfig patch on that node.
Once all the application tier servers have been updated by the AutoConfig patch,
there is a separate process for updating the database server, which is documented
in
Metalink Note 165195.1. This process consists of running the admkappsutil utility
on one
(only one) application tier, copying the generated appsutil.zip file to the
database tier and
unzipping the appsutil.zip file into the RDBMS ORACLE HOME.
Example 1:
The system has two nodes.
Node 1 = administration server, concurrent processing server, database server
Node 2 = forms server, web server
Since both nodes are application tier server nodes, the AutoConfig patches need to
be
applied to both nodes. Once the patches are applied, you have to update the
database
server Node1 by running the admkappsutil utility from the APPL_TOP on Node1,
copying the generated appsutil.zip to your RDBMS ORACLE_HOME on Node1 and
unzipping the appsutil.zip file into the RDBMS ORACLE_HOME.
Example 2
Since Node 2 is the only application tier server node, the AutoConfig patch needs
only be applied to Node 2. Once the patch is applied, you have to update the
database server Node1 by running the admkappsutil utility from the APPL_TOP on
Node2, copying the generated appsutil.zip to your RDBMS ORACLE_HOME on Node1 and
unzipping the appsutil.zip file into the RDBMS ORACLE_HOME.
Example 3:
Since Node 2 and Node 3 are application tier server nodes, the AutoConfig patch
needs to be applied to Node 2 and Node3. Once the patches are applied, you have to
update the database server Node1 by running the admkappsutil utility either from
the APPL_TOP on Node1 or Node2 (it does not matter on which Node you run the
admkappsutil utility), copying the generated appsutil.zip to your RDBMS
ORACLE_HOME on Node1 and unzipping the appsutil.zip file into the RDBMS
ORACLE_HOME.
Reference:
* Metalink Note 208738.1
[top]
5. What user do I log in as to use AutoConfig in a typical multi-node system?
Answer:
For nodes running Windows, there is only one user that owns both the application
tier
servers and the database server, so you would log in as that user.
For nodes running UNIX or Linux, if you want to configure the application tier
servers, log in as the user that owns the application tier servers (sometimes
referred to as
the applmgr user). If you want to configure the database server, log in as the user
that
owns the database server (sometimes referred to as the oracle user).
Note: If you upgrade from a maintenance pack version that does not include
AutoConfig to a maintenance pack version that includes AutoConfig (for example you
upgrade from 11.5.3 to 11.5.10), you have to separately migrate to AutoConfig as
part of
the pre-upgrade process. Follow the instructions of the corresponding maintenance
pack.
[top]
The "Context_name" is the logical name for your Context. The default value for
Context_name is <SID>_<hostname>. In earlier versions of AutoConfig the default was
set to <SID>.
When adbldxml generates the Context file, it first checks for the existence of an
Applications Context file conforming to specific requirements in the
<APPL_TOP>/admin directory on the application tier and in the <RDBMS
ORACLE_HOME>/appsutil directory on the database tier.
If an xml file exists, adbldxml creates the Applications Context file using the
same
name.
Note: Manually editing the Applictions Context file is not supported. Many context
variables have dependencies between each other. The OAM AutoConfig resolves all
these dependencies when changing the value of a variable. By manually editing the
Applications Context file you will bring the data into an inconsistent state.
[top]
14.I want to execute the adbldxml utility on a fresh RDBMS Oracle Home. How can I
build the Context file, when the database environment file is not present?
Answer:
The adbldxml utility requires the following environment variables to be set:
* ORACLE_HOME
* ORACLE_SID (LOCAL on Windows)
* TNS_ADMIN
Set the variables according to your instance. For example:
* On UNIX
export ORACLE_SID=PROD
* On Windows
set LOCAL=PROD
[top]
15.I was instructed to change the value of the context variables s_adperlprg and
s_perl5lib. How can I achieve that?
Answer:
Apply the latest AutoConfig patch, then perform the following steps depending on
your use case:
* You were instructed to use a certain perl version. You have perl and its
libraries installed in the perl standard location for your os (e.g. /usr/lib/perl5
on Linux) and perl is in your PATH:
1. unset PERL5LIB
2. perl $AD_TOP/bin/adconfig.pl
3. Source the environment file (APPS<Context_name>.env)
4. Review your Applications Context file; s_adperlprg and s_perl5lib will now
point to your system perl location.
* You were instructed to use a certain perl version. You installed perl and its
libraries into a custom - non perl standard location (e.g. perl is installed at
/u03/myperl/bin and the perl libraries at /u03/myperl/lib).
AutoConfig will update the context variables in the context file accordingly. After
the
AutoConfig run subsequent utilities and tools can use the context variables
s_adperlprg
and s_perl5lib.
[top]
Running AutoConfig
16.When should I run AutoConfig?
Answer:
Run the adchkcfg utility to get an html report that lists all the files and profile
options
that get changed when you run AutoConfig.
If you have AD.I or higher applied and you want to see the list of files and
profile options that will get changed when adpatch is run, then run adpatch with
the apply=no option before applying the patch. For more information, refer to
Oracle Applications Maintenance Procedures - Section Patching - Testing a Patch
before Applying it.
For instructions on how to run the adchkcfg utility and a discussion about the
report
that the utility generates, see Appendix B of the Metalink Note 165195.1.
[top]
18.Where is the log file located that AutoConfig creates?
Answer:
The log file that AutoConfig creates is located at:
On the application tier:
<APPL_TOP>/admin/<Context_name>/log/<MMDDhhmm>/adconfig.log
On the database tier:
<RDBMS
ORACLE_HOME>/appsutil/log/<Context_name>/<MMDDhhmm>/adconfig.log
where: <MMDDhhmm> = (month, day, hour, and minute of the AutoConfig run)
[top]
19.Which directories based on the Context_name will AutoConfig create?
Answer:
AutoConfig creates the following directories based on the Context_name:
Install Scripts
: <COMMON_TOP>/admin/install/<Context_name> Control Scripts :
<COMMON_TOP>/admin/scripts/<Context_name> Log files :
<COMMON_TOP>/admin/log/<Context_name>
Beginning with Release 11.5.7, Oracle Applications comes with the modified
directory structure.
[top
On Node 1 only the forms and web service control scripts are created. On Node 2
only the admin and concurrent processing service control scripts are created. The
Applications Context files contain the following values:
Context Variable Node 1
Node 2
Value
Value
s_isAdmin
NO YES
s_isConc NO YES
s_isWeb YES NO
s_isForms YES NO
[top]
23.How does AutoConfig know what application tier node type the APPL_TOP
supports?
Answer:
The AD Utilities such as AutoPatch and AD Administration patch and maintain files
based on the application tier node type that the APPL_TOP supports. The following
variables in the Applications Context file define which files are patched and
maintained
for the APPL_TOP:
Context Variable Action
s_isAdAdmin
If set to Yes, the APPL_TOP contains binaries and scripts used to
maintain the Applications system.
s_isAdConc
If set to Yes, the APPL_TOP can be used to provide the CP and
Reports services. All binaries, scripts, reports and other files related to these
services
exist in the APPL_TOP.
s_isAdWeb
If set to Yes, the APPL_TOP contains the necessary files to
provide Oracle HTTP service
s_isAdForms
If set to Yes, the APPL_TOP contains the necessary files to
provide Forms services
The variables are set according to your configuration when you create the
Applications Context file:
Single-node system: All the application tier types are present on the same node and
there is only one APPL_TOP. All variables are set to "YES" in the Applications
Context file.Multi-node system sharing the same APPL_TOP: A shared APPL_TOP
contains all
the necessary software components to run any service. All variables are set to
"YES" in
the Applications Context files sharing the APPL_TOP.
Multi-node system, where every node has a separate APPL_TOP:
Example:
Node 1 = forms server, web server
Node 2 = concurrent processing server, administration server, database server
Every node has its own APPL_TOP that only patches and maintains the files specific
to the node. The Applications Context files contains the following values:
Context Variable Node 1
Node 2
Value
Value
s_isAdAdmin
NO YES
s_isAdConc
NO YES
s_isAdWeb
YES NO
s_isAdForms
YES NO
[top]
Customizations
The Net Services Topology Data Model stores the entire topological information
about a single Oracle Application instance. The data model stores information about
each
node in the Oracle Applications instance which is then used to generate the Net
Service
configuration files (for example tnsnames.ora). AutoConfig seeds the data model
with
relevant data.
The Net Services Topology Data Model stores the following information:
* On the database tier: Hostname, Database SID, Database Name, Instance Name,
TNS Descriptors.....
* On the application tier: Hostname, FNDFS and FNDSM alias descriptors.........
[top]
29.When is the Net Services Topology Data Model seeded?
Answer:
The Net Services Topology Data Model is seeded every time you run AutoConfig on the
respective tier. Every time you run AutoConfig on the database tier, the relevant
data is seeded/updated for the database tier. Respectively, every time you run
AutoConfig on the application tier, the relevant data is seeded/updated for the
application tier.
[top]
o Database Host
o Database Port
o Database Name
o Database SID
You should deregister the tier before the tier is decommissioned.
[top]
33.How do I deregister an application tier from the Net Services Topology Data
Model?
Answer:
To deregister the current application tier from the Net Services Topology Data
Model, invoke the following command:
perl <AD_TOP>/bin/adgentns.pl appspass=<APPSpwd> contextfile=<CONTEXT>
-removeserver
[top]
34.How do I deregister a database tier from the Net Services Topology Data Model?
Answer:
To deregister the current database tier from the Net Services Topology Data Model,
invoke the following command:
perl <RDBMS ORACLE_HOME>/appsutil/bin/adgentns.pl appspass=<APPSpwd> \
contextfile=<CONTEXT> -removeserve
194
[top]
35.When do I need to purge the complete Net Services Topology Data Model?
Answer:
You need to purge the complete Net Services Topology Data Model, when the
Database Name is changed as a result of a database upgrade/migration.
[top]
36.How do I purge the complete Net Services Topology Data Model?
Answer:
To purge the complete Net Services Topology Data Model, invoke the following
command:
perl <AD_TOP>/bin/adgentns.pl appspass=<APPSpwd> contextfile=<CONTEXT>
-removesystem
[top]
37.How do I seed the Net Services Topology Data Model after purging it?
Answer:
See question "How do I seed the Net Services Topology Data Model".
[top]
38.I want to deregister an application tier or a database tier from the Net
Services
Topology Data Model. I can't use the adgentns.pl script because I already
decommissioned the tier or removed the context file. How can I deregister the tier?
Answer:
In this case you can use the PL/SQL API. Perform the following steps in the order
listed:
Check the question "For which database versions can I define failover aliases for
information about the availability of failover aliases on different database
versions.
Note: On database versions that are 8.1.7.4 or higher the generated alias
<INSTANCE_NAME>_FO can only be used for failover. On 8.0.6 the generated alias
can't be used for failover. However, it can be used for load balancing.
[top]
41.For which database versions can I define failover aliases?
Answer:
You can generate failover aliases for all database versions that are 8.1.7.4 or
higher.
Currently, Oracle Applications does not support failover aliases for the 8.0.6
Oracle
Home.
[top]
Database connectivity
42.Should the database server remain available during the AutoConfig run?
Answer:
Yes. The database server and the database listener must remain available during the
AutoConfig run. This is true when running AutoConfig on the application tier, as
well
when running AutoConfig on the database tier. If you run AutoConfig on the
application
tier, then the 806 database listener must remain available also.
[top]
1. Deregister the database tier from the Net Services Topology Data Model.
Refer to the question "How do I deregister a database tier from the Net Services
Topology Data Model?"
If you haven't enabled AutoConfig on the database tier, you can ignore this
step.
* After the migration:
1. Reset the context variable s_apps_jdbc_connect_descriptor in the context file
for the application tier to an empty string.
2. Update the context variables s_dbhost and s_dbport in the context file for the
application tier to reflect the new values in the middle tier context file.
[top]
46.I migrated my database tier to a new host/platform, but the application tier
still tries to
connect to the old database. How can I fix this situation, so that the application
tier
connects to the new database?
Answer:
Your old database tier is still registered in the Net Services Topology Data Model.
Perform the following steps:
* You have to clean up the data model by following the steps described in the
question: "How do I purge the complete Net Services Topology Data Model?".
* Perform the step described in the question: "How do I seed the Net Service
Topology Data Model?"
RAC
47.My 11i instance is configured with RAC. Now I want to migrate to AutoConfig. How
do I achieve that?
Answer:
To migrate to AutoConfig on a RAC instance, follow these steps in the order listed:
1. Enable AutoConfig on all database tiers. Follow the instructions in the
AutoConfig Metalink Note 165195.1.
2. AutoConfig will not overwrite your existing init.ora file. However, AutoConfig
will generate a RAC conform init.ora file when no init.ora file exists. We
recommend
that you backup your existing init.ora file and let AutoConfig generate an init.ora
file for
you. This will ensure that the init.ora file conforms to the Oracle's standards
(for example
using of DB_Name as the service name or handling local and remote listeners).
Note: You need to enable and run AutoConfig on the database tiers FIRST! followed
by the application tiers. This order is required because the RAC configuration data
needs to be uploaded to the Net Services Topology Data Model, so that a correct
tnsnames.ora file can be created on the application tier.
[top]
48.My 11i instance is configured as non-RAC. Now I want to migrate to RAC using
AutoConfig. What steps should I follow?
Answer:
To migrate an Oracle Applications 11i instance from non-RAC to RAC, follow the
instructions as described in Metalink Note 279956.1.
[top]
49.I applied all the required RAC patches, but my TWO_TASK variables still point to
the instance aliases. How can I point them to load balanced aliases?
Answer:
Update your application tier context file and set the values of the following
context
variables to the desired load balanced alias names:
* s_tools_twotask
* s_weboh_twotask
Windows specifics
50.What is the correct setting for MSDEVDIR?
Answer:
Use the path to the VC98 directory, not the MSDev98 directory. The vcvars32.bat
file
exists only under the VC98 directory. For example:C:\CPP\VC98.
[top]
51.After running AutoConfig, the Apps.cmd and <CONTEXT_NAME>.cmd contain
slashes instead of backslashes on Windows. How do I resolve this issue?
Answer:
Download patch 2690783 from OracleMetaLink and follow the instructions in
Readme.
[top]
No. The perl shipped by MKS is not certified. Use the perl available in your
Applications Environment (iAS for the application tier, 9i for the database tier)
or
download the ActivePerl from perl.com. Perl has to be in the PATH in order for
AutoConfig to run.
[top]
[top]
54.After I run AutoConfig in my 11.5.9 Windows environment I have two Apache
services, two forms services, two metrics client services, and two metrics server
services.
Which ones should I use?
Answer:
Run the rem_srv.cmd script delivered in patch 3695041 to remove the duplicate
services.
[top]
55.The script adsvalsn.cmd fails when I run AutoConfig. How do I resolve this
issue?
Answer:
Check in your Service Control Panel to see if the 806 listener service is set to
automatic or manual.
If your service is set to automatic, then you hit a known issue, that can be
ignored.
You can use the following workaround to resolve the issue:
copy %AD_TOP%\bin\adstart.exe %COMMON_TOP%\util\SrvStart.exe
[top]
Troubleshooting
* Errors in the instantiation phase: Check to see if the template files listed in
the
error summary exist in your file system. If they do not exist, the AutoConfig File
Driver
of the product is faulty. Report the problem to Oracle Support.
If the template files exist, check for permission issues. If you cannot fix the
issue,
report the problem to Oracle Support.
* Error encountered in the SETUP/PROFILE/APPLY phase: Check the
adconfig.log file to see the reason for the failure. If you cannot fix the issue,
report the
problem to Oracle Support.
Note: Refer to the question "Where is the log file located that AutoConfig
creates?"
for the location of the log file
[top]
57.How do I configure AutoConfig to start the TCF servlet?
Answer:
59.My concurrent managers don't start after running AutoConfig? How do I resolve
this
issue?
Answer:
The error "Address already in use: make_sock could not bind to port" occurs when
non-SSL Apache and SSL Apache occupy the same port. The latest AutoConfig patch
makes sure, that these ports don't conflict.
Reference:
* AutoConfig Cannot Start Startssl because of Address already in use: make_sock:
could not bind to port
[top]
62.I get the message "You are not authorized to view this page" when I access the
application. How do I resolve this problem?
Answer
After applying TXK AutoConfig Template Rollup F (patch 3104607) or later, the
Apache configuration won't allow symbolic links per default. Standard security
practice
and our strong recommendation is that you don't use symbolic links for E-Business
Suite
files.
If you want to enable symbolic links, use the Context Editor to change the value of
the variable s_options_symlinks from "Options -FollowSymLinks" to "# Options
-FollowSymLinks". Run AutoConfig to reflect the change and restart the applications
services.
The pre-patch report txkValidateRollup of TXK AutoConfig Template Rollup G
(patch 3239694) or later provides you more detailed instructions.
[top]
63.On HP/UX Itanium adconfig.pl fails because of a missing POSIX module. How do I
resolve this problem?
Answer:
When you get the error message "Can't locate loadable object for module POSIX
@INC." while running AutoConfig on HP/UX Itanium, then download and apply patch
4261525 .
Questions and Answers
1. What is a "Shared APPL_TOP"?
Answer:
A traditional multi-node installation requires the Applications file system on each
node in the system.
In a Shared APPL_TOP installation, the APPL_TOP and the COMMON_TOP file
systems are installed on a shared disk resource mounted to each node in the system.
These nodes can be used to provide standard application tier services, such as
Forms, Web, and Concurrent processing. Any changes made in the shared APPL_TOP file
system are immediately visible on all nodes.
Note that each node continues to have a separate Applications techstack
installation
(see also question 2).
[top]
2. What is a "shared application tier file system"?
Answer:
In a shared application tier file system installation, the APPL_TOP, the
COMMON_TOP, and the Applications technology stack (ORACLE_HOMEs) are
installed on a shared disk resource mounted to each node in the system. These nodes
can
be used to provide standard application tier services, such as Forms, Web, and
Concurrent processing. Any changes made in the shared application tier file system
are
immediately visible on all nodes.
[top]
3. What operating systems are certified?
Answer:
All Rapid Install platforms except Windows support a shared application tier
infrastructure. There is no time estimate for a Windows solution.
[top]
4. I want to migrate my existing Oracle Applications system to a shared application
tier
file system. What 11i releases are supported?
Answer:
You can migrate any existing Oracle Applications 11i release to a shared
application
tier file system.
[top]
5. Can I share the application tier file system across nodes with different
platforms?
Answer:
No. The nodes sharing the application tier file system need to be binary-
compatible.
[top]
6. If the platforms of my nodes are binary-compatible, can I share the application
tier
file systems? For example, can I share a node using Solaris 2.6 with one using
Solaris 8?
Answer:
No, all machines sharing the file system must be configured to run the same
Operating System with the same OS patch level.
[top]
7. Are there any restrictions on the type of shared disk resources that can be used
for
sharing an application tier file system?
Answer:
No, your shared application tier file system can reside on any type of shared disk
resource. Examples of shared disk resources include an NFS mounted disk or a disk
array. The shared disk resource does not have to be local to the machine, and it
can also
be a standalone disk array. Usual tuning considerations apply.
[top]
8. Can I merge APPL_TOPs?
Answer:
Yes, you can merge APPL_TOPs that are spread across multiple nodes. Follow the
instructions described in the OracleMetaLink document 233428.1.
[top]
9. How can I implement a shared application tier file system during an Oracle
Applications installation?
Answer:
You must use the Rapid Install 11.5.10 or higher. Refer to Installing Oracle
Applications for more information.
[top]
10. How can I migrate my existing Oracle Applications system to a shared
application
tier file system?
Answer:
Follow the instructions described in the OracleMetaLink document 233428.1.
[top]
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.
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.
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.
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
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.
n 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 node (or machine) is a computer.
* A server (or service) is a process or group of processes that runs on a single
machine
and performs a specific function.
* 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.
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
OracleMetaLink, click the Patches & Updates tab. Choose the Quick Links to the
Latest Patchsets, Mini Packs, and Maintenance Packs link to see a listing of:
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.
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.
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.
See Oracle Applications Maintenance Utilities for information.
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.
ASSESSING THE EFFECTS OF PATCHING
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.
In AD Minipack H (and later), there are two patch history files:
* javaupdates<timestamp>.txt - records patch history about changes to Java files
* adpsv<timestamp>.txt - records patch history about changes to all non-Java files.
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.
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:
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.
* 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 Oracle Applications Maintenance Utilities for additional information.
Q1. After you apply a patch, there may be an invalid view. How do you validate the
view?
A: Most views are recreated via a new Projects sql script. These scripts would be
located
in your $PA_TOP/patchsc/107/sql directory for release 10.7, and in
$PA_TOP/patch/110/sql directory for release 11.0.x, and in $PA_TOP/patch/115/sql
directory for release 11.5.x. After you run a select statement to locate your
invalid view,
you can go to one of the above directories and grep for that invalid view name. The
following is an example of a select statement to find invalid objects:
Login to sql as apps/ [pwd]
SQL> select object_name, object_type
from user_objects
where status = 'INVALID';
OBJECT_NAME
OBJECT_TYPE
------------------------------------------------ --------------------
PA_EXPENDITURE_TYPES_EXPEND_V VIEW
The following is a grep statement example for release 11.0 in unix to locate a
script to
recreate a view:
Change directory to the corresponding $PA_TOP/patch/110/sql directory.
Type the following command in the $PA_TOP/ .. /sql directory:
$PA_TOP/patch/110/sql> grep -i PA_EXPENDITURE_TYPES_EXPEND_V *
There will be many resulting lines, but only one line has the required information.
An
example of a resulting line is as follows:
pavw110.sql:CREATE OR REPLACE FORCE VIEW
pa_expenditure_types_expend_v
The pavw110.sql script is an update script that will recreate the view and validate
the
invalid view. This is known by the "CREATE OR REPLACE FORCE VIEW" statement
from the grep.
You should log an iTAR with Projects if you do not find a current script to
recreate a
view. Support will resolve any invalid object issue that you have. For additional
information, see Note 74660.1, Resolving Invalid Objects in Oracle Applications
[top]
Q2. How do you compile all objects for the APPS schema?
A: You can compile objects using the compile objects selection from the ADADMIN
tool. To compile all objects manually for the APPS schema you either need to change
directory to the $AD_TOP/sql directory or verify it is in your path. Login to
SQLPlus as
system/manager and run the following command to compile all APPS objects:
2. For any release level lower than PA.H or release level of 11.0.x or 11.5.x,
there is no
easy way to determine your patch set level. You will need to retrieve a list of
patch set
numbers from MetaLink. Using that list, you can utilize the find file utility to
search for a
file in the APPL_TOP/admin/[SID_NAME] directory for Release 11.0.x or 11.5.x and in
the APPL_TOP directory for Release 10.7.16.1 called "applptch.txt". If the file
exists,
look in the file for patch numbers from your patch set list (start with the latest
patch
number and work backwards in the list until a hit is made).
You can also run the following grep statement in the directory where the
applptch.txt
file resides to list all product groups patches:
fgrep 'begin bug pa' applptch.txt
3. If options a or b from above are not possible, you will have to select a random
number of views, forms, and packages. You can determine what version the objects
are
based on. You will have to contact Oracle Projects Support for an estimated
patchset
level. (To learn how to get version information go to question 8)
For more information, review the following note:
Note.97398.1, What Patches have been applied to an instance?
[top]
Q5. What are the current mini packs, patchsets or one off patches for the Projects
products?
A: Review Note:108691.1 for the latest patchset/family pack information for the
Projects
products.
Review Note:108255.1 for the latest Internet Time (formerly Self-Service Time)
patching information.
[top]
Q6. There are specific invalid PA% objects in your database that will not compile.
What
do you do to clean up these objects?
A: There are Oracle Projects objects in the database that may not compile. They are
part of Oracle Projects products, but you may not have that product installed or
implemented on your system.
The following are common product files that may be affected:
PA_PURGE%
--------------------
All objects starting with this name are part of the Oracle Projects Archive Purge
product.
1. a. If on release 10.7 or 11.0.x then download and install the patch for Oracle
Projects Archive Purge. Patch numbers are
All objects starting with this name were part of the Oracle Projects upgrade from
9.x., 10.x to 10.7.16.1. You may drop all of these objects from the database with
no affect on the Oracle Projects product.
PA_ONLINE%
--------------------
Objects starting with this name are part of Oracle Projects Online Time and Expense
application.
Install the latest patchset or mini pack for Projects on any application version
level or
drop the objects if you are not planning to use Oracle Projects Online Time and
Expense.
PA_ADW%
--------------------
Objects starting with this name are part of Oracle Projects Data Warehousing
product.
You should setup Oracle Projects and Oracle Data Warehousing to utilize this new
product. Or, you can drop these objects if you are not going to implement Oracle
Data
Warehousing.
[top]
Q7. The Projects adpatch process may fail while running the database driver. What
actions do you need to complete to finish the patch process?
A: You should restart the adpatch process for the database driver using only one
worker.
There may be a conflict with another patch not completing before the current patch
starts.
For more information, see Note:47709.1, AutoInstall Frequently Asked Questions
[top]
Q8. How do you determine version information about a form, view, package or
executable?
A:
FORMS:
In the application, open the form you are having a problem with then, from the menu
bar,
select Help>About Oracle applications. Near the bottom of the information screen
you
will find a heading of "FORMS". Under this heading you will find the name and
version
information of the currently selected form.
VIEWS:
Logon to the database using SQLPLUS as apps/ and run the following sql command:
SELECT text
FROM user_views
WHERE name LIKE '[ENTER THE NAME OF THE VIEW IN ALL CAPS]'
AND text LIKE '%Header%';
PACKAGES:
Logon to the database using SQLPLUS as apps/ and run the following sql command:
SELECT text
FROM user_source
WHERE name LIKE '[ENTER THE NAME OF THE PACKAGE IN ALL CAPS]'
AND text LIKE '%Header%';
EXECUTABLES:
A: The adpatch process will produce a log file which lists the actual process steps
and if
any workers are spawned, worker logs will be created also. The adpatch process will
either use a default log file name, adpatch.log, or you are prompted to create your
own
unique name. For release 10.7.16.1, the adpatch log file is located in the
$APPL_TOP/install/log directory. For Release 11.0.x or 11.5.x, the adpatch log file
is
located in the APPL_TOP/admin/[SID_NAME] directory. If you do not create a unique
log file name, the adpatch process will append the log file each time you rerun it.
Most patches will utilize workers and each worker will create their own worker log
file.
These log files are named adwork01.log, adwork02.log, etc. For release 10.7.16.1,
the
adwork0x.log log file is located in the $APPL_TOP/install/log directory. For
Release
11.0.x or 11.5.x, the adwork0x.log log file is located in the APPL_TOP/admin/
[SID_NAME]/log directory.
The adaimgr process will also generate a log file, which is located in the
$APPL_TOP/admin or $APPL_TOP/install/log directory.
If you are having problems applying a patch, please upload these log files when you
log a
Service Request with Oracle Support.
[top]
Q10. How do you change a shared install to a full install using the License
Manager?
A: To change the status of an install from shared to full do the following:
$cd $COMMON_TOP/admin/assistants/licmgr
$LicenseMgr
If you are using 11.5.5 you can do the following:
$ cd $AD_TOP/bin
$adlicmgr.sh
[top]
Q11. How do you find any critical high priority/mandatory patches for Oracle
Projects?
A:1. Sign on to MetaLink
2. Select the Patches button from the left Menu bar.
3. Select the Release, Product, Platform and Language based on your configuration.
If you would like to see patches for all products, click on the first product, then
Shift-Click on the last product to select all. Alternately, you can select several
individual products by holding down the Ctrl key while selecting each one.
4. In the Limit Search to field, select High Priority Product Patches or High
Priority
Product Patches NOT in Latest Mini Pack
Q12. How do you receive the enhanced trace options for the forms diagnostics menu?
When you modify the Printer Driver you have to restart the Manager which
runs the request which is attached to that Printer Driver, however,if you do
not know which manager then you have to restart the Internal manager because
the printer driver can be used by multiple managers and multiple requests.
If only a concurrent program definition is modified, running a verify on the
Internal Manager will pick up the changes without the need for bouncing the
manager.
Does the Internal manager schedule requests to be run or does it put requests
into queues to be run by other managers?
This is a very common misconception. The ICM really does not have any
such scheduling responsibilities. It has NOTHING to do with scheduling
requests, or deciding which manager will run a particular request.
Its function is only to run 'queue control' requests, which are
requests to startup or shutdown other managers. It is responsible for
startup and shutdown of the whole concurrent processing facility, and
it also monitors the other managers periodically, and restarts them if
they should go down. It can also take over the Conflict Resolution
manager's job, and resolve incompatibilities.
$APPLCSF = /u01/appl/common
$APPLLOG = log
$APPLOUT = out
the application associated with the request. For example, a PO report would go
under $PO_TOP/$APPLLOG and $PO_TOP/$APPLOUT Logfiles go to: /u01/appl/po/9.0/log
Output files to: /u01/appl/po/9.0/out
All these directories must exist and have the correct permissions.
Note that all concurrent requests produce a log file, but not necessarily
an output file.
Concurrent manager logfiles follow the same convention, and will be
found in the $APPLLOG directory
What are the logfile and output file naming conventions?
Request logfiles: l<request id>.req
Output files: If $APPCPNAM is not set: <username>.<request id>
If $APPCPNAM = REQID: o<request id>.out
If $APPCPNAM = USER: <username>.out
Where: <request id> = The request id of the concurrent request
you can simply Terminate the manager and it will not run again unless
you reactivate it.
If it is really necessary, you can query the manager in the
'Define Manager' form, and delete the row. (It is recommended that you
DO NOT do this
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.
What is the 'Internal Scheduler/Prereleaser' manager?
The short name for this manager is FNDSCH. It is also known as the
Advanced Scheduler/Prereleaser Manager. This manager is intended
to implement Advanced Schedules. Its job is to determine when a
scheduled request is ready to run. Advanced Schedules were not fully
implemented in Release 11.0, they are implemented in Release 11.5,
but are not widely used by the various Apps products. General Ledger
uses FNDSCH for financial schedules based on different calendars and
period types. It is then possible to schedule AutoAllocation sets,
Recurring Journals, MassAllocations, Budget Formulas, and MassBudgets
to run according to the General Ledger schedules that have been
defined.
If financial schedules in GL are not being used then it is not a
problem to deactivate this manager.
What is the 'Internal Monitor' manager/service?
Cleaning out the tables is a useful method of making sure that there
are no invalid statuses that can prevent the managers from starting.
Previously, this has been done by truncating fnd_concurrent_processes
and/or fnd_concurrent_requests. Truncation of the tables is a little
drastic, and can cause problems later when trying to purge requests,
not to mention losing all of the request information.
Pinging other machines is used in Distributed Concurrent Processing. This means you
have DCP turned on, using the environment variable APPLDCP. Set APPLDCP to OFF and
restart the managers.
I hit the Restart button to start the Standard manager, but it still did not
start?Telling a manager to restart just sets the status to Restart. The ICM
will start it the next process monitor session or the next time the
ICM starts. Use Activate to start a manager immediately.
When a manager is deactivated manually, the ICM will not restart
it, you will need to set it to Restart, or activate it manually.
Depending on the specification of the system it has been seen that when
tables reach above 3000-4000 rows, the performance begins to diminish, however,
there could be 30000-40000 rows in the tale before the performance begins
to degrade.
You may want to run the Purge Concurrent Request and/or Manager Data on
a regular basis, dependant on the amount of requests being run.
The Purge Concurrent Requests job can be used to purge:
Briefly:
(See the server documentation for details on the DBMS_PIPE package)
1) A tranasction manager is started on the concurrent processing
server, and periodically reads the pipe for incoming transactions.
2) A client program (usually a form) calls the
FND_TRANSACTION.SYNCHRONOUS function.
3) This function writes a message into the pipe containing the program
to be run and its parameters.
4) FND_TRANSACTION.SYNCHRONOUS begins reading a return pipe for the
return status.
5) The manager sees the message in the pipe, retrieves the program id
and parameters.
6) The manager runs the program with the specified parameters. The
program will be of type 'Immediate', so there will not be a
separate concurrent request run.
7) The program completes, and the manager packs its return status into
the return pipe.
8) FND_TRANSACTION.SYNCHRONOUS reads the return value and passes it
back to its caller.
inactive / nomanager.
Within 12 to 15 seconds, you refresh-it gets completed.
Initially, you could find only inactive and we look at
the diagnostic- the concurrent manager assigned is not
picking up.
There is no specialization rules in any managers except
the include program this source.
Solution....
Question: How to Clean Up Inactive Sessions Based on the Information in the Monitor
User Form
Answer: Procedure described in Note 98464.1
Responsibilities definition (FNDSCRSP):
Question: How to exclude menu choises from a new SSWA responsibility
Answer: See Note 107816.1
Question: How to delete a responsibility from Oracle Applications?
UNIX:
Oracle Reports
adrepgen userid=apps\<psswd> source=<$PRODUCT_TOP>\srw\filename.rdf
dest=<$PRODUCT_TOP\srw\filename.rdf
stype=rdffile dtype=rdffile logfile=x.log overwrite=yes batch=yes
dunit=character
PLL File
adrepgen userid=apps\<psswd> source=<$PRODUCT_TOP>\srw\filename.rdf
dest=<$PRODUCT_TOP\srw\filename.rdf
stype=pllfile dtype=pllfile logfile=x.log overwrite=yes batch=yes
dunit=character
Question: How do you test out the Initilization strings used in Applications
Printer
Drivers
Answer:
Windows NT
- Create a sample directory and copy a rpt file into that directory.
- Type: FNDPRESC "init_string" > foo (init_string = the exact
init string used wtihin applications surronuded by double quotes)
- Edit the report file and insert a line at the top of the report.
- Edit the foo file and copy / paste the init string at the inserted
- Create a sample directory and copy a rpt file into that directory.
- Type: FNDPRESC "init_string" > foo (init_string = the exact
init string used wtihin applications)
- vi the report file and insert a line at the top of the report.
Shift + o
- vi the foo file and copy / paste the init string at the inserted
line of the report file.
- lp -d<printername> l#####.out
Question: How do you get minutes and seconds for the start time of a concurrent
request
from a SQL*Plus query?
Answer: Issue the following sql statement:
select to_char(actual_start_date,'dd-mon-rr' hh:mi:ss')
from fnd_concurent_requests
where request_id=####;
Question: What is the proper way to change the Applications privileged passwords?
Answer:
- Shutdown the Concurrent Manager
9.
o Trace his session (with waits) and use tkprof to analyze the trace file.
o Take a statspack report and analyze it.
o O/s monitoring using top/iostat/sar/vmstat.
o Check for any network bottleneck by using basic tests like ping results.
10.
o Use FNDCPASS to change APPS password.
o Manually modify wdbsvr.app/cgiCMD.dat files.
o Change any DB links pointing from other instances.
11.
2) Applsys
3) Applsyspub
Answer :-
Apps is the database schema which used for connecting applications(front end) user
It
internally uses the Applsyspub user for connecting .It comprises synonyms for all
the
individual module�s objects. Concurrent Requests also use the apps db schema for
executing the requests.
Applsys is a schema in oracle applications which contains the information about the
FND
or Foundation Tables.
Applsyspub is the schema which used internally in Oracle Applications (Gateway
User)
by application Users.
Set # 4 : Techstack
What do we mean by Techstack ?
What comprises the Techstack ?
Answer:-
In Oracle Applications the Technical Software Components which comprises of the
entire Applications is called Techstack.
They are
1. Db Techstack.�(Database (Oracle RDBMS ) Software.
2. Applications Techstack.(in 11i the 8.06 (i.e. for forms ,reports and for PL/SQL
and
other libraries) and 8.1.7 for Application Server).(in R12 the releases 10.1.2 and
10.1.3).
Set # 5 : �GL� Database User
When does the system logs in as Database user �gl� and why ?
Answer:-
When using the General Ledger Module Responsibilities the system logs in as
Database
user gl and this is done for database security.
Set # 6 : Password Change
Before changing password for �apps�, what would you say are the top three
Precautions to be taken (before doing in Production) ?
Can we change the password for user �guest� ? Why ?
Answer:-
AD_TOP is the TOP for Application DBA Module which contains all the essential
utilities and files used for maintaining the Oracle Applications System.
AD stand for Applications DBA.
Application DBA�s mostly use this directory.
Set # 10: Workflows
What is a workflow?
How does Oracle Applications uses workflows?
What would be the top three things to monitor for workflows ?
What would be the top three typical questions to ask about workflows ?
Does a Workflow have a version ? If so, how can we find out ?
Answer :
How will you find the pending and running concurrent requests from SQL prompt?
after logging as apps user in sqlplus
run this sql $FND_TOP/sql/afrqrun.sql
This will show the pending and running concurrent requests in the instance
Newly Added
What is Transaction Manager(Concurrent Manager) and its purpose?
Ans:-
Other users will get 403 forbidden error. You can also customize the error message
in
httpd.conf.
Oracle Apps DBA Interview Questions
1. what is the utility to change the password of a dba schema in oracle apps? Ans:
FNDCPASS
Forms Server(f60srv)
Metric Server(d2ls)
Metric Client(d2lc)
Report Server(rwm60)
Concurrent Server(FNDLIBR)
Discoverer 6.What are main file systems in Oracle Apps?
Ans: APPL_TOP, COMMON_TOP,
DB_TOP,ORA_TOP 7. What are there in Desktop Tier?
11. Which package will be used for the user validation by plsql agent?
Ans: oraclemypage
12. What are adadmin utilities? and Its location?
$AD_TOP/bin
Ans: 1.adadmin
2.adpatch
3.adsplice
4.adident
5.adrelink
6.adlicmgr
13.What are the location of JaVA Files?
Ans: JAVA_TOP and all PRODUCT_TOP/Java/Jar
14. What is the name of the xml file of Apps and its location?
Ans: Context Name.xml and $APPL_TOP/admin
15. what is the location of Apps environment file? and its name?
Ans: contextname.env and $APPL_TOP
16. In how many way Jar files are generated?
Ans: These files contains the previouse session info about adadmin.. location is
$APPL_TOP\admin\sid\restart\*.rf9
49. How do you configure you ipaddress at client side? and server side?
Ans: c:\windows\system32\drivers\etc\hosts and \etc\host
50. What is the location of Datbase server related scripts?
Ans: $ORACLE_HOME\appsutil\scripts\contextname
51. what is the utility to clean the concurrent manager?
Ans: @cmclean.sql ( You have download from metalink)
52. How do you stage the 11.5.10 Apps software?
Ans: using adautostg.pl
53. What is the location of the source files of forms?
Ans: AU_TOP/forms/US/
54. What is the executable to generate forms?
Ans: f60gen
1. How do you Apply a application patch? -> Using adpatch 2. Complete Usage of
adpatch? 1. download the patch in three ways.
a) Using OAM-Open Internet Exploreer->Select Oracle Application Manager-> Navigate
to Patch Wizard -> Select Download Patches -> Give the patch number(more than one
patch give patch numbers separated by comma-> Select option download only->Select
langauge and Platform-> Give date and time-> submit ok Note: Before doing this Your
oracle apps should be configured with metalink credentials and proxy settings
b) If your unix system is configured with metalink then goto your applmgr account
and
issue following command
1.ftp updates.oracle.com
2.Give metalink username and password
3.After connecting, cd patch numbe
4. ls -ltr
5. get patchnumber.zip(select compatiable to OS)
c) Third way is connect to metalink.oracle.com.
1. During patching if worker fails, restart failed worker using adctrl(You wil find
the
option when u enter into adctrl)
2. If again worker fails, Goto $APPL_TOP/admin/SID/log/workernumber.log
3. Check for the error, fix it restart the worker using adctrl
4. If you the issue was not fixed, If oracle recommends if it can e ignorable, skip
the
worker using adctrl with hidden option 8 and give the worker number
4. Log files during patching?
1. patchnumber.log ($APPL_TOP/admin/SID/LOG/patchnumber.log)
2. patchnumber.lgi($APPL_TOP/admin/SID/LOG/patchnumber.lgi)
3. adworker.log($APPL_TOP/admin/SID/LOG/adworker001.log)
4. l.req($APPL_TOP/admin/SID/LOG/l1248097.req)
5. adrelink.log($APPL_TOP/admin/SID/LOG/adrelink.log)
6. adrelink.lsv($APPL_TOP/admin/SID/LOG/adrelink.lsv)
7.autoconfig.log($APPL_TOP/admin/SID/LOG/autoconfig_3307.log)
5. useful tables for patching?
tabaseportion,nogenerateportion etc)
3. By merging patches into single file
4. Distributed AD if your appl_top is shared
5. Staged APPL_TOP while in production env
8. Usage of Admerging?
izuprod.txt
izuterr.txt
newprods.txt
4. open newprods.txt using vi and modify the file by giving correct tablespace
names
available in your environment
5. run adsplice in appl_top/admin directory
How to apply India Localization Patches
1. How to apply india Localizatin Patches?
1. We have to install India localization Patch Application Tool by downloading
patch
6491231
2. Copy the downloaded patch to $JA_TOP and unzip the same there
3. A directory inpatch will be created afer unzipping. In which india localization
patch
tool avaialable
4. Go to india localization patch directory
5. use following command
perl $JA_TOP/inpatch/indpatch.pl drvr_file=6355941.drv fnd_patchset=H
appspwd=apps japwd=ja logfile=6355941.log systempwd=manager
fnd_patchset= FND PATCHSET LEVEL
1. what is the utility to change the password of a dba schema in oracle apps? Ans:
FNDCPASS 2. what are mandatory users in oracle apps? Ans: applsys,applsyspub,apps
3. What simplay a oracle Architechture? Ans: Desktop Tier, Application Tier,
Database
Tier 5. What are the components in the Application Tier? Ans: Apache(http)
Jserver(jre)
Forms Server(f60srv) Metric Server(d2ls) Metric Client(d2lc) Report Server(rwm60)
Concurrent Server(FNDLIBR) Discoverer 6.What are main file systems in Oracle Apps?
Ans: APPL_TOP, COMMON_TOP, DB_TOP,ORA_TOP 7. What are there in Desktop Tier? Ans:
Internet Browser, JInitiator 8. What is the location of JInitiator in the Desktop
Tier? Ans: c:\program files\oracle\Jinitiator 9. What is the location of client
cache? Ans:
c:\documents and settngs\user\oracle jar Cache 10. What is the location of Server
cache?
Ans: $COMMON_TOP/_pages 11. Which package will be used for the user validation
by plsql agent? Ans: oraclemypage 12. What are adadmin utilities? and Its location?
$AD_TOP/bin Ans: 1.adadmin 2.adpatch 3.adsplice 4.adident 5.adrelink 6.adlicmgr
13.What are the location of JaVA Files? Ans: JAVA_TOP and all
PRODUCT_TOP/Java/Jar 14. What is the name of the xml file of Apps and its location?
Ans: Context Name.xml and $APPL_TOP/admin 15. what is the location of Apps
environment file? and its name? Ans: contextname.env and $APPL_TOP 16. In how
many way Jar files are generated? Ans: Normal and Force 17. Once Jar files are
generated what files get effected? Ans: All Product_top/java/jar files and Two
files in
JAVA_TOP they are appsborg.zip appsborg2.zip 18. How do you see the files in zip
file?
Ans: unzip -v 19.How do you generate jar files? Ans: Using adadmin and option 5 20.
How do you start the apps services? Ans:
$COMMON_TOP\admin\scripts\Contextname\adstrtal.sh apps/appspwd 21. What is the
executable to generate jar files? Ans: adjava 22. How do you relink a executable of
a
product Ans: by relinking option in adadmin or adrelink 23. How do you relink AD
product executable? and usage? Ans: adrelink.sh and adrelink.sh force=y "ad
adsplice"
24.When do you relinking? Ans: 1. when you miss a executable file 2. When there is
a
problem with any executable file 3. When any product executable get currupted 25.
What
is DAD? Ans: It is a file which stores apps passwords in hard coded format. i.e
wdbsvr
26.How do you relink OS files and libraries? Ans: using make command 27.What is
compile scheman option in adadmin? Ans: This option is used to compile/resolve the
invalid objects 28. Where do you get the info about invalid objects? Ans: from
dba_objects where status=invalid 29.How do you compile an obect ? Ans: alter
object_
type objet _name compile. Eg: alter table fnd_nodes compile 30.How do you see the
errors of a table or view? Ans: select text from dba_errors where name='emp_view'
31.
How do you see the errors in the db? Ans: show error 32. How do you compile a
schema?
Ans: using utlrp.sql (location is ?/rdbms/admin/) or going adadmin, compile schema
option 33. How do you know how many invalid objects are in specific schema? Ans:
select count(*) from dba_objects where status='INVALID' group by owner; 34. How do
you know the package version? Ans: select text from dba_source where name='package
name' and type='PACKAGE BODY' and rownum<10 35.Where do you find package
locks? Ans: v$access 36. Where do you find object locks? Ans: v$locked_object 37.
HOw do you login directly to the apps in the browser? Ans:
http://192.168.0.203:8000/dev60cgi/f60cgi 38.How do you enable direct loing in
oracle
apps 11.5.10 Ans: open the contextname.xml and change to FREE or connect to
apps/apps change the server id in the fnd_nodes to OFF 39.How do you setup the JVM
in
the database? Ans: initjvm.sql (?/rdbms/admin) 40. How do remove the jvm from the
database? Ans: rmjvm.sql(>/rdbms/admin) 41. How do you load java class to databae?
Ans: loadjava 42. What are restart files? and its location? Ans: These files
contains the
previouse session info about adadmin.. location is
$APPL_TOP\admin\sid\restart\*.rf9
43.How do you validate apps schema? Ans: To validate synonyms, missing sysnonyms
and all grant. You can do it in adadmin. after validating it iwll produce a report
in the
location $APPL_TOP\admin\sid\out\*.out 44. How do you enable maintainance mode?
Ans: using adadmin or running a script called "adsetmmd.sql ENABLE/DISABLE"
(AD_TOP/patch/115/sql) 45.What is APPS_MRC Schema? Ans: It is used for multi
language support. To synchronize APPs schema and APPS_MRC 46. How to see the
version of a script or form or report or etc? Ans: grep Header adsetmmd.sql or
adident
Header adsetmmd.sql strings -a GLXSTEA.fmx grep Header or adident Header
GLXSTEA.fmx 47.What is the location of adadmin log? Ans:
$APPL_TOP\admin\sid\log 48. What are the oracle homes in Apps? Ans:
8.0.6ORACLE_HOME(Dev 6i products) and IAS_ORACLE_HOME (Apache) 49. How
do you configure you ipaddress at client side? and server side? Ans:
c:\windows\system32\drivers\etc\hosts and \etc\host 50. What is the location of
Datbase
server related scripts? Ans: $ORACLE_HOME\appsutil\scripts\contextname 51. what is
the utility to clean the concurrent manager? Ans: @cmclean.sql ( You have download
from metalink) 52. How do you stage the 11.5.10 Apps software? Ans: using
adautostg.pl
53. What is the location of the source files of forms? Ans: AU_TOP/forms/US/ 54.
What
is the executable to generate forms? Ans: f60gen
o Check guest user/password in the DBC file, profile option guest user/password,
the DB.
o Check whether apache/jserv is up.
o Run IsItWorking, FND_WEB.PING, aoljtest, etc.
7. Most likely the FNDFS listener is down. Look at the value of
OUTFILE_NODE_NAME and LOGFILE_NODE_NAME in the
o Trace his session (with waits) and use tkprof to analyze the trace file.
o Take a statspack report and analyze it.
o O/s monitoring using top/iostat/sar/vmstat.
o Check for any network bottleneck by using basic tests like ping results.
10.
o Use FNDCPASS to change APPS password.
o Manually modify wdbsvr.app/cgiCMD.dat files.
o Change any DB links pointing from other instances.
11.
Answer :-
Apps is the database schema which used for connecting applications(front end) user
It internally uses the Applsyspub user for connecting .It comprises synonyms for
all the individual module�s objects. Concurrent Requests also use the apps db
schema for executing the requests.
Applsys is a schema in oracle applications which contains the information about the
FND
or Foundation Tables.
Applsyspub is the schema which used internally in Oracle Applications (Gateway
User)
by application Users.
Set # 4 : Techstack
What do we mean by Techstack ?
What comprises the Techstack ?
Answer:-
In Oracle Applications the Technical Software Components which comprises of the
entire Applications is called Techstack.
They are
1. Db Techstack.�(Database (Oracle RDBMS ) Software.
2. Applications Techstack.(in 11i the 8.06 (i.e. for forms ,reports and for PL/SQL
and
other libraries) and 8.1.7 for Application Server).(in R12 the releases 10.1.2 and
10.1.3).
Set # 5 : �GL� Database User
When does the system logs in as Database user �gl� and why ?
Answer:-
When using the General Ledger Module Responsibilities the system logs in as
Database
user gl and this is done for database security.
Set # 6 : Password Change
Before changing password for �apps�, what would you say are the top three
Precautions to be taken (before doing in Production) ?
Can we change the password for user �guest� ? Why ?
Answer:-
We can change the Guest user�s password. This is done for advanced security.
Set # 7 : �xml� vs. �dbc� files
What�s the difference between the �xml� file and the �dbc� file ? How are they
Being used by the system ?
Answer :-
Xml file in oracle Applications is the context file which is maintained by
Autoconfig to
maintain the Applications configuration in a centralized manner.
Dbc file is the file used to connect the application user to the database.
Set # 8 : TWO_TASK
What is the �TWO_TASK� variable ? How does Oracle Applications uses it ?
Answer:-
Oracle Applications System maintains TWO_TASK variable for the applications to work
properly.
It will be common for database tier and application tier. So that from applications
tier
users can connect to the database without issues.
Set # 9 : $AD_TOP
What is $AD_TOP ?
What does �AD� stand for ?
Which type of user mostly uses this directory ?
Answer :-
AD_TOP is the TOP for Application DBA Module which contains all the essential
utilities and files used for maintaining the Oracle Applications System.
AD stand for Applications DBA.
Application DBA�s mostly use this directory.
Set # 10: Workflows
What is a workflow?
How does Oracle Applications uses workflows?
What would be the top three things to monitor for workflows ?
What would be the top three typical questions to ask about workflows ?
Does a Workflow have a version ? If so, how can we find out ?
Answer :-
How will you find the pending and running concurrent requests from SQL prompt?
after logging as apps user in sqlplus
run this sql $FND_TOP/sql/afrqrun.sql
This will show the pending and running concurrent requests in the instance
Newly Added
What is Transaction Manager(Concurrent Manager) and its purpose?
Ans:-
8. HTTP/Web Listeners: In Apps 11.5.1, WebDb 2.2, WebDB 2.5 and the Apache Server
(version 1.3.9) facilitate communication between the above components and the
client.
From Apps version 11.5.2, WebDb 2.2 and 2.5 have been replaced by the Apache Server
(1.3.9).
9. Java: The Java environment is used heavily in Apps 11i. In release 11.5.1, the
components are Java Runtime Environment 1.1.8 (JRE 1.1.8), Java Development Kit
1.1.8 (JDK 1.1.8) and Jserv 1.1.
10. JInitiator: This Browser Plug in (version 1.1.7.27) is installed on the client,
which in
most cases is a PC. The cloning techniques discussed here should obviate the need
for
any cloning required on the client/PC. Version 1.1.7.27 has been replaced by a
higher
version, since the original install of 11.5.1.
?? Where are all form objects(.fmbs) will be available?
AU_TOP is the place where all the form objects, jsp of all the modules will be
placed. It
will place its executable to respective PROD_TOP after compiling the .fmb.
?? What is the utility used when migrating from 11 to 11i?
To upgrade forms, the form can be directly compiled in next release(forms 6i) Form
can
be compiled by using ifcmp60.exe flint60 batch executable can be used to check
whether
the form is compatible to apps or not
?? What is an interface ?
Integrating one application to other applications It involves Data file, insertion
scripts,
loader scripts, Temp tables Data file is a flat file having contents with
delimitter insertion
scripts are used to insert data into product tables from temp table loader scripts
are also
called as control files which are used insert data from data file to temp table.
Temp tables
are used to transfer data from one module to another or application
?? Advantage of Securing Attributes while Creating User & Responsibility?
Securing attributes allow rows (records) of data to be visible to specified users
or
responsibilities based on the specific data (attribute value) contained in the row.
This is
basically for Oracle Self-service web application for data security
?? What is Alert in Apps? How to register it? How it supports Different languages
Oracle Alerts allows you to monitor your business information. It enables you to:
Be
informed of database exceptions as they happen Specify the exception conditions
along
with frequency Be informed through a single point through email Take actions you
specify depending on a recipient's response Perform routine database tasks
automatically
Integrate email systems
?? What is flex-field?
An Oracle Applications field made up of segments. Each segment has an assigned name
and a set of valid values. Oracle Applications uses flexfields to capture
information about
your organization. There are two types of flexfields: key flexfields and
descriptive
flexfields.
exact version of the Oracle apps like 11.5.8 or 11.5.9. It also has columns that
tells us
whether Multi-org/MRC is installed.
?? How do you relink Oracle�s Executable?
There are two ways of relinking the oracle executable.
- One way is using Oracle Universal Installer � this is recommended.
- Other way is use make command:
changed with a combination of RBG (against �#FFFFFF�). Similarly you can set title
using HTML tags.
?? How do you change the Logo that is displayed at the time of logging with yo
Company�s logo?
There is a file logo.gif available at $OA_MEDIA. Copy your company�s logo file here
and rename it to logo.gif. this is the file read and displayed on the login screen
?? How do you compile a Report:
To Compile a report, use:
rwcon60 userid=scott/tiger@bs817 batch=yes source=repport.rdf stype=rdffile
dtype=repfile overwrite=yes
?? How do you compile a form?
To copile a form, Run:
f60gen module= .fmb userid=apps/apps compile_All=Special
?? How do you compile the JSPs?
Use: perl -x $APPL_TOP/jpl/jtf/11.5.0/admin/scripts/ojspCompile.pl to compile the
JSPs
if required to be done manually.
?? What is a "Shared APPL_TOP"?
A traditional multi-node installation requires the Applications file system on each
node in
$ rm *
3. Start Apache
?? What is MRC?:
The Multiple Reporting Currencies (MRC) feature in Oracle Applications allows you
to
report and maintain accounting records at the transaction level in more than one
functional currency. The Multiple Reporting Currencies feature is available in
Release 11
of Oracle Applications.
You do this by defining one or more reporting sets of books, in addition to your
primary
set of books. In your reporting sets of books, you maintain records in a functional
currency other than your primary functional currency. Primary functional currency
is the
currency you use to record transactions and maintain your accounting data within
Oracle
Applications.
�Release 11i JServ -a simple Java apps server that supports JSP and Servlets, and
little else
�Release 12 Oracle Application Server 10g
�supports Sun�s Java Enterprise Edition version
1.4 (Java EE 1.4) programming standards
�Start an additional OC4J process every day at 5pm for peak hours
�Resource Management Directive (RMD) tells DRM when and what to do -Directives are
configured in opmn.xml
�Creates a file for each managed process and can rotate log files
R11i and R12 Multi-Tiered Architecture
� Database Tier
�R11i -runs Oracle 9iR2 or Oracle 10g
�R12 � Oracle 10g
Database Tier � Oracle 10g
The most important reason for upgrading to Oracle 10g is that it is in Premier
Support,
and Oracle 9i is in Extended Support = $$$
�Patching
�Cloning
�AutoConfig
�Diagnostics
Administration and Maintenance Tools
Oracle Enterprise Manager (OEM)
�Oracle Enterprise Manager 10g Grid Control
�Monitor E-Business Suite performance,
availability and configuration changes
�Can monitor multiple E-Business systems
�Can drill down into Oracle Applications Manager (OAM)
�MetaLink Note: 394448.1
Oracle Applications Manager (OAM)
� OAM
�Patch Wizard recommends patches, provides details about what a patch will change,
and
shows what patches have modified a specific file
�Recommended tool for making changes to
context_file.xml (AutoConfig)
�License Manager enables licensed E-Business Suite modules
Oracle Applications Manager (OAM)
� OAM
�Administer concurrent managers and workflow components
�Includes Diagnostic Wizards for Concurrent Manager Recovery, Service
Infrastructure,
GCS and Forms Monitoring, CP Signature and Dashboard Collection Signature
�Provides a menu-driven system to set up, run and view Diagnostics
�MetaLink Note: 225024.1
Applications Management Pack (AMP)
�Oracle Applications Management Pack for Oracle E-Business Suite with EM Grid
Control 10gR3 (10.2.0.3)*
�Extends Enterprise Manager 10g Grid Control
�Can purchase for Oracle Applications installation -$$
�Integrates OAM with Grid Control to provide a consolidated end-to-end E-Business
Suite
management solution
Applications Management Pack (AMP)
�Monitors your system for security problems, usage characteristics, configuration
changes
and performance
�Key Capabilities:
�Automated Cloning *
�Automatic Discovery of E-Business Suite Systems
�Configuration Management
�Service Level Management
Applications Management Pack (AMP)
�Extended Support
�Costs more than Premium Support
�Certification is with most existing instead of new third party products/versions
and
Oracle products
�Extended Support may not include certification with some new third-party
products/versions
�So if you find a new problem with an existing certified configuration, Oracle
Support will
help you
�If you�re still running Oracle 9i you�re on Extended Support (which ends July
2010)
270
11.5.7 and later releases must upgrade to Oracle 10g (should upgrade to latest
certified, currently 10gR3) if not there already and Release 12 during the same
critical downtime
Which Tool Does What?
� Applying an R12 RUP, a Family Pack, Mini-Pack, etc. Database and CPU Patching �
OPatch and N-apply Diagnostics � a set of non-intrusive programs that can be run to
gather information about aspects of the applications Oracle Integration Repository
(iRep)
� Shows all interfaces in the E-Business Suite for R11i
Rapid Install Wizard
� If you are installing the Applications
� Rapid Install Wizard installs the ORACLE_HOMEs and databases, and the APPL_TOP
and COMMON_TOP directories that contain the Applications code
Rapid Install Wizard
� Instance Home
�With Release 12, Oracle keeps major new features and bug fixes separate
�Major new functionality reserved for point releases
�A new maintenance branch will be created for each point release
�New feature introduction into maintenance branches limited and requires executive
approval
�Free utilities
�New diagnostics delivered in a standard Oracle Patch and are applied using
AutoPatch
�Diagnostics don�t alter data or setup
�Latest patch included in Release 12.0.4
�Oracle Support may ask you to run a Diagnostic when logging an SR
�Stay current on Diagnostic patches, as the Diagnostic
programs are useful in troubleshooting -Sept 2007
Oracle Integration Repository (iRep)
�
To view all the interfaces in the 11i E-Business Suite in one place
�PL/SQL
�Concurrent Programs
�Open Interfaces
�Interface Views
�Electronic Data Interchange (EDI) Message Transactions
�XML Gateway Message Maps
�Java Methods
Other Tools, Utilities and Patches
�Remote Diagnostic Agent (RDA) � comprehensive picture of environment -4.10
�10g Upgrade Companion Version 2 � for upgrading from Oracle 9i to 10g, MetaLink
Note: 466181.1
Links
�http://blogs.oracle.com/shan -Steven Chan, Director of Applications Technology
Integration for Oracle � wonderful articles explaining the nuances of the
Applications
�Director, OAUG SysAdmin SIG and Committee Chair, Oracle Tools and Utilities
Tools and Utilities
�Workflow
�11g Database
� Tasks to complete to ease R12 upgrade
R12 Architecture �
Web HTTP Servers Application Technology Stack
Middle
R12.1.1 Architecture �
Web HTTP Servers Application Technology Stack
Middle
R12 Architecture �
Components
� New versions of middle tier technology:
AOL now supports a mode in which EBS user account is automatically created for SSO
users when they first visit a page in EBS
� Mixed Case Passwords
�EBS now supports casesensitive passwords
� Automatic Linking Of User Accounts
�EBS accounts are automatically linked to existing accounts with the same user name
in
OID
Applications Object Library
features and enhancements
� Security
�New File System Layout
�
EBS code tree is free of configuration, log and output files and can be mounted in
a readonly mode at runtime (when not patching)
�Schema Passwords
�
The base product schemas are locked except during patching
Applications Object Library
features and enhancements
�
User Management
�
Proxy User
�
Allows a user to specify a proxy who can act ofy p y
ptheir behalf
�
Integration with Oracle Internal Controls Manager
�
Manager
� Patch Impact Analysis Enhancements
�The ability to identify and to merge multiple language patches that are applicable
to the
language patches that are applicable to the environment
�The ability for users to crate a list of
patches for analysis as a single set
�Analysis of patch changes to customized files that are registered with system
Oracle Applications
Manager
� Diagnostics
�
Allows to schedule and run diagnostics test as batch programs
pg
� Grid Control Plugin for Oracle EBS
�Seamless integration with OAM (concurrent manager administration, workflow
administration, forms monitoring, configuration and patch management)
�Clone Automation
OA Framework
features and enhancements
�Service Interface
�
Java interface designed to support both Web services and local Java APIs.
Includes support for Service Data Object standard
�Service Tester
�
User interface used to create unit and integration tests. The tests are recorded in
documents as structured XML data.
��Swan� User Interface
� EBS will use only �Swan� look and feel for Release 12.
�Oracle JDeveloper 10g Release 3 (10.1.3)
� R12 leverages Oracle JDeveloper 10g Release 2 (10.1.3).
OA Framework
features and enhancements
�BI Publisher integration
�Extensive personalization capability
�All i if fr
Allows integration of content from
multiple vendors into portal pages
�Record history
�Allows EBS content to be exposed in third party Portal server
AD Utilities features and
enhancements
�AutoConfig: Parallel Run Option
�
The �Parallel Run� feature enables AutoConfig to be executed simultaneously
across multiple nodes EBS instance
�AutoConfig: Profiler
�
Consolidated HTML report of an AutoConfig run
�Source and target location of each template
�Time consumed to instantiate/execute individual template scripts
�Execution report for each template script
AD Utilities features and
enhancements
�
enhancements
�Multiple Domain Support for database and middle tier
�ReadOnly Shared File System Support � appl_top, common_top, tech stack homes can
be
deployed on a readonly shared file system
�
Rapid Clone
�
Added RAC support for ASM and features to expand RAC system by adding a
node to existing RAC cluster
Workflow R12 Features
�Digital Signatures
�Ability to digitally sign the entire notification contents
�Ability to verify the signed documents through an evidence store user interface
after the
signing process
evidence store user interface after the signing process
�Can exclude purging of a signatureenabled
notifications
�Worklist Flexfields a new pages are added:
�Worklist Flexfield Rules a setup page for creating rules to populate worklist
flexfield
columns
�Worklist Flexfield Rules Simulation test page used to show the effect of multiple
worklist
flexfield rules on the worklist
11. Our Oracle Applications system is on Windows, which cloning method can we use?
12. We have a Platinum installation of Oracle Applications. Can we clone our
system?
13. Can I clone from one operating system version to another?
14. Can I clone from one platform to a different platform?
15. Can I reclone just the database?
16. Can I clone a single-node system to a multi-node system?
17. Can I clone a multi-node system to a single-node system?
18. What cloning options are available for each cloning method? Rapid Clone
concepts
24. Can I change the database dbfs layout while cloning? Rapid Clone and the
oraInventory
2. How can I clone an Oracle Applications system? Answer: There are two cloning
methods documented in the following white papers available off of Oracle MetaLink
Note 135792.1
o Cloning Oracle Applications Release 11i
o Cloning Oracle Applications Release 11i with Rapid Clone
Note: The third Cloning method (Cloning Oracle Applications Release 11i with
AutoConfig) has been fully replaced by Cloning with Rapid Clone, and is no longer
supported. [top]
3. What are the differences between the two cloning methods? Answer:
o Cloning Oracle Applications Release 11i was originally published in conjunction
with Release 11.5.5 and is applicable for all 11i releases up to 11.5.5 that are
not AutoConfig enabled.
o Cloning Oracle Applications Release 11i with Rapid Clone is applicable for all
11i
systems that have migrated to AutoConfig and enabled Rapid Clone. This method
contains steps to install AutoConfig and Rapid Clone.
[top]
5. What is Rapid Clone? Answer: 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. See OracleMetaLink Note 230672.1 (Cloning Oracle
Applications 11i with Rapid Clone) for instructions on installing and enabling
Rapid
Clone.
[top]
o Open the environment file APPSORA.env in your APPL_TOP. If the top of the file
says that it is maintained by AutoConfig, then your system is probably using
AutoConfig.
o Check if there is an Applications Context file in the APPL_TOP/admin directory.
This
file will typically be named <SID>.xml or <SID>_<HOSTNAME>.xml.
o Check if there is an Applications Context file in the RDBMS ORACLE_HOME under
the appsutil directory. This file will typically be named <SID>.xml or
<SID>_<HOSTNAME>.xml.
See OracleMetaLink Note 165195.1 for more details on identifying if your system
already uses AutoConfig. [top]
9. We are running Release 11.5.7 (or any prior release), which cloning method can
we
use? Answer: Due to the advancements in the cloning solution with Rapid Clone, all
customers are now recommended to move to using Rapid Clone. if you are on release
11.5.7 or any release before 11.5.7, you will need to first enable AutoConfig on
your
system, if not already done, before you can use Rapid Clone as documented in the
Cloning Oracle Applications Release 11i with Rapid Clone white paper.
[top]
10. We are running Release 11.5.8 (or any later release), which cloning method can
we
use? Answer: In 11.5.8 AutoConfig is enabled on the middle tier out of the box. In
11.5.9 and any later release, AutoConfig is enabled by default on both the database
tier
and the middle tier. Update AutoConfig and Rapid Clone code to the latest code line
and
use Rapid Clone to clone your system. Full instructions are in Cloning Oracle
Applications Release 11i with Rapid Clone document 230672.1 on OracleMetalink.
[top]
11. Our Oracle Applications system is on Windows, which cloning method can we use?
Answer: If your system is on a release prior to 11.5.7 and is not AutoConfig
enabled, use
the method documented in the Cloning Oracle Applications Release 11i white paper.
If
your system is on any AutoConfig-enabled 11i release, use the method documented in
the
Cloning Oracle Applications Release 11i with Rapid Clone white paper.
[top]
[top]
13. Can I clone from one operating system version to another? Answer: Yes, if the
target system platform is binary compatible with the source system platform. For
example, if you have an existing single-node Oracle Applications system on Solaris
2.6,
you could clone it to a node running Solaris 8, but not to a node running HP-UX.
Note
that cloning from a higher version of a platform to a lower version is not
supported, for
example, from Solaris 8 to Solaris 2.6. Other examples of binary compatibility for
Oracle
Applications are:
o AIX 4.3.3 to AIX 5.1 (32-bit)
o HP-UX 11.0 to HP-UX 11i
o Windows NT to Windows 2000
Within a same platform you can also clone from a 32bit source system to a 64bit
target
system.
Note (AIX only): when cloning from AIX 32bit to AIX 64bit, apply patch 2896876
(64bit kernel extension for Oracle) on the target system prior to running
adcfgclone.pl.
[top]
14. Can I clone from one platform to a different platform? Answer: Yes, you can
clone
or migrate the Applications middle tier from any platform to Linux or any supported
Unix platform using the procedure described in document 238276.1 "Migrating to
Linux
with Oracle Applications Release 11i".
[top]
15. Can I reclone just the database? Answer: Yes, if the source system has changed
and
you want to update the target system with these changes, you can reclone just the
changed database. If Applications patches were applied to the source system, the
APPL_TOP and the database must be cloned to keep the file system and database
synchronized. See the Recloning section in the white papers for details
16. Can I clone a single-node system to a multi-node system? Answer: The Rapid
Clone cloning method allows for cloning a single-node system to a multi-node
system. See the Cloning Oracle Applications Release 11i with Rapid Clone white
paper for details.
[top]
17. Can I clone a multi-node system to a single-node system? Answer: You can use
Rapid Clone to merge multiple APPL_TOP and COMMON_TOP file systems into a
single APPL_TOP and COMMON_TOP file system. For more details about this
procedure, see "Section 3: Merging existing APPL_TOPs into a shared APPL_TOP" in
document 233428.1 on OracleMetaLink.
[top]
18. What cloning options are available for each cloning method? Answer: The table
below shows the cloning options that are currently available for each cloning
method.
Single node to Single node
Recloning
Multi-node to Multi-node
Single node to Multi-node
Multi-node to Single node
With Oracle9i Database
Windows Platform
Cloning Oracle Applications
19. Does Rapid Clone modify the source system? Answer: No, Rapid Clone does not
modify the source system. adpreclone.pl prepares the source system to be cloned by
collecting information about the database and creating generic templates of files
containing source specific hardcoded values. These templates are stored in the
appsutil/template directory leaving the original files untouched. This process
usually
takes a few minutes to complete the first time. Migrating to Autoconfig on the
database
node (pre-req to Rapid Clone), however, will update the RDBMS init.ora and network
listener files. See the instructions in the Autoconfig document 165195.1 (Section
4:
Migrating to AutoConfig on the Database Tier) on how to preserve customizations to
these files
20. How does adcfgclone.pl know the target system values? Answer: adcfgclone.pl
will prompt for the values required to create the new context file used to
configure the target system. A few values are calculated from the current target
system (hostname, user and group). The rest of the target specific values are
prompted for:
Prompt
Comment
database SID
Target database SID
domain name
Does the target system have more than one applications tier server node (y/n)?
Answer yes if the target system is part of a multi-nodes configuration. The tool
with then
prompt for the hostnames of: - concurrent processing node - administration node -
forms
server node - web server node
Is the target system APPL_TOP divided into multiple mount points (y/n)?
Answer yes if the target system APPL_TOP is divided across multiple mount points.
The
tool will then prompt for each auxiliary mount (4 mounts): - APPL_TOP mount point -
APPL_TOP aux.1 - APPL_TOP aux.2 - APPL_TOP aux.3 Note: if your APPL_TOP is
divided into 2 or 3 mounts only, you can specify identical mounts to the above
prompts.
APPL_TOP mount point
APPL_TOP directory
COMMON_TOP directory
COMMON_TOP directory
8.0.6 ORACLE_HOME directory
8.0.6 ORACLE_HOME directory
iAS ORACLE_HOME directory
iAS ORACLE_HOME directory
Location of JDK 1.3.1
Location of JDK 1.3.1
Prompt common to DB and Apps Tiers
23. Can I clone a clone? Answer: Yes, a cloned system created with Rapid Clone can
then be used as the Source System in the next cloning. RapidInstall itself is now a
clone
of a clone using the Rapid Clone technology.
[top]
24. Can I change the database dbf files layout while cloning? Answer: Yes, Rapid
Clone
allows to add or remove database mount points or redidtribute dbf files among mount
points in the target system. As long as all the source system dbf files are present
in the
target system database mount points specified during the adcfgclone prompts (see
question "How does adcfgclone.pl know the target system values?"), Rapid Clone will
find them and re-create the database control file accordingly.
[top]
25. What is the oraInventory? Answer: The oraInventory is the location for the OUI
(Oracle Universal Installer)'s bookkeeping. The inventory stores information about:
o All Oracle software products installed in all ORACLE_HOMES on a machine
o 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. On
Unix/Linux, the location of the oraInventory is defined by the content of
oraInst.loc, at: - /var/opt/oracle/oraInst.loc on Solaris, HP-UX and Tru64 -
/etc/oraInst.loc on Linux and AIX On Windows, the location of the oraInventory is
defined by the value of the registry key HKEY_LOCAL_MACHINE|
Software\Oracle\INST_LOC or if this value is not defined, at C:\Program
Files\Oracle\Inventory
[top]
26. What is a binary oraInventory? Is my Inventory binary? Answer: Before OUI 2.X,
the
oraInventory was binary. A binary oraInventory centralizes, in a binary format, the
location of every Oracle products on the machine and the detail of their patch
level. The
o you are on 11.5.7 or earlier (11.5.8+ install XML inventory out of the box)
o you have never installed OUI 2.X or higher (Install converts the inventory to
XML)
o you have never run Rapid Clone (Rapid Clone converts the inventory to XML)
If the following file exists, the oraInventory is NOT binary: <oraInventory
location as
pointed by oraInst.loc>/ContentsXML/inventory.xml [top]
27. What is a XML oraInventory? Is my Inventory XML? Answer: Starting with OUI 2.X
and 11.5.8, the information in the inventory is stored in Extensible Markup
Language
(XML) format. The XML format allows for easier diagnosis of problems and faster
loading of data Rapid Clone requires the inventory to be in XML format in order to
clone
it, and will take care of performing the binary to XML convertion if necessary.
Unlike the
binary oraInventory, The XML inventory is divided into 2 distinct components:
o The Global inventory (or Central inventory)
o The Local inventory (or Home inventory)
More information about these components is available under other questions in this
FAQ
The inventory is XML if the following file exists:
$ORACLE_HOME/inventory/ContentXML/comps.xml [top]
28. What is the Global (or Central) Inventory? Answer: The Global Inventory is the
part of the XML inventory that contains the high level list of all oracle products
installed on a machine. There should therefore be only one per machine. Its
location is defined by the content of oraInst.loc. The Global Inventory records the
physical location of Oracle
products installed on the machine, such as ORACLE_HOMES (RDBMS and IAS) or
JRE. It does not have any information about the detail of patches applied to each
ORACLE_HOMEs. The Global Inventory gets updated every time you install or de-
install an ORACLE_HOME on the machine, be it through OUI Installer, Rapid Install,
or
Rapid Clone. 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.
29. What is the Local (or Home) Inventory? Answer: 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.
[top]
30. How does Rapid Clone deal with the oraInventory? Answer: Rapid Clone requires
OUI 2.2 to be installed in the ORACLE_HOME as a prerequisite and will performs all
the actions necessary to clone the inventory:
o Converts the Global inventory to xml format when it was binary on either the
source
31. Why don't I need to manually copy the oraInventory when cloning? Answer: The
local inventory is automatically copied from the source system to the target system
as
part of copying the ORACLE_HOME itself. The Global Inventory is machine specifc
and therefore should not be copied. If you are cloning from one machine to a
different
machine, Rapid Clone will simply register the target ORACLE_HOME in the target
machine Global Inventory (This action will automatically create the Global
Inventory if it
did not exist on that machine).
[top]
32. What does OUISetup.pl do? Answer: OUISetup.pl is shipped with the OUI patch,
listed as a prerequisit to Rapid Clone (see Metalink Node 230672.1). It should be
run as
part of the OUI patch installation and will perform the following tasks:
of sync between the Global and Local Inventory - Duplicate Home Names entries -
Duplicate Home Path entries
[top]
* Below script are from metalink and oracle reserved the copyrights. These scripts
are
mentioned here for information only
For Apps DBA the good place to serach for script is with in their installation of
11i. The
path is $FND_TOP/sql (Usually on Concurrent Manager Node). The following SQL
scripts located under $FND_TOP/sql are useful when diagnosing concurrent manager
problems:
afcmcreq.sql Prints the log file name of the manager that processed the request
afrqstat.sql Summary of completed concurrent requests grouped by completion status
and
execution type. It requires number of days prior to today on which to report
parameter.
afimlock.sql Lists locks that the ICM is waiting to get
afcmrrq.sql Lists managers that currently are running a request
APPLSYS schema contains shared APPS foundation objects like FND,AD,WF related
data like tables and Indexes.
APPS is the runtime user for E-Business Suite. Owns all the applications code in
the
database. APPS Schema Contains Synonyms to the objects of All Products (AP,AR, GL
etc ) and 11i Code (Triggers, views, packages, procedures, functions) but the owner
of all
GL tables is GL user , AP tables is AP , and AR tables is AR Schema.
Why should Apps & Applsys passwords always be the same?
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.
1Since 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
md5sum_myStage.txt &
Metalink Note Id : 316843.1
Q:What scripts can be used to complie apps schema , which one is used in adadmin
compile apps schema ?
ANS :
adadmin in-turn calls the procedure UTL_RECOMP.RECOMP_PARALLEL
which might be in-turn issues the following commands based on the object types
if object is package body
alter package <package_name> compile ;
alter package <packae_ame> compile body;
alter view <view_name> compile;
$AD_TOP/sql/adcompsc.pls
installed 10g AS & port number is port you selected at install time defualt7777 ,
though
you can change these hostname & port number to your desired value
The location for looking for dis4pr is $ORACLE_HOME/diswb4/bin
where ORACLE_HOME -> 8.0.6. Oracle Home
Q: I have created EUL using Discoverer 10g Administrator, but my server side is
running 9i AS can I still use Discoverer Plus/Viewer to show reports based on 10g
EUL?
Ans : Your Discoverer Desktop Admin version is 10g and EUL on server is 9i. As soon
as you try to connect to 9i Server it will display message that You are using old
version of
EUL kindly upgrade & it will upgrade EUL on server to 10g
4simply set the Security Settings to low, and hit the button labeled "Reset" then
"Yes" then
"Ok." Once the install is complete, you may set your security settings back to what
they
were originally.
Replace short name by name of Oracle Apps Minipack for which you want to find out
Patch level . ex.
AD - for Applications DBA
GL - for General Ledger
PO - Purchase Order
Another method can be using the patchsets.sh utility which can be downloaded from
Metalink.
Provide an introduction to AutoConfig. How does AutoConfig know which value
from the XML file needs to be put in which file?
AutoConfig uses a context file to maintain key configuration files. A context file
is an
XML file in the $APPL_TOP/admin directory and is the centralized repository.
When you run AutoConfig it reads the XML files and creates all the AutoConfig
managed configuration files.
For each configuration file maintained by AutoConfig, there exists a template file
which
determines which values to pick from the XML file.
Location of Autoconfig Script ( ADAUTOCFG.sh)
COMMON_TOP/admin/scripts/<CONTEXT_NAME>
Autoconfig can also be run in test mode with following script which will not update
anything in the system (ADCHKCFG.sh)
Location on Application Tier
<AD_TOP>/bin
Location on Database Tier
ORACLE_HOME>/appsutil/bin
The AutoConfig test mode script produces a configuration report that shows the
changes
the AutoConfig script would have made. The configuration report, cfgcheck.html, is
written to <APPL_TOP>/admin/<CONTEXT_NAME>/out/<MMDDhhmm> for the application tier,
and for the database tier in
<RDBMS_ORACLE_HOME>/appsutil/out/<CONTEXT_NAME>/<MMDDhhmm>.
MMDDhhmm stands for the month, day, hour, and minute of the AutoConfig test mode
script session.
A brief about snapshots ?
There are two types of snapshots: APPL_TOP snapshots and global snapshots. An
APPL_TOP snapshot lists patches and versions of files in the APPL_TOP. A global
snapshot lists patches and latest versions of files in the entire Applications
system (that is,
across all APPL_TOPs). Both APPL_TOP snapshots and global snapshots may be either
current view snapshots or named view snapshots. A current view snapshot is created
once
and updated when appropriate to maintain a consistent view. A named view snapshot
is a
copy of the current view snapshot at a particular time (not necessarily the latest
current
view snapshot) and is not updated. Patch Wizard uses the information contained in
the
global current view snapshot to determine which patches have already been applied.
AutoPatch uses the APPL_TOP current view snapshot to determine if all prerequisite
7patches have been applied to that APPL_TOP. Snapshot information is stored in the
AD_SNAPSHOTS, AD_SNAPSHOT_FILES, and AD_SNAPSHOT_BUGFIXES tables.
Can you tell me a few tests you will do to troubleshoot self-service login
problems?
Which profile options and files will you check?
Check guest user/password in the DBC file, profile option guest user/password, the
DB.
Check whether apache/jserv is up. Run IsItWorking, FND_WEB.PING, aoljtest, etc.
What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME and
LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at the FND_NODES
table. Look at the FNDFS_ entry in tnsnames.ora.
How will you change the location of concurrent manager log and output files?
The location of log files is determined by parameter $APPLCSF/$APPLLOG and that of
Trace his session (with waits) and use tkprof to analyze the trace file.
Take a statspack report and analyze it.
O/s monitoring using top/iostat/sar/vmstat.
Check for any network bottleneck by using basic tests like ping results.
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.
What is adovars.env file ?
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
iscalled
from the main applications environment file.
How to find the wordsize (32-bit or 64-bit) of Oracle Database
If you have access to an Oracle database which is installed on a 64-bit OS, how
can you
identify whether Oracle is 32 bit or 64 bit ?
12
stateful=STATELESS_RESET
COMN_TOP will contain files & directories which will be used commonly by all
components ( Isn't this simple to understand )
Similarly IAS_TOP is top files/directory under ORA_TOP/iAS I hope it might be clear
to
you now if not donot worry it will be more clear once you start working as Apps DBA
I am attaching few screenshot of other mount points ( Courtsey oracle 11i concepts
guide
, below is location if you want to read .
http://download-uk.oracle.com/
docs/cd/B25516_08/current/
account and log in as the oracle user to run Rapid Install. The account should be
created
with a default shell that is compatible with the Bourne shell.
Multi-user UNIX installations
In order to prepare for a multi-user installation, you must first create an oracle
user
account and an applmgr user account. Both should be created with a default shell
that
is compatible with a Bourne shell. Log in as root to run Rapid Install. Then
specify the
oracle user as the Oracle OS user and the applmgr user as the Apps OS user.
The oracle user is the account that owns the database tier technology stack (9.2.0
ORACLE_HOME) and the database files. The default name for the oracle user is
ora<SID>. For example, for a production (PROD) environment, the default Oracle OS
username might be oraprod.
The applmgr user is the account that owns the application tier technology stack
(APPL_TOP, COMMON_TOP, 8.0.6 ORACLE_HOME, and the iAS ORACLE
HOME). The default name is appl<SID>. For example, for a Vision Demonstration (VIS)
environment, the default Apps OS username might be applvis.
For a multi-user install, you must install both the database server and one or more
application tier servers on the same node. On such nodes, you can assign one user
account to be the owner of the database tier file system, and another to be the
owner of
the application tier file system. If you are installing a system where the database
server is
on one node and all the application tier servers are on one or more separate nodes,
then
essentially you will perform a single-user installation on each node.
Q. Where would i find .rf9 file, and what exactly it dose?
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 files
try to access forms , f60webmx picks up this file and based on this configuration
file
creates a
forms session to user/client.
Sometimes also present in $FNS_TOP/Resource directory
Q. What is multi node system ?
27
Multi Node System in Oracle Applications 11i means you have Applications 11i
Component on
more than one system. Typical example is Database, Concurrent Manager on one
machine and
forms, Web Server on second machine is example of Two Node System.
Q. Explain steps used in cloning oracle Apps 11i Instance at broad level.
Another important & useful utility under AD_TOP which you and me as apps dba
perform quite
often i.e. Cloning 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 VISIONTST and you want to create similar instance
( including
same
patches & user data) like VISIONPRD then you will use adclone utility (Also called
as
Rapid
Clone these days). In this case source Instance will be VISIONTST and target
Instance
will be
VISIONPRD. 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 DAB 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.
Q. Does rapid clone takes care of Updating Global oraInventory or you have to
register
manually in Global OraInventory after clone ?
Rapid Clone will automatically Update Global oraInventory during configuration
phase.
You don't
have to do any thing manually for Global oraInventory.
Location of Global OraInventory on SUN Solaris is : /var/opt/oracle>
Q. What is .dbc file , where its stored , whats use of .dbc file ?
dbc as name says is database connect descriptor file which stores database
connection
information used by application tier to connect to database. This file is in
directory
$FND_TOP/secure also called as FND_SECURE
Q. Whats things you do to reduce patch timing ? You can take advantage of following
-
Merging patches via admrgpch
Use various adpatch options like nocompiledb or nocompilejsp
Use defaults file
Staged APPL_TOP during upgrades
Increase batch size (Might result into negative )
Q. How you put Applications 11i in Maintenance mode ?
29
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.
Also you can use the script $AD_TOP/patch/115/sql/ adsetmmd.sql
Q. What are various options available with adpatch ?
Various options available with adpatch depending on your AD version are
autoconfig, check_exclusive, checkfile, compiledb, compilejsp, copyportion,
databaseprtion,
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...
Q. Whats is JVM(Java Virtual Machine) and which component uses JVM ?
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)
ApJServGroup OACoreGroup
ApJServGroup DiscoGroup
ApJServGroup FormsGroup
ApJServGroup XmlSvcsGrp
Q: Where to find Apps 11i JVM logs ?
JVM log location is defined in java.sh ( found in
$IAS_ORACLE_HOME/Apache/Apache/bin)
Oracle Apps 11i JVM log file directory is defined by parameter JVMLOGDIR (
$IAS_ORACLE_HOME/Apache/Jserv/logs/jvm ) and log file are defined by
STDOUTLOG &
STDERRLOG. Example of JVM log files are
There are some tools available like jvmstst, jconsole .. but I never tried so wait
till I
configure one
for my system. For monitoring via jconsole I read wonderful note on my favorite
blogger's (Steven
Chan) site http://blogs.oracle.com/schan/2006/08/14#a565
Q.Sizing Apps JVM
As by now you might be aware that there are four JVM Groups,
OACoreGroup,DiscoGroup,
FormsGroup & XMLsvcsGrp ( FromsGroup JVM's disabled by defualt as forms run on
Socket
rather servlets) so thumb rule in Apps is
1 JVM with default settings per 100 Users for OACoreGroup
so if you have 1000 users with five middle tiers you can configure 2 JVM on each
middle
tier i.e.
2X5X100=1000 Users.
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
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 ?
34
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
If this file is not there , look for any configuration file under APPL_TOP if
system is
Autoconfig
Clone is part of Rapid Install Product whose Family Pack Name is ADX. By default
all
Apps 11i
Instances 11.5.9 and above are Autoconfig & Rapid Clone enabled.
Q. Whats is difference between two env files in <CONTEXT>.env and
APPS<CONTEXT>.env under $APPL_TOP ?
APPS<CONTEXT>.env is main environment file which in turn calls other environment
files like
<CONTEXT>.env under $APPL_TOP, <CONTEXT>.env under 806 ORACLE_HOME
and
(Status Code 302 means page redirected , 404 page not found, 500+ Internal Server
error)
last digit 4117 in above entry of access_log means file size which is 4117 bytes.
This file
is quite
useful in monitoring your Web Server.
Please note above format might defer on your system as this is dependent log_format
in
Apache
to file. This database/plssql cache is usually of type session & plsql cache
a) session cache is used to store session information.
b)plsql cache is used to store plsql cache i.e. used by mod_pls
Q. Where is database/plssql cache stored ?
plssql & session cache are stored under $IAS_ORACLE_HOME/
Apache/modplsql/cache
directory.
(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
node running long running , resource intensive requests while other processing your
day
to day
short running requets.
Another scenario is when your requests are very critical and you want high
resilience for
your
Concurrent Processing Node , you can configure PCP. So if node1 goes down you still
have CM
node available processing your requests.
Q. Output & Logfiles for requests executed on source Instance not working on cloned
Instance?
Here is exact problem description - You cloned an Oracle Apps Instance from
PRODBOX to
another box with Instance name say CLONEBOX on 1st of August. You can view any
CM
logs/output files after 1st of August only becuase these all are generated on
CLONEBOX
itself,
But unable to view the logs/output files which are prior to 1st August. What will
you do
& where to
check ?
Log , Output file path & location is stored in table FND_CONCURRENT_REQUESTS.
Check
select logfile_name, logfile_node_name, outfile_name, outfile_node_name from
managers down , it checks & try to restart them. You can say it as administrator to
other
concurrent managers. It has other tasks as well.
Standard Manager These are normal managers which control/action on the requests &
does
Oracle 11i.
FNDSM � FND Service Manager is a concurrent manager in GSM, and serves requests
like CM�s
Use : ps �ef | grep APPS_
Q. How to start Apps listener ?
In Oracle 11i, you have script adalnctl.sh which will start your apps listener. You
can also
start it
by command
forms connection.
This file is located in $FND_TOP/admin/template/appsweb.cfg
39Q. What is forms server executable Name ?
f60srvm
Q. What are different modes of forms in which you can start Forms Server and which
one
is default ?
You can start forms server in SOCKET or SERVLET by defualt Forms are configured to
start in
socket mode
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle
Tier) and One
in Database Tier.
ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This is
used by
forms, reports & discoverer. ORACLE_HOME should point to this ORACLE_HOME
while
password link else you can reset sysadmin password via FNDCPASS
Example:
Q. If you have done two node Installation, First machine : Database and concurrent
processing server. 2nd machine: form,web Which machine have admin server/node?
Admin Server will be on First machine with concurrent processing server. More on
Admin Server
coming soon..
Q. Whats is TWO_TASK in Oracle Database ?
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
Q. What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
Q. Where GWYUID defined & what is its used in Oracle Applications ?
GWYUID is defined in dbc i.e. Database Connect Descriptor file . It is used to
connect to
database by thin clients.
Q. What is difference between GUEST_USER_PWD (GUEST/ORACLE) & GWYUID ?
GUEST_USER_PWD(Guest/Oracle) is used by JDBC Thin Client where as GWYUID is
used by
Thick Clients like via Forms Connections.
Q. How to check number of forms users at any time ?
Forms Connections initiate f60webmx connections so you can use
ps -ef | grep f60webmx | wc -l
Q. What is FNDLOAD and what it is used for ?
41
FNDLOAD is a concurrent program that can move Oracle Applications data between
database
and text file. FNDLOAD can download data from an application entity into an
editable
text file,
which can be uploaded to another database. Conversion between database format and
text
file
format is specified by a configuration file. But i could not find anything
regarding
upload/download
of an Oracle Alert. So, my conclusion was that i must be possible to use FNDLOAD to
transfer
Alerts, but that there is no configuration file provided by Oracle. I had to create
a
configuration
file myself.
We use ldt loader data files for loading.
Oracle currently supports the migration of the following types of data using
FNDLOAD
Printers / Print queues / Executables Printers / Print queues / Executables.
Roles / Responsibilities / Forms Roles / Responsibilities / Forms.
Menus / Users / Request Sets Menus / Users / Request Sets.
Request Groups / Request Queues Request Groups / Request Queues.
Work shifts / Programs / Libraries Work shifts / Programs / Libraries.
Attachments / Help Files Attachments / Help Files.
Mime Types Mime Types.
Security Information.
Q. In a Multi Node Installation, How will you find which node is running what
Services ?
You can query for table FND_NODES and check for column , SUPPORT_CP ( for
Concurrent
Manager) SUPPORT_FORMS ( for forms server) , SUPPPORT_WEB (Web Server),
pick. ?
When client makes a forms connection in Oracle Applications, forms client session
uses
configuration file defined by environment variable FORMS60_WEB_CONFIG_FILE
also called as
appsweb config file. These days this file is of format appsweb_$CONTEXT.cfg The
initiator
Q. While applying Apps patch using adpatch, if you want to hide the apps password,
how
will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password
by Jserv in Apache . There will be additional JVM for Forms Request in that case
and
you won't
start form via adfrmctl.sh.
Q. What is make program in Unix ?
Q. When you apply C driver patch does it require database to be Up & Why ?
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.
Q. Can C driver in apps patch create Invalid Object in database ?
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. What is dev60cgi & f60cgi ?
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
Q. Why does a worker fails in Oracle Apps Patch and few scenarios in which it
failed for
you ?
This question sounds stupid but this is asked quite often in Apps DBA Interview.
Apps
Patch
worker can fail in case 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...
Q. What is difference between mod_osso & mod_ose in Oracle HTTP Server ?
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
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.
Q. What is FNDSM ?
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.
Q. What is iAS Patch ?
iAS Patch are patches released to fix bugs associated with IAS_ORACLE_HOME (Web
Server
Component) Usually these are shiped as Shell scripts & you apply iAS patches by
executing
Shell script. Note that by default ORACLE_HOME is pointing to 8.0.6
ORACLE_HOME and if you
are applying iAS patch export ORACLE_HOME to iAS . You can do same by executing
environment file under $IAS_ORACLE_HOME
45
Database objects for the products like �BEN� & �FND� are stored in their own schema
like BEN or APPLSYS (for FND), GL for GL objects
Ques 4 Can Middle Tier & DB run on different versions of OS?
Yes, Middle Tier & DB can run on different versions of OS. This type of
configuration
are known as Split Configuration.
Ques 5 Can different Middle Tier�s have different flavours of OS?
Yes different Middle tier�s can run on different flavours of OS.
Ques 6 How do we verify the no. of CPU�s running on a node?
Proc (/proc) file system provides easy information about CPU and their speed.To
display
the number of processors in linux you need to use /proc/cpuinfo file. This is a
collection
of CPU and system architecture dependent items, for each supported architecture a
different list.Type the following command:
$ cat /proc/cpuinfo
Ques 7 How do i identify whether my environment is shared APPL_TOP or not?
To know whether the environment is shared APPL_TOP or not , login to first Middle
Tier
& create any file (like abc.txt) in the APPL_TOP. Now logout & login to other
Middle Tier. If you can see that respective file in APPL_TOP, this means you are
having shared APPL_TOP.
informative logs.
Q. How will you skip worker during patch ?
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).
46
Q. Which two tables created at start of Apps Patch & drops at end of Patch ?
FND_INSTALL_PROCESSES (Columns :CONTROL_CODE and STATUS ) &
AD_DEFERRED_JOBS are the tables that get updated while applying a patch mainly (d
or u )
unified driver
Q. How to compile an Oracle Reports and forms file ?
Utility adrepgen is used to compile Reports. Synatx is given below
adrepgen userid=apps\<psswd> source = $PRODUCT_TOP\srw\filename.rdf
dest=$PRODUCT_TOP\srw\filename.rdf stype=rdffile dtype=rdffile logfile=x.log
overwrite=yes
batch=yes dunit=character
Utility f60gen is used to compile Forms. Synatx is given below
f60gen module=<source form name> userid=APPS/<APPS password>
output_file=<executable form name>
EG : For Instance I want to generate sale order forms in ONT schema using f60gen
syntax would be like
OEXOEORD.fmb form:
$cd $AU_TOP/forms/US
$f60gen module= OEXOEORD.fmb module_type=form \
output_file=$ONT_TOP/forms/US/OEXOEORD.fmx userid=APPS/APPS
module_type=form batch=yes compile_all=yes
Q. What is difference between AD_BUGS & AD_APPLID_PATCHES ?
- AD_BUGS: holds information about the various Oracle Applications bugs whose fixes
have been
currently installed Oracle Applications patchsets and Family Packs. The program
compares the
currently installed patchsets and family packs to the most recently available ones
generated by
Oracle Development. This program utilizes the the applptch.txt file for 10.7-11.0.
For 11i
and R12,
it utilizes a combination of tables such as AD_BUGS and AD_APPLIED_PATCHES to
create the
installed patch list. If the 11i release does not use these AD tables (11.5.4 or
lower and
have not
applied 11i.AD.E or higher) it still supports using applptch.txt for 11i.
- adutconf.sql: This script provides a wealth of information, including the
following:
Product Group(s)
Multi-Org status
Multi-lingual status
Installed product status
47
Registered schemas
Installed languages
Q. What exactly happens when you put an Oracle Apps instance in maintenance mode ?
Maintenance mode provides a clear separation between normal runtime operation of
Oracle
Applications and system downtime for maintenance. Enabling the maintenance mode
feature
a) Shuts down the Workflow Business Events System and
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
Enter "f60gen" on Forms Server and check for first line in output like
Forms 6.0 (Form Compiler) Version 6.0.8.26.0 (Production)
This confirms that you are on forms server version 6.0.8.26.0 and patch set 17.
( Patch
Set =
Fourth Digit - 9)
Q: How to find Jinitiator Version ?
Check for file like appsweb_SID_HOSTNAME.cfg under $OA_HTML/bin defined by
environment
variable FORMS60_WEB_CONFIG_FILE & search for entry like jinit_ver_name , you
will see
entry like
jinit_ver_name=Version=1,3,1,23
which means Jinitiator version is 1.3.1.23 ; if your version is 1.3.1.18 you will
see entry
like
1,3,1,18
for ex. inorder to to find file version of one AR form i.e. ARXGLCOR.fmx
adident Header ARXGLCOR.fmx
cat /etc/*release*
You will see output like
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
Which means you are on Solaris 5.8 or Linux AS 3 resp.
Q: How to find if your Operating System is 32 bit or 64 Bit ?
For solaris use command
isainfo -v
to use.
If the web page displays "1.1.2.0", then you do not need to upgrade your OJSP. If,
however, it
displays anything else, such as "1.0.0.6.1", then you are using an older version of
OJSP,
and you
must upgrade your OJSP, following the directions in the MetaLink Note indicated
above.
Q: How to find opatch Version ?
opatch is utility to apply database patch , In order to find opatch version execute
"$ORACLE_HOME/OPatch/opatch version"
You should see output like OPatch Version: 1.0.0.0.52 which means your opatch
version
is
1.0.0.0.52
How can you know that how many modules are already implemented in this
instance?
Suppose your database size is 2000GB now you want to clone a particular one
datafile or tablespace. Plz tell how co clone a datafile or tablespace?
You can import /export tablespace/datafile but can't clone (Check on this again )
How frequent v have to run Gather Schema Statistics Prog?
and Actually wat happens when U run tht Prog?
When ever you have bulk amount of data loaded into the Database, then you have to
gather
schema statistics I think when ever want a snapshot of the presents schemas then u
need
to
run adadmin for gathering statistics of schema and after runnuning this program it
maintains
1) shut (for normal shutdown) --- It will wait until all the users to logout from
database. 2) shut transactional --- It will wait until all the transactions to be
complete by a commit or
rollback.
3) shut immediate--- It will rollforward the commited data and rollback the
uncommited
data.
4) shut abort--- It will not check for users,trancations etc.. just it will aborted
from
database
by shutting down the instance.
A database is running in NOARCHIVELOG mode which type of backups you can take? In
no archive log mode, you have to take cold backup only...means..your database
should be down and
take backup....
For this, you can right shell script in order
(a) shutdown the database
(b) copy all the files
(c) startup the database......
Which users logged in to the system longer than 6 months ago ?
select a.user_id,a.user_name,b.user_id,b.start_time
from FND_USER a, FND_LOGINS b
where a.user_id = b.user_id
and b.start_time = (select max(start_time) from FND_LOGINS where user_id =
b.user_id)
and START_TIME < SYSDATE - 180;
To see how many distint users are connected to my system,at particular time ?
select distinct fu.user_name User_Name,fr.RESPONSIBILITY_KEY
Responsibility,fu.LAST_LOGON_DATE from fnd_user fu,
ic.disabled_flag='N' AND
ic.responsibility_id is not null AND
ic.last_connect like sysdate;
Who uses the OBT_AA schema in Apps ?
OBT_AA is used by ILM (Inventory Management) product. Only objects inside this
schema are db
links, functions, packages, procedures and synonyms. No tables in this one.
DATABASE LINK
FUNCTION
PACKAGE
PACKAGE BODY
PROCEDURE
SYNONYM
VIEW
What is Bolton: AventX: ?
53
AventX is a fax and email solution for E-Business Suite from STR software. It works
with other
ERPs like SAP R/3 via its ERP connectors. Users in a Unix-based environment,
including AIX,
HP-UX, Intel Linux, Solaris and Tru64, can send information directly from various
host
ERP
applications.
Schemas created by AventX are called: sf and sfgy
SF = STR Software Fax Commander
SFGY= STR Software Fax Commander Gateway
Fax Commander was the original name of the AventX product and internally you will
find a lot of
names with SF and SFC.
where table_name=�WF_LOCAL_ROLES�;
2)How to Correct Session Cookie Name.
a)select session_cookie_name from icx_parameters;
b)update icx_parameters set session_cookie_name = �<hostname_sid>�;
c)select session_cookie_name from icx_parameters;
55
3) How to find database SID from a Concurrent request.
10) How to find out which request is handle by which concurrent queue.
a) First find out short_name of a program and then pass it as parameter to below
query.
b) The below query will give you output
I - Included - Included in new concurrent queue
E - excluded from Standard Manager
This way you know now this running program (concurrent request) is handled by new
manager and not part of standard manager.
57
General Information Q: How often should customers apply minipacks, family packs,
and
maintenance packs? A: You should keep your maintenance level up to date in order
to:
� Receive the latest fixes.
� Reduce the number of file updates needed for emergency fixes.
� 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.10 is currently available, customers at the 11.5.8 (or earlier)
level
should be planning their upgrade to 11.5.10. 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. Top
Q: How do I know what patches or files have been applied to a system? What happened
to my applptch.txt? A: Prior to AD Minipack E, patch history was stored in a text
file
called applptch.txt in the $APPL_TOP/admin/<SID> directory. AutoPatch appended the
applptch.txt file with information about each patch applied. With AD Minipack E,
the
new Patch History feature stores all patch information in database tables. If the
information cannot be written to the database, it is stored in files in the file
system, and is
automatically loaded to the database the next time AutoPatch is run. In AD Minipack
E,
the temporary patch history file was named applptch.txt. In AD Minipack H (and
later),
there are two patch history files: javaupdates<timestamp>.txt to record patch
history
about changes to Java files, and adpsv<timestamp>.txt to record patch history about
changes to all non-Java files. The best way to review patch history information is
to use
the Applied Patches search pages provided by Oracle Applications Manager. The patch
history database feature allows you to query on patches or files applied and filter
by patch
number or file name, as well as date, product, APPL_TOP name, server type, or
language. See Oracle Applications Maintenance Utilities for more information. Top
Q: How can I find the latest available minipack, family pack, or maintenance pack?
A:
On OracleMetaLink, click the Patches & Updates button on the left-hand side. Choose
the Quick Links to the Latest Patchsets, Mini Packs, and Maintenance Packs link to
get
either:
� A listing of the latest minipacks, family packs, or maintenance pack for the E-
Business
Suite, or
� A listing of the latest patchsets for Server/Tools products
A link at the top will allow you toggle between the two lists. Top
Q: Where can I find a list of AutoPatch features and the AD minipacks that
introduced
them? A: The Oracle Applications DBA 11i+ Features Matrix (OracleMetaLink ID:
210326.1) contains a list of major AD features in Release 11i and identifies which
AD
minipack introduced each feature. Top
Q: What is the AD Features matrix printed on the AutoPatch screen and logfiles? A:
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 table below is an example of the information
displayed
by AD Feature Versions in AD utility log files. The first four columns in the table
below
represent the name of the feature, whether or not the feature is enabled, the
version of the
feature in the APPL_TOP, and the version of the feature in the database.
Feature
Active?
The Flags Column values represent: - 1st flag: Is the feature enabled in the
APPL_TOP? -
2nd flag: Does the feature require an enabling file on the file system? - 3rd flag:
Does the
enabling file exist? - 4th flag: Does the feature depend on any database objects? -
5th
flag: Is the value of the 6th flag relevant? - 6th flag: Is the feature enabled in
the
database? This message is informational in nature only, the AD Feature Versions
framework is only used by AD internally and should not be modified unless under
explicit instructions from AD Development. Top
Q: What is a patch driver file? What is the difference between the c driver, d
driver, g
driver, and u driver? A: Patch driver files contain commands used by AutoPatch to
direct
the installation of a patch. There are four types of driver files, and a patch can
contain
more than one driver.
� Copy driver (c driver): Named c<patchnumber>.drv, and contains commands to change
Oracle Applications files. The commands include directives to copy/update files,
libraries, and/or Java, and commands for generating JAR files and/or C executables.
In a
multi-node system, run it on all application tier APPL_TOPs.
� Database driver (d driver): Named d<patchnumber>.drv, and 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, run it only on the application tier
APPL_TOP that implements the administration server.
� Generate driver (g driver): Named g<patchnumber>.drv, and contains commands to
generate forms, reports, and/or graphics files. In a multi-node system, run it on
all
application tier APPL_TOPs, unless the APPL_TOP only implements the administration
server.
These servers are also referred to as application tier servers. Likewise, 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 it 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 (information on using Oracle Applications Manager can be found
in the Oracle Applications Maintenance Utilities). Top
Q: What is the AutoPatch checkfile feature? A: This 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. Top
Q: Can I run multiple AutoPatch sessions at the same time? A: You cannot currently
run
multiple sessions simultaneously. However, patches can be merged and can be applied
in
a single patching session. A new AD feature called AD Concurrent Sessions is
currently
being tested. It uses a system of locks that will prevent incompatible actions from
executing at the same time, so compatible actions can be run in parallel. This will
allow
you to run multiple
AutoPatch sessions concurrently. Top
Q: What are the Oracle Applications patch types? A: All Applications patches are
organized by aggregation level.
� Stand-alone (one-off) Patch: Addresses a single fix or enhancement. Stand-alone
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 stand-alone 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 releasing a maintenance pack, Oracle also packages a new Rapid
Install at
each maintenance pack release level. So Applications Release 11.5.10 Rapid Install
contains the same applications code level that a customer would get if they applied
the
Release 11.5.10 Maintenance Pack on an earlier 11i release level. Note that the
technology stack could still be different since Rapid Install includes the latest
certified
technology stack, but the maintenance pack includes only Applications code.
Maintenance packs can be downloaded from OracleMetaLink or ordered as a CD Pack
from the Oracle Store.
Patches can also be organized by purpose.
� Diagnostic Patch: Used to gather additional information when a product failure
cannot
be reproduced by Oracle. The additional information will assist 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 the Maintenance Pack or the Rapid Install. Updates
in
the CU are predominantly error corrections
� Family Consolidated Upgrade Patch: All upgrade-related patches consolidated from
all
the products within a product family. Family consolidated upgrade patches are
released
as needed and are only available for upgrading to Release 11i from Release 10.7 or
11.0.
The Oracle Applications Release Notes lists the most recent patches.
� Documentation Patch: Updates online help. Top
Help Applying Patches Q: How can I shorten patch application time when applying
patches? A: There are several tips and tricks for shortening the time it takes to
apply
patches.
� Schedule periodic downtime for proactive maintenance. The more up-to-date your
system, the less likely you are to experience known problems, and the easier it is
to
resolve new issues. Whenever you can test and schedule downtime to apply the latest
maintenance or family packs, do so.
� Keep AD code up-to-date. Oracle has put tremendous effort in reducing downtime
and
improving the maintenance experience. Running at the latest AD minipack level
allows
you to take full advantage of these efforts.
� Keep your test system current with your production system (see Cloning Oracle
Applications Release 11i with Rapid Clone - OracleMetaLink ID 230672.1). As you
test
the application of a patch, it is imperative that the test be realistic in terms of
current
patch level and transaction data.
� Consolidate multiple patches into a single, merged patch with AD Merge Patch. AD
Merge Patch is a utility that merges multiple Oracle Applications patches into a
single
patch. Use it to apply more than one patch during a single downtime. AD Merge Patch
reduces patch application time by eliminating redundant patching tasks. All 11i
patches
can be merged. If you merge translation patches, AD Merge Patch performs necessary
character set conversion at merge time. If you merge patches containing both split
(c,d,g)
drivers and unified drivers, AD Merge Patch creates a single, unified driver for
the
merged patch allowing the merged patch to be successfully applied.
� Merge and apply US patches, then merge and apply translation patches. Although US
patches must be applied during system downtime, the translation patches can be
applied
during uptime, as long as users of the affected languages are not using the system.
See
Oracle Applications Maintenance Procedures for information on applying translation
patches.
� Employ sufficient space. This includes new tablespace for indexes created by the
patch.
For patches containing large numbers of files, you should also make sure there is
sufficient temporary space to contain the unzipped patch and files to be copied
into the
APPL_TOP.
� Use a shared application tier file system if you have multiple application tier
nodes. In a
shared application tier file system installation, the APPL_TOP, COMMON_TOP, and
application tier Oracle homes (8.0.6 and iAS) are installed onto a shared disk
resource
mounted to each node used in the Oracle Applications system. These nodes can be
used
to provide standard application tier services, such as forms, Web, and concurrent
processing. Refer to Sharing the Application Tier File System on OracleMetaLink
(Doc
ID: 233428.1) for more information.
� Use the Distributed AD feature to utilize additional hardware during maintenance.
AD
has always used a Parallel Jobs System, where multiple AD workers start and are
assigned jobs. Information for the Jobs System is stored in the database, and
workers
Q: How can I determine the effects a patch will have on my system? A: You can
submit a
specific patch impact analysis request through the Patch Wizard in the Oracle
Applications Manager (OAM) 2.2 and later to determine the impact of a patch on your
system. The Patch Impact Analysis feature of Patch Wizard provides reports on:
� The total number of files in the patch
� The number of files the patch will install
� The products that will have updated files
� The files that will be introduced by the patch
� The files on the target system that will be changed by the patch
� The files with dependencies on patched files
See Oracle Applications Maintenance Utilities for additional information. Top
Q: What happens if I run a driver on the wrong application tier server? A: Because
AutoPatch applies only the necessary actions for each type of application tier
server, any
driver can be applied to any APPL_TOP on any node. However, the sequence is
important. Patches without unified drivers must have the drivers applied in the
following
order: copy driver, database driver, and generate driver. Top
Q: What are AutoPatch restart files? A: Restart files store information about
completed
processing in the event of a patch or system failure. They allow AutoPatch,
AutoUpgrade, 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. The restart files reside in $APPL_TOP/admin/<SID>/restart (UNIX)
or
in %APPL_TOP%\admin\<SID>\restart (Windows). Top
Q: If I am applying a patch and it fails, should I simply rerun it from the
beginning after
fixing the issue? A: If a patch driver fails, fix the issue and restart AutoPatch.
AutoPatch
will allow you to continue where the patch left off. Rerunning the patch from the
beginning may result in a patch being applied incorrectly. Top
Q: What should I do when the Oracle Applications AutoPatch Prerequisite Checking
Feature fails? A: There are various issues that could cause a failure in the
AutoPatch
Prerequisite Checking Feature. Please refer to OracleMetaLink Note 233040.1 Top
Q: If a worker fails when AutoPatch is running, what should I do?
A: When a worker fails its job, the AD utility running the worker will take one of
several
possible actions:
� Defer the job to the end of the list of jobs to run and assign the worker another
job
� Set the worker status to Failed and continue to run jobs in other workers
� If all other workers are in failed or waiting state, wait for user input
(interactive mode)
or exit (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. Top
Questions
1. What is a "shared APPL_TOP"?
9. How can I implement a shared application tier file system during an Oracle
Applications installation?
10. How can I migrate my existing Oracle Applications system to a shared
application
tier file system?
11. When migrating my existing Oracle Applications system to a shared application
tier
file sytsem, I had to rename the Oracle Applications Context file. Will I still
need the
original file and its associated context directories/files?
Questions and Answers
1. What is a "Shared APPL_TOP"?
installed on a shared disk resource mounted to each node in the system. These nodes
can
be used to provide standard application tier services, such as Forms,
Web, and Concurrent processing. Any changes made in the shared application tier
file
system are immediately visible on all nodes.
[top]
7. Are there any restrictions on the type of shared disk resources that can be used
for
sharing an application tier file system?
Answer: No, your shared application tier file system can reside on any type of
shared disk
resource. Examples of shared disk resources include an NFS mounted disk or a disk
array. The shared disk resource does not have to be local to the machine, and it
can also
be a standalone disk array. Usual tuning considerations apply.
[top]
8. Can I merge APPL_TOPs?
Answer: Yes, you can merge APPL_TOPs that are spread across multiple nodes. Follow
the instructions described in the OracleMetaLink document 233428.1.
[top]
9. How can I implement a shared application tier file system during an Oracle
Applications installation?
Answer: You must use the Rapid Install 11.5.10 or higher. Refer to Installing
Oracle
Applications for more information.
Answer: The following files/directories can be removed after you back them up:
o The original Context File <AD_TOP>/admin/<SID>.xml
o The file <APPL_TOP>/APPSORA.env>
o The directory <COMMON_TOP>/admin/scripts/<SID>
o The directory <COMMON_TOP>/admin/install/<SID>
[top]
Questions and Answers
Overview and Terminology
1. What is AutoConfig?
Answer: AutoConfig is a configuration tool that automates the configuration of an
Oracle
Applications system. The information required for configuring an Applications
system is
collected into a repository, called the Applications Context; there is one
Applications
Context for each application tier, and one for the database tier. When AutoConfig
runs, it
uses information from the Applications Context file to generate all configuration
files and
update database profiles. Refer to Metalink Note 165195.1 for details on
installing, using
and updating AutoConfig. The Oracle Applications Maintenance Procedures and the
Oracle Applications Maintenance Utilities provide further information on how to use
AutoConfig in the context of maintaining your system.
[top]
2. What is the difference between the application tier and the database tier?
Answer: Before we can answer that, let's define a few terms in the context of the
Release
11i architecture:
o A node or machine is a computer.
o A server is a collection of one or more computer processes that perform a
specific
function.
The primary location of the files used by the application tier servers is the
APPL_TOP, whereas the primary location of the files used by the database server is
the Oracle8i or Oracle9i ORACLE_HOME.
For more information about the Release 11i architecture, refer to Oracle
Applications
Concepts, Release 11i.
[top]
3. How can I identify the application tier and the database tier in a multi-node
system?
Answer: A node can contain one or more servers, and can therefore belong to one or
more tiers.
In a single node system, that node belongs to both the application tier and the
database
tier, since all servers are contained on that single node.
In a multi-node system, each node contains one or more servers, and therefore
belongs to
one or both tiers. If the node contains any of the application tier servers,
including the
web server, forms server, concurrent processing server, or administration server,
which
means that there is an APPL_TOP on the node, then the node belongs to the
application
tier, and is considered an application tier server node. If the node contains the
database
server, which means that there is an Oracle8i or Oracle9i ORACLE_HOME and the
Applications database instance on the node, then the node belongs to the database
tier,
and is considered a database server node.
Let's analyze a common configuration where the database server and the concurrent
processing server exist on one node (Node 1), and the other servers exist on a
second
node (Node 2). Since Node 1 contains both an application tier server (the
concurrent
processing server) and the database server, Node 1 belongs to both the database
tier and
the application tier. But since Node 2 contains only application tier servers, Node
2
belongs only to the application tier.
[top]
If the database server node contains only the database server and no other servers,
then
you would not apply an AutoConfig patch on that node.
Once all the application tier servers have been updated by the AutoConfig patch,
there is
a separate process for updating the database server, which is documented in
Metalink
Note 165195.1. This process consists of running the admkappsutil utility on one
(only
one) application tier, copying the generated appsutil.zip file to the database tier
and
unzipping the appsutil.zip file into the RDBMS ORACLE HOME.
Example 1: The system has two nodes. Node 1 = administration server, concurrent
processing server, database server Node 2 = forms server, web server
Since both nodes are application tier server nodes, the AutoConfig patches need to
be
applied to both nodes. Once the patches are applied, you have to update the
database
server Node1 by running the admkappsutil utility from the APPL_TOP on Node1,
copying the generated appsutil.zip to your RDBMS
ORACLE_HOME on Node1 and unzipping the appsutil.zip file into the RDBMS
ORACLE_HOME
Example 2: The system has two nodes. Node 1 = database server Node 2 =
administration
server, concurrent processing server, forms server, web server
Since Node 2 is the only application tier server node, the AutoConfig patch needs
only be
applied to Node 2. Once the patch is applied, you have to update the database
server
Node1 by running the admkappsutil utility from the APPL_TOP on Node2, copying the
generated appsutil.zip to your RDBMS ORACLE_HOME on Node1 and unzipping the
appsutil.zip file into the RDBMS ORACLE_HOME.
Example 3: The system has three nodes. Node 1 = database server Node 2 =
administration server, concurrent processing server Node 3 = forms server, web
server
Since Node 2 and Node 3 are application tier server nodes, the AutoConfig patch
needs to
be applied to Node 2 and Node3. Once the patches are applied, you have to update
the
database server Node1 by running the admkappsutil utility either from the APPL_TOP
on
Node1 or Node2 (it does not matter on which Node you run the admkappsutil utility),
copying the generated appsutil.zip to your RDBMS ORACLE_HOME on Node1 and
unzipping the appsutil.zip file into the RDBMS ORACLE_HOME.
Reference:
o Metalink Note 208738.1
[top]
adcfginfo.sh contextfile=<CONTEXT>
For products:
adcfginfo.sh contextfile=<CONTEXT> show=enabled
If adcfginfo.sh doesn't exist, look in any configuration file in your APPL_TOP. If
the file
header contains the following, AutoConfig has been run on your instance :
################################################################
## AutoConfig automatically generates this file. It will be read and # overwritten.
If you
were instructed to edit this file, or if you are not # able to use the settings
created by
AutoConfig, refer to Metalink # document 165195.1 for assistance.#
Release 11.5.1 - 11.5.6 (all tiers): Apply the latest AutoConfig consolidated patch
to
obtain the AutoConfig utility.
Release 11.5.7 and higher (application tier): AutoConfig is included in new
Applications
installations and in the associated maintenance packs.
Release 11.5.9 and higher (database tier): AutoConfig is included in new
Applications
installations and in the associated maintenance packs.
Note: If you upgrade from a maintenance pack version that does not include
AutoConfig
to a maintenance pack version that includes AutoConfig (for example you upgrade
from
11.5.3 to 11.5.10), you have to separately migrate to AutoConfig as part of the
pre-
upgrade process. Follow the instructions of the corresponding maintenance pack.
[top]
Applications Context
On the application tier: <APPL_TOP>/admin
On the database tier: <RDBMS ORACLE_HOME>/appsutil
10. What are the different AutoConfig scripts and what do they do?
Answer: The scripts are listed in the following table.
Note: .sh scripts are for UNIX users and .cmd scripts are for Windows users.
Scripts
Location
Description
adautocfg.sh
adautocfg.cmd
On the application tier: <COMMON_TOP>/admin/scripts/ <Context_name>
On the database tier: <RDBMS ORACLE_HOME>/appsutil/ scripts/ <Context_name>
A wrapper script that calls adconfig.sh/ adconfig.cmd. Instantiates template files
wspecific to the instance (takthe Applications Context). Uconfiguration files and
profi
adconfig.sh
adconfig.cmd
AutoConfig pre-requisites
11. Do I need to upgrade to Apache 1.3.12s?
Answer: If you are applying the AutoConfig patch to an instance created with a
Rapid
Install version lower than Release 11.5.5, upgrade to Apache 1.3.12s.
Refer to Metalink Document 161779.1 on OracleMetalink.
Note: Rapid Install for versions 11i7 and higher installs Oracle HTTP Server 1.3.19
from
iAS 1.0.2.2
[top]
14. I want to execute the adbldxml utility on a fresh RDBMS Oracle Home. How can I
build the Context file, when the database environment file is not present?
Answer: The adbldxml utility requires the following environment variables to be
set:
o ORACLE_HOME
o ORACLE_SID (LOCAL on Windows)
o TNS_ADMIN
Set the variables according to your instance. For example:
o On UNIX export ORACLE_SID=PROD
o On Windows set LOCAL=PROD
[top]
15. I was instructed to change the value of the context variables s_adperlprg and
s_perl5lib. How can I achieve that?
Answer: Apply the latest AutoConfig patch, then perform the following steps
depending
on your use case:
o You were instructed to use a certain perl version. You have perl and its
libraries
installed in the perl standard location for your os (e.g. /usr/lib/perl5 on Linux)
and perl is
in your PATH:
1. unset PERL5LIB
2. perl $AD_TOP/bin/adconfig.pl
3. Source the environment file (APPS<Context_name>.env)
4. Review your Applications Context file; s_adperlprg and s_perl5lib will now point
to
your system perl location.
o You were instructed to use a certain perl version. You installed perl and its
libraries
into a custom - non perl standard location (e.g. perl is installed at
/u03/myperl/bin and the
perl libraries at /u03/myperl/lib).
?? export PERL5LIB
?? /u03/myperl/bin/perl $AD_TOP/bin/adconfig.pl
AutoConfig will update the context variables in the context file accordingly. After
the
AutoConfig run subsequent utilities and tools can use the context variables
s_adperlprg
and s_perl5lib.
[top]
Author � A.Kishore
http://appsdba.info
1All answers are my own or copied from other sites; I really appreciate if anybody
can
suggest a better answer
1)My cloning is completed successfully but my apps listener is not getting up??
What is
the problem ?
2)I am applying a patch , can I open another session and run adadmin ?
Yes, unless you are running a process where workers are involved
3)I am applying a patch , can I open another session in another node and run
adpatch?
(not distributed patching)?
No
4)When database is up, listener is up. Listener.ora and tnsnames.ora both are
configured
properly, still client is not being able to make a connection to the database. What
may be
the possible issues?
Check sqlnet.ora and see the client IP Address information is available
tcp.validnode_checking = yes
tcp.invited_nodes = (hostname1, hostname2)
5)How would take the forms trace?
http://www.appsdba.info/docs/oracle_apps/performance/PerformanceProblemswithform.
pdf
6) Can C driver be applied when database is down?
No, for any patch u are applied authentication is mandatory
7)If users complain they cant see the login page , how you will debug the issue?
Check whether apache is running (ps �ef |grep http), u can also apache log file
8)How you will troubleshoot if concurrent request is taking long time ?
9)If your applying a patch, it was started successfully and in the middle you
realize
nothing happening and no update in patch log file, worker log file (no updates & no
error
messages) � How to troubleshoot?
10)Is it possible to clone a database from hotbackup?
Author � A.Kishore
http://appsdba.info
2Yes
11)When your applying a patch in test mode, does it generate log file?
Yes, never tried though
12)If the user is experiencing performance issues then how you will find the cause?
13)Output & logfiles for requests executed on source instance not working on cloned
instance??
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.
Increasing the cache size within reason allows you to decrease the sleep cycle. In
turn,
your
managers will wake up and scroll through the tables less frequently, which reduces
the amount of work they have to do as well as the amount of system resources
utilized. We see
sleep cycles set to 5 seconds at some customer sites and recommend increasing the
value,
since the managers are waking up and re-reading the same table far too frequently.
For
reports that for the most part take a minimum of 1 minute to run, the queue wakes
up 12
times to check for runnable processes before even one running request completes.
15)If user complaining oracle applications 11i system is running slow , what things
you
will check at broad level ?
16)How do you determine if oracle database has corrupt blocks ?
17)Are the existing DB connections dropped if the DB listener is restarted ?
No, never tried though
18)How do you preserve customizations in a cloned Oracle apps environment?
19)If users are unable to see the output of their concurrent requests , what could
be the
reason?
Apps listener is not running
Author � A.Kishore
http://appsdba.info
320)Can you start the database from middle tier?
No
Copied from other website
* Below script are from metalink and oracle reserved the copyrights. These scripts
are
mentioned here for information only
For Apps DBA the good place to serach for script is with in their installation of
11i. The
path is $FND_TOP/sql (Usually on Concurrent Manager Node). The following SQL
scripts located under $FND_TOP/sql are useful when diagnosing concurrent manager
problems:
afcmcreq.sql Prints the log file name of the manager that processed the request
afrqstat.sql Summary of completed concurrent requests grouped by completion status
and
execution type. It requires number of days prior to today on which to report
parameter.
afimlock.sql Lists locks that the ICM is waiting to get
afcmrrq.sql Lists managers that currently are running a request
APPLSYS schema contains shared APPS foundation objects like FND,AD,WF related
data like tables and Indexes.
APPS is the runtime user for E-Business Suite. Owns all the applications code in
the
database. APPS Schema Contains Synonyms to the objects of All Products (AP,AR, GL
etc ) and 11i Code (Triggers, views, packages, procedures, functions) but the owner
of all
Author � A.Kishore
http://appsdba.info
4GL tables is GL user , AP tables is AP , and AR tables is AR Schema.
ANS :
adadmin in-turn calls the procedure UTL_RECOMP.RECOMP_PARALLEL
which might be in-turn issues the following commands based on the object types
if object is package body
alter package <package_name> compile ;
alter package <packae_ame> compile body;
alter view <view_name> compile;
$AD_TOP/sql/adcompsc.pls
Author � A.Kishore
http://appsdba.info
5Q : Why DB-CM-ADMIN are always insatlled on the same machine in Oracle
installed 10g AS & port number is port you selected at install time defualt7777 ,
though
you can change these hostname & port number to your desired value
Author � A.Kishore
http://appsdba.info
6The location for looking for dis4pr is $ORACLE_HOME/diswb4/bin
where ORACLE_HOME -> 8.0.6. Oracle Home
Q: I have created EUL using Discoverer 10g Administrator, but my server side is
running 9i AS can I still use Discoverer Plus/Viewer to show reports based on 10g
EUL?
Ans : Your Discoverer Desktop Admin version is 10g and EUL on server is 9i. As soon
as you try to connect to 9i Server it will display message that You are using old
version
of EUL kindly upgrade & it will upgrade EUL on server to 10g
Q: The Oracle Applications use Jinitiator. What is a "Jinitiator"?
Jinitiator for the PC is an Oracle implementation of Sun's JavaSoft Plug-In for
Solaris. It
is used for connectivity between a Windows based client and Oracle Applications
forms.
The Apple Macintosh "MRJ" is an Apple's MAC OS component
were originally.
Replace short name by name of Oracle Apps Minipack for which you want to find out
Patch level . ex.
AD - for Applications DBA
GL - for General Ledger
PO - Purchase Order
Another method can be using the patchsets.sh utility which can be downloaded from
Metalink.
Autoconfig can also be run in test mode with following script which will not update
anything in the system (ADCHKCFG.sh)
Author � A.Kishore
http://appsdba.info
10
Location on Application Tier
<AD_TOP>/bin
Location on Database Tier
ORACLE_HOME>/appsutil/bin
The AutoConfig test mode script produces a configuration report that shows the
changes
the AutoConfig script would have made. The configuration report, cfgcheck.html, is
written to <APPL_TOP>/admin/<CONTEXT_NAME>/out/<MMDDhhmm> for the application tier,
and for the database tier in
<RDBMS_ORACLE_HOME>/appsutil/out/<CONTEXT_NAME>/<MMDDhhmm>.
MMDDhhmm stands for the month, day, hour, and minute of the AutoConfig test mode
script session.
A brief about snapshots ?
There are two types of snapshots: APPL_TOP snapshots and global snapshots. An
APPL_TOP snapshot lists patches and versions of files in the APPL_TOP. A global
snapshot lists patches and latest versions of files in the entire Applications
system (that is,
across all APPL_TOPs). Both APPL_TOP snapshots and global snapshots may be either
current view snapshots or named view snapshots. A current view snapshot is created
once
and updated when appropriate to maintain a consistent view. A named view snapshot
is a
copy of the current view snapshot at a particular time (not necessarily the latest
current
view snapshot) and is not updated. Patch Wizard uses the information contained in
the
global current view snapshot to determine which patches have already been applied.
AutoPatch uses the APPL_TOP current view snapshot to determine if all prerequisite
patches have been applied to that APPL_TOP. Snapshot information is stored in the
AD_SNAPSHOTS, AD_SNAPSHOT_FILES, and AD_SNAPSHOT_BUGFIXES tables.
Can you tell me a few tests you will do to troubleshoot self-service login
problems?
Which profile options and files will you check?
Check guest user/password in the DBC file, profile option guest user/password, the
DB.
Check whether apache/jserv is up. Run IsItWorking, FND_WEB.PING, aoljtest, etc.
What could be wrong if you are unable to view concurrent manager log and output
files?
Author � A.Kishore
http://appsdba.info
11
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME
and LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at
Trace his session (with waits) and use tkprof to analyze the trace file.
Take a statspack report and analyze it.
O/s monitoring using top/iostat/sar/vmstat.
Check for any network bottleneck by using basic tests like ping results.
Provide the location of the DBC file and explain its significance and how
applications know the name of the DBC file.?
Location: $FND_TOP/secure directory.
Significance: Points to the DB server amongst other things.
Author � A.Kishore
http://appsdba.info
The application knows the name of the DBC file by using profile option
"Applications
Database Id."
How can u change the logfiles location suppose CM logfile location is APPLCSF
now if we want to change that to a nother location hw is it possible.
Ans: Change the Configuration File parameters
change s_applcsf,s_appllog,s_applout variables in XML file and run the autoconfig.
Conflict resolution managers resolves the conflicts yes , but hw it knows tht there
are conficts?why conflicts occur?
Ans:
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.
What is adovars.env file ?
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
iscalled
from the main applications environment file.
How to find the wordsize (32-bit or 64-bit) of Oracle Database
If you have access to an Oracle database which is installed on a 64-bit OS, how can
you
identify whether Oracle is 32 bit or 64 bit ?
Gary Robinson's oracleadvice.com has very good pointers on how to determine the
WORDSIZE
--------------
64-bit Oracle
How to Compile JSP�s without using ADADMIN
adpatch options=nocompilejsp
Tue, 2007-07-10 16:44
When you use adpatch options=nocompilejsp, the lengthy time spent in compiling out
of
date jsps is
initializing compilation:
eliminating children...12318 (-3091)
searching uncompiled...8677
translating and compiling:
searching untranslated...0
compiling jsps... 12% complete: 1100/8677 ETA: 14m7s
Do not use --quite option, as you would not be able to know the progress
14
-log <file> to override logfile from ojspCompile.conf
You are
recommended to set the log file location
outside of any network file system shared (NFS) area/drive.
-conf <file> to override ojspCompile.conf
--retry retry previously failed compilation attempts
--flush forces recompilation of all parent JSPs
--quiet do not provide an actively running progress meter
--fast instantly fail jsps that are *possibly* invalid
example1: ojspCompile.pl --compile -s 'jtf%' -p 20 --retry
example2: ojspCompile.pl --compile -s 'jtflogin.jsp,jtfavald.jsp' --flush
example3: ojspCompile.pl --compile --fast --quiet
jsps do compile on the fly, but that affects the application performance. So it is
a good
idea to
compile them in advance, if you have not done it during adpatch itself.
How to find the ORACLE_HOME path in Oracle Database?
In 9i:
15
Q. What is wdbsvr.app file used for? What's full path of this file? What's
significance of this file ?
I'll again suggest you don't just remember answer & try to solve mystery behind
this file.
First where this file exists ? You can find this file under
$IAS_ORACLE_HOME/Apache/modplsql/cfg
Based on file location I am sure you can say this is related to Apache, & looking
into
modplsql/cfg , I say its related to mod_pls (mod plsql component of Apache/Oracle
11i
WebServer) configuration file. 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
can correlate it with your Oracle database software installation (I know after
reading this
example you will say its weird but believe me thats how understood it initially ,
ORACLE_HOME can be called as ORA_TOP , network directory you can say TNS_TOP )
Under ( ORA_TOP ) you will see diretcory related to oracle home , there are two
oracle
HOME's in Application Tier 8.0.6 for Forms & Reports , iAS for 9iAS acting as web
server)
COMN_TOP will contain files & directories which will be used commonly by all
components ( Isn't this simple to understand )
Similarly IAS_TOP is top files/directory under ORA_TOP/iAS I hope it might be clear
to
you now if not donot worry it will be more clear once you start working as Apps
DBA.
I am attaching few screenshot of other mount points ( Courtsey oracle 11i concepts
guide
, below is location if you want to read .
http://download-uk.oracle.com/
docs/cd/B25516_08/current/
4) Login to Oracle Applications Manager (OAM) => Applied Patches => Simple Search
by 'Patch ID)
Q. What is Single user and Multi User Installation.
Single-user UNIX installations
In order to prepare for a single-user installation, you must first create an oracle
user
account and log in as the oracle user to run Rapid Install. The account should be
created
with a default shell that is compatible with the Bourne shell.
Multi-user UNIX installations
In order to prepare for a multi-user installation, you must first create an oracle
user
account and an applmgr user account. Both should be created with a default shell
that
is compatible with a Bourne shell. Log in as root to run Rapid Install. Then
specify the
oracle user as the Oracle OS user and the applmgr user as the Apps OS user.
The oracle user is the account that owns the database tier technology stack (9.2.0
ORACLE_HOME) and the database files. The default name for the oracle user is
ora<SID>. For example, for a production (PROD) environment, the default Oracle OS
username might be oraprod.
The applmgr user is the account that owns the application tier technology stack
(APPL_TOP, COMMON_TOP, 8.0.6 ORACLE_HOME, and the iAS ORACLE
HOME). The default name is appl<SID>. For example, for a Vision Demonstration (VIS)
environment, the default Apps OS username might be applvis.
For a multi-user install, you must install both the database server and one or more
application tier servers on the same node. On such nodes, you can assign one user
account to be the owner of the database tier file system, and another to be the
owner of
the application tier file system. If you are installing a system where the database
server is
on one node and all the application tier servers are on one or more separate nodes,
then
essentially you will perform a single-user installation on each node.
Q. Where would i find .rf9 file, and what exactly it dose?
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 files
try to access forms , f60webmx picks up this file and based on this configuration
file
creates a
forms session to user/client.
Sometimes also present in $FNS_TOP/Resource directory
SAMPLE FILE
; Forms Web CGI Configuration File for Oracle Applications 11i ; $Header:
appsweb.cfg 115.100 2001/08/16 12:49:06 pkm ship $ ;
------------------------------------------------------------
; This file defines parameter values used by the Forms Web CGI.
; These parameter values are defined on install. Customizations
; are possible by modifying sections at the end of this file.
; Environment administrators should familiarize themselves with
; this file and its three sections:
; - environment specific parameters,
; - default parameter values,
; - specific configurations.
; ********************************
; ENVIRONMENT SPECIFIC PARAMETERS
; ********************************
; These parameters describe the main production environment.
; They have to be updated after every patching of this file.
;; Forms Server Information: port, machine name and domain
; -------------------------------------------------------
serverPort=9000
serverName=crmees06
domainName=.us.oracle.com
; When patching this file, you must update these parameters to reflect
; the JInitiator version you are using in you environment. Follow
; Metalink Apps11i Alert "Upgrading the JInitiator version used with
; Oracle Applications 11i" (Note:124606.1)
jinit_ver_name=Version=1,1,8,13 ( tells which Jinit to use if u have multiple)
jinit_mimetype=application/x-jinit-applet;version=1.1.8.13
jinit_classid=clsid:ed54a7b0-6c1c-11d5-b63d-00c04faedb18
; These parameters have fixed names and give information required by the
; Forms Web CGI in order to function. They cannot be specified in the
; URL query string, but they can be overridden in a named configuration
; (see sections below).
baseHTML=%OA_HTML%/US/appsbase.htm
baseHTMLJInitiator=%OA_HTML%/US/appsbase.htm
HTMLdelimiter=%
; The next parameter (IE50) specifies which JVM is used to execute the
; Forms applet under Microsoft Internet Explorer 5.0.
Author � A.Kishore
http://appsdba.info
23
IE50=JInitiator
; ORACLE APPLICATIONS PARAMETERS
; ------------------------------
; These match variables (e.g. %FORM%) in the baseHTML file. Their values
; may be overridden by specifying them in the URL query string
; (e.g. "http://myhost.mydomain.com/ifcgi60.exe?form=myform&width=700")
; or by overriding them in a specific, named configuration (see below)
; 1) Runform Arguments
; --------------------
; These configurations separate the JAR files used by CRM and ERP products
; for those users who only use one or the other, but not both.
; If using only CRM applications, JAR files for non-FND ERP products are
; not needed. Simillarly, if using only ERP products, JAR files for
; CRM products are not needed.
; When the above holds for all users the following two specific
; configurations could be used as defaults.
[CRM]
archive2=
macarchive2=
[ERP]
archive3=
macarchive3=
;#********************
;#
;# Begin customizations
Author � A.Kishore
http://appsdba.info
30
;#
;#********************
;# Customizations below this line will be preserved if patching this
;# file via the instantiation utility
; ***********************
; SPECIFIC CONFIGURATIONS
; ***********************
; You may define your own specific, named configurations (sets of parameters)
; by adding special sections as illustrated in the following examples.
; Note that you need only specify the parameters you want to change. The
; default values (defined above) will be used for all other parameters.
; Use of a specific configuration can be requested by including the text
; "config=<your_config_name>" in the query string of the URL used to run
; a form. For example, to use the sepwin configuration, your could issue
; a URL like "http://myhost.mydomain.com/ifcgi60.exe?config=sepwin".
; Example 1: configuration to run forms in a separate browser window with
; "generic" look and feel (include "config=sepwin" in the URL)
[sepwin]
separateWindow=True
lookandfeel=Generic
; Example 3: configuration forcing use of the base.htm base HTML file in all
; cases (means applet-style tags will always be generated and
; JInitiator will never be used).
[applet]
baseHTMLJInitiator=
; Example 4: configuration to run the demos
; PLEASE DO NOT REMOVE THIS EXAMPLE, !
; It is needed to run the Forms demos (if they are installed)
[demo]
pageTitle=Oracle Forms Server Demos
width=700
height=550
form=start60
userid=%Demos_ConnectString%
archive=f60all.jar, oracle_ice-4_03_1.jar
serverApp=/forms60demo/demo
lookAndFeel=oracle
colorScheme=teal
htmlDebug=true
record=all
netStats=true
;userjarfile=
; You may define your own specific, named configurations (sets of parameters)
; by adding special sections as illustrated in the following examples.
; Note that you need only specify the parameters you want to change. The
; default values (defined above) will be used for all other parameters.
; Use of a specific configuration can be requested by including the text
; "config=<your_config_name>" in the query string of the URL used to run
; a form. For example, to use the sepwin configuration, your could issue
; a URL like "http://myhost.mydomain.com/ifcgi60.exe?config=sepwin".
; Example 1: configuration to run forms in a separate browser window with
Author � A.Kishore
http://appsdba.info
[sepwin]
separateWindow=True
lookandfeel=Generic
; Example 3: configuration forcing use of the base.htm base HTML file in all
; cases (means applet-style tags will always be generated and
; JInitiator will never be used).
[applet]
baseHTMLJInitiator=
; Example 4: configuration to run the demos
; PLEASE DO NOT REMOVE THIS EXAMPLE, !
; It is needed to run the Forms demos (if they are installed)
;# End customizations
Q. What is multi node system ?
Multi Node System in Oracle Applications 11i means you have Applications 11i
Component on
more than one system. Typical example is Database, Concurrent Manager on one
machine and
forms, Web Server on second machine is example of Two Node System.
Q. Explain steps used in cloning oracle Apps 11i Instance at broad level.
Another important & useful utility under AD_TOP which you and me as apps dba
perform quite
often i.e. Cloning 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 VISIONTST and you want to create similar instance
( including
same
patches & user data) like VISIONPRD then you will use adclone utility (Also called
as
Rapid
Clone these days). In this case source Instance will be VISIONTST and target
Instance
will be
VISIONPRD. 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 DAB you can use clone as staged environment during
Upgrade
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...
Q. Whats is JVM(Java Virtual Machine) and which component uses JVM ?
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)
ApJServGroup OACoreGroup
ApJServGroup DiscoGroup
ApJServGroup FormsGroup
ApJServGroup XmlSvcsGrp
Q: Where to find Apps 11i JVM logs ?
JVM log location is defined in java.sh ( found in
$IAS_ORACLE_HOME/Apache/Apache/bin)
Oracle Apps 11i JVM log file directory is defined by parameter JVMLOGDIR(
How to find JDBC thin driver that your iAS 1.0.2.2.2 is using ?
I am posting a simple java program & procedure to compile it that will give your
jdbc
thin driver
version.
Create a file with name JDBCVersion.java in your middle tier (Application Tier)
-----------
then execute
java JDBCVersion
Author � A.Kishore
http://appsdba.info
39
There are some tools available like jvmstst, jconsole .. but I never tried so wait
till I
configure one
for my system. For monitoring via jconsole I read wonderful note on my favorite
blogger's (Steven
Chan) site http://blogs.oracle.com/schan/2006/08/14#a565
Q.Sizing Apps JVM
As by now you might be aware that there are four JVM Groups,
OACoreGroup,DiscoGroup,
FormsGroup & XMLsvcsGrp ( FromsGroup JVM's disabled by defualt as forms run on
Socket
might be confusing as earlier this profile option used to control forms as well as
self
service
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 .
Author � A.Kishore
http://appsdba.info
41
confirm if Apps 11i is Autoconfig enabled). You should have Rapid Clone Patches
applied , Rapid
Clone is part of Rapid Install Product whose Family Pack Name is ADX. By default
all
Apps 11i
Instances 11.5.9 and above are Autoconfig & Rapid Clone enabled.
Q. Whats is difference between two env files in <CONTEXT>.env and
APPS<CONTEXT>.env under $APPL_TOP ?
APPS<CONTEXT>.env is main environment file which in turn calls other environment
files like
<CONTEXT>.env under $APPL_TOP, <CONTEXT>.env under 806 ORACLE_HOME
and
./httpd �version
Similarly we can do java �version
Server version: Oracle HTTP Server Powered by Apache/1.3.19
Server built: Dec 6 2005 14:59:13 (iAS 1.0.2.2.2 rollup 5)
Q. What is Location of Jserv configuration files ?
Jserv configuration files are located in $IAS_ORACLE_HOME /Apache/Jserv/etc.
Q. What is plssql/database cache ?
to file. This database/plssql cache is usually of type session & plsql cache
a) session cache is used to store session information.
b)plsql cache is used to store plsql cache i.e. used by mod_pls
Q. Where is database/plssql cache stored ?
plssql & session cache are stored under $IAS_ORACLE_HOME/
Apache/modplsql/cache
directory.
(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.
Q. Why I need two Concurrent Processing Nodes or in what scenarios PCP is used?
Well If you are running GL Month end reports or taxation reports annually these
reposrts
might
take couple of days. Some of these requests are very resource intensive so you can
have
one
node running long running , resource intensive requests while other processing your
day
to day
short running requets.
Another scenario is when your requests are very critical and you want high
resilience for
your
Concurrent Processing Node , you can configure PCP. So if node1 goes down you still
have CM
node available processing your requests.
Q. Output & Logfiles for requests executed on source Instance not working on cloned
Instance?
Here is exact problem description - You cloned an Oracle Apps Instance from
PRODBOX to
another box with Instance name say CLONEBOX on 1st of August. You can view any
CM
logs/output files after 1st of August only becuase these all are generated on
CLONEBOX
itself,
But unable to view the logs/output files which are prior to 1st August. What will
you do
& where to
check ?
Log , Output file path & location is stored in table FND_CONCURRENT_REQUESTS.
Check
Author � A.Kishore
http://appsdba.info
44
select logfile_name, logfile_node_name, outfile_name, outfile_node_name from
Active Users report lists all the users in the system along with their
responsibilities.
managers down , it checks & try to restart them. You can say it as administrator to
other
concurrent managers. It has other tasks as well.
Standard Manager These are normal managers which control/action on the requests &
does
Oracle 11i.
FNDSM � FND Service Manager is a concurrent manager in GSM, and serves requests
like CM�s
Use : ps �ef | grep APPS_
Q. How to start Apps listener ?
Author � A.Kishore
http://appsdba.info
45
In Oracle 11i, you have script adalnctl.sh which will start your apps listener. You
can also
start it
by command
forms connection.
This file is located in $FND_TOP/admin/template/appsweb.cfg
Q. What is forms server executable Name ?
f60srvm
Q. What are different modes of forms in which you can start Forms Server and which
one
is default ?
You can start forms server in SOCKET or SERVLET by defualt Forms are configured to
start in
socket mode
Q. How you will start Discoverer in Oracle Apps 11i ?
In order to start dicoverer you can use script addisctl.sh under
$OAD_TOP/admin/scripts/$CONTEXT_NAME
OR startall.sh under $ORACLE_HOME/discwb4/util (under Middle/Application Tier)
OR $COMMON_TOP/admin/scripts/$CONTEXT_NAME
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle
Tier) and
One in Database Tier.
ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This is
used by
forms, reports & discoverer. ORACLE_HOME should point to this ORACLE_HOME
while
Q. What happens if you don't give cache size while defining Concurrent Manager ?
Lets first understand what is cache size in Concurrent Manager. When Manager picks
request
from FND CONCURRENT REQUESTS Queues, it will pick up number of requests
defined by cache size in one shot & will work on them before going to sleep. So in
my views if you
don't define cache size while defining CM then it will take default value 1, i.e.
picking up one
request per cycle.
Q. What are few profile options which you update after cloning ?
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.
Q. If you have done two node Installation, First machine : Database and concurrent
processing server. 2nd machine: form,web Which machine have admin server/node?
Admin Server will be on First machine with concurrent processing server. More on
Admin Server
coming soon..
Q. What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
Q. Where GWYUID defined & what is its used in Oracle Applications ?
GWYUID is defined in dbc i.e. Database Connect Descriptor file . It is used to
connect to
database by thin clients.
Q. In a Multi Node Installation, How will you find which node is running what
Services ?
You can query for table FND_NODES and check for column , SUPPORT_CP ( for
Concurrent
Manager) SUPPORT_FORMS ( for forms server) , SUPPPORT_WEB (Web Server),
SUPPORT_ADMIN( Admin Server), and SUPPORT_DB for database tier.
You can also check same from CONTEXT File (xml file under APPL_TOP/admin)
To Check which node is running what service:
select * from fnd_nodes
Q. If your system has more than one Jinitiator, how will the system know, which one
to pick. ?
When client makes a forms connection in Oracle Applications, forms client session
uses
configuration file defined by environment variable FORMS60_WEB_CONFIG_FILE
also called as
appsweb config file. These days this file is of format appsweb_$CONTEXT.cfg The
initiator version number defined by parameter jinit_ver_name in this file will be
used . jinit_ver_name=Version=1,1,8,13 ( tells which Jinit to use if u have
multiple) ($FND_TOP/admin/template)
Q. While applying Apps patch using adpatch, if you want to hide the apps password,
how
will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password
being displayed on Users Screen.
IMAP stands for Internet Message Access Protocol and Java Notification mailer
require
IMAP server for Inbound Processing of Notification Mails.
Q. What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
.ldt & .lct stands for Loader datafile & Loader configuration files, used
frequently in
migrating
Q. Which two tables created at start of Apps Patch & drops at end of Patch ?
Author � A.Kishore
http://appsdba.info
54
FND_INSTALL_PROCESSES (Columns :CONTROL_CODE and STATUS ) &
AD_DEFERRED_JOBS are the tables that get updated while applying a patch mainly (d
or u)unified driver
Q. What exactly happens when you put an Oracle Apps instance in maintenance mode ?
Maintenance mode provides a clear separation between normal runtime operation of
Oracle
Applications and system downtime for maintenance. Enabling the maintenance mode
feature
a) Shuts down the Workflow Business Events System and
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.
(COMPLETED TILL PAGE 29 ) http://teachmeoracle.com/interview29.html
Enter "f60gen" on Forms Server and check for first line in output like
Forms 6.0 (Form Compiler) Version 6.0.8.26.0 (Production)
This confirms that you are on forms server version 6.0.8.26.0 and patch set 17.
( Patch
Set =
Fourth Digit - 9)
Q: How to find Jinitiator Version ?
Check for file like appsweb_SID_HOSTNAME.cfg under $OA_HTML/bin defined by
environment
variable FORMS60_WEB_CONFIG_FILE & search for entry like jinit_ver_name , you
will see
entry like
jinit_ver_name=Version=1,3,1,23
which means Jinitiator version is 1.3.1.23 ; if your version is 1.3.1.18 you will
see entry
like
1,3,1,18
cat /etc/*release*
You will see output like
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
Which means you are on Solaris 5.8 or Linux AS 3 resp.
isainfo -v
You may follow these steps to determine which version of OJSP you have on your web
server if
you aren't sure:
Change to the OA_JAVA directory on your web server.
Using a text editor, create a file called test.jsp with only the following line:
<%= application.getAttribute("oracle.jsp.versionNumber") %>
You can also use the echo command, like so:
On Unix:
echo '<%= application.getAttribute("oracle.jsp.versionNumber") %>' > test.jsp
On Windows NT: echo "<%= application.getAttribute("oracle.jsp.versionNumber") %>"
> test.jsp
Access this JSP from a web browser, using the URL:
The resulting page will show you which version of OJSP your Oracle HTTP Server is
configured
to use.
If the web page displays "1.1.2.0", then you do not need to upgrade your OJSP. If,
however, it
displays anything else, such as "1.0.0.6.1", then you are using an older version of
OJSP,
and you
must upgrade your OJSP, following the directions in the MetaLink Note indicated
above.
Q: How to find opatch Version ?
opatch is utility to apply database patch , In order to find opatch version execute
"$ORACLE_HOME/OPatch/opatch version"
Author � A.Kishore
http://appsdba.info
58
You should see output like OPatch Version: 1.0.0.0.52 which means your opatch
version
is
1.0.0.0.52
A database is running in NOARCHIVELOG mode which type of backups you can take? In
no archive log mode, you have to take cold backup only...means..your database
should be down and
take backup....
For this, you can right shell script in order
(a) shutdown the database
(b) copy all the files
(c) startup the database......
A database is running in NOARCHIVELOG mode which type of backups you can take? In
no archive log mode, you have to take cold backup only...means..your database
should be down and
take backup....
For this, you can right shell script in order
(a) shutdown the database
(b) copy all the files
(c) startup the database......
PATCHING
Question: I�m upgrading from RDBMS Version 9.2.0.5 to 9.2.0.8, and got the
following
error:
SQLPLUS fails when the code you are trying to execute contains
the
statement "WHENEVER OSERROR EXIT FAILURE ROLLBACK" if you attempt
to
connect to the local database instance via sqlplus '/as sysdba'
I researched the problem on MetaLink, and it said to apply patch 5495695. That
still
didn�t resolve the issue.
Answer: Apparently you need to take one more step after applying the patch:
1. Backup $ORACLE_HOME/bin/sqlplus executable
2. Copy $ORACLE_HOME/sqlplus/lib/sqlplus to $ORACLE_HOME/bin
Question: I am looking for a consolidated information point for all changed objects
(tables, views,
etc.) between Release 11.5.8 and Release 11.5.10.2 for GL, AP, AR, FA, CM,
Projects,
OM, PO, INV,
and Treasury. Do you have any idea where I can get this information?
Answer: Unfortunately, there is no utility or single document provided by Oracle
that
outlines the various Release deltas. We'd start with the eTRMs for each Release.
Another source for determining the differences is MetaLink Doc. ID: 163400.1,
�Release
Content Documents and Features Summary Matrices�. The top of the note has links to
the Release Content Documents (RCDs) for all the Release11i point releases and
Family Packs that supersede Release 11.5.10. The RCDs list new features, but
not new/changed components. If you scroll down to the �About� Documents you will
see,
by product family, a document for each Family Pack. These �About� documents do have
a �New and Changed Modules� section that will help you identify the changes.
This does require knowing which Family Pack you are currently on. For Financials
(GL,
AP, AR, FA,CM, Treasury), Release 11.5.8 is Family Pack C, so you would need to
read
about Family Packs D, E,F, and G. For Projects, Release 11.5.8 is Family Pack J, so
you
would need Family Packs K, L, and M.For Purchasing and Inventory and Order
Management, Release 11.5.8 is Family Pack H, so you would need Family Packs I and J
(note: Inventory and Purchasing and Order Management (ONT) are rolled into Supply
Chain Management for J).
Occasionally, adpatch will fail on one of the workers and patch installation cannot
continue until a different patch is applied. Currently adpatch only supports
applying one
patch at a time. So,how do you stop a patch, apply another patch, and resume the
original patch? The following
steps provide a solution for that scenario.
1. Using the adctrl utility, shutdown the workers.
a. adctrl
b. Select option 3 "Tell worker to shutdown/quit"
6. What is a patch?
Ans : A patch can be a solution for a bug/it can be a new feature.
15. What is the other table where u can query what are the patches applied?
Ans : Ad_applied_patches
18. What inputs you need to apply a patch other than driver name and etc?
Ans : apps and system passwords
19. What are the table u r adpatch will create and when?
Ans : Adpatch will creat FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS table when it
will apply d,g and u drivers
20. What is the significance of FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS table?
Ans: FND_INSTALL_PROCESSES table will store the worker information like what job is
assigned to which worker and its status. AD_DEFERRED_JOBS will come into picture
when some worker is failed, it will be moved to AD_DEFERRED_JOBS table, from where
again adpatch will take that job and try to resign, after doing this 3 times if
still that worker is failing, then adpatch will stop patching and throw the error
that particular worker has failed. We need to trouble shoot and restrart the
worker.
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: 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 quits, restart a failed
worker etc�.
Ans: We can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
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<patch_number>.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 sqlloader but loads code objects into
database, where as SQLLOADER loads data objects into database.
29. What c-driver will do?
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<patch_number>.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
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: We have our custom scripts which is scheduled 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.
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:
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
3. Check for the script adcfginfo.sh (adcfginfo.cmd on Windows) under <AD_TOP>/bin.
If it exists, use it to check whether AutoConfig is enabled
For APPL_TOP
adcfginfo.sh contextfile=< CONTEXT>
For products
adcfginfo.sh contextfile=< CONTEXT> show=enabled
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.
Ans : adchkcfg.sh script at AD_TOP/bin. This script will run autoconfig in test
mode and create the difference file cfgcheck.html. It is located under:
On the application tier: <APPL_TOP>/admin/ <Context_name>/out/<MMDDhhmm> which
tells us what is going to change , when u actually run autoconfig.
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<patch_number>.zip
52. What is apps.zip/appsbrog2.zip file?
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.
Ans: MRC stands for Multiple reporting Currency, this should be enabled to see the
reports in different currencies like (rupees,yaans etc).
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.
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
68. How to find out what component of u r oracle applications were installed on
which node?
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 : 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.
81. What are the different modes u can start u r form server?
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
Ans : Vnc server should be up and running at the specified port value in DISPLAY
variable, otherwise reportserver may not able to show the graphics in
Reports.
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
2. Standard Manager � All concurrent request by default will to go this
3. Conflict resolution manager � Concurrent programs with
incompatabilites will be handled by this
4. Transaction manager � Handle all transaction requests
92. What are actual and target count in �Adminster Concurrent Managers form�?
Ans : It means at operating system level resources are low to accomidate the
required processes for concurrent managers.
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 : Apps lintener is the combination of FNDFS and FNDSM. FNDSM is service manager
which will monitor application services on that node when GSM:enable profile value
is �Y�.
107. What is GSM?
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.
117. How to find adconfig is enabled for oracle operating system user/database?
Ans : RDBMS_ORACLE_HOME/appsutil/scripts/<contextname>
Ans : $COMMON_TOP/admin/scripts/<contextname>
Ans : $RDBMS_ORACLE_HOME/appsutil/clone/bin
Ans : $COMMON_TOP/clone/bin
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.
143. How to find trace file for a given concurrent request id?
Ans : Go to $RDBMS_ORACLE_HOME/admin/<context_name>/udump
Grep �<request id> � *
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.
NAME
---------
TEST2
SQL>select db_link from dba_db_links;
4. Add destination database tns entry in tnsnames.ora
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 : Better say No. If u r very good in performance tunning then say �yes�.
Ans :http://hostname.domain:<port>/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.
Ans: http://hostname.domain:<port>/discoverer4i/viewer
153. What is discoverer plus url?
Ans : http://hostname.domain:<port>/discwb4/html/english/welcome.htm
Ans : Aoljtest is a web based utility to test the availability of the different
components of oracle applications like jserv,modplsql,jsp,forms etc
URL: http://hostname.domain:<port>/OA_HTML/jsp/fnd/aoljtest.jsp
Ans : tnsping is command used to check the connectivity to the database server node
from other nodes.
Note: Tns entry should be there in tnsnames.ora for the database we are trying to
work this command.
Ans : top is a operating system command, it will display top 10 processes which are
taking high cpu and memory.
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 : Yes.
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.
Ans : cd $806_ORACLE_HOME/discwb4/lib
strings libd* | grep 'Version:'
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 : Yes. If we have any issues on production then we will raise seviarity 1 tar
otherwise seriarity 2/normal.
Ans : We got ORA-7445 error (memory leak) in alert log, for which we have raised a
Seviarity 1 TAR.
Ans : We got ORA-7445 error in alert log, for which oracle recommended to apply a
rdbms patch.
Ans :
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.
Solution:
Run adjkey -initialize -----------to creat identitydb.obj file which will be
used by adjava to sign jar files.
174. What is adjkey? What files it will create?
Ans : adjkey is an adutility which will create digital signature, which will be
used to sign all the jar files when we generate jar files using adadmin. The
purpose of this is, when you access forms interface every time, the signature of
the jar files which is going to download is compared with the existing cached jar
files signature in client machine. If signature won�t match, it will download that
jar files again.
It will create the following files:
adsign.txt@APPL_TOP/admin
appltop.cer@APPL_TOP/admin
identitydb.obj@applmgr home
Ans : No.
Ans : Running adjkey �initialize and then runnning adadmin to regerate jar files.
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: 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 : ls �la
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
193. What is the script to list the concurrent request status?
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
Q.how to delete files older than n number of day, useful to delete old log files
find . -name ' *.*' -mtime =<T in days> -exec rm{}\
Q. What is wdbsvr.app file used for? What's full path of this file? What's
significance of this file ?
I'll again suggest you don't just remember answer & try to solve mystery behind
this file. First where this file exists ? You can find this file under
$IAS_ORACLE_HOME/Apache/modplsql/cfg
Based on file location I am sure you can say this is related to Apache, & looking
into modplsql/cfg , I am sure you will say its related to mod_pls (mod plsql
component of Apache/Oracle 11i WebServer) configuration file. 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 (in our example its
VISION11I) &
Sample entry in wdbsvr.app
[DAD_VISION11I]
connect_string = VISION11I
password = apps
username = APPS
default_page = fnd_web.ping
On typing http://hostname:port/pls/VISION11I , it will connect to database using
apps schema & will return you page fnd_web.ping ( where fnd_web is package & ping
is procedure or vise versa).
So story about this file doesn't stop here , this url which I mentioned about is
quite useful in troubleshooting so you can check if database connection is working
fine or not. Another thing you want to check about this file is since it stores
APPS password you need to change here whenever you change apps password .
Q. Does rapid clone takes care of Updating Global oraInventory or you have to
register manually in Global OraInventory after clone ?
Rapid Clone will automatically Update Global oraInventory during configuration
phase. You don't have to do any thing manually for Global oraInventory.
Q. What is .dbc file , where its stored , whats use of .dbc file ?
dbc as name says is database connect descriptor file which stores database
connection information used by application tier to connect to database. This file
is in directory $FND_TOP/secure also called as FND_SECURE
Q. Whats things you do to reduce patch timing ? You can take advantage of following
-
� Merging patches via admrgpch
� Use various adpatch options like nocompiledb or nocompilejsp
� Use defaults file
� Staged APPL_TOP during upgrades
� Increase batch size (Might result into negative )
Q. How you put Applications 11i in Maintenance mode ?
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.
Q. Can you apply patch without putting Applications 11i in Maintenance mode ?
Yes, use options=hotpatch as mentioned above with adpatch.
Thanks Yatish for pointing this out
Q. What are various options available with adpatch ?
Various options available with adpatch depending on your AD version are
autoconfig, check_exclusive, checkfile, compiledb, compilejsp, copyportion,
databaseprtion, generateportion, hotpatch, integrity, maintainmrc, parallel,
prereq, validate
Q. adident utility is used for what ?
adident utility in oracle apps is used to find version of any file . AD
Identification.
for ex. "adident Header <filename>
Q. What is session time out parameter & where all you define these values ?
To know about session time out parameter & location where its defined Click Here
Q. Where is applications start/stop scripts stored ?
applications start/stop scripts are in directory $COMMON_TOP/admin/scripts/
$CONTEXT_NAME
Q. What is RRA/FNDFS ?
Report Review Agent(RRA) also referred by executable FNDFS is default text viewer
in Oracle Applications 11i for viewing output files & log files. As most of apps
dba's are not clear about Report Server & RRA, I'll discuss one on my blog and
update link here .
Q. What is PCP is Oracle Applications 11i ?
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.
Q. Why I need two Concurrent Processing Nodes or in what scenarios PCP is Used ?
To check answer click Next.
Q. Why I need two Concurrent Processing Nodes or in what scenarios PCP is Used ?
Well If you are running GL Month end reports or taxation reports annually these
reposrts might take couple of days. Some of these requests are very resource
intensive so you can have one node running long running , resource intensive
requests while other processing your day to day short running requets.
another scenario is when your requests are very critical and you want high
resilience for your Concurrent Processing Node , you can configure PCP. So if node1
goes down you still have CM node available processing your requests.
Q. Output & Logfiles for requests executed on source Instance not working on cloned
Instance
Here is exact problem description - You cloned an Oracle Apps Instance from PRODBOX
to another box with Instance name say CLONEBOX on 1st of August. You can any CM
logs/output files after 1st of August only becuase these all are generated on
CLONEBOX itself, But unable to view the logs/output files which are prior to 1st
August. What will you do & where to check ?
Log , Output file path & location is stored in table FND_CONCURRENT_REQUESTS. Check
Services Summary...
FNDFS has 1 service handler(s)
FNDSM has 1 service handler(s)
The command completed successfully
Q. What is Web Listener ?
Web Listener is Web Server listener which is listening for web Services(HTTP)
request. This listener is started by adapcctl.sh & defined by directive (Listen,
Port) in httpd.conf for Web Server. When you initially type request like
http://becomeappsdba.blogspot.com:80 to access application here port number 80 is
Web Listener port.
Q. How will you find Invalid Objects in database ?
using query
SQLPLUS> select count(*) from dba_objects where status like 'INVALID';
Q. Where will you find forms configuration details apart from xml file ?
Forms configuration at time of startup is in script adfrmctl.sh and
appsweb_$CONTEXT_NAME.cfg (defined by environment variable FORMS60_WEB_CONFIG_FILE)
for forms client connection used each time a user initiates forms connection.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
Q. Where is HTML Cache stored in Oracle Apps Server ?
Oracle HTML Cache is available at $COMMON_TOP/_pages for some previous versions you
might find it in $OA_HTML/_pages
Lets first understand what is cache size in Concurrent Manager. When Manager picks
request from FND CONCURRENT REQUESTS Queues, it will pick up number of requests
defined by cache size in one shot & will work on them before going to sleep. So in
my views if you don't define cache size while defining CM then it will take default
value 1, i.e. picking up one request per cycle.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
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.
Q. How to retrieve SYSADMIN password ?
If forgot password link is enabled and sysadmin account is configured with mail id
user forget password link else you can reset sysadmin password via FNDCPASS.
Q. If you have done two node Installation, First machine : Database and concurrent
processing server. 2nd machine: form,web Which machine have admin server/node?
Admin Server will be on First machine with concurrent processing server. More on
Admin Server coming soon
Q. Whats is TWO_TASK in Oracle Database ?
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
Q. What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
Q. In a Multi Node Installation, How will you find which node is running what
SErvices ?
You can query for table FND_NODES and check for column , SUPPORT_CP ( for
Concurrent Manager) SUPPORT_FORMS ( for forms server) , SUPPPORT_WEB (Web Server),
SUPPORT_ADMIN( Admin Server), and SUPPORT_DB for database tier.
You can also check same from CONTEXT File (xml file under APPL_TOP/admin)
Q. If your system has more than one Jinitiator, how will the system know, which one
to pick. ?
When client makes a forms connection in Oracle Applications, forms client session
uses configuration file defined by environment variable FORMS60_WEB_CONFIG_FILE
also called as appsweb config file. These days this file is of format
appsweb_$CONTEXT.cfg The initiator version number defined by parameter
jinit_ver_name in this file will be used .
Q. While applying Apps patch using adpatch, if you want to hide the apps password,
how will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password being displayed on Users Screen.
Q. What is importance of IMAP Server in Java Notification Mailer ?
IMAP stands for Internet Message Access Protocol and Java Notification mailer
require IMAP server for Inbound Processing of Notification Mails.
Q. What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
.ldt & .lct stands for Loader datafile & Loader configuration files, used
frequently in migrating customization, profile options, configuration data, etc..
across Instances.
Q. What are .odf file in apps patch ?
odf stands for Object Description Files used to create tables & other database
objects.
Q. What to find Form Server log files in forms ?
Form Server Start up log file default location is $OAD_TOP/admin/log/
$CONTEXT_NAME/f60svrm.txt
Forms Run Time Diagnostics default location is $ORACLE_HOME/forms60/log/
$CONTEXT_NAME
Q. Why does a worker fails in Oracle Apps Patch and few scenarios in which it
failed for you ?
This question sounds stupid but this is asked quite often in Apps DBA Interview.
Apps Patch worker can fail in case 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...
Q. What is difference between mod_osso & mod_ose in Oracle HTTP Server ?
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.
Q. What is difference between COMPILE_ALL=SPECIAL and COMPILE=ALL while compiling
Forms ?
Both the options will compile all the PL/SQL in the resultant .FMX, .PLX, or .MMX
file but COMPILE_ALL=YES also changes the cached version in the source .FMB, .PLL,
or .MMB file. This confuses version control and build tools (CVS, Subversion, make,
scons); they believe you've made significant changes to the source.
COMPILE_ALL=SPECIAL does not do this.
Q. What exactly happens when you put an Oracle Apps instance in maintenance mode ?
Maintenance mode provides a clear separation between normal runtime operation of
Oracle Applications and system downtime for maintenance. Enabling the maintenance
mode feature
a) shuts down the Workflow Business Events System and
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)
$ cd $AD_TOP/sql
$ sqlplus apps/apps @adutconf.sql
� Verify the correct users and groups have been created, as documented in
Installing Oracle Applications.
� Verify the required disk space is available, as documented in Installing
Oracle Applications.
� Verify the file system base install directories have write access granted to
the user that will own the software (on UNIX the Rapid Install Wizard may be run as
root but the install runs as the user that will own the software, therefore this
user must have write access to the base install directories).
� Verify the required ports are available for the.
� Verify system parameters are sufficient for the Oracle software (especially
the database) to run.
13. What is the Oracle Universal Installer Inventory and can I delete it?
PATCHING::::
what are things to verify to conclude the test successful and patch can applied on
production system
I am applying a HRMS patch and the README says the pre-requisite is to be on HRMS
Family Pack J. How do I find the patchset level?
You have to download the Latest patchsets.sh utility from Metalink and run in the
apps.
The Report will show you all the patchsets levels in the System.
Once Check the Latest patchsets.sh utility in the Metalink and download it.
Autopatch reads the restart file and it started from where it was stopped.
Yes , Users can access applications. but, with the compromise of performance....
For 11i.OIE.K Pre-req is HRMS Family Pack (11i.HR_PF.K and 11i.HR_PF.K Rup1 and 11i
ATG RUP 4)
Can I merge HRMS Family Packs and ATG RUP4 Family Pack and Other Products Minipack
( 11i.OIE.K) and Apply the Merged Patch?
So Can I merge all the above patches and appy them or First I need to apply ATG
RUP4 Patch and then merge the Remaining Family Packs?
--------------
You can merge ATG RU4 with HRMS & OIE all in one
or
You can merge various products like ATG, OIE & HRMS
When I run auto config in the log file I see the message
Can you tell me if this can be changed through the editcontext. If it can be
changed then what is the description seen when you try to change the xml file
through editcontext
set_profile(0, 'CONC_GSM_ENABLED',
10001, 0,
'Y',
0);
To:
set_profile(0, 'CONC_GSM_ENABLED',
10001, 0,
'N',
0);
4. Next time when AutoConfig is run, it will set the profile option to 'N'.
Is it necessary to run the Autoconfig in both Tier after RapidClone patch run?
When I did cloning, I did not run Autoconfig after RapidClone patch, even though
the clone was working. Because the documentation not mention about it.
But in the book says run Autoconfig after Rapidclone patch run in the ApplTier, and
copy and unzip the appsutil.zip in the RDBMS ORACLE HOME, and run Autoconfig in the
DBTier.
Yes ....When u apply Rapid clone patches ..Oracle changes the templates which
autoconfig picks up for future cloning etc etc
While applying the maintance pack, the log file ( .log and .lgi ) got deleted
accidentally.
Is there any way that we can make oracle to continue writing to the file.
I tried created new file; but it is not updating the same, nor it is creating new.
But the patch is still running
AUTOCONFIG::::::::::::
1. There is any protocol to run autoconfig such as run in Appl Tier first, then
DB Tier?
No but if you are running on both run it on DB tier first but not necessary
4. While preclone the database and Appl Tier Services should be up or down?
For DB & DB listener should be Up, Middle Tier can be Up or down
8. How to check database is up or down? usually query the name from v$database,
Which are the other tips, including OS comand in Linix?
How to findout the India Localization patch version like 'IN60107' which is applied
already In the system... No more infn in ad_bugs and ad_applied_patches.
Generally these patches will be applied for india localization and will be placed
on JA_TOP.. These patches wont require adpatch but only execute some scripts..
While applying like these kind of patches (EG : 5452893 ), generally readme will
say to check the prerequ patches like IN60106 (4153130) or earlier version..
In that Case, how can we find out whether IN60106 or earlier version has been
applied successfully in that system.
can u tell me what internally happen when we put the instance in maintenance mode?
is in that time user be able to access application
For Minimized downtime and optimized performance for an auto patch session, Use
Maintenance mode with Oracle E-Business suite Release 11.5.10 . Maintenance Mode is
a new mode of operation introduced with Release 11.5.10, in which the Oracle
Applications system is made accessible only for patching activities. The users are
not allowed to login any responsibility. This provides optimal performance for auto
patch sessions, and minimizes downtime . You can enable or disable the maintenance
mode by using either Ad utility (adadmin) or OAM(oracle applications Manager
These are the errors you'll see when maintenance mode is enabled.
cd $AD_TOP/bin
adconfig.sh
It will ask u Questions ....just answer those and adautocfg.sh will be recreated
You don't need to do anything opatch will check ; just make sure oraInst.loc is
pointing to right oraInventory
To verify that patches are applied correctly Where can i find the patch logs of the
patches applied to 806 ORACLE_HOME for App tiers and Admin tiers.
806 home is under the category of techstack patches. These patches are related to
file system not updating any information in the database.
Read the readme which will suggest you how to apply the patch. Readme also talk
about the log to. You need to copy this patch under 806 $ORACLE_HOME/cpu <create
this sub-directory to place your patch and unzip and run the patch from this place.
Your log file will be created here>
Where can i find the patch logs for the patchs listed in ad_bugs ?
cd $APPL_TOP/admin/$SID/log
what is the use of .pll file in apps patch. can we merged it with admerged patch
utility
pll files are library files. You can merge a patch that has a .pll file with other
patches using admerge
cmclean.sql is not destrcutive command for CM to clear the status flag in CM's.
In order to apply patches in apps using adpatch from version AD.I & above you ahve
to put apps in Maintenance mode using ADADMIN
Some time its required to apply patch without shutting down instance & without
putting apps in maintenance mode so you can use oprion=hotpatch to do so .
Can u give me doc on MRCs related to patching and are there any separate scripts to
run MRCs other than Adadmin
If you are 11.5.10 or higher you don't even need to maintain/compile apps_mrc
schema as there is no apps_mrc schema in 11.5.10
For 11.5.9 & lower use adadmin to run maintain apps_mrc schema
Check in autoconfig log location, if their is new log file or new directory (in new
AD.I.4 version with time stamp )inside that if there is autoconfig log that means
autoconfig was executed
Before starting to apply a patch, is there a way to find if the patch would run
autoconfig?
Yes ...
1. adpatch apply=n
OR
2. See in drv file if some new templates are delivered.If New templates are
delivered , then patch will apply autoconfig
how come we know any other users are applying patches ( my version is 11.5.9) ?
you can check at OS level. If you are running unix, then do a ps -ef | grep
adpatch.
If it returns some processes that shows adpatch is running
We have Standby Database. I would like to know Patching procedure both Primary and
Secondary database & application
If its big patch , recreate your standby site after big patches on primary site.
For Database patch you have apply on both primary & standby
can i merged family pack patch,nls patch through AD merge utility or it is only for
one off patch? and what is syntax to use admrgpch
1. AD patches can be merged with other AD patches, but AD patches and non-AD
patches cannot be merged
3. for NLS Patches 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.
P.S. You can merge all patches including NLS into single patch but above method
point 3 is to reduce downtime i.e. you apply US patches with system down & non us
patches with system UP but if you got enough downtime you merge all NLS into single
patch
$Ias_top/apache/modplsql/conf.wdbsvr.apps
$8.O.6_oracle_home/reports60/server/CGIcmd.dat
$OA_HTML/bin/appsweb.cfg
6.What is FNDLOAD?
(a). It is a utility under FND_TOP/bin, it loads code objects to database objects.
13. Where is the Jserv log file location and what will u check when u got the error
in Jserv/Jsp?
(a). The log file location is in $Apache_top/jserv/log
Check http://url/servelts/hello
Apache Log file, Jserv Log file
14.As in Linux I want to change all the names to other name for ex: suppose as in
my text file contains as e:\apps\sa.txt, like so many paths are there in my text
file, how will u change my name �apps� to �oracle�?
(a). Just press Esc in text file and give the command as follows
:/s /apps/oracle/g
15.What are the Tables that we need to take the backup while changing the apps
password (only in 11.5.9)?
(a). FND_USERS, FND_ORACLE_USERID
22. How will u find the Host Name and Domain name by Linux Command?
(a). Hostname -f
24.After completing the Autoconfig Oracle Forms webcgi. Error: Detected your
request cannot be completed at this time bcoz of the following error.
(a).
URL contains one or more restricted characters.
That, we have to remove �[ ]� (brackets) from apps.conf ,xml file and check in
$ad_top/temp and adxmlctx.tmp.Modify that brackets and Bounce the Apache.
29.When you are running adpatch, giving �Apps� as password, it will not taking why?
(a). We have to unlock applsys
Conn to Sql as sysdba & give the command as
Sql>alter user applsys account unlock;
Note: as we can tell this error in the interview while running ad patch utility.
31.What will you do when concurrent manager not up or not shutting down properly?
(a). We have to run the command
Sql> cmclean.sql
(Some related threds would be deleted,& we have to download this file from metal
ink)
32.Why Autoconfig?
(a). Change the Parameters in XML File & To Stabilize the Instance.
34.If Application Context File does not exits what will u do?
(a). Run the Script $. /AD_TOP/bin/adbldxml.sh
36.What is FNDFS?
(a). FNDFS is an �Report Review Agent, it is text viewer used by oracle
Applications for viewing log and output files of Concurrent Manager requests, As
the configuration files are Listener.ora and TNSnames.ora
As we can re-create this file with adjkey command .it will prompt for entity name
and an organization name
$adjkey �initialize
To resolve this issue you need to determine the bottleneck for the request.
UPGRADATION:
Step 1.we have to run the TUMS Maintenance patch (as it gives the html file)
TUMS->The up gradation maintenance script.
Patch->423826
Step 5. Configure database for new products and new table spaces requirement
(31080164)
Step 6. Enable American English maintenance patch file->we have to unzip the file.
Note: As it will take nearly 24 hrs to run the Maintenance patch (3480000)
-Appl_top/admin
Conn as system/manager
Sqlplus> @addrpmrc.sql
Step 4. Register New Products.
Sqlplus apps/apps
Sql> $APPL_TOP/ad/11.5.0/sql/adutconf.sql
$ cd $AD_TOP/sql
$ sqlplus apps/apps @adutconf.sql
� Verify the correct users and groups have been created, as documented in
Installing Oracle Applications.
� Verify the required disk space is available, as documented in Installing
Oracle Applications.
� Verify the file system base install directories have write access granted to
the user that will own the software (on UNIX the Rapid Install Wizard may be run as
root but the install runs as the user that will own the software, therefore this
user must have write access to the base install directories).
� Verify the required ports are available for the.
� Verify system parameters are sufficient for the Oracle software (especially
the database) to run.
13. What is the Oracle Universal Installer Inventory and can I delete it?
a) Mod_plsql is an Oracle specific module that routes all PL/SQL requests to the
Oracle Universal Server through the Database Access Descriptors (DAD) file.
c) Mod_ssl deals with data security via cookies, encryption, and session
expiration.
d) Mod_jserv routes servlets requests to JServ server engine, which then executes
through Java Virtual Machine (JVM). This is one of the key, core components that
you will deal with.
e) Mod_perl.
-- HTML documents.
-- JavaServer Pages (JSP)
-- JavaBeans are reusable Java classes that have specific naming conventions for
methods and variables. They perform well-defined tasks that are reused over and
over (e.g., connecting, screen rendering).
-- Java Servlets are small key components of server side Java development.
fnd_product_installations
-----------------------------------------------------------------------------------
----------------------------------------------------------
15) FNDLOAD, also known as Oracle Applications Generic Loader, is a generic loader
used to populate a variety of table types. FNDSLOAD is another utility used to load
functions, forms, and menus. They are Concurrent Programs that can move data
between text file representations of data and the tables within the database after
reading a configuration file to determine what data to process
16) ADJAVA restores several zip files if a patch contains Java files. Usually, you
will see messages during the running of a C driver that show that this utility is
running. However, you occasionally will have to manually run it if something
happens that you cannot explain or as a manual step during a patch
17) The AD Merge Patch (ADMRGPCH) utility can merge multiple, noninterdependent
patches into a single integrated patch that can be applied in one ADPATCH session.
The ADMRGPCH utility is an executable program that is located in the $AD_TOP/bin
directory.
syn :
APPS.fnd_application_vl
APPS.fnd_product_installations
20)Where are the concurrent Manager out and log files created?
$APPLCSF/log
$APPLCSF/out
$APPLCSF = $COMMON_TOP/admin
21) Where are the logs created for most of the adutilities such as adadmin,
adpatch, adaimgr?
$APPL_TOP/admin/sid/log
22)How many types of drivers can be there in a patch?
c driver -- copy driver
d driver -- database driver
g driver -- generate driver
---
34)How to find out the e-mail address of a user in Oracle applications
b)then move the rdf file generated in dest to source, after taking a backup of the
file in source
36)How to run autoconfig?
For Apache specific errors please refer to the error_log. For unhanded application
exceptions it is useful to look at both error_log and jserv.log as these two my
contain more detailed appropriate error messages then the ones displayed on the
browser. For Jserv specific problems, for instance when you are unable to
start/access Jserv, refer to mod_jserv.log file.
-----------------------------------------------------------------------------------
----------------------------------------------------------
A DBC (Database Connection) file is a text file which stores all the information
required to connect to a particular database. It allows a user or administrator to
easily load groups of environment variable settings. At the minimum it contains the
value of the GWYUID, FNDNAM, TWO_TASK and GUEST_USER_PWD.
Location : $FND_TOP/secure
-----------------------------------------------------------------------------------
----------------------------------------------------------
1) Concurrent process :
-----------------------------------------------------------------------------------
----------------------------------------------------------
2)Concurrent Manager :
-----------------------------------------------------------------------------------
----------------------------------------------------------
3) Concurrent Request :
-----------------------------------------------------------------------------------
----------------------------------------------------------
4) Request group :
A request group is a set of reports or other Concurrent Programs that have been
defined by the sysadmin to assist in control of user access to these reports and
programs. They can be used to control access in two ways. Access can be granted or
denied according to the users' responsibility (e.g., receivables manager). The
other way that users access a request group would be through a customized Submit
Request form. This is a relatively simple and Oracle supported customization with
detailed instructions in the Oracle Applications System Administrator's Guide that
entails registering a form function and passing in arguments to the Submit Request
form. Only a user with sysadmin authority has the ability to create a request
group.
-----------------------------------------------------------------------------------
----------------------------------------------------------
5) Request Set :
A request set sets the run options, print options, and (if applicable) any
parameter values for a collection of reports or programs not already included in a
request group. End users can define these and own the request sets that they
create. These sets are connected to the user's sign-on ID and are available to that
user regardless of which responsibility that user is currently logged into.
-----------------------------------------------------------------------------------
----------------------------------------------------------
6) Concurrent Manager :
Every time a request is made for a Concurrent Program, an entry gets put into the
FND_CONCURRENT_REQUESTS table along with its unique request ID. From this table,
the Concurrent Manager retrieves requests based on their availability to run
-----------------------------------------------------------------------------------
----------------------------------------------------------
7) Work Shift :
Work shifts for a Concurrent Manager is similar to a work shift for a human being.
It is defined as those hours for which a Concurrent Manager is defined for working.
Work shifts are defined using the Work Shift form. Often additional managers are
defined to work off hours when large batch jobs are scheduled to not adversely
impact the performance of the OLTP that occurs during a person's work shift.
-----------------------------------------------------------------------------------
----------------------------------------------------------
-----------------------------------------------------------------------------------
----------------------------------------------------------
The Internal Concurrent Manager (ICM) is the controlling manager for all of the
others. When you start the Concurrent Managers, this is the only one that you
actually have direct control over. This manager in turn starts all of the others
depending on their schedules and work shifts. It controls starting and stopping all
other managers based on the definition of their work shifts and it monitors for
failures. If there are failures, it cleans up after them. Its definition cannot be
changed after its startup. On starting, you can, by parameter passing, set its
values for sleep time, PM ON on cycle, and queue size.
The Conflict Resolution Manager enforces all compatibility rules and based on
priorities and run rules, determines which jobs can run when if there is a conflict
in timing. You cannot change its definition, but can set its values for sleep time
for each work shift or for parallel Concurrent Processing, if applicable.
c) Scheduler Manager :
The Scheduler Manager, a manager added in 11i, assists the ICM and the CRM in
scheduling and conflict resolution.
There are many product specific Concurrent Managers. The list includes Inventory,
MRP, and Projects, as well as any user-defined managers. These managers are
specialized to perform Concurrent Processing specifically for those products for
which they are built. Utilizing these managers can help you off-load some of the
processing from the Standard Manager
e) Standard Manager :
The Standard Manager (as the name implies) is the manager that ships with the
Oracle E-Business Suite and accepts any and all requests and does not, as
configured, have any specialization rules. The Standard Manager is customizable but
care needs to be taken to ensure that, if you change the rules on the Standard
Manager, that all jobs have a manager that is able to run them.
f) Transaction Managers :
Conventional Concurrent Managers run batch type jobs that are typically long
running, involve large amounts of data, and run asynchronously. Transaction
Managers run synchronous processing of certain reports requested from a client
program but run as a server side program. These managers run as immediate programs,
are started automatically by the ICM, and communicate with Transaction Managers
automatically. Running the job is transparent to the calling user as the job runs
extremely quickly and in real time. The calling client is notified of the ultimate
outcome of the program execution by a completion message and a set of values
returned to them.
CONCSUB is a utility for allowing the sysadmin username and password to have the
ability to submit concurrent requests at the OS level. This utility, unlike many of
the Applications utilities, is not menu driven. It runs from the command line,
submits a concurrent request, and returns you to the command prompt once the
concurrent request completes. You can check the status of your concurrent request
via the Concurrent Request form.
cd $IAS_ORACLE_HOME/Apache/Apache/bin
httpd -v
There is a separate logon page for Restricted Mode access while the system is in
Maintenance Mode.
Restricted Mode allows administrators access to specific privileged functionality
in OAM,
for example to view the timing report that shows the progress of a patching
session.
For more Information on Restricted Mode Access please consult Metalink Note:
364236.1
or the OAM Online Help (OAM->Patches and Utilities -> Managing Downtime Schedules
-> Restricted Mode)
When adsetmmd.sql runs, it sets the Profile Option 'Applications Maintenance Mode'
(APPS_MAINTENANCE_MODE) to 'MAINT' to Enable 'Maintenance Mode' and to 'NORMAL' to
Disable it.
2. Advantages
There are several practical points relating to the use of Maintenance Mode:
You can toggle Maintenance Mode between Enabled and Disabled using the new Change
Maintenance Mode menu in AD Administration, or the equivalent function in Oracle
Applications Manager.
Although you can run AutoPatch with Maintenance Mode disabled, there will be a
significant degradation in performance.
There is a separate logon page for Restricted Mode access while the system is in
Maintenance Mode. Restricted Mode allows administrators access to specific
privileged functionality in OAM, for example to view the timing report that shows
the progress of a patching session.
For more Information on Restricted Mode Access please consult Metalink Note:
364236.1
or the OAM Online Help (OAM->Patches and Utilities -> Managing Downtime Schedules
-> Restricted Mode)
Note: Maintenance Mode is only needed for AutoPatch Sessions. Other AD utilities
do not require Maintenance Mode to be enabled. Maintenance Mode must be 'Enabled'
before running AutoPatch and 'Disabled' after the patch application was completed.
When Maintenance Mode is disabled, you can still run Autopatch by using
options=hotpatch on the command line, if necessary. However, doing so can cause a
significant degradation of performance.
IMP: The concurrent processing can run and only the apache and forms services can
be taken down and restarted when main mode is disabled
adapcctl.sh stop
or
adstpall.sh <apps_user>/<apps_pwd>
Important points:
adadmin: Options 5, 1
adaprstctl.sh start
adaprstctl.sh stop
adadmin: Options 5, 2
adapcctl.sh start
or
adstrtal.sh <apps_user>/<apps_pwd>
The copy driver is the first driver, which must be run using adpatch.
This driver will do the following functions.
b)relink executables
start and stop scripts use env file to get the node information and the necessary
details.
1. On Node 1, log in as applmgr (owner of the application files) Unix user and
Source all your environment files to fully set your environment.
You need this information when you are creating the applmgr user on Node 2.
If the applmgr user on Node 2 does not have the same exact uid and gid
Then this will cause errors later when one of the nodes tries to login and
Start processes on the other node.
181. What is the pre-requisite before running the 'Convert to Multiple Reporting
Currencies' task in Ad Administration?
Always run the 'Validate APPS Schema' task before running the convert to MRC
task
184. Purpose of Undo segments? Undo segment is used to save the old value when a
process changes data in a database.
185. How many undo tablespaces should be there? We can have any no. of
tablespaces but only one should be active.
186. Where does redo log information store?
In memory area
187. Explain the difference between a hot backup and a cold backup?
We take hot backup when database is up and running and it must be in archivelog
mode. We take cold backup while database is shutdown and it doesnt need to be in
archive log mode.
214. What happens when you use alter system archive log start?
To enable the automatic archiving
215. What happens when you use alter database archive log?
To keep the database in archivelog mode
216. How do you maintain security?
By creating users and assigning them roles and profiles
218. How to check the free space and used space in OS level?
df -h, du -h
234How do you troubleshoot self-service login problems? Which profile options and
files do you check?
Check guest user/password in DBC file, profile option guest user/password.
235.What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely listener is down. Look at the FND_CONCURRENT_ REQUESTS, FND_NODES table
and FNDFS_entry in tnsname.ora
Use FNDCPASS to change APPS password and modify manually wdbsvr.app/cgiCMD. dat
252.What is Pasta?
Pasta is the utility to install the printers.
RDBMS ORACLE_HOME: On Database Tier used by Database Software usually 8i,9i or 10g
database.
266. How to manually change the APPLSYS, APPS and APPLSYSPUB passwords for
Applications?
� All users should be log out of application.
� Shutdown the concurrent managers
� Login as Sys Admin
� Navigate to Security?Oracle?Register
� At the same time, login as the SYSTEM user
� In the applications session, enter the new password for APPLSYS
� Save the changes
� ALTER USER <APPLSYS USERNAME> IDENTIFIED BY <NEW PASSWORD>
� In the same applications session, change the APPS and APPLSYSPUB password
� Save the change
� ALTER USER APPLSYS IDENTIFIED BY XXX; ALTER
USER APPS IDENTIFIED BY XXX; ALTER USER APPLSYS IDENTIFIED BY
XXX;
� Open a new session in applications, without closing the previous session,
and login
� Restart the concurrent managers
267. In a Multi Node Installation, how will you find which node is running what
Services?
Query the table FND_NODES and check for the columns
SUPPORT_CP for Concurrent Manager
SUPPORT_FORMS for Forms server
SUPPORT_WEB for Web Server
SUPPORT_ADMIN for Admin Server
SUPPORT_DB for database tier
268. Can FNDLIBR be restored if it is deleted?
Yes, you can restore FNDLIBR executables
run adadmin on concurrent manager node
select option 2. Maintain Applications Files menu
then select 1. Relink Applications programs
when prompts for
Enter list of products to link ('all' for all products) [all]
select FND
when prompt for
Generate specific executables for each selected product [No] ? YES
select YES
& from list of executables select FNDLIBR
This will create new FNDLIBR executables.
269. What are .odf file in apps patch?
odf stands for Object Description Files used to create tables & other database
objects
Well purpose of writing this page on JVM & JVM monitoring / Tuning for Oracle Apps
11i is that for Quite some time we were getting errors like
java.lang.OutOfMemoryError or java.lang.NoClassDefFoundError error message across
applications. So I thought of troubleshooting JVM and Middle Tier in Oracle
Applications 11i and got enough material which I have summarized here for other as
well. This page is based on Oracle Application 11i with Autoconfig and Java 1.4.2
version. Though Java/JDK 1.5 is also available & certified with 11.5.10.2 . Lets
start with understanding JVM (Java Virtual Machine) and related components. What
is JVM ?
JVM acronym for Java Virtual Machine which executes instructions generated by Java
compiler. So user click on any Self Service Request or any program wh
Q: How to increase No. Of JVM's
Since you know place where number of JVM's are stored in Apps 11i in Context File ,
so you can change them as per your requirement. There are basically following
Groups with their own JVM's.
# OACoreGroup, where most of Java request goes
# DiscoGroup, which serve your Discoverer related requests
# FormsGroup, for Forms (If they are running in Servlet Mode, confirm it again)
# XmlSvcsGroup, for XML Services
In Context File
-------------------------------------------------
(3) Once I ran the autoconfig using adautonconfig.sh, the movement i ran the
autoconfig, topfile.txt is created in $APPL_TOP/admin
JSP Error
-----------
Request URI:/OA_HTML/fndvald.jsp
Exception:
java.lang.NoClassDefFoundError
Solution 1:Check DFND_SECURE in jserv.properties and comment it out and then bounce
the server.
Solution 2: If the node is RAC then removed DB_HOST from your DBC file and add JDBC
URL entry into that. If it is non-RAC then remove JDBC URL entry if present.
If you still have problem. Please paste your error of Apache,Jserv and std err log
of FORMS and OACoreGroup.
in that some services are disbaled , how to enable that services, listed below all
the services with status
service status
----------- ------
1. Oracle restricted apache server VIS_rajani (adaprstctl.sh) ----disabled
2. Oracle Apache server VIS_Rajani for pl/sql (adapcctl.sh) ------disabled
3. Oracle TCF socket server VIS_rajani ( adtcfctl.sh) --------------disabled
4. Oracle ICSM VIS_Rajani (ieoicsm.sh) ---------disabled
5. Oracle iproceurement Bulk loader VIS_Rajani (icxldkctl.sh) �disabled
2)check by giving ps -ef|grep Apache. if any Apache services are running then use
the URL
http://host.domain:port/OA_HTML/AppsLocalLogin.jsp
Check your DBC file for the value of GUEST_USER_PWD. Make sure this is the same as
the profile option "Guest User Password". Ideally it will be "GUEST/ORACLE"
Also make sure that the profile option "Applications Database Id" is the name of
the DBC file.
When i login to apps through IE , and select any responsibility . IE just closes
the window .This happens multiple time.Finally i cannot login to APPS through IE.
I am using :11.5.10.2
DB:9.2.0.6
IE Version :5
Clinet Desktop Version : Win Xp
Server : HP-UX
Uninstall your jinitiator on your desktop and access the application again and
install the jinitiator. See if your problem resolves. If you still have an issue
check any software is recently installed on your desktop causing this issue.
Let me know if you still have problem after doing above steps then i will guide you
what to do?
Also let me know the version of jinitiator and jdk on your server side?
C:\program files\oracle\JinitiatorXX\bin
check at $IAS_ORACLE_HOME/Apache/Apache/logs
or
$IAS_ORACLE_HOME/Apache/Jserv/logs
Admin server is basically used during patching and various other jobs so if you
have apply a patch on any node that node should have Admin node configured.
Another mis conception about admin server is that only CM node will have Admin node
which is wrong (web & forms can also have admin node)
You have to apply only d driver if a particular node is not forms or web node
node 1: databas,CM,Admin
Node 2: forms,Web
Node 3: CM
We have to apply a patch on all three nodes, that means three nodes should have
admin server according to above response from (Admin server is basically used
during patching and various other jobs so if you have apply a patch on any node
that node should have Admin node configured. ) and we have to apply d driver to
node 1 and node2. Since node 1 and node 2 doesnt have either forms or web.
The Concurrent Manager of my system is not running. Any manager is not running.
When try ps -ef | grep FNDLIBR then getting no output. I bounce the
Concurrent Manager and also run "cmclean" but still concurrent manager is not
running.
But when i am trying to start the concurrent manager by using adcmctl.sh then it is
giviny 1 error thet is "PERMISSION DENIED"
Check for permission 755 on the adcmctl.sh script by the active user and make sure
you also use the format ./adcmctl.sh apps/appspass
If this doesn't work check the server adcmctl.txt file in $APPLCSF/$APPLLOG to try
and get a better error message
Use
or
PATCHING::::
what are things to verify to conclude the test succesful and patch can applied on
production system
I am applying a HRMS patch and the README says the pre-requisite is to be on HRMS
Family Pack J. How do I find the patchset level?
You have to download the Latest patchsets.sh utility from Metalink and run in the
apps.
The Report will show you all the patchsets levels in the System.
Once Check the Latest patchsets.sh utility in the Metalink and download it.
Autopatch reads the restart file and it started from where it was stopped.
Yes , Users can access applications. but, with the compromise of performance....
For 11i.OIE.K Pre-req is HRMS Family Pack (11i.HR_PF.K and 11i.HR_PF.K Rup1 and 11i
ATG RUP 4)
Can I merge HRMS Family Packs and ATG RUP4 Family Pack and Other Products Minipack
( 11i.OIE.K) and Apply the Merged Patch?
So Can I merge all the above patches and appy them or First I need to apply ATG
RUP4 Patch and then merge the Remaining Family Packs?
--------------
You can merge ATG RU4 with HRMS & OIE all in one
or
You can merge various products like ATG, OIE & HRMS
When I run auto config in the log file I see the message
Can you tell me if this can be changed through the editcontext. If it can be
changed then what is the description seen when you try to change the xml file
through editcontext
set_profile(0, 'CONC_GSM_ENABLED',
10001, 0,
'Y',
0);
To:
set_profile(0, 'CONC_GSM_ENABLED',
10001, 0,
'N',
0);
4. Next time when AutoConfig is run, it will set the profile option to 'N'.
Is it necessary to run the Autoconfig in both Tier after RapidClone patch run?
When I did cloning, I did not run Autoconfig after RapidClone patch, even though
the clone was working. Because the documentation not mention about it.
But in the book says run Autoconfig after Rapidclone patch run in the ApplTier, and
copy and unzip the appsutil.zip in the RDBMS ORACLE HOME, and run Autoconfig in the
DBTier.
Yes ....When u apply Rapid clone patches ..Oracle changes the templates which
autoconfig picks up for future cloning etc etc
While applying the maintance pack, the log file ( .log and .lgi ) got deleted
accidentally.
Is there any way that we can make oracle to continue writing to the file.
I tried created new file; but it is not updating the same, nor it is creating new.
But the patch is still running
AUTOCONFIG::::::::::::
2. There is any protocol to run autoconfig such as run in Appl Tier first, then
DB Tier?
No but if you are running on both run it on DB tier first but not necessary
8. How to check database is up or down? usually query the name from v$database,
Which are the other tips, including OS comand in Linix?
How to findout the India Localization patch version like 'IN60107' which is applied
already In the system... No more infn in ad_bugs and ad_applied_patches.
Generally these patches will be applied for india localization and will be placed
on JA_TOP.. These patches wont require adpatch but only execute some scripts..
While applying like these kind of patches (EG : 5452893 ), generally readme will
say to check the prerequ patches like IN60106 (4153130) or earlier version..
In that Case, how can we find out whether IN60106 or earlier version has been
applied successfully in that system.
can u tell me what internally happen when we put the instance in maintenance mode?
is in that time user be able to access application
For Minimized downtime and optimized performance for an auto patch session, Use
Maintenance mode with Oracle E-Business suite Release 11.5.10 . Maintenance Mode is
a new mode of operation introduced with Release 11.5.10, in which the Oracle
Applications system is made accessible only for patching activities. The users are
not allowed to login any responsibility. This provides optimal performance for auto
patch sessions, and minimizes downtime . You can enable or disable the maintenance
mode by using either Ad utility (adadmin) or OAM(oracle applications Manager
These are the errors you'll see when maintenance mode is enabled.
cd $AD_TOP/bin
adconfig.sh
It will ask u Questions ....just answer those and adautocfg.sh will be recreated
I would like to know the difference between utlrp.sql and compile apps schema
option available in adadmin. How do they differ in functionality?
The utlrp.sql recomplies all invalid objects in the database while adadmin utulity
just does the apps schema.
The utlrp.sql should be run as one of the last steps during upgrade or downgrade,
This script will validate all remaining invalid objects. There should be no other
DDL on the database while running this script. Not following this recommendation
may lead to deadlocks.
The utlrp.sql in turn calls utlprp.sql which is a wrapper based on the UTL_RECOMP
package. UTL_RECOMP provides a more general recompilation interface, including
options to recompile objects in a single schema. The degree of parallelism for
recompilation can be controlled by
providing a parameter to this script. If this parameter is 0 or NULL, UTL_RECOMP
will automatically determine the appropriate level of parallelism based on Oracle
parameters cpu_count and parallel_threads_per_cpu. If the parameter is 1,
sequential recompilation is used.
Can you tell me when can we know we need to apply one patch (only when users
complaints about a bug?
When there are performance problems? To be on the latest patch level? Why should we
apply a patch?)
Bug : You are hitting any bug & oracle support or your development tea or you find
solution as patch
Enhanceent / New features : Your functional tea or you for cloning or Manageent
team identifies new functionality or better feature shipped with patch.
Peformance : If you are hitting any perf issues
Can anyone advise me if this critical patch is always need to apply? since our
production run with minimal errors only
CPU patches are not for Issues but they are mainly for security & targeted to fix
security vulnerability
- Most patches can be merged with the exception of some AD patches and US patches
with their corresponding NLS patches. The readme for a patch will state when a
patch cannot be merged.
SQL>@utlrp.sql
You can also use adcompsc.pls script for compiling invalid objects
Can anyone suggest me the use of maintaining APPL_TOP snapshot and when to use ?
snapshot is like the index of all the patch info on that APPL_TOP
usually i run it during application refresh,or while refreshing the staged appl_top
Thumb Rule: Read all readme carefully before applying any patch.
DB PATCH Steps:
If you want to apply database patches use opatch utility to apply the patches on
all cluster nodes.
Set your current directory to the directory where the patch is located and then run
OPatch by entering the following command:
cd 1234567
opatch apply -local
Start all database instances running from the Oracle home that you are patching.
For each database instance running of the Oracle home being patched, connect to the
database using SQL*Plus. Connect as SYSDBA and run the catcpu.sql script as
follows:
cd $ORACLE_HOME/patch/1234567
sqlplus /nolog
SQL> CONNECT /AS SYSDBA
SQL> STARTUP
SQL> @catcpu.sql
SQL> QUIT
Check the log file for any errors. .
If catcpu.sql reports any Invalid Objects, run the following commands:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT /AS SYSDBA
SQL> STARTUP
SQL> @utlrp.sql
You can check for any invalid objects by executing following statement:
========================================
Enable the Maint. mode using adadmin:(before applying the patch backup your
configuration files)
adpatch
adpatch options=nodatabaseportion
Primary node
adpatch
Secondary node
adpatch
when u apply merge patch what is the process which happens internally ?
Internally it will merge all the drives (c,d g) and create one drive called u drive
when u driver exist at the sorce, the output is going to be u only other wise it
will have multiples.. based on source
unzip <patch>.zip
opatch apply
Thats it
(If patch is not in path it will be in $ORACLE_HOME/OPatch)
You don't need to do anything opatch will check ; just make sure oraInst.loc is
pointing to right oraInventory
To verify that patches are applied correctly Where can i find the patch logs of the
patches applied to 806 ORACLE_HOME for App tiers and Admin tiers.
806 home is under the category of techstack patches. These patches are related to
file system not updating any information in the database.
Read the readme which will suggest you how to apply the patch. Readme also talk
about the log to. You need to copy this patch under 806 $ORACLE_HOME/cpu <create
this sub-directory to place your patch and unzip and run the patch from this place.
Your log file will be created here>
Where can i find the patch logs for the patchs listed in ad_bugs ?
cd $APPL_TOP/admin/$SID/log
what is the use of .pll file in apps patch. can we merged it with admerged patch
utility
pll files are library files. You can merge a patch that has a .pll file with other
patches using admerge
cmclean.sql is not destrcutive command for CM to clear the status flag in CM's.
You can try running it when CM are not coming up properly .
Shutdown CM & execute cmclean.sql from apps schema
In order to apply patches in apps using adpatch from version AD.I & above you ahve
to put apps in Maintenance mode using ADADMIN
Some time its required to apply patch without shutting down instance & without
putting apps in maintenance mode so you can use oprion=hotpatch to do so .Can u
give me doc on MRCs related to patching and are there any separate scripts to run
MRCs other than Adadmin If you are 11.5.10 or higher you don't even need to
maintain/compile apps_mrc schema as there is no apps_mrc schema in 11.5.10
For 11.5.9 & lower use adadmin to run maintain apps_mrc schema
Check in autoconfig log location, if their is new log file or new directory (in new
AD.I.4 version with time stamp )inside that if there is autoconfig log that means
autoconfig was executednBe
fore starting to apply a patch, is there a way to find if the patch would run
autoconfig?
Yes ...
1. adpatch apply=n
OR
2. See in drv file if some new templates are delivered.If New templates are
delivered , then patch will apply autoconfig
how come we know any other users are applying patches ( my version is 11.5.9) ?
you can check at OS level. If you are running unix, then do a ps -ef | grep
adpatch.
If it returns some processes that shows adpatch is running
We have Standby Database. I would like to know Patching procedure both Primary and
Secondary database & application
If its big patch , recreate your standby site after big patches on primary site.
For Database patch you have apply on both primary & standby
can i merged family pack patch,nls patch through AD merge utility or it is only for
one off patch? and what is syntax to use admrgpch
1. AD patches can be merged with other AD patches, but AD patches and non-AD
patches cannot be merged
3. for NLS Patches 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.
P.S. You can merge all patches including NLS into single patch but above method
point 3 is to reduce downtime i.e. you apply US patches with system down & non us
patches with system UP but if you got enough downtime you merge all NLS into single
patch
Q. What's difference between TWO user & single User Apps 11i Install ? What are
advantages/disadvantages of two ? Questions mentioned above are very basic
questions. For more Apps 11i Interview Click Next Page. All the best for your
interview. If you need more info or any doubt Mail Me.
Q. Whats US directory in $AD_TOP or under various product TOP's .
US directory is defauly language directory in Oracle Applications. If you have
multiple languages Installed in your Applications then you will see other languages
directories besides US, that directory will contain reports, fmx and other code in
that respective directory like FR for France, AR for arabic, simplifies chinese or
spanish.
Questions mentioned above are very basic questions. More Oracle Apps dba 11i
Interview with explanation click next !! Good luck for your interview. If you need
more info or any doubt Mail Me.
Q. What is multi node system ?
Multi Node System in Oracle Applications 11i means you have Applications 11i
Component on more than one system. Typical example is Database, Concurrent Manager
on one machine and forms, Web Server on second machine is example of Two Node
System
Q. Can you clone from multi node system to single node system & vice versa ?
Yes , this is now supported via Rapid Clone, Check if your system has all prereq.
patches for Rapid Clone and you are on latest rapid clone patch.
Q. Does rapid clone takes care of Updating Global oraInventory or you have to
register manually in Global OraInventory after clone ?
Rapid Clone will automatically Update Global oraInventory during configuration
phase. You don't have to do any thing manually for Global oraInventory.
Q. What is .dbc file , where its stored , whats use of .dbc file ?
dbc as name says is database connect descriptor file which stores database
connection information used by application tier to connect to database. This file
is in directory $FND_TOP/secure also called as FND_SECURE
Q. Whats things you do to reduce patch timing ? You can take advantage of following
-
� Merging patches via admrgpch
� Use various adpatch options like nocompiledb or nocompilejsp
� Use defaults file
� Staged APPL_TOP during upgrades
� Increase batch size (Might result into negative )
Q. How you put Applications 11i in Maintenance mode ?
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.
Q. Can you apply patch without putting Applications 11i in Maintenance mode ?
Yes, use options=hotpatch as mentioned above with adpatch.
Thanks Yatish for pointing this out
Q. What are various options available with adpatch ?
Various options available with adpatch depending on your AD version are
autoconfig, check_exclusive, checkfile, compiledb, compilejsp, copyportion,
databaseprtion, generateportion, hotpatch, integrity, maintainmrc, parallel,
prereq, validate
Q. adident utility is used for what ?
adident utility in oracle apps is used to find version of any file . AD
Identification.
for ex. "adident Header <filename>
Q. What is session time out parameter & where all you define these values ?
To know about session time out parameter & location where its defined Click Here
Q. Where is applications start/stop scripts stored ?
applications start/stop scripts are in directory $COMMON_TOP/admin/scripts/
$CONTEXT_NAME
Q. What is RRA/FNDFS ?
Report Review Agent(RRA) also referred by executable FNDFS is default text viewer
in Oracle Applications 11i for viewing output files & log files. As most of apps
dba's are not clear about Report Server & RRA, I'll discuss one on my blog and
update link here .
Q. Why I need two Concurrent Processing Nodes or in what scenarios PCP is Used ?
To check answer click Next.
Q. Why I need two Concurrent Processing Nodes or in what scenarios PCP is Used ?
Well If you are running GL Month end reports or taxation reports annually these
reposrts might take couple of days. Some of these requests are very resource
intensive so you can have one node running long running , resource intensive
requests while other processing your day to day short running requets.
another scenario is when your requests are very critical and you want high
resilience for your Concurrent Processing Node , you can configure PCP. So if node1
goes down you still have CM node available processing your requests.
Q. Output & Logfiles for requests executed on source Instance not working on cloned
Instance
Here is exact problem description - You cloned an Oracle Apps Instance from PRODBOX
to another box with Instance name say CLONEBOX on 1st of August. You can any CM
logs/output files after 1st of August only becuase these all are generated on
CLONEBOX itself, But unable to view the logs/output files which are prior to 1st
August. What will you do & where to check ?
Log , Output file path & location is stored in table FND_CONCURRENT_REQUESTS. Check
Services Summary...
FNDFS has 1 service handler(s)
FNDSM has 1 service handler(s)
The command completed successfully
Q. What is Web Listener ?
Web Listener is Web Server listener which is listening for web Services(HTTP)
request. This listener is started by adapcctl.sh & defined by directive (Listen,
Port) in httpd.conf for Web Server. When you initially type request like
http://becomeappsdba.blogspot.com:80 to access application here port number 80 is
Web Listener port.
Q. How will you find Invalid Objects in database ?
using query
SQLPLUS> select count(*) from dba_objects where status like 'INVALID';
Q. Where will you find forms configuration details apart from xml file ?
Forms configuration at time of startup is in script adfrmctl.sh and
appsweb_$CONTEXT_NAME.cfg (defined by environment variable FORMS60_WEB_CONFIG_FILE)
for forms client connection used each time a user initiates forms connection.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
Q. Where is HTML Cache stored in Oracle Apps Server ?
Oracle HTML Cache is available at $COMMON_TOP/_pages for some previous versions you
might find it in $OA_HTML/_pages
Q. What happens if you don't give cache size while defining Concurrent Manager ?
Lets first understand what is cache size in Concurrent Manager. When Manager picks
request from FND CONCURRENT REQUESTS Queues, it will pick up number of requests
defined by cache size in one shot & will work on them before going to sleep. So in
my views if you don't define cache size while defining CM then it will take default
value 1, i.e. picking up one request per cycle.
Q. How many ORACLE HOME are Oracle Apps and whats significance of each ?
There are three $ORACLE_HOME in Oracle Apps, Two for Application Tier (Middle Tier)
and One in Database Tier.
� ORACLE_HOME 1 : On Application Tier used to store 8.0.6 techstack software. This
is used by forms, reports & discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
� ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software.
This is used by Web Listener & contains Apache.
� ORACLE_HOME 3: On Database Tier used by Database Software usually 8i,9i or 10g
database.
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.
Q. How to retrieve SYSADMIN password ?
If forgot password link is enabled and sysadmin account is configured with mail id
user forget password link else you can reset sysadmin password via FNDCPASS.
Q. If you have done two node Installation, First machine : Database and concurrent
processing server. 2nd machine: form,web Which machine have admin server/node?
Admin Server will be on First machine with concurrent processing server. More on
Admin Server coming soon
Q. Whats is TWO_TASK in Oracle Database ?
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
Q. What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
Q. In a Multi Node Installation, How will you find which node is running what
SErvices ?
You can query for table FND_NODES and check for column , SUPPORT_CP ( for
Concurrent Manager) SUPPORT_FORMS ( for forms server) , SUPPPORT_WEB (Web Server),
SUPPORT_ADMIN( Admin Server), and SUPPORT_DB for database tier.
You can also check same from CONTEXT File (xml file under APPL_TOP/admin)
Q. If your system has more than one Jinitiator, how will the system know, which one
to pick. ?
When client makes a forms connection in Oracle Applications, forms client session
uses configuration file defined by environment variable FORMS60_WEB_CONFIG_FILE
also called as appsweb config file. These days this file is of format
appsweb_$CONTEXT.cfg The initiator version number defined by parameter
jinit_ver_name in this file will be used .
Q. While applying Apps patch using adpatch, if you want to hide the apps password,
how will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password being displayed on Users Screen.
Q. What is importance of IMAP Server in Java Notification Mailer ?
IMAP stands for Internet Message Access Protocol and Java Notification mailer
require IMAP server for Inbound Processing of Notification Mails.
Q. What are .ldt & .lct files which you see in apps patch or with FNDLOAD ?
.ldt & .lct stands for Loader datafile & Loader configuration files, used
frequently in migrating customization, profile options, configuration data, etc..
across Instances.
Q. What are .odf file in apps patch ?
odf stands for Object Description Files used to create tables & other database
objects.
Q. What to find Form Server log files in forms ?
Form Server Start up log file default location is $OAD_TOP/admin/log/
$CONTEXT_NAME/f60svrm.txt
Forms Run Time Diagnostics default location is $ORACLE_HOME/forms60/log/
$CONTEXT_NAME
Q. Why does a worker fails in Oracle Apps Patch and few scenarios in which it
failed for you ?
This question sounds stupid but this is asked quite often in Apps DBA Interview.
Apps Patch worker can fail in case 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...
Q. What is difference between mod_osso & mod_ose in Oracle HTTP Server ?
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.
Q. What is difference between COMPILE_ALL=SPECIAL and COMPILE=ALL while compiling
Forms ?
Both the options will compile all the PL/SQL in the resultant .FMX, .PLX, or .MMX
file but COMPILE_ALL=YES also changes the cached version in the source .FMB, .PLL,
or .MMB file. This confuses version control and build tools (CVS, Subversion, make,
scons); they believe you've made significant changes to the source.
COMPILE_ALL=SPECIAL does not do this.
Q. What exactly happens when you put an Oracle Apps instance in maintenance mode ?
Maintenance mode provides a clear separation between normal runtime operation of
Oracle Applications and system downtime for maintenance. Enabling the maintenance
mode feature
a) shuts down the Workflow Business Events System and
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)
ANS:: OUI stands for Oracle Universal Installer. In order to find Installer version
you have to execute ./runInstaller -help ( From OUI location) You will get output
like Oracle Universal Installer, Version 10.1.0.4.0 Production Copyright (C) 1999,
2005, Oracle. All rights reserved. That means OUI version in above case is 10.1.0.4
OUI location is $ORACLE_HOME/oui/bin
--------------------------------
A Good Recovery Scenario
-------------------------------
Here's the scenario : You want to recover a database that has a datafile added to
it since the last database backup which means that the backup does not have the
datafile in it. Here's how you recover the database:
(1) A valid hot or cold backup of the database exists, except for the datafile that
was created since the backup was taken.
(2) The controlfile is a backup from before the creation of the new datafile.
(3) The database is in archivelog mode.
Step 1. Restore the datafiles and the controlfiles from the last hot or cold
backup. The current online redo logs must be intact.
Step 2. Mount the database
Step 3. Start media recovery, specifying backup controlfile
SQL> recover database using backup controlfile;
ORA-00279: Change 1234 generated at 10/10/05 10:10:10 needed for thread 1
ORA-00289: Suggestion : /archive/devdb/arch0000124.arc
ORA-00280: Change 1234 for thread 1 is in sequence #124
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
At this point, apply the archived logs as requested. Eventually Oracle will
encounter redo to be applied to the non-existent datafile. The recovery session
will exit with the following message, and will return the user to the SQL prompt:
ORA-00283: Recovery session canceled due to errors
ORA-01244: unnamed datafile(s) added to controlfile by media recovery
ORA-01110: data file 8: '/oradata/oracle9i/tables/users01.dbf'
Step 4. Recreate the missing datafile. To do this, select the relevant filename
from v$datafile:
SQL> select name from v$datafile where file#=8;
NAME
-------------------------------------------------------
UNNAMED0008
I will come up with all possiable ways of recovery scenario in the next blog
-Shantanu
sol: Displays all sessions which are inactive for more than 12 hrs .. ?
Sol: It will display all sessions in ascending order of inactive time and which
are...
1. logged in frontend (not running in background)
2. inactive more than 12 Hrs
3. where username not DBSNMP
-Neeti
-------------------------------------------------------
Three ways.
1. Type:
%cd $ORACLE_HOME/bin
The operating system "file" command is available on most Linux machines. If the
output of the "file oracle" command does not
say 64-bit explicitly then you are running 32-bit Oracle.
2. You run SVRMGRL and the Server Manager banner specifies 64-bit:
[tchp1]/u04/home/rsupport> svrmgrl
The examples above show that the Oracle database software version is
64-bit. If the software is 32-bit, then "64bit" would not be present
in either example above.
uname -a
------------------------------------------------------------------
RSYNc info,,
---------------
rsync is a program that behaves in much the same way that rcp does, but has many
more options and uses the rsync remote-update protocol to greatly speed up file
transfers when the destination file is being updated.
The rsync remote-update protocol allows rsync to transfer just the differences
between two sets of files across the network connection, using an efficient
checksum-search algorithm described in the technical report that accompanies this
package.
-------------------------------------------------------
PATCHING ISSUES;:
-----------------------
--------------------------------------------------
DBAs often need to know if they should install Oracle 32-bit or 64-bit software on
a given server. If the operating system support 64-bit applications, the 64-bit
Oracle distribution can be loaded. Otherwise, the 32-bit distribution must be
installed. The following Unix commands will tell you whether your OS is running 32-
bits or 64-bits:
Solaris - isainfo -v (this command doesn't exist on Solaris 2.6 because it is only
32-bits)
AIX - bootinfo -K
Hot Backup
----------------
Problem Description:
Writes are still occurring to the database files while in hot backup mode.
While the tablespace is in hot backup mode, database writer is still writting
blocks to the database files. How does hot backup work?
Solution Description
===================
It is normal for writes to occur to the database file while the tablespace is
in hot backup mode. A hot backup allows the database files to be backed up
while the database is up and running. It still allows the database file to be
updated.
Explanation:
=====================
When an 'alter tablespace begin backup' command is issued the datafiles that
belong to the tablespace are marked as hot-backup-in-progress. The dirty
databuffers in the database buffer cache that belong to the database files are
written out to the files and the datafiles are checkpointed. The datafile
headers are updated to the SCN captured when the begin backup is issued. The
datafile headers are not updated until the 'alter tablespace end backup'
command is issued; however, the datablock within the database files can
continue to be read and updated. When the datafile is restored from a hot
backup, the recovery will begin from the SCN captured during the begin backup
is issued. All changes applied during the hot backup time period will be
rolled forward from the redo logs.
----------------------------------------------------------------
-----------------------
How to find if particular Patch is applied ?
Check table ad_bugs (bug_number ) or ad_applied_patches table .
select APPLIED_PATCH_ID,
PATCH_NAME,
MAINT_PACK_LEVEL ,
PATCH_TYPE
from
ad_applied_patches
where
APPLIED_PATCH_ID=&patch;
-----------------------------------------------
=========================
========================================
===================
=========================================
How & Where check JVM related configuration in Oracle Apps 11i ?
So lets start with CONTEXT file under $APPL_TOP/admin (xml file) which is of
pattern $SID_$HOSTNAME.xml
There are two important lines in CONTEXT file which will help you in understanding
JVM
jvm_options oa_var="s_jvm_options" osd="Solaris" -verbose:gc -Xmx512M -Xms128M
-XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
/jvm_options
===============================================
====================================
Problem Description
~~~~~~~~~~~~~~~~~~~
Adpatch is running and fails on one of the workers. To fix this worker and
continue with the patch installation, a new patch needs to be applied.
Considering that only 1 adpatch session can run on an instance at any given
time, how can a patch be applied when adpatch is already running?
Solution Description
~~~~~~~~~~~~~~~~~~~~
1. Using the adctrl utility, shutdown the workers.
a. adctrl
b. Select option 3 "Tell worker to shutdown/quit"
2. Backup the FND_INSTALL_PROCESSES table which is owned by the APPLSYS schema
a. sqlplus applsys/<password>
b. create table fnd_Install_processes_back
as select * from fnd_Install_processes;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes_back;
select count(*) from fnd_Install_processes;
3. Backup the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. create table AD_DEFERRED_JOBS_back
as select * from AD_DEFERRED_JOBS;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;
4. Backup the .rf9 files located in $APPL_TOP/admin/<SID>/restart directory.
At this point, the adpatch session should have ended and the cursor should
be back at the Unix prompt.
a. cd $APPL_TOP/admin/<SID>
b. mv restart restart_back
c. mkdir restart
6. Drop the FND_INSTALL_PROCESSES table and the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. drop table FND_INSTALL_PROCESSES;
c. drop table AD_DEFERRED_JOBS;
8. Apply the new patch.
9. Restore the .rf9 files located in $APPL_TOP/admin/<SID>/restart_back
directory.
a. cd $APPL_TOP/admin/<SID>
b. mv restart restart_<patchnumber>
c. mv restart_back restart
10. Restore the FND_INSTALL_PROCESSES table which is owned by the APPLSYS
schema.
a. sqlplus applsys/<password>
b. create table fnd_Install_processes
as select * from fnd_Install_processes_back;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes;
select count(*) from fnd_Install_processes_back;
11. Restore the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. create table AD_DEFERRED_JOBS
as select * from AD_DEFERRED_JOBS_back;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;
12. Re-create synonyms
a. sqlplus apps/apps
b. create synonym AD_DEFERRED_JOBS for APPLSYS.AD_DEFERRED_JOBS;
c. create synonym FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;
13. Start adpatch, it will resume where it stopped previously.
Explain the ORacle Apps cloning ?
So here I am putting broad level steps you will use to clone apps instance .
Step1 . Prerequisites Steps you do before start cloning using rapid clone
1.1 Verify source and target nodes software versions
1.2 Apply the latest AutoConfig Template patch
1.3 Apply the latest Rapid Clone patches
g:\prints\interview\emctl.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
OEM:Daily / Weekly Backups not happening
Issue :
Daily incremental/ weekly full backups scheduled through OEM is not happening as
scheduled.
Troubleshooting:
- ERROR.
May be the same thing is not allowing the backups to happen as scheduled.
Fix :
cd /home/oracle/OEM_GRID/agent10g/bin/
./emctl stop agent
./emctl clearstate agent
./emctl start agent
./emctl upload agent
Audit parameter in 11Gr2, enable_ddl_logging will allow the tracking of all ddl's
in the alert log using the following:
g:\prints\interview\f&f.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Find and Replace in Vi editor
Syntax for Text Substitution inside the vi editor is,
:[range]s[ubstitute]/{pattern}/{string}/[Flags] [count]
Case 5: Replace the whole word and not the partial word
:s/\<his\>/her/
The standard replace will make the word history with herstory. Enclose the word
with < and > to ensure the search is for the whole word and not for partial one.
:%s/oldText/newText/gc
This will prompt for confirmation.
replace with newText (y/n/a/q/l/^E/^Y)?
y -> replace the highlighted word. After replace moves to the next word.
n -> does not replace the highlighted word. Moves to the next word.
a -> replace all the highlighted words.
l -> replaces the current highlighted word and terminates the find and replace.
g:\prints\interview\General_Answers.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Q) Can you shutdown the database in begin mode?
Ans) No
SQL> alter database begin backup;
Database altered.
SQL> shutdown immediate;
ORA-01149: cannot shutdown - file 1 has online backup set
ORA-01110: data file 1: 'D:\QADAR_APEX\ORADATA\PROD\SYSTEM01.DBF'
g:\prints\interview\interview questions.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I lost one datafile i dont have backup how can you recover that???
Answer
# 1 Recovery is not possible if no backup.
But inconsistent recovery is possible by following method:
1.shutdown your database
2.take the database in mount state
3. Make the tablespace of lost datafile to off line.
4.alter database create datafile 'old_datafile_path'
as 'new_datafile_path';
5. Made the database online.
6.once new file created do the incomplete recovery. from
any old backup.
7. open the database with resetlogs.
Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the
benefits and disadvantages to each.
Answer
# 3 Archivelog mode - In archivelog mode cold and hot backups
are possible. We can recover our database upto the last
point of failure.
Answer
# 1 CATALOG is used when you use a repository database as catalog.
NOCATALOG is used when you used the controlfile to register your backup
information.
Default in NOCATALOG.
Explain how you would restore a database using RMAN to Point in Time?
Answer
# 1 Requirements for database restore using RMAN point in time:
* database must be running in Archive Log mode.
* Must have the full backup of the database and redologs
of the period from the backup and current time(find by SCN
NUMBERS).
Steps:
How do you find out from the RMAN catalog if a particular archive log has been
backed-up?
Answer
# 2 RMAN> list archivelog all;
which background process will run @ the time of creation of catalog database
Answer
# 1 SERVER PROCESS
Answer
# First query
Q. What is adspliceutility ?
A. adsplice in oracle apps is utility to add a new product.
Q. Describe the how many different types of patches are there and describe their
function.
One-off ,mini ,diagnostics,cu,rup,
language,help,platformspecific,OS,OPatch,Interoperability,family pack, maintenance
pack
Q. Does rapid clone takes care of Updating Global oraInventory or you have to
register manually in Global OraInventory after clone ?
A. Rapid Clone will automatically Update Global oraInventory during configuration
phase. You don't have to do any thing manually for Global oraInventory.
Q. Can you apply patch without putting Applications 11i in Maintenance mode ?
A. Yes, use options=hotpatch as mentioned above with adpatch.
1)What happens if the ICM goes down?
All the other managers will keep working. ICM only takes care of the queue control
requests, which means starting up and shutting down other concurrent managers.
5)Provide an introduction to AutoConfig. How does AutoConfig know which value from
the XML file needs to be put in which file?
AutoConfig uses a context file to maintain key configuration files. A context file
is an XML file in the $APPL_TOP/admin directory and is the centralized repository.
When you run AutoConfig it reads the XML files and creates all the AutoConfig
managed configuration files.
For each configuration file maintained by AutoConfig, there exists a template file
which determines which values to pick from the XML file.
1.) What's the diff. btw. 'adconfig.sh' and 'adautocfg.sh'
You will use script adautocfg.sh (on both Database & Application tier) which inturn
will call adconfig.sh , which further will calladconfig.pl. You should not worry
about later two scripts its for information only. adautoconfig.sh is script which
you use to run autoconfig.
3.) Must I stop all running application processes before I run autoconfig.i.e by
running adstpall.sh?
Yes, if you are running autoconfig on application tier u need to stop the
application tier, always database should be up
7)What could be wrong if you are unable to view concurrent manager log and output
files?
Most likely the FNDFS listener is down. Look at the value of OUTFILE_NODE_NAME and
LOGFILE_NODE_NAME in the FND_CONCURRENT_REQUESTS table. Look at the FND_NODES
table. Look at the FNDFS_entry in tnsnames.ora.
You will see two columns labeled �Actual� and �Target�. The Target column lists the
number of processes that should be running for each manager for this particular
workshift. The Actual column lists the number of processes that are actually
running. If the Actual column is zero, there are no processes running for this
manager. If the Target column is zero, then either a workshift has not been
assigned to this manager, or the current workshift does not specify any target
processes. If the target column is not zero, and then the manager processes have
either failed to start up, or gone down.
How to define the concurrent manager - The navigation of the concurrent manager is
Concurrent > manager > Define
In that we will assign the specialization rules, workshifts, and program libraries
to the manager.
2 When applying the patch if you get an error worker1 is failed then what utility
is used
to
examine the adutility ? and where the log files whill be stored ?
A: adctrl, $APPL_TOP/admin/ <SID>/log
3 What is adrelink ?
AD Relink (or adrelink) allows you to relink Oracle Applications executable
programs
with the Oracle Server product libraries. You can run the adrelink utility manually
to
relink individual executable programs, or use the relink option in the AD
Administration
utility to relink all executable programs.
adrelink force=y ranlib=y "ar RAXTRX"
$adrelink force=y ranlib=y "fnd all"
9 when applying the patch if you get an error FND_INSTALL_ PROCESSES table
alredy
exists ? Then what do you do?
If previous patch is not applied successfully then this table will not drop, You
have to
login to sql as applsys/apps then drop this table and reapply the patch.
13 what oscommnad is used to find the version of a file ?and what is the oracle
applications utility?
strings -s <file name> | grep "Header" or adident<file name>
6.Contents of a Patch?
a. Readme files
Driver files
Metadata files
Replacement files
15.If you know that the patch has been applied previously but patch is asking you
to apply the existing patch as a pre- requisite?
a. adpatch options=noprereq
While applying Apps patch using adpatch, if you want to hide the apps password, how
will that be possible ?
Use adpatch flags=hidepw while applying patches in apps to hide apps or system
password being displayed on Users Screen.
Question :
Question :
What are the steps involved in Instance Recovery ?
Answers:
Rolling forward to recover data that has not been recorded in data files, yet has
been recorded in the on-line redo log, including the contents of rollback segments.
Rolling back transactions that have been explicitly rolled back or have not been
committed as indicated by the rollback segments regenerated in step a. Releasing
any resources (locks) held by transactions in process at the time of the failure.
Question :
What is the steps for recovery of missing data file? and the steps for physical
stand by database creation?
steps:
copy all the files in the Hot backup.
2.startup mount
3.alter database recover automatic using backup controlfile until cancel
;
4.alter database open reset logs;
Question :
What are the different modes of mounting a Database with the Parallel Server ?
Exclusive Mode If the first instance that mounts a database does so in exclusive
mode, only that Instance can mount the database.
Parallel Mode If the first instance that mounts a database is started in parallel
mode, other instances that are started in parallel mode can also mount the
database.
Question :
What is Restricted Mode of Instance Startup ?
To Enable Restricted Session
Alter system enable restricted session;
Question :
What are the advantages of operating a database in ARCHIVELOG mode over operating
it in NO ARCHIVELOG mode ?
Answers:
Complete database recovery from disk failure is possible only in ARCHIVELOG mode.
In NOARCHIVELOG mode you cannot perform online tablespace backups, nor can you use
online tablespace backups taken earlier while the database was in ARCHIVELOG mode.
To restore a database operating in NOARCHIVELOG mode, you can use only whole
database backups taken while the database is closed. Therefore, if you decide to
operate a database in NOARCHIVELOG mode, take whole database backups at regular,
frequent intervals.
If the database in ARCHIVELOG mode, you enable the archiving of the redo log.
?A database backup, together with online and archived redo log files, guarantees
that you can recover all committed transactions in the event of an operating system
or disk failure.
?If you keep an archived log, you can use a backup taken while the database is open
and in normal system use.
?You can keep a standby database current with its original database by continuously
applying the original archived redo logs to the standby
if we are using the user managed backup than some step r following
1 begin backup
2 copy data
3 end backup.
Answers:
Yes it is possible by using HOT backup method ..but the consistant backup will not
possible through this method...So for the consistancy Go for COLD backp (if the
down time available for the production database).
Question :
What is Full Backup ?
Answers:
A full backup is an operating system backup of all data files, on-line redo log
files and control file that constitute ORACLE database and the parameter.
Answers:
Full backup is performed as an admin task on every week end, which is carried out
in non production hours to ensure all the data is backed up.
Question :
What is On-line Redo Log?
Answers:
The On-line Redo Log is a set of tow or more on-line redo files that record all
committed changes made to the database. Whenever a transaction is committed, the
corresponding
redo entries temporarily stores in redo log buffers of the SGA are written to an
on-line redo log file by the background process LGWR. The on-line redo log files
are used in cyclical fashion.
What are the steps involved in Database Shutdown ?
When Shutdown cmd given No new sessions allowed.
There are 4 types
Abort,Immediate,Transactional,Normal.
In abort:-Doestnt wait for current sessions,and also for current transactions.Not
make checkpoint to close file.
Question :
What is the steps for recovery with missing online redo logs?
Answers:
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Question :
What is Mirrored on-line Redo Log ?
Answers:
A mirrored on-line redo log consists of copies of on-line redo log files physically
located on separate disks, changes made to one member of the group are made to all
members.
Question :
What is Archived Redo Log ?
The log writer process (LGWR) writes the online redo logs from the log buffer. The
online redo logs are a set of files that will be repeatedly written into by LGWR.
To prevent loss of data, these online redo logs are written to a permanent location
by the archiver process (ARCH) before the online redo log is overwritten. The
permanent copy is the archived redo log.
Question :
What is a deadlock ? Explain .
Answers:
Two processes wating to update the rows of a table which are locked by the other
process then deadlock arises. In a database environment this will often happen
because of not issuing proper row lock commands. Poor design of front-end
application may cause this situation and the performance of server will reduce
drastically.
These locks will be released automatically when a commit/rollback operation
performed or any one of this processes being killed externally.
Question :
What is the difference between DATABASE ADMINISTRATION & ORACLE?
Answers:
The task of DBA:-
1)db Availability
2)create or plan db
3)Manage physical ,logical storage
4)security
5)Backup and Recovery
6)Network Administration
Question :
What is a Database instance ? Explain
Answers:
1. Instance is the combination background process and memory structures.
2.Instance must be started to access the data in the database.
3.When instance is started, SGA is allocated and Background processes are started
at nomount stage.
4.Instance can open and use only one database at a time.
Question :
What is a Schema ?
Answers:
A schema is a collection of database objects. A schema is owned by a database user
and has the same name as that user. Schema objects are logical structures created
by users to contain, or reference, their data. Schema objects include structures
like tables, views, and indexes.
Question :
What is the use of control file?
Answers:
Control file is binary file which is having all the information realted to
database. db_name, maxlogfiles, maxdatafiles, tablespaces information. Without this
u cannot open your database. Init.ora parameter file showing the location of the
controlfile.
Answers:
1.Control file is a binary file. 2.Control file containing information necessary to
maintain and verify database integrity.
3.Defines current state of physical database.
4.Required at mount state during database startup.
Answers:
Control file uses
1)open the db
2)Maitain the Integrity of db
3)recovery for db
Question :
If you have an open cursor on a table, modify the same tableand commit, what would
happen?
Answers:
changes will be committed
Question :
What is a segment?
Answers:
segment is the collection of extents allocated to paricular object like table and
index. Table segment and index segment
Question :
How do you sort a table?
Answers: You can only sort the results of a query. Even if you were to sort a table
using export/import or SQL*Loader, a query against that table does not/cannot
guarantee data will be returned in that sort order without the use of an ORDER BY
clause.
These may appear symantics of the same answer, but in fact the two are very
different.
Question :
What does a control file contains?
Answers:
1. Database name and identifier.
2. Time stamp of database creation.
3. Tablespace names.
4. Backup information.
5. Checkpoint information.
6. Current online redo log file sequence number.
Question :
Can we decrease the Datafile size?
Answers:
Yes you can decrease the size of the datafile to the place where the extents are
deallocated in to it by resizing the datafiles to something smaller than current.
If the data in the datafile is scattered than reorg the object in the tablespace to
deallocate the extent and decrease the filesize
Question :
What are clusters?
Answers:
Group of tables physically stored together because they share common columns and
are often used together is called Cluster.
Question :
What is public database link?
Answers:
You can create a public database link for a database. All users and PL/SQL
subprograms in the database can use a public database link to access data and
database objects in the corresponding remote database.
When many users require an access path to a remote Oracle database, an
administrator can create a single public database link for all users in a database.
Question :
How can you find all the tables created by an user?
Answers:
This could be found through
1. select table_name from sys.dba_tables where owner='specified user'
2. select * from cat;
3.select * from sys.dba_objects where owner ='specified owner'
Question :
Different types of table join.?
Answers:
-Cartesian Product or Cross Join
-Inner Join
-Equi Join or Natural Join
-Non Equi Join
-Self Join
-Outer Join
-Left Outer Join
-Right Outer Join
-Full Outer Join
Question :
Whats the difference between indexes,views,synonyms?
Answers:
An index is a method of allowing faster retrieval of records.
A view is an virtual table formed using a single table or one or more tables.
A synonym is an alternative name for objects such as tables, views, sequences,
stored procedures, and other database objects
Question :
What are the basic element of Base configuration of an oracle Database ?
Answers:
It consists of
one or more data files.
one or more control files.
two or more redo log files.
The Database contains
multiple users/schemas
one or more rollback segments
one or more tablespaces
Data dictionary tables
User objects (table,indexes,views etc.,)
The server that access the database consists of
SGA (Database buffer, Dictionary Cache Buffers, Redo log buffers, Shared SQL pool)
SMON (System MONito)
PMON (Process MONitor)
LGWR (LoG Write)
DBWR (Data Base Write)
ARCH (ARCHiver)
CKPT (Check Point)
RECO
Dispatcher
User Process with associated PGS
Question :
What are the uses of Rollback Segment ?
Answers:
Rollback Segments are used :
To generate read-consistent database information during database recovery to
rollback uncommitted transactions for users.
Question :
What is Rollback Segment ?
Answers:
A Database contains one or more Rollback Segments to temporarily store "undo"
information.
Question :
What are the different type of Segments ?
Answers:
Data Segment, Index Segment, Rollback Segment and Temporary Segment.
Answers:
table,table patition,cluster,Index,
Index partition,Undo,Temprary,
LOB,Nested tables,Bootstrap,
Question :
What is an Integrity Constrains ?
Answers:
An integrity constraint is a declarative way to define a business rule for a column
of a table.
Question :
What is a Temporary Segment ?
Answers:
Temporary segments are created by ORACLE when a SQL statement needs a temporary
work area to complete execution. When the statement finishes execution, the
temporary segment extents are released to the system for future use.
Question :
What is SYSTEM tablespace and when is it Created?
Answers:
Every ORACLE database contains a tablespace named SYSTEM, which is automatically
created when the database is created. The SYSTEM tablespace always contains the
data dictionary tables for the entire database.
Question :
What is the difference between media recovery & crash recovery..?Answers:
Media recovery is a process to recover database from backup when physical disk
failure occure.
cash recovery is a automated process take care by oracle when instance failure
occure.
Question :
What is db_recovery_file_dest ? When do you need to set this value ?
Give me the steps to perform the point in time recovery with a backup which is
taken before the reset logs of the db ?
Tell me about the steps required to enable the RMAN backup for a target database ?
Answers:
db_recovery_file_dest specifies a default location of flash recovery area which
contains multiplexed current control files,
online redo logs as well as archived logs, Rman backups,flash back logs.
db_recovery_file_dest_size should be specified as well.
Answers:
The parameter db_recovery_file_dest is used to enable the flash recovery area.
OR
This initialization parameter is a valid destination to create the Flash Recovery
Area. The destination can be defined as a directory, file system or ASM disk group.
Question :
What is the difference between recovery and restoring of the database.
Answers: 0
Here is a scenario to understand Restore & Recovery
Sunday 10pm : Database is backed up. and is running fine.
Monday 11am : Went down / crashed due to some reason.
To bring up the database, we have 2 options:
1. Simple Restore : copying files from backup taken sunday night and open the
database. Here, we loose all the changes that are done since sunday night.
2. Restore and Recovery: Copying files from backup taken sunday night and applying
all the archivelog and redo log files to bring up the database to the point of
failure. Here you dont loose the changes done until monday 11 am.
Restore : copying files from the backup overwriting the existing database files
Recovery: applying the changes to the database till point of failure. these changes
are recorded in online redolog and archivelog ( which are the backups of redolog)
files.
Question :
What are the different tools available for hot backups. Is it preferable to take it
manually all the time or it depends on the size of the database.
Answers:
See A hot backup can be done by either RMAN,User Managed Backups by puting
tablespace in backup mode my OEM which does the same as the user managed backup.But
the Backup depends upon the size of the database you are using . if the database
size in TB the RMAN backup will take more than 10 hours to complete and if the
database is critical you can' wait for long to go for so long in this case their
are special backup techniques which are given by vendors like TIVOLI and Netbackup
they provide BC Vol backup called Business content Volumn Sync which copies a
snapshot of the primary data to another place and backsup the database from one SAN
to another with in 15 min for 2 TB of database and is the preferable method for big
companies.
Question :
What is the disk migration?what isthe steps involved in diskmigration?
Answers:
Disk migration is noting but, migration of data from one OS dependent database to
another Dependent database. The steps involved in this are
- first go to your target database and export all your data into flat files
-next in the destination database during the installation of the database, it asks
for data source ,instead of giving the data of the oracle provided , give the path
of the flat file you exported previously .
Question :
What are the roles and user accounts created automatically with the database?
Answers:
DBA - role Contains all database system privileges.
SYS user account - The DBA role will be assigned to this account. All of the base
tables and views for the database's dictionary are store in this schema and are
manipulated only by ORACLE.
SYSTEM user account - It has all the system privileges for the database and
additional tables and views that display administrative information and internal
tables and views used by oracle tools are created using this username.
Question :
What is the use of ANALYZE command ?
Answers:
To perform one of these function on an index,table, or cluster:
- To collect statistics about object used by the optimizer and store them in the
data dictionary.
- To delete statistics about the object used by object from the data dictionary.
- To validate the structure of the object.
- To identify migrated and chained rows of the table or cluster.
Question :
What are the responsibilities of a Database Administrator ?
Answers:
Installing and upgrading the Oracle Server and application tools.
Allocating system storage and planning future storage requirements for the database
system. Managing primary database structures (tablespaces) Managing primary objects
(table,views,indexes)
Enrolling users and maintaining system security. Ensuring compliance with Oralce
license agreement Controlling and monitoring user access to the database.
Monitoring and optimizing the performance of the database. Planning for backup and
recovery of database information. Maintain archived data on tape
Backing up and restoring the database. Contacting Oracle Corporation for technical
support.
Question :
What are the different Levels of Auditing ?
Answers: Statement Auditing, Privilege Auditing and Object Auditing.
Question :
What is a trace file and how is it created ?
Answers:
Each server and background process can write an associated trace file. When an
internal error is detected by a process or user process, it dumps information about
the error to its trace. This can be used for tuning the database.
g:\prints\interview\Interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Weblogic Interview
===================:
Answer
Oracle WebLogic Server is J2EE Server (earlier known as BEA WebLogic Server)
similar to Oracle Application Server.
Oracle Weblogic server
Answer
Oracle weblogic server includes
1)Domain
2)cluster
3)servers
Answer
Oracle bought Weblogic from BEA. BSU Stands for Bea Smart Update. This utility is
used to apply the WebLogic Server Patches. In simple terms, it is first letter of
name of founders Bill Coleman, Ed Scott and Alfred Chuang.
There can only be one administration Server in domain and zero to N Managed Server.
Answer
Admin server is the central point from where you can configure, Monitor and manage
all resources of a domain.
Administration Server is WebLogic Server instance that maintains configuration data
for a domain. You can deploy your application on administration Server but it is
recommended to create managed Server and deploy your application in managed server
and leave Administration domain for configuration and maintenance.
There will always be at least one Administration Server in a domain.
Answer
startWeblogic.sh script to start the weblogic server
Answer
By default, if a Managed Server is unable to connect to the specified
Administration Server during startup, it can retrieve its configuration by reading
a configuration file and other files directly. You cannot change the server�s
configuration until the Administration Server is available. A Managed Server that
starts in this way is running in Managed Server Independence mode
Answer
WebLogic Server installs the following script that you can use to set the classpath
that a server requires:
WL_HOME\server\bin\setWLSEnv.cmd (on Windows)
WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
Answer
Two or more managed server becomes or forms the cluster in a domain and cluster
handle the load balancing across the cluster.
Group of WebLogic Managed Server Instances that work together to provide high
availability and scalability for applications is called cluster. WebLogic Servers
with in cluster can run on same machine or different machines. These are also
called as managed Server cluster.
What is Server
Answer
Server is an instance of your WebLogic which is running on a JVM and has dedicated
RAM.
Answer:
$WL_HOME\server\bin\startNodeManager.sh
Answer
A Node Manager process is not associated with a specific WebLogic domain but with a
machine. You can use the same Node Manager process to control server instances in
any WebLogic Server domain, as long as the server instances reside on the same
machine as the Node Manager process. Node Manager must run on each computer that
hosts WebLogic Server instances. whether Administration Server or Managed Server
that you want to control with Node Manager.
Answer
There are 3 types of weblogic installation.
Answer:
Members of the Cluster communicate over the Cluster Multicast IP and Port by
sending periodic heart beat messages.
What is the difference between the Sun JVM and BEA JRockit JVM?
Answer
The most well know JVM is the implementation from Sun. The Sun JVM is called
HotSpot. The Sun JVM is shipped in the Java Developer�s Kit (JDK) and Java Runtime
Environment (JRE) from Sun.
The BEA JRockit JVM from BEA systems is optimized for reliability and performance
for server side applications. To achieve this, BEA JRockit JVM uses technologies
such as code generation, hot spot detection, code optimization, advanced garbage
collection algorithms and tight operating system integration.
Answer
a. Application Tuning.
jsp precompilation, ejb pool size cache..
b. OS Tuning
Setting tcp ip parameter.
tcp_time_wait_interval
tcp_conn_req_max_q
d. JVM Tuning
tuning gc strategy, monitoring garbage collection..
Answer
Clients that connect to a WebLogic Server cluster and look up a clustered object
obtain a replica-aware stub for the object. This stub contains the list of
available server instances that host implementations of the object. The stub also
contains the load balancing logic for distributing the load among its host servers
Answer
HTTP tuning provides a way to simulate a tasteful socket connection between
WebLogic Server and a Java client when your only option is to use the HTTP
protocol. It is
generally used to tunnel through an HTTP port in a security firewall. HTTP is a
stateless protocol, but WebLogic Server provides tunneling functionality to make
the connection appear to be a regular T3Connection.
Steps to configure Http tunneling.
Login into the Admin Console, click on the server on which you want to enable he
Http Tunneling feature
Click on the Protocols tab
General
check the �Enable Tunneling� check box.
Now you can communicate with the JVMs (Server Instances) using protocols other than
t3
Answer
WebLogic uses the T3 protocols for internal and external connections to the
servers. The T3 protocol often is used in WebLogic implementation of RMI.
Proprietary of WebLogic Server.
Http protocols are used primarily for HTTP communication between the browser and
the web server. Standard follows the W3C (World Wide Web Consortium).
Note: All of these protocols are, by default, multiplexed over the same connection
to the server�s address and port. So you can access a web page hosted by the
server using a URL such as http://host:port/page.jsp. An external client can set
up an initial JNDI context to a server using the URL t3://host:port/. All that has
changed is the protocol over which the client must communicate with the server.
Answer
There are 9 states of server which are given below
Shutdown
Starting
Standby
Resuming
Running
Suspending
Shutting down
Failed
Unknown
Answer
Unicast is the method used in the clustering technique where there are cluster
master and each server should ping to this cluster master for informing that the
server is alive.
Answer
ssl enabled admin console accessed as :
https://<hostname_or_ip_address_where_admin_server_running>:<port_on_which_admin_se
rver_is _running>/console
Example � https://localhost:7001/console
http://<hostname_or_ip_address_where_admin_server_running>:<port_on_which_admin_ser
ver_is_ running>/console
Example � http://localhost:7001/console
Answer
only one is possible
Answer
7001
Answer
config.xml is the central configuration repository for a domain. every resource you
have configured from admin console or by command line or by any other tool
registered under this file.
Answer
boot.properties is the file used by admin or managed server during startup for
username and password. it exist under your domain/servers/server_name/security
folder.
When you create a domain in development mode then it creates automatically during
startup of admin server but if you create a domain in production mode then you
need to define it explicitly otherwise on every reboot of admin server it will
prompt you for username and password.
So in production mode �
Start admin server by manually passing the username and password
stop it ( press cntrl+c on the started session )
go to your domain/servers/your_admin_server/ create a folder �security�
go inside security and create a file �boot.properties� with below contents
username=your_admin_username
password=your_admin_password
now start the admin server, it will not prompt you for username & password further.
If you are going to start your managed servers from admin console then no need to
create this file for managed server but if you are going to start managed servers
via startManagedweblogic script then you need to follow the same above procedure
for each
managed server.
Answer:
Basically all the web-tier related files (.jsp .class, JSPCompiled files etc.,) get
stored in some directory. This is treated as cache whenever there is restart of a
WebLogic instance happen then the WebLogic server will look-up for last serviced
object status stored in the cache to service for any pending requests. Usually,
when your EJB Classes need sessions, JMS object requires persistance, your web-
tier may contain static contents then Cache will be used by WebLogic Application
Server instance.
Answer:
Whenever your application is accessed for the first time that fresh deployment of a
new version, WebLogic server lookup in this directory, if there are older objects
persists that will be conflict with new code objects. This is where the need of
removal of cache arises.Where there is a need of new version deployment we might
need to clear the cache when the changes to the new version is not reflected.
WIN: C:\weblogic\user_projects\domains\yourdomain\servers\yourserver\tmp
UNIX: /weblogic/user_projects/domains/yourdomain/servers/yourserver/tmp
Here I am removing all the subdirectories and files in the the given directory.
Answer
Thread Dump is a textual dump of all active threads and monitors of Java apps
running in a
Virtual Machine.
When we will take Thread dump? Please give us some examples
Answer
Answer
we have to take a Thread dumps many times when we faced issues. We can choose one
Procedure. For analyzing take dumps some Intervals (like every 20mins, 5mins etc.).
Answer
We can manage the whole gamut of activities from Node manager
1) Start, Shut Down, and Restart an Administration Server
2) Start, Shut Down, Suspend, and Restart Managed Servers
3) Monitor Servers and View Log Data
Answer
netstat -na |grep connected (to find the ports connected in Linux box.)
netstat -na |grep listen (to find the listening ports in HP-UX,Solaris)
Answer
There are various capabilities associated with WebLogic server and they are
Changes in dynamic configuration.
Production application redeployment
Rolling upgrades.
Answer:
For changing the JVM can be done by following the steps below.
1)You should first set the JAVA_HOME in the start script of the server.
2)Change the config.xml of domain for using the JRockit javac.exe
3) Remove any kind of switches specific to Sun JVM from start scripts of server.
Answer:
We see error like 404 and 500. What does they mean?
Answer
The error code 404 � Page not found this says there is no page on the server when
browser client requesting, this can happen when application is not deployed
properly or not in active state or not initialized properly
500- Internal server error This error occurs when there is a communication issue
between server�s intermediate services
Staged deployment will copy your deployment units onto the deployment servers,
place them into the $WL_HOME/servers/SERVER_NAME/stage directory and deploy them
from there.
In no-stage mode, the Administration Server does not copy the archive files from
their source location. Instead, each target server must access the archive files
from a single source directory for deployment. The staging directory of target
servers is ignored for no-stage deployments.
Answer
java -version run this command in linux to know the java version.
Rac Interview
==============:
In a RAC environment, it is the combining of data blocks, which are shipped across
the interconnect from remote database caches (SGA) to the local node, in order to
fulfill the requirements for a transaction (DML, Query of Data Dictionary).
When database nodes in a cluster are unable to communicate with each other, they
may continue to process and modify the data blocks independently. If the
same block is modified by more than one instance, synchronization/locking of the
data blocks does not take place and blocks may be overwritten by others in the
cluster. This state is called split brain.
It is a private network which is used to ship data blocks from one instance to
another for cache fusion. The physical data blocks as well as data dictionary
blocks are shared across this interconnect.
How do you determine what protocol is being used for Interconnect traffic?
One of the ways is to look at the database alert log for the time period when the
database was started up.
What methods are available to keep the time synchronized on all nodes in the
cluster?
Either the Network Time Protocol(NTP) can be configured or in 11gr2, Cluster Time
Synchronization Service (CTSS) can be used.
Where does the Clusterware write when there is a network or Storage missed
heartbeat?
The ocrconfig -showbackup can be run to find out the automatic and manually run
backups.
You can use either the logical or the physical OCR backup copy to restore the
Repository.
How do you find out what object has its blocks being shipped across the instance
the most?
You can query the V$ACTIVE_INSTANCES view to determine the member instances of the
RAC cluster.
The Cluster Health Monitor (CHM) stores operating system metrics in the CHM
repository for all nodes in a RAC cluster. It stores information on CPU, memory,
process, network and other OS data, This information can later be retrieved and
used to troubleshoot and identify any cluster related issues. It is a default
component of the 11gr2 grid install. The data is stored in the master repository
and replicated to a standby repository on a different node.
What would be the possible performance impact in a cluster if a less powerful node
(e.g. slower CPU�s) is added to the cluster?
All processing will show down to the CPU speed of the slowest server.
Oracle Local repository contains information that allows the cluster processes to
be started up with the OCR being in the ASM storage ssytem. Since the ASM file
system is unavailable until the Grid processes are started up a local copy of the
contents of the OCR is required which is stored in the OLR.
In 10g the default SGA size is 1G in 11g it is set to 256M and in 12c ASM it is set
back to 1G.
You can use md_backup to restore the ASM diskgroup configuration in-case of ASM
diskgroup storage loss.
Datafiles
Redo logfiles
Spfiles
In 12c the files below can also new be stored in the ASM Diskgroup
Password file
What it the ASM POWER_LIMIT?
This is the parameter which controls the number of Allocation units the ASM
instance will try to rebalance at any given time. In ASM versions less than
11.2.0.3 the default value is 11 however it has been changed to unlimited in later
versions.
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
INSTANCE_TYPE (RDBMS or ASM)
ACTIVE_INSTANCE_COUNT
UNDO_MANAGEMENT
What is the future of the Oracle Grid?
The Grid software is becoming more and more capable of not just supporting HA for
Oracle Databases but also other applications including Oracle�s applications. With
12c there are more features and functionality built-in and it is easier to deploy
these pre-built solutions, available for common Oracle applications.
Is there an easy way to verify the inventory for all remote nodes
You can run the opatch lsinventory -all_nodes command from a single node to look at
the inventory details for all nodes in the cluster.
Weblogic
=========:
Deployment descriptors are associated with almost all the modules as well as
applications. The deployment descriptors can be seen in the form of XML documents,
and they are capable of describing the contents that are part of the directory or
the jar file. J2EE specifications usually define the standard as well as the
deployment descriptors which are portable for J2EE applications and modules.
2. What is web.xml ?
Web.xml is an XML document that is mainly for application purpose and it helps in
listing out the J2EE components and configuration that of your application in J2EE
modules format.
3. What is the name of default JVM that is made used for WebLogic?
The sun hotspot JDK default is made used for development, JRockit is the one used
for production of WebLogic 11g as well as 12c. Operating system is another factor
that helps in choosing the certified JDK JVM.
4. Explain the methods for providing user credentials for starting the server?
At the time of the creation of domain, the wizard for setting configuration asks
for the details like user name, password etc. from the user who is logging in for
the first time as an administrator. If the domain is created in development mode,
the configuration wizard saves the encrypted password as well as the username
inside an identity file. This file is available for reference during the time of
booting so that in the absence of this file, system can prompt the user for the
purpose of entering credentials. A new boot � identity file can be created if you
want to change the use credentials or else if you are having the requirement of
creating domain in the production mode.
5. Is there any possibility for starting managed server during the absence of
administrator server?
The usual process is that in case of any difficulty for the manager server to get
connected to any administration server at the time of start up, there is an option
for the managed server to retrieve the configuration related to it from the
configuration files as well as other files involved. The information thus
retrieved cannot be altered and it is possible only when the administration server
is really available. When the administration server is unavailable, then the
managed server enters into its independence mode for carrying out its operations.
There are various capabilities associated with WebLogic server and they are
Changes in dynamic configuration.
Production application redeployment
Rolling upgrades.
HTTP is the protocol that is made used for the purpose of enabling communication
between the WebLogic server and processes.
11. How do stubs function inside WebLogic server cluster at the time of failure?
Stubs perform the process of removing the failed instance from the list whenever
there is a failure. The stub usually makes use of DNS for finding the running
server and also for obtaining the list of the instances that are currently
available with the application. List of the instances available with the server
inside cluster gets periodically refreshment and allows in acquiring advantages
associated with new servers. The advantages are gained as the server gets added to
the cluster.
For changing the JVM can be done by following the steps below.
You should first set the JAVA_HOME in the start script of the server.
Change the config.xml of domain for using the JRockit javac.exe
Remove any kind of switches specific to Sun JVM from start scripts of server.
13. How clients handle the DNS � requests to the failed servers?
Bandwidth gets wasted in the case of continues DNS requests to that of unavailable
machine at the time of server failure. This problem usually occurs during the time
of startup associated with the application that of client side. The servers that
are unavailable are removed by searching DNS entries provided by WebLogic server.
This removal prevents the clients from accessing failed servers. A third party load
� balancers are made used for avoiding the unnecessary DNS requests. Some of the
third party load � balancers are BigIP, resonate, local director and Alteon. The
main function of these third party loads � balancers is to mask multiple addresses
of DNS in to a single one.
T3 is capable of providing framework or overall structure for the messages that are
capable of supporting the enhancements. The enhancements comprises of product
tunneling, working in the context associated with clusters of WebLogic server and
also in object replacement.
Stub is usually expected by the people who connect to the WebLogic server cluster.
The stub has the list that consists of the available instances of server that
perform host implementations associated with object. The stub also has the
functionality of balancing the load by distributing load amongst the host servers.
17. What are the steps for the creation of Pooling within Tomcat server?
The first step involved in this process of creating pooling is to download 3 jar
files which are the commons-dbcp-1.2 jar, commons-pool-1.3.jar and commons-
collections-3.1 jar.
The next step is to make an entry inside server.xml of tomcat factory.
18. How can you differentiate server crash and server hang?
With a server crash, there is no existence for the Java process and if it is a
server hang, then the Java process stops responding.
The major reasons for the occurrence of server crash are the native IO, JVM,
supported configuration, JDBC driver issues and SSL native libraries.
A crash associated with JVM is capable of generating hs_err_pid file. You need to
refer this file for finding out the root cause for such a crash. In the case of
native IO being the origin of thread, you need to disable it. If the origin of the
problem is from the driver, need to contact the driver team.
Java WebLogic.Admin PING needs to be checked for finding whether you get a normal
and positive response. You can find out the root cause for hanging from this file.
You just need to rectify the errors that are identified from this file.
Memory leak is the condition that arises when the objects get retained in the heap
even after they have no use.
There are various reasons that can lead to this condition and they are
There is a possibility for collecting the memory data after enabling GC � verbose.
If the condition has aroused because of HTTP session, then it will be automatically
solved when the session gets time out. You should also verify the code associated
with the handling of jdbc connectivity. You should also optimize the size of the
heap by considering the load.
26. When can high usage of CPU occur?
This is the condition that usually occurs when a single thread or process makes use
of a larger portion of the CPU in an unexpected manner.
27. How can the issue associated with high CPU usage be solved?
In windows platform the issue of CPU high usage can easily be solved by making use
of pslist and also with the process explorer to observe the function performed by
the thread or the process.
Clustering is the process of grouping the servers together for accomplishing high
percentage of scalability and availability.
The major goal of performing the process of clustering is to make high scalability
as well as availability of the servers possible. This process also helps in
balancing the load in a proper manner and also accomplishes failover.
The WebLogic installation usually occurs in three different modes which are:
Graphical mode
Console mode
Silent mode.
32. What is Graphic mode?
It is a kind of installation type that makes use of interactive GUI.
This is a kind of installation type that follows interactive text based method.
Unicast is the method used in the clustering technique where there are cluster
master and each server should ping to this cluster master for informing that the
server is alive.
It is a kind of clustering system where there is no cluster master and each and
every server needs to ping each other for informing their existence. Multicasting
has many messages to be sent in the form of ping as each server needs to inform all
others about its existence. This condition creates much complexity associated with
the method compared to unicast.
Stage deployment is a kind of process in which the admin gets a physical copy which
is distributed to the other instances.
There is no copy in the administrator but each and every server needs to contact
the source directly for getting the item to be deployed.
The availability of the new server in the cluster is broadcasted by the WebLogic
server � cluster.
43. How many WebLogic servers can be held inside a multi-processor machine?
This is the process involving the tuning of work manager, chuck size, performance
packs, chunk pool size and connection backlog buffering.
This process involves monitoring of the garbage collection and the tuning of gc
strategy.
Node manager is a service from Java that is capable of running separate process
other than that of WebLogic server.
Domain can be defined as the group which comprises of various WebLogic � server
resources.
Create servers.
Clusters.
Machines.
Configure services such as JMS, JDBC, Applications
Answer :
The non-SSL listen port for the Administration Server's default network
configuration is 7001 by default.
The SSL listen port for the Administration Server's default network configuration
is 7002 by default.
WebLogic Admin servers and Managed servers could communicate with Admin port which
is separate network channel. So that other communications can be run on different
networks.
ANSWER :
Ssl enabled admin console accessed as :
https://hostname or ip address (where admin server running):(port on which admin
server is ssl
enabled admin console accessed as :
Example - https://localhost:7002/console
mode:
ANSWER :
Only One
ANSWER :
boot.properties is the file used by admin or managed server during startup for
username and
password. it exist under your domain/servers/server_name/security folder.
What is config.xml?
ANSWER :
config.xml is the central configuration repository for a domain. every resource you
have
configured from admin console or by command line or by any other tool registered
under this file.
WLS 9.x onwards, this file contain references to other xml configuration files also
those are under your
domain/config folder ( further sub folder under it for respective resources ).
How do I provide User credentials for starting weblogic server?
ANSWER :
When you create a domain, the Configuration Wizard prompts you to provide the
username
and password for an initial administrative user. If you create the domain in
development mode, the
wizard saves the username and encrypted password in a boot identity file. A
WebLogic Server instance
can refer to a boot identity file during its startup process. If a server instance
does not find such a file,it
prompts you to enter credentials.
If you create a domain in production mode, or if you want to change user
credentials in an existing boot
identity file, you can create a new boot identity file.
ANSWER :
WebLogic clustering offers three important benefits:
1. Scalability:
The capacity of an application deployed on a WebLogic Server cluster can be
increased dynamically to
meet demand. You can add server instances to a cluster without interruption of
service � the application
continues to run without impact to clients and end users.
2. Load balancing:
The ability to distribute requests across all members of the cluster, according
tothe workload on each
server.
3. High availability:
A mix of features that ensure applications and services are available even if
aserver or machine fails.
Clients can continue to work with little or no disruption ina highly available
environment. WebLogic
achieves high availability using acombination of features: replication, failover,
and migratable services.
ANSWER :
In the WebLogic console, in the left navigation tree, click on "Environment", then
"Servers".
Then click on one of the servers in the list. Then click on the "Monitoring" tab.
Look at the "WebLogic
Version" field.
ANSWER :
WebLogic Server installs the following script that you can use to set the
classpath that a server requires:
WL_HOME\server\bin\setWLSEnv.cmd (on Windows)
WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
ANSWER :
Managed servers communicate each other using t3 protocol internally.
ANSWER :
These are the types.
1) Auto Deployment
2) Console
3) Command line � weblogic.deployer
4) ANT / WLST
Can you explain what is current control file? if we are using multiplexed control
files, then which is current control file (CONTROL01.CTL,CONTROL02.CTL or
CONTROL03.CTL)? RMAN take which controlfile backup?
What is SCN?
Ans) The SCN is an Oracle server�assigned number that indicates a committed version
of the database. It�s quite possible that different datafiles in the database might
have a different SCN at any given point in time.
At checkpoint, the server will makes all database file SCNs and control file SCN
consistent with respect to an identical SCN.The datafiles will not contain any
database changes beyond that common SCN. This synchronization of the SCNs will make
sure we have a consistent backup of database.
When you are doing hot backup, you may end up with backups of the various datafiles
at various time points and different SCNs and you can not open a database without
synchronizing the SCN on all data files, so you will have to apply archive logs to
make the data current and synchronize the SCNs across the datafiles.
During instance recovery, in the first roll forward operation, the database server
must apply all transactions between the last checkpoint and the end of the redo log
to the datafiles. Thus, in order to tune instance recovery, you control the gap
between the checkpoint position and the end of the redo log. This is called Mean
Time to Recover (MTTR).
There was a media failure. How can you find which files you must recover?
Ans) By querying the V$RECOVER_FILE view, which lists all files that need media
recovery.
Ans)
� powerful Data Recovery Advisor feature
� simpler backup and recovery commands
� automatically manages the backup files without DBA intervention.
� automatically deletes unnecessary backup datafiles and archived redo log files
both from disk and tape.
� provides you with detailed reporting of backup actions
� Easy to duplicate a database or create standby database.
� Without actually restoring data, you can test whether you will be able to do it
or not
� Incremental backup! only RMAN can do that.
� Active Duplication! (11g new feature), you can perform database duplication
without backups by using the network enabled database duplication feature
� automatically detects corrupt data blocks during backups
� Data block level recovery possible in case only few DB blocks are corrupt
� Encrypted backups possible
� Use RMAN with a variety of third-party storage systems easily
How important is Database Redundancy Set and where you should plan to keep it?
Ans) Database Redundancy Set is essential set of recovery-related files. As a DBA,
you need to be well prepared for any kind of contingency situation.
It should contain below:
� Recent backups of all datafiles & control file (duplex or triplex the control
file at database level)
� All archived redo logs made after the last backup
� Current control files and online redo file copies (duplex online redo files at
database level)
� Oracle database-related configuration file copies (spfile, password file,
tnsnames.ora and listener.ora files etc)
Operating system mirroring is good, but you should do database level mirroring
wherever possible.
If you using ASM, try to have atleast Normal redundancy.
When setting up production systems, use at least two disk drives(one for the
redundancy set and the other for the datafiles). They should be completely
separated by using different volumes, file systems, disk controllers, and RAID
devices to hold the two sets of files
You can set up FRA for keeping the redundancy set. Oracle recommends the flash
recovery area as a logical candidate to keep a copy of all the files belonging to
the redundancy set (which includes the most recent database backup) on disk.
Below command can be used to have automatic control file backup to be taken. This
is highly recommended.
RMAN> configure controlfile autobackup on
Now at the end of every RMAN backup command, RMAN automatically backs up the
control file.
Even when you make some changes via SQL*Plus( say creating a new tablespace or
adding or renaming a datafile or an online redo log member), the control file is
automatically backed up.
Also, you can restore RMAN�s backup and recovery information (called RMAN�s
repository), when you lose all your control files and aren�t using the optional
recovery catalog.
Sometimes RMAN log files may have already been overwritten by the next backup or
simply just deleted. This is an alternative way of accessing the RMAN output
information
For Example:
Review the last two days worth of rman output:
select output
from v$rman_output
where session_recid in (select session_recid from v$rman_status
where start_time > sysdate-2)
order by recid ;
OUTPUT
�������������������������������������������-
connected to target database: BRIJ (DBID=3142459675)
using target database control file instead of recovery catalog
echo set on
backup archivelog all not backed up delete all input;
Starting backup at 09-FEB-14
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=124 instance=BRIJ devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=126 instance=BRIJ devtype=DISK
�.
What all you can store in Flash Recovery Area(FRA)? Can one FRA directory be used
for more than one database?
You can use the same flash recovery area for as many databases as you want. The
RMAN backup process will create a subdirectory called <SID_NAME>, the same name as
the database you are backing up.
Which views can be used for Checking Space Usage in the FRA?
Ans) Check Below..
7 rows selected.
Is putting control file and online redo logs in Flash Recovery Area (FRA)
advisable?
Ans) Control file is very important file for the database operation. Loosing a
single control file will make the database unstable and will lead to interruption
in service.
So we will always try to put control file in a safe and stable place.
Similarly online logs are equally important and loosing them can also cause
database to crash, incomplete recovery and possible data loss.
CASE 1:
Usually the flash recovery area and the main database disks are located in such a
way that the probability of both going down at the same time is very slim.
And If your flash recovery area is in a storage location as reliable as the main
database storage, then you should put one control file and one redo member/log
group there.
It will surely help you in quick and complete recovery.
CASE 2:
If your flash recovery area is NOT as reliable as the main database storage, the
chance of failure in the flash recovery area is greater compared to the main
database disks. If the flash recovery area fails, then you lose one of the control
files and the online redo log. You will be able to start database easily by
removing that control file from the control file parameter in the initialization
parameter file (copying online log from the secondary Non-FRA location) and
restarting it but you will have an interruption of production service, which is
very undesirable.
Scenario A)
Besides FRA, we have multiplexed Control files to two other separate location, so
risk of loosing control file (and fear of not able to do complete recovery) is
minimized
We won�t be putting even a single control file in the FRA.
Scenario B)
Besides FRA, we have multiplexed Control files to only one other separate location,
so risk of loosing control file and (and fear of not able to do complete recovery)
is more. Complete recovery of database is of primary importance to you than the
database interruption.
Here we can go and put the control file in FRA.
How can you make sure that only one of the redo log member is created in FRA?
Ans) If you want only one member of the group in the flash recovery area and the
other one in the regular database file location, you should define two
parameters�the flash recovery area and db_create_file_dest.
Can Recovery Catalog database also be shutdown from RMAN prompt like TARGET
Database can be done?
Ans) All the shutdown and startup commands applies only to the target database. You
can�t start and stop the recovery catalog instance from RMAN. The only way to start
up and shut down the recovery catalog instance is by connecting to the recovery
catalog database as the target database and by issuing the relevant commands to
start or stop the instance.
How to check the syntax of RMAN commands?
Ans) Start the RMAN client with the operating system command-line argument
checksyntax.
$ rman checksyntax
Recovery Manager: Release 11.2.0.4.0 � Production on Wed Feb 12 14:36:22 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target /
The command has no syntax errors
RMAN> backup database;
The command has no syntax errors
You can also use the checksyntax argument to check the syntax of RMAN commands that
are part of a command file.
Example:
$ rman checksyntax @/tmp/rmancmdfile
Does using recovery catalog means RMAN won�t use the control file to store
information?
Ans) No. Even when you choose to use a recovery catalog, backup information will
continue to be stored in the control file as well by default.
Ans)
� provides larger storage capacity, thus enabling access to a longer history of
backups
� you can create and store RMAN scripts in the recovery catalog and Any client that
can connect to the recovery catalog and a target database can use these stored
scripts
� Can service many target databases
� you can use �KEEP FOREVER� clause of RMAN backup command.
� Allows you to list the data files and tablespaces that are or were in the target
database at a given time
When above command is executed, RMAN will first create a snapshot control file.
It�ll then compare the contents of the recovery catalog to the contents of the
snapshot control file and update the recovery catalog by adding the missing
information and modifying the changed backup and schema related records.
You want to move your recovery catalog from one database to another. How you can do
it?
a) Create a new recovery catalog in the target database. You don�t need to register
any database to it
b) Use the import catalog command in RMAN after connecting to the target database:
$ rman
Ans) You can easily check the version of your recovery catalog by issuing the
following command from SQL*Plus after logging in as the recovery catalog owner:
VERSION
����
11.02.00.04
Ans)
Oracle 11i uses Jserv as the servlet engine. R12 uses OC4J as the servlet engine.
R12 uses version 10g of the Oracle Application Server, which does not have or use
jserv
Once you click on the Oracle E-Business Home Page link, the reuest is forwarded by
Apache to Jserv. Jserv sends it to Appslogin servlet
Few related useful definitions below :
a) Apache JServ
� the 100% pure Java server application that acts as an independent servlet-reuest
server.
b) mod_jserv
� the Apache module that converts HTTP reuests to servlet reuests, connecting to
the proper servlet engine and sending back the HTTP response to the client.
d )Servlet
� A servlet is a Java server side application that runs inside a network service,
such as a web server.It responds to reuests from clients, accepting client input
and dynamically generating output. For example, a database uerying servlet may
receive a client�s uery, run it against the connected database, process obtained
data, and return formatted output to the client.
A high number of MaxClients can overload the system resources and may lead to poor
performance.
For a high user population with fewer reuests, consider increasing the MaxClients
to support KeepAlive connections to avoid starvation. Note that this can impact
overall performance if the user concurrency increases. System performance is
impacted by increased concurrency and can possibly cause the system to fail.To
avoid potential performance issues, values for any parameters should be set only
after considering the nature of the workload and the system capacity.
Applsys
schema contains all the tables reuired for administarative purpose. The default
password is apps. All the technical products� database objects are consolidated
into a single schema called Applsys
It is a schema that stores the data objects for the Applications technology layer
products (FND, AD, and so on).
Applsyspub
FND_UNSUCCESSFUL_LOGINS
FND_SESSIONS
FND_PRODUCT_INSTALLATIONS
FND_PRODUCT_GROUPS
FND_MESSAGES
FND_LANGUAGES_TL
FND_APPLICATION_TL
FND_APPLICATION_VL
FND_LANGUAGES_VL
FND_SIGNON
FND_PUB_MESSAGE
FND_WEBFILEPUB
FND_DISCONNECTED
FND_MESSAGE
FND_SECURITY_PKG
FND_LOOKUPS
The Service Manager (FNDSM) PID can be used to locate all concurrent manager and
service processes on the node, since the Service Manager (FNDSM) is the parent
process
Keep in mind that the ICM really does NOT have any concurrent reuest scheduling
responsibilities. It has NOTHING to do with scheduling reuests, or deciding which
manager will run a particular reuest.
Its function is only to run �ueue control� reuests, which are reuests to startup or
shutdown other managers. It is responsible for startup and shutdown of the whole
concurrent processing facility, and it also monitors the other managers
periodically, and restarts them if they should go down. It can also take over the
Conflict Resolution manager�s job, and resolve incompatibilities.
8 What happen if �alter user apps identified by password� is fired for apps user?
We cannot change apps password through alter user statement because Oracle
Application use APPS PASSWORD to encrypt end user�s password in FND_USER and oracle
user�s password in FND_ORACLE_USERID. So using FNDCPASS to change password of APPS,
changes the column encrypted_oracle_password in these two tables, but alter don�t
do this actions. FNDCPASS update DBA_USERS table as well.
While when you run �alter user apps identified by password� it will update only
DBA_USERS.
If you have mistakenly did used �alter user�, you may see below error:
9 How will you plan to do multi-node to single node cloning in 11i and R12?
In 11i, RapidInstall copies from the Staging Area only reports on CM nodes and
Forms on the Web nodes. To do multi-node to single node clone in 11i, it is called
merging appltops.
$perl adpreclone.pl appsTier merge
and then copy /clone/appl from every source appl server
Depending on which tier you chose as the primary node, certain files may be
missing. Run adadmin to verify files reuired at runtime. If any files are listed as
missing files, you must manually copy them to the merged APPL_TOP from other nodes�
APPL_TOP
11 ADPATCH creates two tables during patch application. What are the contents of
those tables.
1)fnd_install_processes � This table is used to store the information about the job
given to the worker. It will insert a row for each worker when it assigned a job.
This table serves as a staging area for the job information, and as a way for the
manager and the worker to communicate. Once all jobs are complete, the manager
tells the workers to shut down, and then drops the FND_INSTALL_PROCESSES table
2)ad_deferred_jobs � this table is used to store the information about the deferred
jobs (jobs failed to run).
select Site Map -> License Manager -> License Applications Product
or
$AD_TOP/sl/adlicmgr.sl
FNDFS or the Report Review Agent (RRA) is the default text viewer within Oracle
Applications, which allows users to view report output and log files. Report Review
Agent is also referred to by the executable FNDFS.
When the operation of trying to view reports takes place, the Report Review Agent
needs a valid connection string definition to successfully make the network
connection to the application server, and this is done through the FNSFS entries
presented in the tnsnames.ora file.
1) The user selects �Reuest Output�, �Reuest Log�, or �Manager Log�
2) The file name and nodename are selected from the database.
SELECT outfile_name, outfile_node_name FROM fnd_concurrent_reuests
WHERE reuest_id = :id;
3) The client takes the nodename that was returned and adds FNDFS_ to the
beginning of it.
4) a connection is made to the given host. The listener on
this host receives the connection reuest, and resolves the SID using its
listener.ora file. If it finds a PROGRAM parameter listed for this SID, it will
launch this program. (which should be $FND_TOP/bin/FNDFS)
15 What are the basic steps for Printer Installation in EBS 11i/R12?
For most printing needs, the Pasta Utility offers uick setup and easy maintenance.
For additional flexibility, Oracle E-Business Suite allows you to define your own
printer drivers and print styles.
> use Oracle Application Manager (OAM) to configure Workflow Notification Mailer.
> For Outbound Notification, CM (Concurrent Manager) node should be able to connect
to SMTP (Simple Mail Transfer Protocol) server/relay.
> For Inbound Notification (Optional), CM node should be able to connect to IMAP
(Internet Message Access Protocol) Server.
> Log file for Workflow Mailer Notification are at $APPLCSF/$APPLLOG/FNDC*.txt
> Workflow Notification Mailer in background run as Concurrent Manager (Workflow
Mailer Service, Workflow Agent Listener Service)
> If you wish to configure Inbound Notification as well then ensure IMAP Server
should be configured with a valid user (create Inbox, Processed & Discard folder
for this User)
> Schedule �Workflow Background Process� Concurrent Reuest:
Yes
Applications R11.5.6 and below reuires to first upgrade to R11.5.10.2/10gR2
Applications R11.5.7 and up can be directly upgraded to R12
But 11.5.9 can not be upgraded to R12.2 directly.
18 What are the high level steps for upgrading 11i to R12.1.3?
� If you want to use R12 on 64 Bit, 11i Split configuration- Move 11g Database to
Linux 6 64Bit.
* Install 64 Bit Database 11.2.0.4 software on the new 64 Bit Linux machine.
* Move 11i database from old Linux 32-bit to new Linux-64 bit machine and attach
11i application to new 64 Bit database.
Sometimes you need to apply a second patchin the middle of a running patch.
2. Use adctrl (option 5) to tell managers that all workers have UIT. (Adpatch
session ends!)
6. Login as APPLSYS and revert back to the original tables, ad_deferred_jobs and
fnd_install_processes
ALTER �TABLE� applsys.ad_deferred_jobs_old �RENAME� TO ad_deferred_jobs;
ALTER �TABLE� applsys.fnd_install_processes_old �RENAME� TO fnd_install_processes;
ALTER �INDEX� applsys.ad_deferred_jobs_u1_old �RENAME� TO ad_deferred_jobs_u1;
ALTER �INDEX� applsys.fnd_install_processes_u1_old �RENAME� TO
fnd_install_processes_u1;
CREATE SYNONYM FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;
CREATE SYNONYM AD_DEFERRED_JOBS FOR APPLSYS.AD_DEFERRED_JOBS;
7. Replace the original restart directory:
cd $APPL_TOP/admin/SID/ for example $APPL_TOP/admin/TEST/
mv restart restart_new
mv restart.old restart
8. Run adpatch to continue the first patch (with continue session?Yes)
9. Use adctrl (option 2, will change status to �Fixed/Restart�) to restart the
failed workers for first patch
� AD_BUGS: holds information about the various Oracle Applications bugs whose fixes
have been applied (ie. patched) in the Oracle Applications installation.
So this table holds information about all bug fixes that have been applied. Even if
this patch have been included in other patch.
24 What is forms server? Explain briefly, how the connection of the forms server
works?
The forms server is that server which the forms are hosted. It�s a component of
middle tier. The forms server can be hosted from more than one node and the load
balancing can be implemented with the forms. The forms user interface is used in
the desktop clients for working in Oracle Applications.
� delete information about completed concurrent reuests from below set of tables
FND_CONCURRENT_REUESTS,
FND_RUN_REUESTS,
FND_CONC_REUEST_ARGUMENTS,
FND_CONC_STAT_LIST,
FND_CONCURRENT_PROCESSES,
FND_CONC_STAT_SUMMARY,
FND_CONC_PP_ACTIONS,
FND_RUN_RE_PP_ACTIONS
and FND_DUAL tables.
� also deletes the log and output files for those concurrent reuests from your UNIX
file system
� For parameter �Mode], choose Age so it could delete files older than the number
of days specified in Mode Value.
WF_ITEMS,
WF_ITEM_ACTIVITY_STATUSES,
WF_ITEM_ACTIVITY_STATUSES_H,
WF_ACTIVITY_ATTR_VALUES,
WF_NOTIFICATIONS, and
WF_NOTIFICATION_ATTRIBUTES
There are different components with RapidClone that are used when cloning an Oracle
Applications instance. These are:
When you use �dbTier� option, the perl script will configure both the tech stack
and data stack(ORACLE_HOME and Oracle Database) whereas �dbTechStack� option will
only configures ORACLE_HOME and it WILL NOT create database and this is generally
used while doing hot clone where db creation is a manual step.
27 How To Verify Application Of Pre-install Patches As They Are Not Recorded In
Tables AD_APPLIED_PATCHES Or AD_BUGS?
The preinstall mode of adpatch will not update the ad_bugs neither the
ad_applied_patches tables. The preinstall mode is used when Oracle may reuire
the install of a patch before running AutoInstall to install or upgrade Oracle
Applications. Otherwise, the patch should be applied in normal mode.
Please check the read me of the patch you are applying in pre install mode. It
would typically show the files and file versions installed by the patch.
By checking the file versions in the read me is the easy way to verify if the patch
is installed.
adpsv.txt, which contains information about changes to all files except Java files
Both files are located in the /admin/ directory. Each time you run AutoPatch, it
checks this directory for the existence of the patch information files. If it finds
them, it automatically uploads the information they contain to the patch history
database. If the upload is successful, AutoPatch then deletes the files from the
directory. The AutoPatch log file records whether the upload was successful or
unsuccessful.
28 Does Last Update Date Column In The AD_APPLIED_PATCHES Table Get Updated For
Every Patch Run?
Whereas the tables like ad_applied_patches and ad_bugs do not get updated their
rows with various invocations of adpatchand hence last updated date also does not
change.
Answer Yes, We can run 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?
Answer No because it will create tables while running first session when you start
the 2nd session it will fail due to the first
RELEASE_NAME��������12.1.3
Answer 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.
6) What is FNDLOAD ?
Answer FNDLOAD is a utility which is similar to sqlloder but loads code objects
into database, where as SQLLOADER loads data objects into database.It has the
control file .lct and loader files are .ldt
FNDLOAD APPS/apps 0 Y UPLOAD @INV:patch/115/import/invctcg.lct
@INV:patch/115/import/US/invcat.ldt
7) What is autoconfig?
Answer Context file name and apps password are asked in autoconfig run
$AD_TOP/bin/adconfig.sh
Answer 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.Templates are stored in product top/admin/template
Answer APPL_TOP/admin//log/
Answer:
cd $COMMON_TOP/_pages
find . -name �*� -exec rm -rf {} \;cd $FND_TOP/patch/115/bin
./ojspCompile.pl �compile �flush -p 5
logfile set:
/u01/oracle/TEST/inst/apps/TEST_myserver/logs/appl/rgf/ojsp/ojspc_error.log
starting�(compiling all)
using 10i internal ojsp ver: 10
synchronizing dependency file:
enumerating jsps�8000
parsing jsp�8000
writing deplist�8000
initializing compilation:
eliminating children�5912 (-2088)
translating and compiling:
translating jsps�5912/5912 in 1m40s
compiling jsps�5912/5912 in 4m19s
Finished!
15) 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?
Answer 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.
Related:ADODFCMP utility
23) What is the difference between alter and FNDCPASS in changing apps password?
Answer FNDCPASS will update some fnd tables like FND_ORACLE_USERID, FND_USERS other
than standard tables.
Answer
$IAS_ORACLE_HOME/Apache/bin/httpd �version
Related:How to find R12 components Version
25) Where you will see when you have some problem with u r web
server(httpd/Apache)?
Answer Whatever part of u r oracle application u r able to see through web browser
is self service.
27) What are the different modes u can start u r form server?
Answer Vnc server should be up and running at the specified port value in DISPLAY
variable, otherwise reportserver may not able to show the graphics in Reports.
Answer $APPLCSF/$APPLLOG ,If APPLCSF is null, the log out are formed in individual
Product top
30) Is apps password necessary to start all the components of oracle application?
Answer
1. Internal concurrent manager � Will start all other managers and monitor
2. Standard Manager � All concurrent request by default will to go this
3. Conflict resolution manager � Concurrent programs with incompatibility will be
handled by this
4. Transaction manager � Handle all transaction requests
33) What are actual and target count in �Administer Concurrent Managers form�?
Answer It means at operating system level resources are low to accommodate the
required processes for concurrent managers.
Answer Work shifts are nothing but timings at which the concurrent manager is
supposed to run.
36) What if internal concurrent manager target and actual are not same?
Answer dbc file contain database connection information. DBC file is used by oracle
applications to connect to database. Its location is $FND_SECURE
Answer 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�.
Answer Apps lintener is the combination of FNDFS and FNDSM. FNDSM is service
manager which will monitor application services on that node when GSM:enable
profile value is �Y�.
Answer GSM stands for Generic service Manager, which will monitor application
processes like web, forms etc and restarts any of this processes if goes down.
42) How to find out what are the languages enabled in u r applications?
43) What are the problems u have faced while shutting down applications?
Answer 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.
Answer 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
Answer Run adpreclone as applmgr and oracle user on source Perl adpreclone.pl
dbTier as oracle user Perl adpreclone.pl appsTier as applmgr user
Answer tnsping is command used to check the connectivity to the database server
node from other nodes.
Note: Tns entry should be there in tnsnames.ora for the database we are trying to
work this command.
Answer
frmcmp_batch module=/u000/TEST/testappl/au/11.5.0/forms/US/FNDCNP.fmb
userid=APPS/APPS output_file=/u000//TEST/testappl/fnd/11.5.0/forms/US/FNDCNP.fmx
module_type=form batch=yes compile_all=special
49) What is APPLPTMP environment variable?
Answer This is the temporary file location for the pl/sql temp files. If this
variable was not set then the concurrent programs may error-ed out.
Answer Maintenance mode is the adadmin option introduced from AD.I. When
maintenance mode is enabled user may able to login to application but they only get
profile option in the front end navigation menu.
Answer We can even apply a patch without enabling maintenance mode with the
following option
Adpatch options=hotpatch
54) How to validate that any application user password is correct or not from
backend?
Answer
Answer Force compilation of all jsps using the following command ojspCompile.pl
�compile �flush
56) What are the files which contain apps password in R12?
Answer
There is no files
Answer afimchk.sql@FND_TOP/sql
Answer afrqrun.sql@FND_TOP/sql
58) What is the script that Lists managers that currently are running a request?
Answer afcmrrq.sql@FND_TOP/sql
60) How to check whether the product is install,shared and Not installed in Apps.?
This will delete all the entries in the fnd_nodes table, to populate it with target
system node information, Run autoconfig on DB node and Applications node.
FND/AOL Tables
--------------
FND_APPL_TOPS
FND_LOGINS
FND_USER
FND_DM_NODES
FND_TNS_ALIASES
FND_NODES
FND_RESPONSIBILITY
FND_DATABASES
FND_UNSUCCESSFUL_LOGINS
FND_LANGUAGES
FND_APPLICATION
FND_PROFILE_OPTION_VALUES
AD/Patches
-------------
AD_APPLIED_PATCHES
AD_PATCH_DRIVERS
AD_BUGS
AD_INSTALL_PROCESSES
AD_SESSIONS
AD_APPL_TOPS
Q) How to find out if any patch except localisation patch is applied or not, if
applied, that what all drivers it contain and time of it's application
select A.APPLIED_PATCH_ID, A.PATCH_NAME, A.PATCH_TYPE, B.PATCH_DRVIER_ID,
B.DRIVER_FILE_NAME, B.ORIG_PATCH_NAME, B.CREATION_DATE, B.PLATFORM, B.SOURCE_CODE,
B.CREATIONG_DATE, B.FILE_SIZE, B.MERGED_DRIVER_FLAG, B.MERGE_DATE from
AD_APPLIED_PATCHES A, AD_PATCH_DRIVERS B where A.APPLIED_PATCH_ID =
B.APPLIED_PATCH_ID and A.PATCH_NAME = ''
Q) How to know that if the patch is applied successfully, applied on both node or
not, start time of patch application and end time of patch application, patch top
location , session id ... patch run id */
select D.PATCH_NAME, B.APPLICATIONS_SYSTEM_NAME, B.INSTANCE_NAME, B.NAME,
C.DRIVER_FILE_NAME, A.PATCH_DRIVER_ID, A.PATCH_RUN_ID, A.SESSION_ID, A.PATCH_TOP,
A.START_DATE, A.END_DATE, A.SUCCESS_FLAG, A.FAILURE_COMMENTS from AD_PATCH_RUNS A,
AD_APPL_TOPS B, AD_PATCH_DRVIERS C, AD_APPLIED_PATCHES D where A.APPL_TOP_ID =
B.APPL_TOP_ID AND A.PATCH_DRIVER_ID = C.PATCH_DRIVER_ID and C.APPLIED_PATCH_ID =
D.APPLIED_PATCH_ID and A.PATCH_DRIVER_ID in (select PATCH_DRIVER_ID from
AD_PATCH_DRIVERS where APPLIED_PATCH_ID in (select APPLIED_PATCH_ID from
AD_APPLIED_PATCHES where PATCH_NAME = '')) ORDER BY 3;
Q) How To get file version of any application file which is changed through patch
application
select A.FILE_ID, A.APP_SHORT_NAME, A.SUBDIR, A.FILENAME, max(B.VERSION) from
AD_FILES A, AD_FILE_VERSIONS B where A.FILE_ID = B.FILE_ID and B.FILE_ID = 86291
group by A.FILE_ID, A.APP_SHORT_NAME, A.SUBDIR, A.FILENAME
Q) How To get information related to how many time driver file is applied for bugs
select * from AD_PATCH_RUN_BUGS where BUG_ID in (select BUG_ID from AD_BUGS where
BUG_NUMBER = ''
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??
Ans:
Check whether apps listener is running
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.
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.
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)
11)How can u change the logfiles location suppose CM logfile location is APPLCSF
Ans: Change the Configuration File parameters
change s_applcsf,s_appllog,s_applout variables in XML file and run the autoconfig.
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.
20)Can you clone from multi node system to single node system & vice versa ?
Ans:
Yes, This is now supported via Rapid Clone
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
$FND_TOP/secure also called as FND_SECURE
37)What is session time out parameter & where all you define these values ?
Ans:
In Apps there are two broad categories of session
- Self Service Application Session ( Server by Web Server iAS Apache & Jserv, like
iRecruitment,iProcurement)
- Forms session ( served by your form session, like system Administrator)
41)There are lot of dbc file under $FND_SECURE, How its determined that which dbc
file to use from $FND_SECURE ?
Ans:
This value is determined from profile option "Applications Database ID"
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.
52)What is GWYUID ?
Ans:
GWYUID , stands for Gateway User ID and password. Usually like APPLSYSPUB/PUB
Ans : oneoff, mini packs, family packs, maintanance packs, rollup pathches,
colsolidated patches.
Ans : A maintanance pack will upgrade applications from one version to another like
11.5.8 to 11.5.9
12. What is a Rollup patch?
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.
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.
Ans : adpatch
18. What inputs you need to apply a patch other than driver name and etc?
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 can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
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.
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.
32. What is the worker log file name and its location?
Ans : adwork01,adwork02�� and location is APPL_TOP/admin/SID/log
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
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 :
This mode will be usefull to discrease upgrade downtime as its applies bus fixes
without running SQL,EXEC and generate portion of patch.
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.
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?
Ans : bytes column in dba_free_spaces and dba_data_files
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.
2.SETUP � Fill the templated with values from xml and create files
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.
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.
61. What is the configuration file for adutilities (like adadmin,adconfig etc)?
Ans: adconfig.txt @APPL_TOP/admin
66. What is the difference between alter and FNDCPASS in changing apps password?
Ans : FNDCPASS will update some fnd tables other than standard tables.
68. How to find out what component of u r oracle applications were installed on
which node?
Ans : Xml file (context file)
70. What is the configuration file for httpd and what is the location of it ?
Ans : httpd.conf @IAS_ORACLE_HOME/Apache/Apache/conf
71. Where you will see when you have some problem with u r webserver(httpd/Apache)?
Ans : access_log & error_log @IAS_ORACLE_HOME/Apache/Apache/logs
72. When Apache starts what other components its start ?
Ans : PL/SQL Listener, Servlet Engine, OJSP Engine
Ans : jserv is nothing but servlet engine which will run u r servlets. It�s a
module of apache which supports servlets.
75. Where u will see when u r not able to get self service applications?
Ans : access_log,error_log, error_pls, jserv.log, wdbsvr.app(for apps password)
(rm �r _oa__html)
81. What are the different modes u can start u r form server?
Ans : socket and servlet
85. What is report server configuration and log file name and its location?
Ans : Configuration file � REP_.ora
Log file � REP_.log @806_ORACLE_HOME/reports60/server
89. Is apps password necessary to start all the components of oracle application?
Ans : No. Only to start/stop concurrent managers apps password is needed.
1. Internal concurrent manager � Will start all other managers and monitor
92. What are actual and target count in �Adminster Concurrent Managers form�?
95. What if internal concurrent manager target and actual are not same?
Ans : we need to bounce the concurrent manager using adcmctl.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
110. How to find out what are the languages enabled in u r applications?
Ans : Query fnd_languages
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)
If it�s a dead lock, we need to kill that session.
117. How to find adconfig is enabled for oracle operating system user/database?
Ans : If appsutil directory is there in RDBMS_ORACLE_HOME
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.
The Global inventory (or Central inventory) The Local inventory (or Home inventory)
Ans : The Global Inventory is the part of the XML inventory that contains the high
level list of all oracle products installed on a machine. There should therefore be
only one per machine. Its location is defined by the content of oraInst.loc.The
Global Inventory records the physical location of Oracle products installed on the
machine, such as ORACLE_HOMES (RDBMS and IAS) or JRE. It does not have any
information about the detail of patches applied to each ORACLE_HOMEs.The Global
Inventory gets updated every time you install or de-install an ORACLE_HOME on the
machine, be it through OUI Installer, Rapid Install, or Rapid Clone.
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 :
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 : 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.
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.
1.Login as oracle user
---------
TEST2
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
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:
Opatch apply no_inventory
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 : Error:
RC-50013: Fatal: Failed to instantiate
driver/u01/fms2c/appfms2c/fms2cora/iAS/appsutil/driver/instconf.drvCauseThe source
instance has files that adpreclone flags as 'autoconfigable' but in reality they
are not. So adpreclone.pl adds these files into the instconf.drv. Then when
adcfgclone.pl is run on target it looks for the template file to instantiate for
these files and since there isn't a template file adcfgclone.pl fails.
SolutionModify the target's instconf.drv and remove the offending lines. Then rerun
adcfgclone.pl
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)?
Ans: query ad_patch_drivers.
182. How to find out whether a language patch is applied for a perticular patch?
Ans : Query ad_patch_driver_langs.
183. How to validate that sysadmin password is correct or not from backend?
Ans: select fnd_web_sec.validate_login('SYSADMIN','Qwert8765') from dual;
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?
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
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.
196) How to find out JDBC version :
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 :
- time-based
- cancel-based
- change-based
- tablespace recovery
2. LGWR process will hang if the online redo logs are filled faster than the
archiving process?
- true
- false
- true only if database is in ARCHIVELOG mode
- true only if database is in NOARCHIVELOG mode
3. What tablespaces could be recovered while the database is open? (choose two)
- data tablespace
- index tablespace
- system tablespace
- redo logs tablespace
- time-based
- cancel-based
- change-based
- tablespace recovery
5. After which command you should backup your control file? (choose two)
- no mount
- mount
- open
- restricted
- recreate
8. If you import a full database export back to a database, will this apply all
archived log files need it for complete recovery?
- true
- false
9. The characteristics of direct path export are? (choose two)
11. Will alter tablespace ... begin backup; backup all of the data files in that
tablespace?
- true
- false
- true only if database is in NOARCHIVELOG mode
- true only if database is in ARCHIVELOG mode
12. What will be your backup strategy, if your company's data is highly volatile?
13. Will the ARCH process start automatically if you execute alter database archive
log; in SQL*Plus?
- true
- false
14. a. You have a corrupted data file. To minimize the downtime you run
startup mount;
alter database data file ... offline;
- Control file
- init.ora file
- log file
- in SYSTEM tablespace
16. After you activate a standby database what should you do next?
be restored
- only corrupted rows need to be recovered
- because RMAN is recovering faster than manual commands
- ARCHIVELOG
- NOARCHIVELOG
20. After incomplete recovery, how you have to open the database?
- RESETLOGS
- NORESETLOGS
- RESTRICTED
- MOUNT
21. To change a database to archive log, the current database mode must be?
- mount
- nomount
- open
- open restricted
- closed
22. What privilege you must have to change database to archive log mode?
- alter system
- alter database
- alter session
- alter archiving
23. Which type of recovery will recover the database to a time in the past? (choose
three)
- time-based
- cancel-based
- change-based
- datafile recovery
24. What's the result of alter database backup controlfile to trace; command?
- a copy of control file
- generate a editable script file
- backup the database and the control files to the trace directory
- will start backup of the database with error tracing enabled
25. If a background process has an error, where the trace file will be?
- BACKGROUND_DUMP_DEST
- USER_DUMP_DEST
- alert log
- SYSTEM tablespace
- user's default TRACE tablespace
26. Import the full exported file and apply all the archive logs will recover the
database to the point of failure?
- true
- false
ASM
Answer
Oracle ASM is Oracle�s volume manager specially designed for Oracle database data.
It is available since Oracle database version 10g and many improvements have been
made in versions 11g release 1 and 2 and 12c
ASM offers support for Oracle RAC clusters without the requirement to install 3rd
party software, such as cluster aware volume managers or file systems.
ASM is shipped as part of the database server software (Enterprise and Standard
editions) and does not cost extra money to run.
ASM simplifies administration of Oracle related files by allowing the administrator
to reference disk groups
rather than individual disks and files, which are managed by ASM.
Answer The ASM functionality is controlled by an ASM instance. This is not a full
database instance, just the memory structures and as such is very small and
lightweight.
Answer INSTANCE_TYPE � Set to ASM or RDBMS depending on the instance type. The
default is RDBMS.
DB_UNIQUE_NAME � Specifies a globally unique name for the database. This defaults
to +ASM but must be altered if you intend to run multiple ASM instances.
ASM_DISKGROUPS � The list of disk groups that should be mounted by an ASM instance
during instance startup, or by the ALTER DISKGROUP ALL MOUNT statement. ASM
configuration changes are automatically reflected in this parameter.
ASM_DISKSTRING � Specifies a value that can be used to limit the disks considered
for discovery. Altering the default value may improve the speed of disk group mount
time and the speed of adding a disk to a disk group. Changing the parameter to a
value which prevents the discovery of already mounted disks results in an error.
The default value is NULL allowing all suitable disks to be considered.
a) Provides automatic load balancing over all the available disks, thus reducing
hot spots in the file system
b) Prevents fragmentation of disks, so you don�t need to manually relocate data to
tune I/O performance
c) Adding disks is straight forward � ASM automatically performs online disk
reorganization when you add or remove storage
d) Uses redundancy features available in intelligent storage arrays
e)The storage system can store all types of database files
f) Using disk group makes configuration easier, as files are placed into disk
groups
g)ASM provides stripping and mirroring
h) ASM and non-ASM oracle files can coexist
The ASM instance creates an extent map which has a pointer to each 1MB extent of
the data file is located. When a database instance creates or opens a database file
that is managed by ASM, the database instance messages the ASM instance and ASM
returns an extent map for that file. From that point the database instance performs
all I/O directly to the disks unless the location of that file is being changed.
Three things might cause the extent map for a database instance to be updated: 1)
Rebalancing the disk layout following an storage configuration change (adding or
dropping a disk from a disk group), 2) Opening of a new database file and 3)
extending an existing database file when a tablespace is enlarged.
Answer ASM disk groups, each of which comprise of several physical disks that are
controlled as a single unit
Answer They are defined within a disk group to support the required level of
redundancy. For two-way mirroring you would expect a disk group to contain two
failure groups so individual files are written to two locations.
Answer ASM should be installed separately from the database software in its own
ORACLE_HOME directory. This will allow you the flexibility to patch and upgrade ASM
and the database software independently.
Answer Several databases can share a single ASM instance. So, although one can
create multiple ASM instances on a single system, normal configurations should have
one and only one ASM instance per system.
For clustered systems, create one ASM instance per node (called +ASM1, +ASM2, etc).
Here is an example:
Here is an example how you can enable automatic file management with such a setup
in each database served by that ASM instance:
You may also decide to introduce additional disk groups � for example, if you
decide to put historic data on low cost disks, or if you want ASM to mirror
critical data across 2 storage cabinets.
Answer Striping is spreading data across multiple disks so that IO is spread across
multiple disks and hence increase in throughput. It provides read/write performance
but fail over support.
ASM offers two types of striping, with the choice depending on the type of database
file. Coarse striping uses a stripe size of 1MB, and you can use coarse striping
for every file in your database, except for the control files, online redo log
files, and flashback files. Fine striping uses a stripe size of 128KB. You can use
fine striping for control files, online redo log files, and flashback files.
Mirroring means redundancy. It may add performance benefit for read operations but
overhead for write operations. It�s basic purpose is to provide fail over support.
There are three ASM mirroring options:
High Redundancy � In this configuration, for each primary extent, there are two
mirrored extents. For Oracle Database Appliance this means, during normal
operations there would be three extents (one primary and two secondary) containing
the same data, thus providing �high� level of protection. Since ASM distributes the
partnering extents in a way that prevents all extents to be unable due to a
component failure in the IO path, this configuration can sustain at least two
simultaneous disk failures on Oracle Database Appliance (which should be rare but
is possible).
Normal Redundancy � In this configuration, for each primary extent, there is one
mirrored (secondary) extent. This configuration protects against at least one disk
failure. Note that in the event a disk fails in this configuration, although there
is typically no outage or data loss, the system operates in a vulnerable state,
should a second disk fail while the old failed disk replacement has not completed.
Many Oracle Database Appliance customers thus prefer the High Redundancy
configuration to mitigate the lack of additional protection during this time.
External Redundancy � In this configuration there are only primary extents and no
mirrored extents. This option is typically used in traditional non-appliance
environments when the storage sub-system may have existing redundancy such as
hardware mirroring or other types of third-party mirroring in place. Oracle
Database Appliance does not support External Redundancy.8. What is a diskgroup?
A disk group consists of multiple disks and is the fundamental object that ASM
manages. Each disk group contains the metadata that is required for the management
of space in the disk group. The ASM instance manages the metadata about the files
in a Disk Group in the same way that a file system manages metadata about its
files. However, the vast majority of I/O operations do not pass through the ASM
instance. In a moment we will look at how file
I/O works with respect to the ASM instance.
Answer Oracle ASM disk group�s filesystem structure is similar to UNIX filesystem
hierarchy or Windows filesystem hierarchy.
Answer Oracle ASM files are stored within the Oracle ASM diskgroup. If we dig into
internals, oracle ASM files are stored within the Oracle ASM filesystem structures.
17 How are the Oracle ASM files stored within the Oracle ASM filesystem structure?
Answer Oracle ASM files are stored within the Oracle ASM filesystem structures as
objects that RDBMS instances/Oracle database instance access. RDBMS/Oracle instance
treats the Oracle ASM files as standard filesystem files.
18 What are the Oracle ASM files that are stored within the Oracle ASM file
hierarchy?
Answer Files stored in Oracle ASM diskgroup/Oracle ASM file structures include:
1) Datafile
2) Controlfiles
3) Server Parameter Files(SPFILE)
4) Redo Log files
19 How can you access a database file in ASM diskgroup under RDBMS?
Answer Once the ASM file is created in ASM diskgroup, a filename is generated. This
file is now visible to the user via the standard RDBMS view V$DATAFILE.
Answer Incarnation number distinguishes between a new file that has been created
using the same file number and another file that has been deleted
ASM Metadata
Answer This is the parameter which controls the number of Allocation units the ASM
instance will try to rebalance at any given time. In ASM versions less than
11.2.0.3 the default value is 11 however it has been changed to unlimited in later
versions.
Answer No, we cannot modify the redundancy for Diskgroup once it has been created.
To alter it we will be required to create a new Diskgroup and move the files to it.
This can also be done by restoring full backup on the new Diskgroup.
35 Does ASM instance automatically rebalances and takes care of hot spots?
Answer No. This is a myth and ASM does not do it. It will initiate automatic
rebalance only when a new disk is added to Diskgroup or we drop a disk from
existing Diskgroup.
36 What is ASMLIB?
Answer ASMLIB is the support library for the ASM. ASMLIB allows an Oracle database
using ASM more efficient and capable access to diskgroups. The purpose of ASMLIB,
is to provide an alternative interface to identify and access block devices.
Additionally, the ASMLIB API enables storage and operating system vendors to supply
extended storage-related features.
38 Whats is Kfed?
Answer kfed is a utility which can be used to view the ASM Disk information. Syntax
for using it is
kfed read devicename
Answer An ASM storage system requires the use of an additional specialized database
instance called ASM, which will actually manage the storage for a set of Oracle
databases. In order to use ASM storage for your Oracle databases, you must first
ensure that you have Oracle�s Cluster Synchronization Service (CSS) running on your
databases.
CSS is responsible for synchronizing ASM instances and your database instances, and
it is
installed as part of your Oracle software. CSS also synchronizes recovery from an
ASM instance failure. You can find out if the CSS service is running by using the
following command:
41 How to find out the databases, which are using the ASM instance?
Answer
ASMCMD> lsct
SQL> select DB_NAME from V$ASM_CLIENT;
1.What is the difference between recovery catalog and Nocatalog backup in RMAN?
NoCatalog Backup:
Catalog Backup:
Validate command is to examine a backup set and report whether it can be restored.
RMAN scans all of the backup pieces in the specified backup sets and looks at the
checksum to verify that the contents are intact so that backup can be successfully
restored if necessary.
Crosscheck command is to verify the status of backups and copies recorded in the
RMAN repository against media such as disk or tape. The crosscheck command only
processes files created on the same device type as the channel running crosscheck.
We need to put the database in Backup mode for Hot Backup. RMAN Backup does not
need the database to be in Backup mode.
5. Which Tables are have information required for RMAN list & report commands ?
V$BACKUP_FILES and recovery catalog views e.g., RC_DATAFILE_COPY or
RC_ARCHIVED_LOG.
RC_DATABASE_INCARNATION
RC_BACKUP_COPY_DETAILS
RC_BACKUP_CORRUPTION
RC_BACKUP-DATAFILE_SUMMARY
1. Explain the difference between a hot backup and a cold backup and the benefits
associated with each.
Answer:
A hot backup is basically taking a backup of the database while it is still up and
running and it must be in
archive log mode. A cold backup is taking a backup of the database while it is shut
down and does not
require being in archive log mode. The benefit of taking a hot backup is that the
database is still available
for use while the backup is occurring and you can recover the database to any point
in time. The benefit
of taking a cold backup is that it is typically easier to administer the backup and
recovery process. In
addition, since you are taking cold backups the database does not require being in
archive log mode and
thus there will be a slight performance gain as the database is not cutting archive
logs to disk.
2. You have just had to restore from backup and do not have any control files. How
would you go about bringing up this database?
Answer:
I would create a text based backup control file, stipulating where on disk all the
data files where and then
issue the recover command with the using backup control file clause.
5. Give two examples of how you might determine the structure of the table DEPT.
Answer:
Use the describe command or use the dbms_metadata.get_ddl package.
6. Where would you look for errors from the database engine?
Answer:
In the alert log.
9. Give the two types of tables involved in producing a star schema and the type
of data
they hold.
Answer:
Fact tables and dimension tables. A fact table contains measurements while
dimension tables will contain
data that will help describe the fact tables.
12. A table is classified as a parent table and you want to drop and re-create it.
How
would you do this without affecting the children tables?
Answer:
Disable the foreign key constraint to the parent, drop the table, re-create the
table, and enable the foreign
key constraint.
14. What command would you use to create a backup control file?
Answer:
ALTER DATABASE BACKUP CONTROLFILE TO TRACE
15. Give the stages of instance startup to a usable state where normal users may
access
it.
Answer:
STARTUP NOMOUNT - Instance startup
ALTER DATABASE MOUNT - The database is mounted
ALTER DATABASE OPEN - The database is opened
16. What column differentiates the V$ views to the GV$ views and how?
Answer:
The INST_ID column which indicates the instance in a RAC environment the
information came from.
18. How would you go about increasing the buffer cache hit ratio?
Answer:
Use the buffer cache advisory over a given workload and then query the
v$db_cache_advice table. If a
change was necessary then I would use the alter system set db_cache_size command.
21. How would you determine the time zone under which a database was operating?
Answer:
select DBTIMEZONE from dual;
27. Where in the Oracle directory tree structure are audit traces placed?
Answer:
In unix $ORACLE_HOME/rdbms/audit,
in Windows the event viewer
29. When a user process fails, what background process cleans up after it?
Answer:
PMON
31. How would you determine what sessions are connected and what resources they
are waiting for?
Answer:
34. Give two methods you could use to determine what DDL changes have been made.
Answer:
You could use Logminer or Streams
38. When creating a user, what permissions must you grant to allow them to
connect to the database?
Answer:
Grant the CONNECT to the user.
41. What view would you use to look at the size of a data file?
Answer:
DBA_DATA_FILES
42. What view would you use to determine free space in a tablespace?
Answer:
DBA_FREE_SPACE
43. How would you determine who has added a row to a table?
Answer:
Turn on fine grain auditing for the table.
46. You have just compiled a PL/SQL package but got errors, how would you view the
errors?
Answer:
SHOW ERRORS
49. What is the difference between the SQL*Loader and IMPORT utilities?
Answer:
These two Oracle utilities are used for loading data into the database. The
difference is that the import
utility relies on the data being produced by another Oracle utility EXPORT while
the SQL*Loader utility
allows data to be loaded that has been produced by other utilities from different
data sources just so long
as it conforms to ASCII formatted or delimited files.
56. Can you create database under any Unix userid besides oracle?
Answer:
Yes. You can create database user other then oracle as long as that user is part of
DBA group in unix
57. Locally Managed TEMP Tablespace is 100% FULL and there is no space available
to
add datafile to increase TEMP tablespace. What can you do that might free up TEMP
space?
Answer:
You can try one of the following to free up TEMP space
1. Issue ALTTER TABLESPACE PCTINCREASE 1 followed by
ALTTER TABLESPACE PCTINCREASE 0 command;
2. Close some of the idle sessions connected to the database
60. How do you recover database when you lost all of your control files?
Answer:
In case of loss of loss of all control files, you can still recover database as
long as you have all
archivelog files. You can issue following command to recover the database.
RECOVER DATABASE USING BACKUP CONTROLFILES UNTIL CANCEL;
Apply all archivelog files
ALTER DATABASE OPEN RESETLOGS;
SHUTDOWN IMMEDIATE;
Backup database (COLD)
STARTUP;
62. You got a call from Application team saying Application is running very SLOW.
Where do you start looking first?
Answer:
Below are some of very important you should gather to identify the root cause of
slowness in
application/database.
??Run a TOP command in unix to see CPU usage (identify CPU killer
processes)
?
?
?
?
Run VMSTAT, SAR, and PRSTAT command to get more information on CPU and
memory usage and possible blocking
Run STATSPACK report to identify:
a. TOP 5 WAIT EVENTS
b. RESOURCE intensive SQL statements
See if STATISTICS on affected tables needs to be re-generated
IF poorly written statements are culprit, run a EXPLAIN PLAN on these statements
and
see whether new index or use of HINT brings the cost of SQL down.
67. What are some of the dba tables you query to find out about UNDO segments?
Answer:
You would query:
??DBA_UNDO_SEGS
??V$UNDOSTAT
69. What is the difference between Fine Grained Audit (FGA) and Fine Grained
Access
Control (FGAC)?
Answer:
FGA tracks when sensitive rows have been accesses, where FGAC prevents access to
sensitive rows
70. Which dynamic performance view DBA can query to see who deleted data from a
particular table sometime back?
Answer:
V$LOGMNR_CONTENTS
Answer:
DBMS_REDEFINITION package is used to perform an ONLINE REBUILD of a table
72. How do you add second or subsequent BLOCK SIZE to an existing database?
Answer:
?
?
Re-Create the CONTROLFILE to specify the new BLOCK SIZE for specific data files
Or Take the database OFFLINE, and the bring back online with a new BLOCK SIZE
specification
?
?
?
?
?
Improved throughput
Scalability over single instance systems
Improved response time
High availability
Transparency
?
?
?
?
?
Statement failure failed SQL is automatically rolled back and an error is returned
to user.
User Process failure abnormal disconnect PMON detects and rolls back and releases
locks.
User Error (drop table, data) DBA is required to recover data (import or incomplete
recovery)
Media Failure Loss or corruption of files DBA needs to apply appropriate recovery.
Instance Failure Abnormal shutdown Instance simply needs restarted, SMON auto
recovers by:
??Rolling forward changes in the redo log not recorded in the data files before
Open of
database.
??Rollbacks can occur after the database is open, when block data is requested.
83. Name 5 system views that can be used to retrieve information about backup and
recovery
Answer:
1.
2.
3.
4.
5.
V$BACKUP
V$DATAFILE_HEADER
V$RECOVER_FILE
V$RECOVERY_LOG
V$RECOVERY_STATUS
84. What is the quickest way to clone a database give your backup is done via
RMAN?
Answer:
Using RMAN command DUPLICATE DATABASE
87. Name 5 init.ora parameters that needs to set in Primary database for DataGuard
configuration
Answer:
LOG_ARCHIVE_DEST_2
LOG_ARCHIVE_DEST_2_STATE
FAL_CLIENT
FAL_SERVER
STANDBY_ARCHIVE_DEST
STANDBY_FILE_MANAGEMENT
89. (On UNIX) When should more than one DB writer process be used? How many
should be used?
Answer:
If the UNIX system being used is capable of asynchronous IO then only one is
required, if the system is
not capable of asynchronous IO then up to twice the number of disks used by Oracle
number of DB
writers should be specified by use of the db_writers initialization parameter.
90. If you have an example table, what is the best way to get sizing data for the
production table implementation?
Answer:
The best way is to analyze the table and then use the data provided in the
DBA_TABLES view to get the
average row length and other pertinent data for the calculation. The quick and
dirty way is to look at the
number of blocks the table is actually using and ratio the number of rows in the
table to its number of
blocks against the number of expected rows.
91. What special Oracle feature allows you to specify how the cost based system
treats a
SQL statement?
Answer:
The COST based system allows the use of Hints to control the optimizer path
selection. If they can give
some example hints such as FIRST ROWS, ALL ROWS, USING INDEX, STAR, even better.
92. You want to determine the location of identical rows in a table before
attempting to
place a unique index on the table, how can this be done?
Answer:
select rowid from emp e
where e.rowid > (select min(x.rowid)
from emp x
where x.emp_no = e.emp_no);
93. You are joining a local and a remote table, the network manager complains
about the
traffic involved, how can you reduce the network traffic?
Answer:
Push the processing of the remote data to the remote instance by using a view to
pre-select the
information for the join. This will result in only the data required for the join
being sent across.
95. You see multiple fragments in the SYSTEM tablespace, what should you check
first?
Answer:
Ensure that users don��t have the SYSTEM tablespace as their TEMPORARY or DEFAULT
tablespace
assignment by checking the DBA_USERS view.
96. What are some indications that you need to increase the SHARED_POOL_SIZE
parameter?
Answer:
Poor data dictionary or library cache hit ratios, getting error ORA-04031. Another
indication is steadily
decreasing performance with all other tuning parameters the same.
97. When should you increase copy latches? What parameters control copy latches?
Answer:
When you get excessive contention for the copy latches as shown by the ��redo copy
latch hit ratio. You
can increase copy latches via the initialization parameter LOG_SIMULTANEOUS_COPIES
to twice the
number of CPUs on your system.
98. Describe hit ratio as it pertains to the database buffers. What is the
difference
between instantaneous and cumulative hit ratio and which should be used for tuning?
Answer:
The hit ratio is a measure of how many times the database was able to read a value
from the buffers
verses how many times it had to re-read a data value from the disks. A value
greater than 80-90% is
good, less could indicate problems. If you simply take the ratio of existing
parameters this will be a
cumulative value since the database started. If you do a comparison between pairs
of readings based on
some arbitrary time span, this is the instantaneous ratio for that time span.
Generally speaking an
instantaneous reading gives more valuable data since it will tell you what your
instance is doing for the
time it was generated over.
99. What can cause a high value for recursive calls? How can this be fixed?
Answer:
A high value for recursive calls is cause by improper cursor usage, excessive
dynamic space
management actions, and or excessive statement re-parses. You need to determine the
cause and
correct it By either re-linking applications to hold cursors, use proper space
management techniques
(proper storage and sizing) or ensure repeat queries are placed in packages for
proper reuse.
100. You look at the dba_rollback_segs view and see that there is a large number
of
shrinks and they are of relatively small size, is this a problem? How can it be
fixed if it is a
problem?
Answer:
A large number of small shrinks indicates a need to increase the size of the
rollback segment extents.
Ideally you should have no shrinks or a small number of large shrinks. To fix this
just increase the size of
the extents and adjust optimal accordingly.
101. You look at the dba_rollback_segs view and see that you have a large number
of
wraps is this a problem?
Answer:
A large number of wraps indicates that your extent size for your rollback segments
are probably too small.
Increase the size of your extents to reduce the number of wraps. You can look at
the average transaction
size in the same view to get the information on transaction size.
102. How many redo logs should you have and how should they be configured for
maximum recoverability?
Answer:
You should have at least three groups of two redo logs with the two logs each on a
separate disk spindle
(mirrored by Oracle). The redo logs should not be on raw devices on UNIX if it can
be avoided.
103. If the database cannot be bounced, how would you kill a user?
Answer:
Use command:
ALTER SYSTEM KILL SESSION SID,SERIAL# ;
113: What are the factors causing the reparsing of SQL statements in SGA
Answer:
There are main two causes for reparsing:
1. The objects which the query is referencing has been modified
2. The parsed version of sql text has been aged out of the library cache.
114: How to implement the multiple control files for an existing database
Answer:
1. Edit init.ora file, set control_files parameter with multiple location
2. shutdown immediate
3. copy control file to multiple locations & confirm from init.ora contol_files
parameter
4. start the database.
5. run this query for changes confirmation - select name from v$controlfile;
117: Is it possible to use raw devices as data files and what is the advantages
over
filesystem files ?
Answer:
Yes.
The advantages over file system files:
I/O will be improved because Oracle will bypass the OS. Disk Corruption will be
very less.
119. What are the system resources that can be controlled by profile?
Answer:
1. Number of concurrent sessions by user
2. CPU processing time
3. Amount of Logical I/O
4. Amount of Idle time
123. When a user process fails, what background process cleans up after it?
Answer:
PMON
126. What view would you use to determine free space in a tablespace?
Answer:
DBA_FREE_SPACE
127. How would you determine who has added a row to a table?
Answer:
If database auditing is turned ON, query SYS.AUD$ table
128. You have just compiled a PL/SQL package but got errors, how would you view
the
errors?
Answer:
SHOW ERRORS
130. A DBA had to remove some Archivelogs to free up space in filesystem. Now when
the RMAN job starts to backup Archivelogs, it complains about missing Archivelogs
that were deleted by
DBA. To resolve the issue and continue backing up remainder of Archivelogs, which
RMAN command
can be used so it won't complain about missing Archivelogs.
Answer:
Crosscheck command
131. Which RMAN command is used to create an exact replica of a database in new
host?
Answer:
DUPLICATE DATABASE
133. Process you follow to start looking into Performance issue at database level
(If the
application is running very slow, at what points do you need to go about the
database in order to improve
the performance?)
Answer:
??Run a TOP command in Unix to see CPU usage (identify CPU killer processes)
??Run VMSTAT, SAR, and PRSTAT command to get more information on CPU and memory
usage
and possible blocking
??Run STATSPACK report to identify:
1. TOP 5 WAIT EVENTS
2. RESOURCE intensive SQL statements
??See if STATISTICS on affected tables needs to be re-generated
??IF poorly written statements are culprit, run a EXPLAIN PLAN on these statements
and see whether
new index or use of HINT brings the cost of SQL down.
134. Which is most important v$ view to see performance related information?
Answer:
V$WAITSTAT
137. How do you analyze table partition using Oracle provided package?
Answer:
DBMS_STATS.GATHER_TABLE_STATS with GRANULARITY => 'PARTITION' OPTION
138. You see a wait on LMS process in statspack, what does that mean?
Answer:
A. Wait is due to Data Guard Broker.
144. How can you tell if an index on particular table is USED or NOT USED in 9i?
Answer:
By turning MONITORING ON that index and querying into INDEX_USAGE table
155. Which file contains VCS service group and resource information?
Answer:
Main.cf
158. In ACTIVE VCS environment, you need to recycle the database but doesn�t want
database to failover to other node. What you must do before shutting down the
database, so it doesn t
failover to other node?
Answer:
You need to FREEZE the service group.
Alternatively, you can make Oracle resource NON-CRITICAL (not recommended)
161. How do you REBUILD index online and Compute Statistics at the same time?
Answer:
ALTER INDEX INDEX_NAME REBUILD COMPUTE STATISTICS ONLINE;
163. What additional statistics are gathered by DBMS_STATS that were not available
in
earlier version or by using ANALYE command?
Answer:
In 9i DBMS_STATS package now collects below statistics as well:
CPU Usage
System I/O
164. Name Different Latches in database and Dynamic Performance Views to get more
information about Latches
Answer:
Database Latches:
Redo Allocation Latch
Redo Copy Latch
Row Cache Latch
Use V$LATCH, V$LATCHHOLDER, V$LATCHNAME to get more information about the latches
166. Explain Tuning Process that involves Application, Database, OS, Network
Answer:
In such a scenario, tuning should perform in following order:
1. Business Rules
2. Data Design
3. Application Design
4. Logical Structure of the Database
5. Database Operations
6. Access Path
7. Memory Allocation
8. I/O and Physical Structure of the Database
9. Resource Allocation
10. OS
172: What is difference between Logical Standby Database and Physical Standby
database?
Answer:
The primary functional difference between logical and physical standby database
setups is that logical
standby permits you to add additional objects (tables, indexes, etc) to the
database, while physical
standby is always an exact structural duplicate of the master database. The
downside, though, is that
logical standby is based on newer technologies (logical standby is new in Oracle
9.2) and tends to be
generally regarded as more temperamental than physical standby.
Technical � UNIX
Every DBA should know something about the operating system that the database will
be running on. The
s here are related to UNIX but you should equally be able to answer s related to
common Windows environments.
1. How do you list the files in an UNIX directory while also showing hidden files?
Answer:
ls -ltra
2. How do you execute a UNIX command in the background?
Answer:
Use the "&" at the end of command
3. What UNIX command will control the default file permissions when files are
created?
Answer:
Umask
6. Give the command to display space usage on the UNIX file system.
Answer:
df -lk
13. What is the difference between > and >> redirection operators?
Answer:
> is the output redirection operator when used it overwrites while >> operator
appends into the file.
15. What is the difference between a shell variable that is exported and the one
that is
not exported?
Answer:
export LANG=C
will make the variable LANG the global variable, put it into the global
environment. all other processes
can use it.
LANG=C
will change the value only in the current script.
16. How will you list only the empty lines in a file (using grep)
Answer:
grep "^$" filename.txt
Two processes wating to update the rows of a table which are locked by the other
process then deadlock arises. In a database environment this will often happen
because of not issuing proper row lock commands. Poor design of front-end
application may cause this situation and the performance of server will reduce
drastically.
These locks will be released automatically when a commit/rollback operation
performed or any one of this processes being killed externally.
It consists of
one or more data files.
one or more control files.
two or more redo log files.
The Database contains
multiple users/schemas
one or more rollback segments
one or more tablespaces
Data dictionary tables
User objects (table,indexes,views etc.,)
The server that access the database consists of
SGA (Database buffer, Dictionary Cache Buffers, Redo log buffers, Shared SQL pool)
SMON (System MONito)
PMON (Process MONitor)
LGWR (LoG Write)
DBWR (Data Base Write)
ARCH (ARCHiver)
CKPT (Check Point)
RECO
Dispatcher
User Process with associated PGS
What is clusters ?
Group of tables physically stored together because they share common columns and
are often used together is called Cluster.
What is a schema
Systematic arrangement of tables is known as schema, They are
Star
Snowflake
Galaxy
What is a datafile
It is the file where actual data are stored. It is the physical part of the
database
What is a segment
segment is the collection of extents allocated to paricular object like table and
index. Table segment and index segment
What is an extent
An Extent is a collection of contagious blocks
Private Database Link: You can create a private database link in a specific schema
of a database. Only the owner of a private database link or PL/SQL subprograms in
the schema can use a private database link to access data and database objects in
the corresponding remote database.
Public Database Link : You can create a public database link for a database. All
users and PL/SQL subprograms in the database can use a public database link to
access data and database objects in the corresponding remote database.
Global Database Link - When an Oracle network uses Oracle Names, the names servers
in the system automatically create and manage global database links for every
Oracle database in the network. All users and PL/SQL subprograms in any database
can use a global database link to access data and database objects in the
corresponding remote database.
The related columns of the tables are called the cluster key. The cluster key is
indexed using a cluster index and its value is stored only once for multiple tables
in the cluster.
What is a synonym
Synonym, as the name suggests, is an alternative name for an object. It can be used
for simplifying names that are lenghy or complex, for e.g you can use a simple
synonym for accessing objects of other users, for which you had to prefix username
to the object.
(a) They restrict access to the whole data, because they display only selective
columns.
(b) They can be used to make complex queries easy. A user can use a simple query on
a view to display data from multiple tables, without having the knowledge of how to
join tables in queries.
(c) Different views can be created from the same data as per the requirements of
different types of use groups.
Explain the relationship among database, tablespace and data file.What is schema
Databases, tablespaces and datafiles are closely related, but they have important
differences:
What is a tablespace
An Oracle database consists of one or more logical storage units called
tablespaces, which collectivley store all of the database's data.
Each tablespace in an ORACLE database consists of one or more files called
datafiles, which are physical structures that conform with the operating system in
which Oracle is running.
For Example::: A simple Oracle Database have one tablespace and one datafile.
What is a lookup table in database? where can we use these type of table?
Lookup tables are like constraints which hold a value. The content in the lookup
tables dosen't change often, hence refered as lookup (reference).
Example : Countries table
Countries are not added on regular bases hence one can consider the table as a
lookup table. As and when needed in some other table the countries information can
be fetched base on PK - Country-Code column. Eg - Emp_Per_Info.
Whenever a DBA creates a user in which datafile that will be get created ?
It depends on the product you are using. For instance, DB2 doesn't require that a
user be defined (to DB2).
In a relational system it is only required that a relational catalog/data
dictionary exists. What it looks like and how it's designed is up to the designers.
And please, in a relational system, data values are stored in TABLES, not
datafiles, just tables.
Is it advisable to force an index when you want to select mostof the entries in the
table?
If table has many columns as well as large, and you want to access only indexed
columns, then it is yes.
If you are selecting columns those are not indexed, and still you are using index
then it will increase disk I/O which will drag performance of the query as well
database.
If you have an open cursor on a table, modify the same tableand commit, what would
happen?
changes will be committed
What is a cursor? Why do you need them? What are the different kinds of cursor?
oracle uses private sql area to execute sql queries and store the
information.pl/sql uses cursors to name these private sql area and access its
stored information
there r two types of cursors
implicit
explicit
implicit cursors are used for all dml and single row queries.these are system
defined
explicit cursors are used for queries which return multiple row .these are user
defined.
What is ORA-1555?
its snapshot too old error.
g:\prints\interview\Interview2.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WebLogic JDBC Interview
========================:
(6) What are the different types of WebLogic Server JDBC Data Sources?
Generic Data Sources
Multi Data Sources
Grid Link Data Sources
(21) What is the difference between Local transactions & Global transactions?
A transaction which involves single database is known as local transaction.
A transaction which involves multiple databases is known as Global transaction.
(23) Which JNDI name is used in applications in case of Multi Data Source?
You need to use the JNDI name that you have used while creating a multi data source
in WebLogic
(28) What is the difference between thin driver & thick driver?
(33) What happen if you select the "Fan Enabled" during Grid Link data source
creation?
It enables the data source to subscribe to and process Oracle FAN events.
(36) What are different data source control operations that you can perform?
Shrink
Reset
Clear Statement Cache
Suspend
Resume
Shutdown
Resume
(39) What will you do if the database is down during WebLogic Servers start-up?
If a data source connection cannot be established with the database during startup
for some reason, the Managed Server starts in the ADMIN state instead of in the
RUNNING state. The commonly used procedure in this situation is to click on the
Resume button; the server instance resumes to the RUNNING state and starts
accepting and processing the application requests.
But errors will occur with the applications that use this data source. Even if the
database goes back online, the data source will not start automatically. Then you
need to perform un-targeting and targeting of data source
(40) What will you do to avoid the ADMIN state on start-up when there is a
database issue?
To avoid the ADMIN state on start-up, set the data source Initial Capacity to 0 so
it won't open any connection to the database during the server startup process.
The Managed Server instance will start in the RUNNING state, and as soon as the
database goes back online, the data source will reconnect to it without
intervention.
Note:
The Multi data source is responsible for managing the load and failover; so if the
Oracle database uses the SCAN address feature, it's recommended to set up a Grid
Link data source instead.
In WebLogic Server 12c, for production environments it would be to set Initial
Capacity to 0 and Minimum Capacity and Maximum Capacity to the same value.
During the WebLogic Server start up process, the data sources are deployed and the
connections to the databases are opened according to the Initial Capacity
parameter.
DEPLOYMENT
Deploying modes:
1.staging modes
2.No stage mode
3. External stage mode
Types of deployment:
1.side by side deployment
2.Two phase deployment
3.Deployment using plan
6.Auto Deployment?
1.copy the application in to Autodeployment folder,which is present in
c:bea/user_projects/domains/domain1/servers/admin/autodeloyment
2.Now Run the admin server .
3. The application automatically deployed in admin server.
15.Deployment issues?
1.Code issues
2.Out of memory issues
3.Connection pool issues
4.Clear cache issues
5.Library class path issues
6.Applications are not deployed
Core DBA
=========:
1)Logical backup.
2)Cold backup
3)Hot Backup
Opatch Questions
=================:
SYNTAX:
OPP executable
===============:
g:\prints\interview\linux.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
February 21, 2014
vi Editor Commands
vi Editor Commands
$ vi <filename>
Function Command
-------- ------------
Move a suspended job to the foreground fg
When you execute a unix shell-script or command that takes a long time, you can run
it as a background job.
2. Sending the current foreground job to the background using CTRL+Z and bg command
step 1.Press 'CTRL+Z' which will suspend the current foreground job.
step 2.Execute 'bg to' make that command to execute in background.
Press �CTRL+Z�
$ bg
$jobs
jobs : lists the jobs that you are running in the background and in the
foreground
jobs -l : list only jobs that have change status since last notified by their
status
$ fg
When executed without arguments, it will take the most recent background job to the
foreground
Linux Commands
!stty erase ^?
ORACLE_SID=`ps -ef | grep asm_smon | grep -v 'grep' | grep -v 'sed' | awk '{printf
$8}' | awk 'BEGIN{FS="_"} {printf $3}'`
date
env
uptime
who -b
last | grep -i boot
ps -ef | grep pmon
ps -ef | grep tns
ps -ef | grep d.bin
df -h or df -g
uname
/etc/oratab or /etc/var/oracle/oratab
df -kh or df -kh . or df -kh /mountpoint/
du -sh * or du -sh .
du -sg *
ls -ltrh <filename> | sort -n
ls -ld
tellme system
lsof /mountpoint/
find /home -name oraInventory -print
find . -name "*.gz" -depth -mtime +60 -exec rm {} \;
nslookup
tnsping
top
FIND
To find a file/directory
------------------------
find /home -name oraInventory -print
find /home|grep oraInventory
SOURCE : Internet
TAR
tar -cvf newname.tar directory_name (to tar)
tar -xvf filename.tar (to untar)
DELETE COMPRESS FILES OS LEVEL
To list files dated Apr 24
--------------------------
ls -lrt | grep 'Apr 24' | awk -F' ' '{print$9}'
COMPRESS
--------
nohup compress *.arc &
ls -lrt *.arc|awk '{print "compress "$9}' >ARC_LIST.txt
SERVER REBOOT
If its Dataguard setup or normal db, following steps mandatory just take backup of
following three steps and store it in separate notepad. once server reboot activity
completed cross check once which was taken before server reboot.
ps -ef|grep pmon
ps -ef|grep pmon|wc -l
ps -ef|grep inh (OR) ps -ef|grep tns
ps -ef|grep inh|wc -l
ps -ef |grep d.bin
hostname
date
uname -a
cat /etc/oratab / cat /var/opt/oracle/oratab
uptime
who -b
df -h / df -gt
server reboot time database side need to check the below commands:
(Before server reboot and after server boot, if its is DG database)
-------------------------------------------------------------------
SQL> select name,db_unique_name,database_role,controlfile_type,CREATED from
v$database;
SQL >select sequence#,first_time,next_time,completion_time,applied from
v$archived_log where applied <> 'YES' and DEST_ID !=0 and status!='D'and
completion_time <(sysdate-1/48) Order By 1;
===============================
Data Guard Db Startup Procedure
===============================
Sqlplus �/ as sysdba�
startup nomount;
alter database mount standby database;
recover managed standby database disconnect from session; ----------->To put it in
MRM MODE
exit;
=================================
Data Guard Db Shutdown Procedure
=================================
Login as oracle
source the environment
sqlplus �/ as sysdba�
alter database recover managed standby database cancel; ------> to cancel MRM mode
shutdown immediate;
exit
Run the following SQL against the logical standby to start real-time SQL apply if
the SQL apply failed with an error, and you are 100% certain that the transaction
is safe to skip
SQL> ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE SKIP FAILED TRANSACTION;
g:\prints\interview\network in oracle.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle Networking
==================:
How to Configure Listener ?
SERVICE_NAME=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.101)(PORT=1524))
(CONNECT_DATA =
(SERVICE_NAME/SID =sid)
)
$lsnrctl
$lsnrctl <option> listener_name
-reload - to reload the settings of listener file
-status - to see status of listener
- start - to start the listener
- stop - to stop the listener
-services � db/instances currently serve by
$lsnrctl>
When a hot backup runs in the oracle, first we will make the database in begin
backup mode and then we copy the database files to tape or disk. The question that
most of us will have is: what happens to the datafiles when the database is in
begin backup mode?
Offline? Or frozen? Answer is No.
�Some of the Oracle books contains that the database files are not writable during
the backup mode and the changes are stored in the SGA, redo logs and Rollback
segments. And these changes will be the written into the data files when the
database is taken out of begin backup mode. �
But the above predictions are opposed. It does not stop writing to the data files.
The database almost works in normal way when the database in the backup mode. It
can be summarized in as follows:
� DBWn process writes out all the dirty blocks of a particular SCN, i.e.
when a check point process runs, the DBWn process writes all the blocks related to
that SCN generated.
� CKPT process stops updating the checkpoint SCN field in the data files
headers and begins updating the Hot backup checkpoint SCN field in the data files
headers.
By freezing the checkpoint SCN in the data file headers, any subsequent recovery on
that particular hot backup will know that it must commence at that SCN. Having an
old SCN in the file header tells recovery that the file is an old one, and that it
should look for the archivelog containing that SCN, and applies recovery starting
there.
Here we need to know that in hot backup mode the checkpoints to data files are not
suppressed. The main checkpoint flag is frozen, but the hot backup Checkpoint SCN
will be updated in the file header.
g:\prints\interview\OEM.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database BLACKOUT
OEM BLACKOUT
------------
OEM ->
Targets ->
enter the target dbhost name ->
select blackout ->
enter blackout name ->
select the reason ->
select add(if required to add more) ->
select all ->
next ->
select immediatetime from & select end time ->
next
cd $AGENT_HOME/bin
./emctl config agent listtargets
"-nodeLevel" tells the agent to stop monitoring all targets on the server.
"-d Duration" allows you to set a duration in the format of [days] hh:mm.
cd $AGENT_HOME/bin
./emctl start blackout alltargets_onserver �nodeLevel----->Blackout entire host
indefinitely
<Perform Maintenance Tasks>
"-nodeLevel" tells the agent to stop monitoring all targets on the server.
"-d Duration" allows you to set a duration in the format of [days] hh:mm.
cd $AGENT_HOME/bin
./emctl start blackout Blackoutname database1 -d 6:00
<Perform Maintenance Tasks>
Examples:
--------
To start an immediate indefinite blackout called "Blackoutname" for all targets on
the host:
./emctl start blackout Blackoutname -nodeLevel
To start an immediate blackout called "Blackoutname" for all targets on the host
for 6 hours:
./emctl start blackout Blackoutname -nodeLevel -d 06:00
Troubleshooting:
Fix :
cd /home/oracle/OEM_GRID/agent10g/bin/
./emctl stop agent
./emctl clearstate agent
./emctl start agent
./emctl upload agent
SYNTAX:
[oracle@lnx01] cd /home/oracle/download/patches/12311357
[oracle@lnx01] $ORACLE_HOME/OPatch/opatch query -all |more
-Memory Structure
-Back Ground Process
Memory Structure:
(I)System Global Area Once The Instance is started it allocated memory to SGA. It
is a basic component of oracle instance its size depends on RAM. The oracle 10g
parameter of SGA and PGA sga_target , sga_max_size , pga_aggregate_target
It consists of
-Shared Pool
- Database Buffer Cache
- Redolog Buffer Cache
- Large pool
- Stream pool
- Java pool
(1 )Shared Pool:
- It's parameter is shared_pool_size
- It's consists of Library cache and Data Dictionary Cache
I) Library Cache:
(4)Large Pool:
- Parallel execution allocates buffers out of the large pool only when sga_traget
- It works to release the burden the shared pool
show parameter parallel_automatic_tuning
(6)Stream Pool:
its taking care by oracle and allocates SGA components size ASMM taking care of
1)Shared pool
2)Library cache
3)Database buffer cache
4)Large pool
5)Java Pool
6)Stream Pool
Process Structure :
1)USER PROCESS:
- A program that request interaction with oracle server
- It's must first establish a connection
- It does not interact directly with oracle server
2)SERVER PROCESS:
- It directly interacts with oracle server
- It can be a dedicated or shared server
- It always responds to user requests
3)BACKGROUND PROCESS:
1)DBWR
2)LGWR
3)SMON
4)PMON
5)CHPKT
Let us we can see each components are
1)DBWR:
2)LGWR:
- At commit
- Every 3 sec
- When there is full 1MB reached
- Redolog Buffer reached one-third full
- Before DBWR writes In above situations, redolog writes through LGWR from redo
log buffer
3)SMON:
4)PMON:
5)CHKPT:
Database :
The Database is a collection of data which contains data files ,control files
,redolog files
1) Data file:
- It is a portion of an oracle database ,it stores the data which includes user
data and undo data
- It's extension ".dbf"
- The default location is " $ORACLE_BASE/oradata"
- To view the location in database use this command
Select name from V$datafile;
2) Control file:
4) Archive log
- It's a group of redo log files to one or more offline destinations, known
collectively as the archived redo log
- Its Default location is Flash_recovery_area
- Must enable archive log mode in the database then only ll be saved on archive
log folder other wise the log buffer overwrites on redo log files through Lgwr.
1) Storage
2) Memory
3) Process
i) Storage
Datafile:
datafiles----inside of the datafile you have data, the data for tables and also
indexes are stored in datafiles.
undo data---
temporary data --- whenever oracle does a sort and can't store the all information
in memory in the (pga) is going to write in
temporary files.
* In oracle 7, 8 and 8i you can have 1,022 datafiles, and now you can have 65,536
datafiles.
* dba_data_files
* v$datafile
* v$dbfile
Controlfile:
controlfife ----- it contains the structure of your database
* Oracle recommend atleast two/three controlfiles in different locations.
* all the three controlfile information is same.
* Inside the controfile it stores the:
db name
db creation time
entire path of your datafile location
checkpoint information
v$controlfile
* control_files is very important parameters
Online Redologs:
online redologs---
* all the dml and ddl commands are stored (undo and redo)
* all the changes made to the databases are stored in redolog files
* all the commands are stored in redologfiles
* its a recorder of your major changes in database
* Oracle recommended that you have multiplex of your redologs in groups in
different locations
* Major used in recovery
* if archivelog is enabled the all information of redolog is stored in archivelog
files
datafiles (.dbf)
controlfiles (.ctl)
redologs (.rdo)
archivelog files
spfile
init.ora file
oracle password file
ii) Memory
g:\prints\interview\osb.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Question: To connect to source system which service we will use?
Answer: we will use Proxy service to connect to Source system.
Question: Where the file will go if there is any error while polling the file ?
Answer: During configuring file or ftp protocol in OSB, we need to specify error
directory, so you can see file to that directory if file polling failed.
Question: Can we use more than one route node in message flow?
Answer: No, we can't we use more than one route node in proxy service message flow.
Question: When we call asynchronous service from OSB then how to get response back
from that asynchronous service to OSB?
Answer: Design the proxy service which in turn calls business service which in turn
calls asynchronous service. In the message flow of this proxy change the message
header to below.
You need to specify ReplyTo value so that asynchronous service response came to
CallSyncCompositeProxy proxy service.
<soap-env:Header xmlns:ns1="http://schemas.xmlsoap.org/ws/2003/03/addressing">
<ns1:MessageID>ws:uniqueAddress</ns1:MessageID>
<ns1:ReplyTo>
<ns1:Address>http://localhost:8011/CallAsyncService/proxyServices/CallSyncComposite
Proxy</ns1:Address>
</ns1:ReplyTo>
</soap-env:Header>
http://soawork.blogspot.com/2012/12/call-asynchronous-webservice-from-osb-over-
http.html
Question: to transform from binary to XML or XML to binary format what we will in
OSB?
Answer: we use MFL.
Question: To secure OSB proxy service, which OWSM policy you will use?
Answer: To secure OSB proxy service, we use OWSM service side policy.
Question: Can we re-use Service Account for other Business Services as well?
Answer: Yes, we can re-use the Service Account.
Answer: In OSB we can group together more than one service so that whenever one
service goes down, request will route to next available service and end user can
continue his work without any interruption.
http://soawork.blogspot.com/2014/06/service-pooling-in-osb.html
� Use OSB file protocol: We can use file protocol available in proxy
service to poll the file. Refer below post for more details.
http://soawork.blogspot.com/2012/09/read-or-poll-file-in-osb.html
� Use File adapter: we can create file adapter in Jdeveloper and import
JCA, WSDL & XSD file of that adapter into OSB and generate proxy service from that.
http://soawork.blogspot.com/2014/01/call-restful-service-from-osb.html
Question: We don�t have any DB protocol in OSB then how to read/write data from
database using OSB?
Answer: We can use database adapter to read/write data from database. We can create
database adapter in Jdeveloper, import adapter JCA,WSDL & XSD files to OSB and
generate proxy or business service as per our requirement.
Answer: To perform file listing in OSB, you need to create file adapter with file
listing operation in Jdeveloper and use that only.
Answer: In OSB we can group together more than one service so that whenever one
service goes down, request will route to next available service and end user can
continue his work without any interruption.
http://soawork.blogspot.com/2014/06/service-pooling-in-osb.html
� Use OSB file protocol: We can use file protocol available in proxy
service to poll the file. Refer below post for more details.
http://soawork.blogspot.com/2012/09/read-or-poll-file-in-osb.html
� Use File adapter: we can create file adapter in Jdeveloper and import
JCA, WSDL & XSD file of that adapter into OSB and generate proxy service from that.
http://soawork.blogspot.com/2014/01/call-restful-service-from-osb.html
Question: We don�t have any DB protocol in OSB then how to read/write data from
database using OSB?
Answer: We can use database adapter to read/write data from database. We can create
database adapter in Jdeveloper, import adapter JCA,WSDL & XSD files to OSB and
generate proxy or business service as per our requirement.
Answer: To perform file listing in OSB, you need to create file adapter with file
listing operation in Jdeveloper and use that only.
Answer: Service Result Caching is one of the options that you can use when you want
to improve Oracle Service Bus performance. Service Result caching is used when we
have business service which connects to external service which returns somewhat
static response. So by using Service Result Caching we don�t hit external service
for same request instead it will take the response from cache which improve the OSB
performance
For more details, you can refer my below post.
http://soawork.blogspot.com/2014/06/result-caching-in-osb.html
http://soawork.blogspot.com/2014/04/service-callout-in-osb.html
Question: When we invoke proxy 2 from proxy 1 then which protocol we need use?
Answer: When there is internal proxy call in OSB then we use �local� transport
instead of HTTP.
� Using MFL: we can MFL in OSB to read flat files. For more details refer
my below post
http://soawork.blogspot.com/2013/11/binary-to-xml-in-osb.html
� File Adapter: Create file adapter which read flat file in Jdeveloper,
copy JCA, WSDL & XSD file of file adapter in OSB and create proxy service which
will read that flat file.
http://soawork.blogspot.com/2014/06/sla-alerts-in-osb.html
Answer: We can do development in OSB by two ways. Either we can use Eclipse which
is IDE tool for OSB or we can use SB console for the development.
Answer: No, we need not to create a session when we develop projects in Eclipse,
session will only come into picture when we deploy the project to server from
eclipse.
Answer: Yes, multiple users with different users can work on SB console at same
time as session will be created for each users individually.
Answer: Yes, we can test the proxy service from Eclipse, for that we need right
click on the proxy service and then click on Run As and run it on server.
Answer: No, we have to write Xquery in source mode. We can create Xquery
transformation in Eclipse.
Question: Can we have more than one route node in message flow ?
Answer: No, we can't add more than one route node in message flow.
Question: Which node you will use when you need to route the message based on
content ?
Answer: We will use Conditional Branch to route the message to different business
services based upon content, this is also called content based routing.
Question: Which node you will use to route the message based upon operations ?
Answer: We will use operation Branch to route the message to different business
services based upon operation.
Question: Can we add more than one route in one conditional or operation branch ?
Answer: Yes, if we more than one branch then we add one route node in each branch
as each branch will be independent and only one branch will execute at one time.
Question: Can we change the endpoint URI of the external service that we invoke
using business service ?
Answer: Yes, we can do it by using routing option action.
g:\prints\interview\patch.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8. What is a patch?
Ans : A patch can be a solution for a bug/it can be a new feature.
15. What is the other table where u can query what are the patches applied?
Ans : Ad_applied_patches
18. What inputs you need to apply a patch other than driver name and etc?
Ans : apps and system passwords
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
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.
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.
g:\prints\interview\patching.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Patch Format classification
============================:
-Minipack
Collection of one-off patches for specific module.
-Family pack
Collection of minipack for particular family group.
-Maintenance pack
Collection of all minipacks for all products. Maintenance pack upgrades system to
new point release, such as 11.5.10
Without the consolidated Seed patches, you will receive seed errors applying future
patches. The AD/TXK patches required are patches which deliver updated AD
utilities for patching and maintenance and TXK provides mostly autoconfig templates
required for the applications.
R12
In R12 patches are grouped in to code lines and associated with Code levels.
Codeline includes all patches to maintain that point release.
Lets say 12.0 is the point release, it introduces codeline A. Similarly 12.1
introduces codeline B and so on.
Code level includes all bug fixes and codelevels for particular codeline. Code
levels are cumulative. All code levels created after the initial point release are
aggregated into cumulative release update packs (RUPs)
Base code level for 12.0 is A. Cumulated New bug fixes for products are released as
A.1.
A.2 includes A.1 & A.2; similarly A.3 includes A.1 to A.3 and so on.
Consolidated Upgrade
Similar to CU on 11i.Its available for upgrading R12 system from one point release
to another.
11i
One-off patch
Patchnum e.g.: 8234812
Minipack
11. <PROD>.A e.g.: 11.AD.I
Family Pack :
11i. <PROD family>. letter e.g.: 11i.HR_PF.A
Maintenance pack:
11.5.x e.g. 11.5.9
R12
10. What is the other table where you can query what are the patches applied?
Ans : ad_applied_patches.
11. How to find out which patch driver is applied (like c,d,g or u)?
Ans: Query ad_patch_drivers.
12. How to find out whether a language patch is applied for a particular patch?
Ans : Query ad_patch_driver_langs.
14. What inputs you need to apply a patch other than driver name and etc?
Ans : apps and system passwords
15. What are the tables 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.
� One-off patch:
o This is the simplest type of patch. It is created to resolve a particular
problem.
17. What are the contents of patch and drivers present in patching?
Ans : Contents of patch:
� Readme files
� Driver files
� Metadata files
� Replacement files
19. How can I determine the effects a patch will have on my application system?
Ans :This can be done by patch wizard in the Oracle Applications manager.
� Checking total number of files in the patch and which are installed.
� Products that contain updated files.
� Total number of files introduced by the patch.
� Files on the target system changed by the patch.
� Files which depend on patched files.
20. How can you reduce the downtime when you have to apply multiple patches?
Ans :
� You can reduce the downtime by merging all the patches into one single patch
using admergepatch (admrgpch) tool.
� You can also apply multiple patches one by one by choosing options nocompiledb,
nocompilejsp, and nolink.
� Compilation of invalid objects, jsp�s and relinking can be skipped till the last
patch is applied.
� In the last patch you can compile all of them and then relink.
� You can also choose the max number of workers which your CPU permits.
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.
5. What is Maintanance pack ?
Ans : A maintanance pack will upgrade applications from one version to another like
12.1.2 to 12.1.3
Ans : A rollup patch is one which will deliver bug fixes identified after the
release of any major application versions like 12.1.3
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.
9. 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.
12. What inputs you need to apply a patch other than driver name and etc?
13. What are the table u r adpatch will create and when?
Ans: Yes . why because adpatch will connect to database and update so many tables
etc�..
17. 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?
mv $APPL_TOP/admin/<SID>/restart $APPL_TOP/admin/<SID>/restart.old
create table applsys.FND_INSTALL_PROCESSES_11510 as select * from
applsys.FND_INSTALL_PROCESSES
create table applsys.ad_deferred_jobs_11510 as select * from
applsys.ad_deferred_jobs
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 ad utilities, 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�.
Ans: We can skip a worker using option 8 in adctrl which is hidden. We will go for
skipping a worker when we have executed the job which the worker is supposed to do.
21. 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.
22. What c-driver will do?
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.
23. 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
25. What is the worker log file name and its location?
26 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
Ans:When we apply a patch it will keep the copy of the files which its going to
change in file system.
28. What are the different modes you can run your adpatch?
Ans we can use the below script to enable and disable maintainance mode
@$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
@$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
30. How you can analyze the impact of patch i.e what files will be replaced and
what new files will be added?
31.How often should customers apply mini-packs, family packs, and maintenance
packs?
Ans You should keep your maintenance level up to date in order to:
Receive the latest fixes.
Reduce the number of file updates needed for emergency fixes.
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.
32.Can I run multiple AutoPatch sessions at the same time?
Ans You cannot currently run multiple sessions simultaneously. However, patches can
be merged and can be applied in a single patching session.
34.What are deferred jobs and how are deferred jobs handled?
Ans The first time a job fails, the manager automatically defers it to the end of
the current phase and assigns a new job to the worker.
If the deferred job fails the second time it is run , the manager defers it again
only if the total runtime of the job is less than 10 minutes . If the deferred job
fails a third time (or if the job�s total runtime is not less than 10 minutes the
second time it is run) the job stays at FAILED status and the worker waits.
At this point, you must address the cause of the failure, and then restart the
worker, using AD Controller.
g:\prints\interview\pcp configuration.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PCP ON NON-RAC
===============:
-Setup the primary node with 11.5.10.2 ATG RUP6 installed and having
CP,Admin,Forms,Web and DB set on it.
-Add and register a new secondary node which has just CP and Admin on it. (You can
use shared APPL_TOP for this setup)
-If using Virtual Hostnames, please ensure that the Physical Hostname of the CP
node with virtual host is registered from OAM.
-Once both nodes are ready, set the APPLDCP variable to ON in the context file of
both nodes.
-Shutdown the application tier services of both the nodes and run AutoConfig on
each node. After AutoConfig completes successfully verify that the tnsnames.ora (on
both CP nodes) has the FNDFS entries of both the nodes.
-Ensure that the Internal Monitors on both nodes defined properly and have
workshifts assigned to them. Also make sure the Internal Monitor manager is
activated by going into Concurrent -> Manager -> Adminitrator and activate the
manager as they need to be active on the nodes where the ICM can start in case of a
failure..
-Define the Primary and Secondary nodes for your Internal Concurrent Manager and
Standard Managers (Concurrent Manager Define form)
To ensure that failover of the concurrent managers when one concurrent node fails
happens in time,ensure following steps are followed:
g:\prints\interview\pcp interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1) What is PCP
A) Set Up PCP
- Edit the applications context file via Oracle Applications Manager, and set the
value of the variable APPLDCP to ON.
- $ $INST_TOP/admin/scripts/adautocfg.sh
- Log on to Oracle E-Business Suite Release 12 using the SYSADMIN account, and
choose the System Administrator Responsibility. Navigate to Install > Nodes screen,
and ensure that each node in the cluster is registered.
- Verify that the Internal Monitor for each node is defined properly, with
correct primary node specification, and work shift details. For example, Internal
Monitor: Host1 must have primary node as host1. Also ensure that the Internal
Monitor manager is activated: this can be done from Concurrent > Manager >
Administrator.
- Set the $APPLCSF environment variable on all the Concurrent Processing nodes to
point to a log directory on a shared file system.
- Set the $APPLPTMP environment variable on all the CP nodes to the value of the
UTL_FILE_DIR entry in init.ora on the database nodes. (This value should be
pointing to a directory on a shared file system.)
If you are already using the transnational managers and If you wish to have
transnational managers fail over, Perform the below steps
- Shut down all the database instances cleanly in the Oracle RAC environment,
using the command:
- SQL>shutdown immediate;
- Log on to Oracle E-Business Suite Release 12 using the SYSADMIN account, and
choose the System Administrator responsibility. Navigate to Profile > System,
change the profile option �Concurrent: TM Transport Type' to �QUEUE', and verify
that the transaction manager works across the Oracle RAC instance.
- Navigate to Concurrent > Manager > Define screen, and set up the primary and
secondary node names for transaction managers.
If you wish to have PCP to use the load balancing capability of RAC, You can
perform the below, Connections will load balanced using SID_BALANCE value and they
will connect to all the RAC nodes.
- Edit the applications context file through the Oracle Applications Manager
interface, and set the value of Concurrent Manager TWO_TASK (s_cp_twotask) to the
load balancing alias (<service_name>_balance>).
- No, RAC is not manadatory for PCP, If you have two or more applications nodes,
You can enable PCP, But PCP works better in conjunction with RAC to handle all the
failover scenarious.
- In RAC Enabled env, PCP uses cp_two_task env variable to connect to DB RAC node,
This can be set one CM node to one RAC node or you can set to connect to all the
RAC nodes in the cluster.
5) What happens when one of the RAC node goes down when PCP enabled?
- When Concurrent: PCP Instance Check is set to ON and cp_two_task value set to
SID (i.e One CM node connects to only one RAC node always), If one DB node goes
down, PCP identifies the DB failure and shifts all the CM managers to other
applications node where Database is available.
- IMON identifies the failure and through FNDSM (service Manager) It initiates ICM
to start in surviving node (If ICM is is running on Failed node), ICM will start
all the managers.
- Once failed node comes online, IMON detects and ICM will fail back all the
managers defined on that node.
- It is important to note RAC and PCP does not support any DML commands and TAF
and FAN are not supported with E-Bussiness Suite.
- When a request is running, If CM goes down it is having status running normal
and it will not have any associated process ID, When ICM start in other node, It
verifies for all the running normal requests and verifies the OS process ID, If
it did not find the process ID, It will resubmit the request to start.
- The Internal Concurrent Manager (ICM) will only restart a request if the
following conditions are met
The ICM got the manager's database lock for the manager that was running the
request
The phase of the request is "running" (phase_code = 'R')
The program for this request is set to "restart on failure"
All of the above requirements have been met AND at least one of the following:
a. The ICM is just starting up, (ie. it has just spawned on a given
node and going through initial code before the main loop)
b. The node of the concurrent manager for which we got the lock is down
c. The database instance (TWO_TASK) defined for the node of that
concurrent manager is down (this is not applicable if one is using some "balance"
@ TWO_TASK on that node)
- When any of the two above failures occur, the following example will illustrate
the failover and failback of managers.
Primary node = HOST1 - Managers assigned to primary node are ICM (FNDLIBR-
cpmgr) , FNDCRM
Secondary node = HOST2 - Manager assigned to secondary node is STandard Manager
(FNDLIBR)
When HOST1 becomes unavailable, both ICM and FNDCRM are migrated over to HOST2.
This is viewable from Administer Concurrent Manager form in System Administrator
Responsibility.
The $APPLCSF/log/.mgr logfile will also reflect that HOST1 is being added to
unavailable list.
On HOST2, after pmon cycle, FNDICM, FNDCRM, and FNDLIBR are now migrated and
running.
(Note: FNDIMON and FNDSM run independently on each concurrent processing node.
FNDSM
is not a persistent process, and FNDIMON is a persistent process local to each
node)
Once HOST1 becomes available, FNDICM and FNDCRM are migrated back to the original
primary
node for successful failback.
In summary, in a successful fail over and failback scenario, all managers should
failover to their secondary node, and once node or instance becomes available; then
all managers should failback to primary node.
Method 2
The first method is straightforward and easy to implement.
However, we know that the Standard Manager handles most of the requests.
How to distribute the load then?!
For example, the Standard Manager is going to process all requests except those
related to GL and Inventory modules.
We will exclude programs related to them by using Specialization Rules.
It will have APP1 as the primary node and APP2 as the secondary node.
g:\prints\interview\rac commands.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Patchset/PSU Patch Number Description
11.1.0.7.11 13621679 DATABASE PATCH SET UPDATE 11.1.0.7.11 (INCLUDES CPU
APR2012)
PSU 11.1.0.7.11 includes all fixes previously included in PSU 11.1.0.7.10 and those
listed in .
To install the PSU 11.1.0.7.11 patch, the Oracle home must have the 11.1.0.7.0
Database installed. Subsequent PSU patches can be installed on Oracle Database
11.1.0.7.0 or any PSU with a lower 5th numeral version than the one being
installed.
OPatch Utility
==============
You must use the OPatch utility version 11.1.0.8.2 or later to apply this patch.
Oracle recommends that you use the latest released OPatch 11.1, which is available
for download from My Oracle Support patch6880880 by selecting the 11.1.0.0.0
release.
For information about OPatch documentation, including any known issues, see My
Oracle Support Note 293369.1 OPatch documentation list.
Confirmation
Blackout "Blackout-Apr 24 1998 9:33:42 PM" created successfully, Blackout status
will be propagated to the target(s) shortly.
-----------------------------------------------------------------------------------
-------------------------------
Node 1: (AS ORACLE)
===================
$ hostname
$ uname
$ bash
$ date
$ df -kg or df -h
$ cat /etc/oratab or cat/var/opt/oracle/oratab ------> Note ASM and Database Home
Paths
$ ps -ef| grep pmon
$ ps -ef| grep tns
$ ps -ef| grep emagent
$ ps -ef|grep oracle
$ ps -ef| grep d.bin
$ ps -ef|grep crs
root 344170 1 0 Apr 24 - 0:00
/oradb/crs/product/11.1.0/crs_1/bin/oclskd.bin
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012
$ opatch version
$ /oradb/crs/product/11.1.0/crs_1/OPatch/opatch version
$ /oradb/asm/product/11.1.0/asm_1/OPatch/opatch version
$ /oradb/app/oracle/product/11.1.0/db_1/OPatch/opatch version
$ which opatch
/oradb/app/oracle/product/11.1.0/db_1/OPatch/opatch
. oraenv --- asm instance
$ opatch lsinventory
. oraenv --- database 1 instance
$ opatch lsinventory
. oraenv --- database 2 instance
$ opatch lsinventory
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check cluster
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check crs
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------
$ hostname
$ uname
$ bash
$ date
$ df -kg or df -h
$ cat /etc/oratab or cat/var/opt/oracle/oratab ------> Note ASM and Database Home
Paths
$ ps -ef| grep pmon
$ ps -ef| grep tns
$ ps -ef| grep emagent
$ ps -ef|grep oracle
$ ps -ef| grep d.bin
$ ps -ef|grep crs
root 344170 1 0 Apr 24 - 0:00
/oradb/crs/product/11.1.0/crs_1/bin/oclskd.bin
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012
$ opatch version
$ /oradb/crs/product/11.1.0/crs_1/OPatch/opatch version
$ /oradb/asm/product/11.1.0/asm_1/OPatch/opatch version
$ /oradb/app/oracle/product/11.1.0/db_1/OPatch/opatch version
$ which opatch
/oradb/app/oracle/product/11.1.0/db_1/OPatch/opatch
$ ps -ef| grep pmon
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check cluster
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check crs
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------
Pre-rootpatch
=============
# cd /oradb/crs/product/11.1.0/crs_1/bin
# ./crsctl check cluster
# ./crsctl check crs
# ./crsctl stop crs
# cd /oradb/crs/product/11.1.0/crs_1/bin
# ./crsctl check cluster
# ./crsctl check crs
# ./crsctl stop crs
# exit
# hostname
<Node 1>
# exit
# hostname
<Node 1>
-----------------------------------------------------------------------------------
-------------------------------
Pre-patch
=========
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953
$ custom/scripts/prepatch.sh -crshome /oradb/crs/product/11.1.0/crs_1
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953
$ custom/server/11724953/custom/scripts/prepatch.sh -dbhome
/oradb/asm/product/11.1.0/asm_1
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953
$ custom/server/11724953/custom/scripts/prepatch.sh -dbhome
/oradb/app/oracle/product/11.1.0/db_1
-----------------------------------------------------------------------------------
-------------------------------
Opatch Apply
============
CRS
===
$ cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077
$ opatch napply -oh /oradb/crs/product/11.1.0/crs_1 -id 11724953
ASM
===
$ cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/serve
r
$ opatch napply custom/server/ -oh /oradb/asm/product/11.1.0/asm_1 -id 11724953
RDBMS
=====
$ cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/serve
r
$ opatch napply custom/server/ -oh /oradb/app/oracle/product/11.1.0/db_1 -id
11724953
-----------------------------------------------------------------------------------
-------------------------------
CRS
===
$ cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/scrip
ts
$ ./postpatch.sh -crshome /oradb/crs/product/11.1.0/crs_1
ASM
===
$ cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/serve
r/11724953
$ ./custom/scripts/postpatch.sh -dbhome /oradb/asm/product/11.1.0/asm_1
RDBMS
=====
$ cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/serve
r/11724953
$ ./custom/scripts/postpatch.sh -dbhome /oradb/app/oracle/product/11.1.0/db_1
-----------------------------------------------------------------------------------
-------------------------------
13621679
========
$ cd /oradb/app/admin/orasw/patches
$ chmod -R 777 PSU_patches
$ cd PSU_patches
$ pwd
/oradb/app/admin/orasw/patches/PSU_patches
$ ls -lrt p13621679_111070_AIX5L.zip
$ unzip p13621679_111070_AIX5L.zip
$ ls -lrt
$ cd 13621679
$ pwd
ASM
===
$ /oradb/app/admin/orasw/patches/PSU_patches/13621679
$ opatch apply -oh /oradb/asm/product/11.1.0/asm_1
RDBMS
=====
$ cd /oradb/app/admin/orasw/patches/PSU_patches/13621679
$ opatch apply -oh /oradb/app/oracle/product/11.1.0/db_1
-----------------------------------------------------------------------------------
-------------------------------
9734685
=======
$ cd /oradb/app/admin/orasw/patches/PSU_patches/
$ ls -lrt p9734685_1110711_AIX64-5L.zip
$ unzip p9734685_1110711_AIX64-5L.zip
ASM
===
$ cd /oradb/app/admin/orasw/patches/PSU_patches/9734685
$ opatch apply -oh /oradb/asm/product/11.1.0/asm_1
RDBMS
=====
$ cd /oradb/app/admin/orasw/patches/PSU_patches/9734685
$ opatch apply -oh /oradb/app/oracle/product/11.1.0/db_1
-----------------------------------------------------------------------------------
-------------------------------
After 9734685 Patch applied relink has to be done in both ASM and DB homes -------
Linking Oracle
==========================================================================
RDBMS
=====
$ cd /oradb/app/oracle/product/11.1.0/db_1/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
ASM
===
$ cd /oradb/asm/product/11.1.0/asm_1/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
RDBMS
=====
$ cd /oradb/app/oracle/product/11.1.0/db_1/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
ASM
===
$ cd /oradb/asm/product/11.1.0/asm_1/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
-----------------------------------------------------------------------------------
-------------------------------
Post-rootpatch
==============
# cd /oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953
#
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/scrip
ts/postrootpatch.sh -crshome /oradb/crs/product/11.1.0/crs_1
# ps -ef | grep pmon --- Both the db and asm instances will be up and running
# cd
/oradb/app/admin/orasw/patches/PSU_patches/Jan2012/CRS/111077/11724953/custom/scrip
ts/postrootpatch.sh -crshome /oradb/crs/product/11.1.0/crs_1
# ps -ef | grep pmon --- Both the db and asm instances will be up and running
-----------------------------------------------------------------------------------
-------------------------------
Start ASM
-----------------------------------------------------------------------------------
-------------------------------
$ sqlplus /nolog
Enter user-name: / as sysdba
Connected to an idle instance.
SQL>startup;
SQL>@?/rdbms/admin/catbundle.sql psu apply
SQL>exit
SQL>startup;
SQL>@?/rdbms/admin/catbundle.sql psu apply
SQL>exit
-----------------------------------------------------------------------------------
-------------------------------
Patch Validation:-
================
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check cluster
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ ./crsctl check crs
$ cd /oradb/crs/product/11.1.0/crs_1/bin
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
$ hostname
$ uname
$ bash
$ date
$ who -b
$ uptime
$ df -kg or df -h
$ cat /etc/oratab or cat/var/opt/oracle/oratab ------> Note ASM and Database Home
Paths
$ ps -ef| grep pmon
$ ps -ef| grep tns
$ ps -ef| grep emagent
$ ps -ef|grep oracle
$ ps -ef| grep d.bin
$ ps -ef|grep crs
SQL>
col ACTION_TIME for a12
col NAMESPACE for a10
col VERSION for a10
col BUNDLE_SERIES for a15
col COMMENTS for a20
select action_time, action,namespace, version, id,bundle_series, comments from
registry$history;
-----------------------------------------------------------------------------------
-------------------------------
-----------------------------------------------------------------------------------
-------------------------------
Confirmation
Request to stop blackout "Blackout-Apr 24 1998 9:33:42 PM" was processed
successfully, Blackout status will be propagated to the target(s) shortly.
-----------------------------------------------------------------------------------
-------------------------------
Posted by Dharmendra Chalasani at Monday, October 07, 2013
Email This
BlogThis!
Share to Twitter
Share to Facebook
Share to Pinterest
Fix:
Try roll backing the patch as below
opatch rollback -id <sub-set patch#> -no_sysmod
-no_sysmod options just removes the patch updating the inventory with out updating
the files in the File System.
When you moved oracle binary files from one ORACLE_HOME server to another server
then which oracle utility will be used to make this new ORACLE_HOME usable?
Relink all.
You have collection of patch (nearly 100 patches) or patchset. How can you apply
only one patch from it?
With Napply itself (by providing patch location and specific patch id) you can
apply only one patch from a collection of extracted patch. For more information
check the opatch util NApply �help. It will give you clear picture.
For Example:
opatch util napply <patch_location> -id 9 -skip_subset -skip_duplicate
This will apply only the patch id 9 from the patch location and will skip duplicate
and subset of patch installed in your ORACLE_HOME.
If both CPU and PSU are available for given version which one, you will prefer to
apply?
From the above discussion it is clear once you apply the PSU then the recommended
way is to apply the next PSU only. In fact, no need to apply CPU on the top of PSU
as PSU contain CPU (If you apply CPU over PSU will considered you are trying to
rollback the PSU and will require more effort in fact). So if you have not decided
or applied any of the patches then, I will suggest you to go to use PSU patches.
For more details refer: Oracle Products [ID 1430923.1], ID 1446582.1
PSU is superset of CPU then why someone choose to apply a CPU rather than a PSU?
CPUs are smaller and more focused than PSU and mostly deal with security issues. It
seems to be theoretically more consecutive approach and can cause less trouble than
PSU as it has less code changing in it. Thus any one who is concerned only with
security fixes and not functionality fixes, CPU may be good approach.
If you are using latest support.oracle.com then after login to metalink Dashboard
- Click on "Patches & Updates" tab
- On the left sidebar click on "Latest Patchsets" under "Oracle Server/Tools".
- A new window will appear.
- Just mouseover on your product in the "Latest Oracle Server/Tools Patchsets"
page.
- Corresponding oracle platform version will appear. Then simply choose the
patchset version and click on that.
- You will go the download page. From the download page you can also change your
platform and patchset version.
REFERENCES:
http://docs.oracle.com/cd/E11857_01/em.111/e12255/e_oui_appendix.htm
Oracle� Universal Installer and OPatch User's Guide
11g Release 2 (11.2) for Windows and UNIX
Part Number E12255-11
What is OPatch?
1. You MUST read the Readme.txt file included in opatch file, look for any prereq.
steps/ post installation steps or and DB related changes. Also, make sure that you
have the correct opatch version required by this patch.
2.Make sure you have a good backup of database.
3. Make a note of all Invalid objects in the database prior to the patch.
4. Shutdown All the Oracle Processes running from that Oracle Home , including the
Listener and Database instance, Management agent etc.
5. You MUST Backup your oracle Home and Inventory
tar -cvf $ORACLE_HOME $ORACLE_HOME/oraInventory | gzip >
Backup_Software_Version.tar.gz
6. Unzip the patch in $ORACLE_HOME/patches
7. cd to the patch direcory and do opatch -apply to apply the patch.
8. Read the output/log file to make sure there were no errors.
1. Download the required Patch from Metalink based on OS Bit Version and DB
Version.
2. Need to down the database before applying patch.
3. Unzip and Apply the Patch using �opatch apply� command.On successfully applied
of patch you will see successful message �OPatch succeeded.�, Crosscheck your patch
is applied by using �opatch lsinventory� command .
4. Each patch has a unique ID, the command to rollback a patch is �opatch rollback
-id <patch no.>� command.On successfully applied of patch you will see successful
message �OPatch succeeded.�, Crosscheck your patch is applied by using �opatch
lsinventory� command .
5. Patch file format will be like, �p<patch no.>_<db version>_<os>.zip�
6. We can check the opatch version using �opatch -version� command.
7. Generally, takes 2 minutes to apply a patch.
8. To get latest Opatch version download �patch 6880880 - latest opatch tool�, it
contains OPatch directory.
9. Contents of downloaded patches will be like �etc,files directories and a README
file�
10. Log file for Opatch utility can be found at $ORACLE_HOME/cfgtoollogs/opatch
11. OPatch also maintains an index of the commands executed with OPatch and the log
files associated with it in the history.txt file located in the
<ORACLE_HOME>/cfgtoollogs/opatch directory.
12. Starting with the 11.2.0.2 patch set, Oracle Database patch sets are full
installations of the Oracle Database software. This means that you do not need to
install Oracle Database 11g Release 2 (11.2.0.1) before installing Oracle Database
11g Release 2 (11.2.0.2).
13. Direct upgrade to Oracle 10g is only supported if your database is running one
of the following releases: 8.0.6, 8.1.7, 9.0.1, or 9.2.0. If not, you will have to
upgrade the database to one of these releases or use a different upgrade option
(like export/ import).
14.Direct upgrades to 11g are possible from existing databases with versions
9.2.0.4+, 10.1.0.2+ or 10.2.0.1+. Upgrades from other versions are supported only
via intermediate upgrades to a supported upgrade version.
http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
Types of Patches?
What is PSU?
REFERENCES:
OPATCH Utility (Oracle RDBMS Patching)
http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
How to apply Database Patches
http://rafioracledba.blogspot.in/search/label/Database%20Patches
Cloning
=======
What is Cloning?
Upgrade
=======
What is rolling upgrade?It is a new ASM feature from Database 11g.ASM instances in
Oracle database 11g release(from 11.1) can be upgraded or patched using rolling
upgrade feature. This enables us to patch or upgrade ASM nodes in a clustered
environment without affecting database availability.During a rolling upgrade we can
maintain a functional cluster while one or more of the nodes in the cluster are
running in different software versions.Rolling upgrade can be used only for Oracle
database 11g releases(from 11.1).
You might be required to use the PFILE option to specify the location of your
initialization parameter file.
Once the database is started in upgrade mode, only queries on fixed views execute
without errors until after the catupgrd.sql script is run. Before running
catupgrd.sql, queries on any other view or the use of PL/SQL returns an error.
startup migrate:
---------------
Used to upgrade a database till 9i.
Startup Upgrade
---------------
From 10G we are using startup upgrade to upgrade database.
It will adjust few database (init) parameters (irrespective of what you have
defined) automatically to certain values in order to run upgrade scripts smoothely.
in other way..it will issue few alter statements to set certain parameters which
are required to complete the upgrade scripts without any issues.
REFERENCE:
---------
Oracle� Database Upgrade Guide 11g Release 2 (11.2)
http://docs.oracle.com/cd/E11882_01/server.112/e23633/upgrade.htm
http://indiandba.blogspot.in/2012/01/error-is-related-to-timezone-file.html
Posted by Dharmendra Chalasani at Wednesday, July 24, 2013
Email This
BlogThis!
Share to Twitter
Share to Facebook
Share to Pinterest
Install Instructions
====================
Download ASM Patch
Check DR sync status
PROD
====
Blackout all the sevices on database server Node 1 and Node 2 (OEM)
ps -ef|grep asm
. oraenv
+ASM
ps -ef|grep asm
. oraenv
+ASM
Database Validation
-------------------
validate all the Database services for all databases (Node 1)
validate all the Database services for all databases (Node 2)
Application Validation
----------------------
Startup the applications and validate and inform Application team
Application team should validate.
DR
==
Same steps as in PROD
FALLBACK Plan
=============
set environment variables
Database Validation
-------------------
validate all the Database services for all databases (Node 1)
validate all the Database services for all databases (Node 2)
Application Validation
----------------------
Startup the applications and validate and inform Application team
Application team should validate.
Posted by Dharmendra Chalasani at Saturday, March 02, 2013
Email This
g:\prints\interview\rac interveiw.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Oracle RAC Load balancing and Failover
LOAD BALANCING in RAC:-
The Oracle RAC system can distribute the load over many nodes this feature called
as load balancing.
TESTRAC =
(DESCRIPTION =
(ADDRESS_LIST=
(LOAD_BALANCE = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC1-VIP)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC2-VIP)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = testdb.selectstarfrom.com))
)
TESTRAC_LISTENERS =
(DESCRIPTION =
(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC1)(PORT = 1521)))
(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC2)(PORT = 1521))))
)
Once you configure Server-side connect-time load balancing, each database�s PMON
process will automatically register the database with the database�s local listener
as well as cross-register the database with the listeners on all other nodes in the
cluster. Now the nodes themselves decide which node is least busy, and then will
connect the client to that node.
FAILOVER in RAC:-
The Oracle RAC system can protect against failures caused by O/S or server crashes
or hardware failures. When a node failure occurs in RAC system, the connection
attempts can fail over to other surviving nodes in the cluster this feature called
as Failover.
1. Connection Failover
If a connection failure occurs at connect time, the application failover the
connection to another active node in the cluster. This feature enables client to
connect to another listener if the initial connection to the first listener fails.
TESTRAC =
(DESCRIPTION =
(ADDRESS_LIST=
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC1-VIP)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC2-VIP)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = testdb.selectstarfrom.com))
)
TESTRAC =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC1-VIP)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTRAC1-VIP)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = testdb.selectstarfrom.com)
(FAILOVER_MODE = (TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))
)
)
3. What kind of storage we can use for the shared Clusterware files?
- OCFS (Release 1 or 2)
- raw devices
- third party cluster file system such as GPFS or Veritas
4. What kind of storage we can use for the RAC database storage?
- OCFS (Release 1 or 2)
- ASM
- raw devices
- third party cluster file system such as GPFS or Veritas
5. What is a CFS?
A cluster File System (CFS) is a file system that may be accessed (read and write)
by all members in a cluster at the same time. This implies that all members of a
cluster have the same view.
6. What is an OCFS2?
The OCFS2 is the Oracle (version 2) Cluster File System which can be used for the
Oracle Real Application Cluster.
16. Why we need to have configured SSH or RSH on the RAC nodes?
SSH (Secure Shell,10g+) or RSH (Remote Shell, 9i+) allows �oracle� UNIX account
connecting to another RAC node and copy/ run commands as the local �oracle� UNIX
account.
19. What are the restrictions on the SID with a RAC database? Is it limited to 5
characters?
The SID prefix in 10g Release 1 and prior versions was restricted to five
characters by install/ config tools so that an ORACLE_SID of up to max of 5+3=8
characters can be supported in a RAC environment. The SID prefix is relaxed up to 8
characters in 10g Release 2, see bug 4024251 for more information.
21. Are there any issues for the interconnect when sharing the same switch as the
public network by using VLAN to separate the network?
RAC and Clusterware deployment best practices suggests that the interconnect
(private connection) be deployed on a stand-alone, physically separate, dedicated
switch. On big network the connections could be instable.
25. What versions of the database can I use the cluster verification utility
(cluvfy) with?
The cluster verification utility is release with Oracle Database 10g Release 2 but
can also be used with Oracle Database 10g Release 1.
26. If I am using Vendor Clusterware such as Veritas, IBM, Sun or HP, do I still
need Oracle Clusterware to run Oracle RAC 10g?
Yes. When certified, you can use Vendor Clusterware however you must still install
and use Oracle Clusterware for RAC. Best Practice is to leave Oracle Clusterware to
manage RAC. For details see Metalink Note 332257.1 and for Veritas SFRAC see
397460.1.
-> hangcheck-tick: this parameter defines the period of time between checks of
system health. The default value is 60 seconds; Oracle recommends setting it to
30seconds.
-> hangcheck-margin: this defines the maximum hang delay that should be tolerated
before hangcheck-timer resets the RAC node.
29. Is the hangcheck timer still needed with Oracle RAC 10g?
Yes.
31. Is it possible to use ASM for the OCR and voting disk?
No, the OCR and voting disk must be on raw or CFS (cluster file system).
32. Can I change the name of my cluster after I have created it when I am using
Oracle Clusterware?
No, you must properly uninstall Oracle Clusterware and then re-install.
37. What command would you use to check the availability of the RAC system?
crs_stat -t -v (-t -v are optional)
38. What is the minimum number of instances you need to have in order to create a
RAC?
You can create a RAC with just one server.
41. What was RAC previous name before it was called RAC?
OPS: Oracle Parallel Server
42. What RAC component is used for communication between instances?
Private Interconnect.
43. What is the difference between normal views and RAC views?
A RAC view has the prefix �G�. For example, GV$SESSION instead of V$SESSION
44. Which command will we use to manage (stop, start) RAC services in command-line
mode?
srvctl
52. What are Oracle Clusterware processes for 10g on Unix and Linux
Cluster Synchronization Services (ocssd) � Manages cluster node membership and runs
as the oracle user; failure of this process results in cluster restart.
Cluster Ready Services (crsd) � The crs process manages cluster resources (which
could be a database, an instance, a service, a Listener, a virtual IP (VIP)
address, an application process, and so on) based on the resource's configuration
information that is stored in the OCR. This includes start, stop, monitor and
failover operations. This process runs as the root user
Event manager daemon (evmd) �A background process that publishes events that crs
creates.
Process Monitor Daemon (OPROCD) �This process monitor the cluster and provide I/O
fencing. OPROCD performs its check, stops running, and if the wake up is beyond the
expected time, then OPROCD resets the processor and reboots the node. An OPROCD
failure results in Oracle Clusterware restarting the node. OPROCD uses the
hangcheck timer on Linux platforms.
When a node fails, the VIP associated with it is automatically failed over to some
other node and new node re-arps the world indicating a new MAC address for the IP.
Subsequent packets sent to the VIP go to the new node, which will send error RST
packets back to the clients. This results in the clients getting errors
immediately.
58. What do you do if you see GC CR BLOCK LOST in top 5 Timed Events in AWR Report?
This is most likely due to a fault in interconnect network.
Check netstat -s
if you see "fragments dropped" or "packet reassemblies failed" , Work with your
system administrator find the fault with network.
60. Srvctl cannot start instance, I get the following error PRKP- 1001 CRS-0215,
however sqlplus can start it on both nodes? How do you identify the problem?
Set the environmental variable SRVM_TRACE to true.. And start the instance with
srvctl. Now you will get detailed error stack.
b. the 10gR2 Load Balancing Advisory, the feature that permit load balancing
accross different rac nodes dependent of the load on the different nodes. The rdbms
MMON is creating an advisory for distribution of work every 30seconds and forward
it via racgimon and ONS to listeners and applications.
Database Replay
Database Replay (sometimes named as Workload Replay) feature in Oracle11g allows
you to reproduce the
production database conditions in a testing environment.In other words, with this
feature you can capture the
actual workload on a production system and replay it in a test system. This way,
you can analyze the condition of the production database without working on the
actual production database.
This feature enables you to test the impact of applying changes on a production
database. These changes could be database upgrades, switching to RAC, application
upgrades, operating system upgrades or storage system changes.
This is very useful for a DBA to analyze how a change on the database (including
database upgrade) may affect the execution efficiency of SQL statements. Using this
tool is explained here because you may consider using it to study the effect of
upgrading an Oracle database 10g release 2 to 11g.
Note:
If you plan to use SPA on a test database, it is highly recommended to make the
test database resemble the production database as closely as possible. You can use
the RMAN duplicate command for this purpose.
In UNIX systems, you use the script $ORACLE_HOME/OPatch/opatch to invoke the online
patching.
Note:
For each database instance two alert log files are generated: one as text file and
one with xml
format. Contents of the xml-formatted file can be examined using adrci tool.
Also the xml-formatted alert log is saved in the ADR and specifically in the
directory
$ORACLE_BASE/diag/rdbms/$INSTANCE_NAME/$ORACLE_SID/alert
The advisor however doe not recover from failures on standby databases or RAC
environment. This advisor can be used through RMAN or the Enterprise Manager.
However, if the database is not configured to use this parameter and you want to
use it, you must restart the
database after setting the parameter.
Invisible Indexes
Invisible index is an index that is not considered by the optimizer when creating
the execution plans. This can be used to test the effect of adding an index to a
table on a query (using index hint) without actually being used by the other
queries.
Read-Only Tables
In Oracle 11g, you can set a table to be read only,i.e. users can only query from
the table but no DML
statement is allowed on the table.
As clear from its concept, result cache is mostly useful in for frequently executed
queries with rare changes on the retrieved data.
The advisor also may recommend actions like creating new indexes, refreshing
statistics or re-writing the statement. These actions, however, are not
automatically implemented by the advisor.
To use the DBMS_AUTO_SQLTUNE package, you must have the DBA role, or have EXECUTE
privileges granted by an administrator. The only exception is the
EXECUTE_AUTO_TUNING_TASK procedure, which can only be run by SYS.
When SPM is enabled, the system maintains a plan history that contains all plans
generated by the optimizer and store them in a component called plan baseline.
Among the plan history in the plan baseline, plans that are verified not to cause
performance regression are marked as acceptable. The plan baseline is used by the
optimizer to decide on the best plan to use when compiling a SQL statement.
Repository stored in data dictionary of plan baselines and statement log maintained
by the optimizer is called
SQL management base(SMB).
Database ADDM
Oracle Database 11g has added a new layer of analysis to ADDM called Database ADDM.
The mode ADDM was working in Oracle 10g is now called instance ADDM. The main
target of database ADDM is to analyze and report on RAC environment. To enable
Database ADDM, you set the parameter INSTANCES in DBMS_ADVISOR.
While the block media recovery is going on, any attempt by users to access data in
the corrupt blocks will result in an error message, telling the user that the data
block is corrupt.
VALIDATE Command
You can use the new command VALIDATE to manually check for physical and logical
corruptions in datafiles,backup sets, and even individual data blocks. The comma nd
by default checks for physical corruption. You can optionally specify CHECK LOGICAL
. Corrupted blocks are reported in V$DATABASE_BLOCK_CORRUPTION.
To enable an archived redo log deletion policy, run the CONFIGURE ARCHIVELOG
DELETION POLICY BACKED UP n TIMES command with the desired options.
In Oracle 11g, you can start the ASM instance in restricted mode. When in
restricted mode, databases will not be permitted to access the ASM instance. Also,
individual diskgroup can be set in restricted mode.
Checking Diskgroup
Starting from Oracle Database 11g, you can validate the internal consistency of ASM
diskgroup metadata using the ALTER DISKGROUP ... CHECK command. Summary of errors
is logged in the ASM alert log file.
If a disk is destroyed beyond repair, you want to drop it. But because the disk is
practically damaged, you cannot mount it and thus you cannot issue the DROP
DISKGROUP command against it. In such a condition, Oracle 11g provides the FORCE
INCLUDING CONTENTS option to drop the diskgroup even if it is not mounted.
Active Data Guard is a new option for Oracle Database 11g Enterprise Edition
An Active Data Guard standby database is an exact copy of the primary that is open
read-only while it continuously applies changes transmitted by the primary
database. An active standby can offload ad-hoc queries, reporting, and fast
incremental backups from the primary database, improving performance and
scalability while preventing data loss or downtime due to data corruptions,
database and site failures, human error, or natural disaster. Oracle Active Data
Guard enables read-only access to a physical standby database.
With Oracle Active Data Guard, a physical standby database can be used for real-
time reporting, with minimal latency between reporting and production data.
Compared with traditional replication methods, Active Data Guard is very simple to
use, transparently supports all datatypes, and offers very high performance. Oracle
Active Data Guard also allows backup operations to be off-loaded to the standby
database, and be done very fast using intelligent incremental backups.
ASM offers support for Oracle RAC clusters without the requirement to install 3rd
party software, such as cluster aware volume managers or filesystems.
ASM is shipped as part of the database server software (Enterprise and Standard
editions) and does not cost extra money to run.
For example, if there are six disks in a disk group, pieces of each ASM file are
written to all six disks. These pieces come in 1 MB chunks known as extents. When a
database file is created, it is striped (divided into extents and distributed)
across the six disks, and allocated disk space on all six disks grows evenly. When
reading the file, file extents are read from all six disks in parallel, greatly
increasing performance.
ASM supports 2-way mirroring, where each file extent gets one mirrored copy, and 3-
way mirroring, where each file extent gets two mirrored copies.
What are ASM Background Processes in Oracle?Both an Oracle ASM instance and an
Oracle Database instance are built on the same technology. Like a database
instance, an Oracle ASM instance has memory structures (System Global Area) and
background processes. Besides, Oracle ASM has a minimal performance impact on a
server. Rather than mounting a database, Oracle ASM instances mount disk groups to
make Oracle ASM files available to database instances.
There are at least two new background processes added for an ASM instance:
RBAL (Re-balancer) RBAL runs in both database and ASM instances. In the database
instance, it does a global open of ASM disks. In an ASM instance, it also
coordinates rebalance activity for disk groups.RBAL, which coordinates rebalance
activities
for disk resources controlled by ASM.
ASMB, this process contact CSS using the group name and acquires the associated ASM
connect string. The connect string is subsequently used to connect to the ASM
instance.
RBAL, which performs global opens on all disks in the disk group.A global open
means that more than one database instance can be accessing the ASM disks at a
time.
Failure groups are defined within a disk group to support the required level of
redundancy. For two-way mirroring you would expect a disk group to contain two
failure groups so individual files are written to two locations.
DB_UNIQUE_NAME - Specifies a globally unique name for the database. This defaults
to +ASM but must be altered if you intend to run multiple ASM instances.
ASM_DISKGROUPS - The list of disk groups that should be mounted by an ASM instance
during instance startup, or by the ALTER DISKGROUP ALL MOUNT statement. ASM
configuration changes are automatically reflected in this parameter.
ASM_DISKSTRING - Specifies a value that can be used to limit the disks considered
for discovery. Altering the default value may improve the speed of disk group mount
time and the speed of adding a disk to a disk group. Changing the parameter to a
value which prevents the discovery of already mounted disks results in an error.
The default value is NULL allowing all suitable disks to be considered.
For clustered systems, create one ASM instance per node (called +ASM1, +ASM2, etc).
To get started, create 2 disk groups - one for data and one for recovery files.
Here is an example:
Here is an example how you can enable automatic file management with such a setup:
You may also decide to introduce additional disk groups - for example, if you
decide to put historic data on low cost disks, or if you want ASM to mirror
critical data across 2 storage cabinets.
How are the Oracle ASM files stored within the Oracle ASM filesystem structure?
Oralce ASM files are stored within the Oracle ASM filesystem structures as objects
that RDBMS instances/Oracle database instance access. RDBMS/Oracle instance treats
the Oracle ASM files as standard filesystem files.
What are the Oracle ASM files that are stored within the Oracle ASM file hierarchy?
Files stored in Oracle ASM diskgroup/Oracl ASM filestructures include:
1) Datafile
2) Controlfiles
3) Server Parameter Files(SPFILE)
4) Redo Log files
What happens when you create a file/database file in ASM?What commands do you use
to create database files?
Some common commands used for creating database files are :
1) Create tabespace
2) Add Datafile
3) Add Logfile
For example,
SQL> CREATE TABLESPACE TS1 DATAFILE '+DATA1' SIZE 10GB;
Above command creates a datafile in DATA1 diskgroup
ASM's SPFile will be residing inside ASM itself. This could be found out in number
of ways, looking at the alert log of ASM when ASM starts
Machine: x86_64
Using parameter settings in server-side spfile
+DATA/asm/asmparameterfile/registry.253.766260991
System parameters with non-default values:
large_pool_size = 12M
instance_type = "asm"
remote_login_passwordfile= "EXCLUSIVE"
asm_diskgroups = "FLASH"
asm_diskgroups = "DATA"
asm_power_limit = 1
diagnostic_dest = "/opt/app/oracle"
Or using the asmcmd's spget command which shows the spfile location registered with
GnP profile
ASMCMD> spget
+DATA/asm/asmparameterfile/registry.253.766260991
When you moved oracle binary files from one ORACLE_HOME server to another server
then which oracle utility will be used to make this new ORACLE_HOME usable?
Relink all.
You have collection of patch (nearly 100 patches) or patchset. How can you apply
only one patch from it?
With Napply itself (by providing patch location and specific patch id) you can
apply only one patch from a collection of extracted patch. For more information
check the opatch util NApply �help. It will give you clear picture.
For Example:
opatch util napply <patch_location> -id 9 -skip_subset -skip_duplicate
This will apply only the patch id 9 from the patch location and will skip duplicate
and subset of patch installed in your ORACLE_HOME.
If both CPU and PSU are available for given version which one, you will prefer to
apply?
From the above discussion it is clear once you apply the PSU then the recommended
way is to apply the next PSU only. In fact, no need to apply CPU on the top of PSU
as PSU contain CPU (If you apply CPU over PSU will considered you are trying to
rollback the PSU and will require more effort in fact). So if you have not decided
or applied any of the patches then, I will suggest you to go to use PSU patches.
For more details refer: Oracle Products [ID 1430923.1], ID 1446582.1
PSU is superset of CPU then why someone choose to apply a CPU rather than a PSU?
CPUs are smaller and more focused than PSU and mostly deal with security issues. It
seems to be theoretically more consecutive approach and can cause less trouble than
PSU as it has less code changing in it. Thus any one who is concerned only with
security fixes and not functionality fixes, CPU may be good approach.
If you are using latest support.oracle.com then after login to metalink Dashboard
- Click on "Patches & Updates" tab
- On the left sidebar click on "Latest Patchsets" under "Oracle Server/Tools".
- A new window will appear.
- Just mouseover on your product in the "Latest Oracle Server/Tools Patchsets"
page.
- Corresponding oracle platform version will appear. Then simply choose the
patchset version and click on that.
- You will go the download page. From the download page you can also change your
platform and patchset version.
What is the recent Patch applied?
What is OPatch?
How to Apply Opatch in Oracle?
1. You MUST read the Readme.txt file included in opatch file, look for any prereq.
steps/ post installation steps or and DB related changes. Also, make sure that you
have the correct opatch version required by this patch.
2.Make sure you have a good backup of database.
3. Make a note of all Invalid objects in the database prior to the patch.
4. Shutdown All the Oracle Processes running from that Oracle Home , including the
Listener and Database instance, Management agent etc.
5. You MUST Backup your oracle Home and Inventory
tar -cvf $ORACLE_HOME $ORACLE_HOME/oraInventory | gzip >
Backup_Software_Version.tar.gz
6. Unzip the patch in $ORACLE_HOME/patches
7. cd to the patch direcory and do opatch -apply to apply the patch.
8. Read the output/log file to make sure there were no errors.
1. Download the required Patch from Metalink based on OS Bit Version and DB
Version.
2. Need to down the database before applying patch.
3. Unzip and Apply the Patch using �opatch apply� command.On successfully applied
of patch you will see successful message �OPatch succeeded.�, Crosscheck your patch
is applied by using �opatch lsinventory� command .
4. Each patch has a unique ID, the command to rollback a patch is �opatch rollback
-id <patch no.>� command.On successfully applied of patch you will see successful
message �OPatch succeeded.�, Crosscheck your patch is applied by using �opatch
lsinventory� command .
5. Patch file format will be like, �p<patch no.>_<db version>_<os>.zip�
6. We can check the opatch version using �opatch -version� command.
7. Generally, takes 2 minutes to apply a patch.
8. To get latest Opatch version download �patch 6880880 - latest opatch tool�, it
contains OPatch directory.
9. Contents of downloaded patches will be like �etc,files directories and a README
file�
10. Log file for Opatch utility can be found at $ORACLE_HOME/cfgtoollogs/opatch
11. OPatch also maintains an index of the commands executed with OPatch and the log
files associated with it in the history.txt file located in the
<ORACLE_HOME>/cfgtoollogs/opatch directory.
12. Starting with the 11.2.0.2 patch set, Oracle Database patch sets are full
installations of the Oracle Database software. This means that you do not need to
install Oracle Database 11g Release 2 (11.2.0.1) before installing Oracle Database
11g Release 2 (11.2.0.2).
13. Direct upgrade to Oracle 10g is only supported if your database is running one
of the following releases: 8.0.6, 8.1.7, 9.0.1, or 9.2.0. If not, you will have to
upgrade the database to one of these releases or use a different upgrade option
(like export/ import).
14.Direct upgrades to 11g are possible from existing databases with versions
9.2.0.4+, 10.1.0.2+ or 10.2.0.1+. Upgrades from other versions are supported only
via intermediate upgrades to a supported upgrade version.
Oracle version 10.2.0.4.0 what does each number refers to?
Oracle version number refers:
10 � Major database release number
2 � Database Maintenance release number
0 � Application server release number
4 � Component Specific release number
0 � Platform specific release number
Cloning
=======
What is Cloning?
Upgrade
=======
What is rolling upgrade?It is a new ASM feature from Database 11g.ASM instances in
Oracle database 11g release(from 11.1) can be upgraded or patched using rolling
upgrade feature. This enables us to patch or upgrade ASM nodes in a clustered
environment without affecting database availability.During a rolling upgrade we can
maintain a functional cluster while one or more of the nodes in the cluster are
running in different software versions.Rolling upgrade can be used only for Oracle
database 11g releases(from 11.1).
Note:
----
The UPGRADE keyword enables you to open a database based on an earlier Oracle
Database release. It also restricts logons to AS SYSDBAsessions, disables system
triggers, and performs additional operations that prepare the environment for the
upgrade.
You might be required to use the PFILE option to specify the location of your
initialization parameter file.
Once the database is started in upgrade mode, only queries on fixed views execute
without errors until after the catupgrd.sql script is run. Before running
catupgrd.sql, queries on any other view or the use of PL/SQL returns an error.
startup migrate:
---------------
Used to upgrade a database till 9i.
Startup Upgrade
---------------
From 10G we are using startup upgrade to upgrade database.
It will adjust few database (init) parameters (irrespective of what you have
defined) automatically to certain values in order to run upgrade scripts smoothely.
in other way..it will issue few alter statements to set certain parameters which
are required to complete the upgrade scripts without any issues.
How does OCSSD starts first if voting disk & OCR resides in ASM Diskgroups?
You might wonder how CSSD, which is required to start the clustered ASM instance,
can be started if voting disks are stored in ASM?
This sounds like a chicken-and-egg problem:
without access to the voting disks there is no CSS, hence the node cannot join the
cluster.
But without being part of the cluster, CSSD cannot start the ASM instance.
To solve this problem the ASM disk headers have new metadata in 11.2:
you can use kfed to read the header of an ASM disk containing a voting disk.
The kfdhdb.vfstart and kfdhdb.vfend fields tell CSS where to find the voting file.
This does not require the ASM instance to be up.
Once the voting disks are located, CSS can access them and joins the cluster.
What is RAC?
RAC stands for Real Application cluster.
It is a clustering solution from Oracle Corporation that ensures high availability
of databases by providing instance failover, media failover features.
Oracle RAC is a cluster database with a shared cache architecture that overcomes
the limitations of traditional shared-nothing and shared-disk approaches to provide
a highly scalable and available database solution for all the business
applications.
Oracle RAC provides the foundation for enterprise grid computing.
What command would you use to check the availability of the RAC system?
crs_stat -t -v (-t -v are optional)
Oracle Clusterware has two key components Cluster Registry OCR and Voting Disk.
The cluster registry holds all information about nodes, instances, services and ASM
storage if used, it also contains state information ie they are available and up or
similar.
The voting disk is used to determine if a node has failed, i.e. become separated
from the majority. If a node is deemed to no longer belong to the majority then it
is forcibly rebooted and will after the reboot add itself again the the surviving
cluster nodes.
Can you add voting disk online? Do you need voting disk backup?
Yes, as per documentation, if you have multiple voting disk you can add online,
but if you have only one voting disk , by that cluster will be down as its lost you
just need to start crs in exclusive mode and add the votedisk using
crsctl add votedisk <path>
What is the Oracle Recommendation for backing up voting disk?
Oracle recommends us to use the dd command to backup the voting disk with a minimum
block size of 4KB.
GC CR request :the time it takes to retrieve the data from the remote cache
Reason: RAC Traffic Using Slow Connection or Inefficient queries (poorly tuned
queries will increase the amount of data blocks requested by an Oracle session. The
more blocks requested typically means the more often a block will need to be read
from a remote instance via the interconnect.)
GC BUFFER BUSY: It is the time the remote instance locally spends accessing the
requested data block.
What do you do if you see GC CR BLOCK LOST in top 5 Timed Events in AWR Report?
This is most likely due to a fault in interconnect network.
Check netstat -s
if you see "fragments dropped" or "packet reassemblies failed" , Work with your
system administrator find the fault with network.
What are Oracle Clusterware processes for 10g on Unix and Linux?
Cluster Synchronization Services (ocssd) � Manages cluster node membership and runs
as the oracle user; failure of this process results in cluster restart.
Cluster Ready Services (crsd) � The crs process manages cluster resources (which
could be a database, an instance, a service, a Listener, a virtual IP (VIP)
address, an application process, and so on) based on the resource's configuration
information that is stored in the OCR. This includes start, stop, monitor and
failover operations. This process runs as the root user
Event manager daemon (evmd) �A background process that publishes events that crs
creates.
Process Monitor Daemon (OPROCD) �This process monitor the cluster and provide I/O
fencing. OPROCD performs its check, stops running, and if the wake up is beyond the
expected time, then OPROCD resets the processor and reboots the node. An OPROCD
failure results in Oracle Clusterware restarting the node. OPROCD uses the
hangcheck timer on Linux platforms.
What is GRD?
GRD stands for Global Resource Directory. The GES and GCS maintains records of the
statuses of each datafile and each cahed block using global resource directory.This
process is referred to as cache fusion and helps in data integrity.
What is ACMS?
ACMS stands for Atomic Controlfile Memory Service.In an Oracle RAC environment ACMS
is an agent that ensures a distributed SGA memory update(ie)SGA updates are
globally committed on success or globally aborted in event of a failure.
What is SCAN listener?
A scan listener is something that additional to node listener which listens the
incoming db connection requests from the client which got through the scan IP, it
got end points configured to node listener where it routes the db connection
requests to particular node listener.
SCAN IP can be disabled if not required. However SCAN IP is mandatory during the
RAC installation. Enabling/disabling SCAN IP is mostly used in oracle apps
environment by the concurrent manager (kind of job scheduler in oracle apps).
Steps to disable the SCAN IP,
i. Do not use SCAN IP at the client end.
ii. Stop scan listener
srvctl stop scan_listener
iii.Stop scan
srvctl stop scan (this will stop the scan vip's)
iv. Disable scan and disable scan listener
srvctl disable scan
Client Side load balancing:- Oracle client side load balancing feature enables
clients to randomize the connection requests among all the available listeners
based on their load.
An tns entry that contains all nodes entries and use load_balance=on (default its
on) will use the connect time load balancing or client side load balancing.
finance =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = myrac2-vip)(PORT = 2042))
(ADDRESS = (PROTOCOL = TCP)(HOST = myrac1-vip)(PORT = 2042))
(ADDRESS = (PROTOCOL = TCP)(HOST = myrac3-vip)(PORT = 2042))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = FINANCE) (FAILOVER=ON)
(FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC) (RETRIES = 180) (DELAY = 5))
)
)
Server side load balancing:- This improves the connection performance by balancing
the number of active connections among multiple instances and dispatchers. In a
single instance environment (shared servers), the listener selects the least
dispatcher to handle the incoming client requests. In a rac environments, PMON is
aware of all instances load and dispatchers , and depending on the load information
PMON redirects the connection to the least loaded node.
local_listener=LISTENER_MYRAC1
remote_listener = LISTENERS_MYRACDB
What are the administrative tools used for Oracle RAC environments?
Oracle RAC cluster can be administered as a single image using the below
� OEM (Enterprise Manager),
� SQL*PLUS,
� Server control (SRVCTL),
� Cluster Verification Utility (CLUVFY),
� DBCA,
� NETCA
What are the modes of deleting instances from ORacle Real Application cluster
Databases?
We can delete instances using silent mode or interactive mode using DBCA(Database
Configuration Assistant).
What are the background process that exists in 11gr2 and functionality?
Process Name Functionality
crsd �The CRS daemon (crsd) manages cluster resources based on configuration
information that is stored in Oracle Cluster Registry (OCR) for each resource. This
includes start, stop, monitor, and failover operations. The crsd process generates
events when the status of a resource changes.
cssd �Cluster Synchronization Service (CSS): Manages the cluster configuration
by controlling which nodes are members of the cluster and by notifying members when
a node joins or leaves the cluster. If you are using certified third-party
clusterware, then CSS processes interfaces with your clusterware to manage node
membership information. CSS has three separate processes: the CSS daemon (ocssd),
the CSS Agent (cssdagent), and the CSS Monitor (cssdmonitor). The cssdagent process
monitors the cluster and provides input/output fencing. This service formerly was
provided by Oracle Process Monitor daemon (oprocd), also known as OraFenceService
on Windows. A cssdagent failure results in Oracle Clusterware restarting the node.
diskmon �Disk Monitor daemon (diskmon): Monitors and performs input/output
fencing for Oracle Exadata Storage Server. As Exadata storage can be added to any
Oracle RAC node at any point in time, the diskmon daemon is always started when
ocssd is started.
evmd �Event Manager (EVM): Is a background process that publishes Oracle
Clusterware events
mdnsd �Multicast domain name service (mDNS): Allows DNS requests. The mDNS
process is a background process on Linux and UNIX, and a service on Windows.
gnsd �Oracle Grid Naming Service (GNS): Is a gateway between the cluster mDNS
and external DNS servers. The GNS process performs name resolution within the
cluster.
ons �Oracle Notification Service (ONS): Is a publish-and-subscribe service for
communicating Fast Application Notification (FAN) events
oraagent �oraagent: Extends clusterware to support Oracle-specific requirements
and complex resources. It runs server callout scripts when FAN events occur. This
process was known as RACG in Oracle Clusterware 11g Release 1 (11.1).
orarootagent �Oracle root agent (orarootagent): Is a specialized oraagent
process that helps CRSD manage resources owned by root, such as the network, and
the Grid virtual IP address
oclskd �Cluster kill daemon (oclskd): Handles instance/node evictions requests
that have been escalated to CSS
gipcd �Grid IPC daemon (gipcd): Is a helper daemon for the communications
infrastructure
ctssd �Cluster time synchronisation daemon(ctssd) to manage the time
syncrhonization between nodes, rather depending on NTP
From 11gR2(onwards) its completed HA stack managing and providing the following
resources as like the other cluster software like VCS etc.
Databases
Instances
Applications
Cluster Management
Node Management
Event Services
High Availability
Network Management (provides DNS/GNS/MDNSD services on behalf of other
traditional services) and SCAN � Single Access Client Naming method, HAIP
Storage Management (with help of ASM and other new ACFS filesystem)
Time synchronization (rather depending upon traditional NTP)
Removed OS dependent hang checker etc, manages with own additional monitor
process
State the initialization parameters that must have same value for every instance in
an Oracle RAC database?
Some initialization parameters are critical at the database creation time and must
have same values.Their value must be specified in SPFILE or PFILE for every
instance.The list of parameters that must be identical on every instance are given
below:
ACTIVE_INSTANCE_COUNT
ARCHIVE_LAG_TARGET
COMPATIBLE
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
CONTROL_FILES
DB_BLOCK_SIZE
DB_DOMAIN
DB_FILES
DB_NAME
DB_RECOVERY_FILE_DEST
DB_RECOVERY_FILE_DEST_SIZE
DB_UNIQUE_NAME
INSTANCE_TYPE (RDBMS or ASM)
PARALLEL_MAX_SERVERS
REMOTE_LOGIN_passWORD_FILE
UNDO_MANAGEMENT
-----------------------------------------------------------------------------------
----------------------------
What is RAC? What is the benefit of RAC over single instance database?
In Real Application Clusters environments, all nodes concurrently execute
transactions against the same database. Real Application Clusters coordinates each
node's access to the shared data to provide consistency and integrity.
Benefits:
Improve response time
Improve throughput
High availability
Transparency
For high availability, Oracle recommends that you have a minimum of three or odd
number (3 or greater) of votingdisks.
Voting Disk - is file that resides on shared storage and Manages cluster members.
Voting disk reassigns cluster ownership between the nodes in case of failure.
The Voting Disk Files are used by Oracle Clusterware to determine which nodes are
currently members of the cluster. The voting disk files are also used in concert
with other Cluster components such as CRS to maintain the clusters integrity.
Oracle Database 11g Release 2 provides the ability to store the voting disks in ASM
along with the OCR. Oracle Clusterware can access the OCR and the voting disks
present in ASM even if the ASM instance is down. As a result CSS can continue to
maintain the Oracle cluster even if the ASM instance has failed.
Oracle expects that you will configure at least 3 voting disks for redundancy
purposes. You should always configure an odd number of voting disks >= 3. This is
because loss of more than half your voting disks will cause the entire cluster to
fail.
You should plan on allocating 280MB for each voting disk file. For example, if you
are using ASM and external redundancy then you will need to allocate 280MB of disk
for the voting disk. If you are using ASM and normal redundancy you will need
560MB.
SCAN provides a single domain name via (DNS), allowing and-users to address a RAC
cluster as-if it were a single IP address. SCAN works by replacing a hostname or IP
list with virtual IP addresses (VIP).
Single client access name (SCAN) is meant to facilitate single name for all Oracle
clients to connect to the cluster database, irrespective of number of nodes and
node location. Until now, we have to keep adding multiple address records in all
clients tnsnames.ora, when a new node gets added to or deleted from the cluster.
Single Client Access Name (SCAN) eliminates the need to change TNSNAMES entry when
nodes are added to or removed from the Cluster. RAC instances register to SCAN
listeners as remote listeners. Oracle recommends assigning 3 addresses to SCAN,
which will create 3 SCAN listeners, though the cluster has got dozens of nodes..
SCAN is a domain name registered to at least one and up to three IP addresses,
either in DNS (Domain Name Service) or GNS (Grid Naming Service). The SCAN must
resolve to at least one address on the public network. For high availability and
scalability, Oracle recommends configuring the SCAN to resolve to three addresses.
http://www.freeoraclehelp.com/2011/12/scan-setup-for-oracle-11g-release211gr2.html
What are SCAN components in a cluster?
1.SCAN Name
2.SCAN IPs (3)
3.SCAN Listeners (3)
What is FAN?
Fast application Notification as it abbreviates to FAN relates to the events
related to instances,services and nodes.This is a notification mechanism that
Oracle RAc uses to notify other processes about the configuration and service level
information that includes service status changes such as,UP or DOWN
events.Applications can respond to FAN events and take immediate action.
What is TAF?
TAF (Transparent Application Failover) is a configuration that allows session fail-
over between different nodes of a RAC database cluster.
Transparent Application Failover (TAF). If a communication link failure occurs
after a connection is established, the connection fails over to another active
node. Any disrupted transactions are rolled back, and session properties and
server-side program variables are lost. In some cases, if the statement executing
at the time of the failover is a Select statement, that statement may be
automatically re-executed on the new connection with the cursor positioned on the
row on which it was positioned prior to the failover.
In a RAC environment, it is the combining of data blocks, which are shipped across
the interconnect from remote database caches (SGA) to the local node, in order to
fulfill the requirements for a transaction (DML, Query of Data Dictionary).
When database nodes in a cluster are unable to communicate with each other, they
may continue to process and modify the data blocks independently. If the
same block is modified by more than one instance, synchronization/locking of the
data blocks does not take place and blocks may be overwritten by others in the
cluster. This state is called split brain.
It is a private network which is used to ship data blocks from one instance to
another for cache fusion. The physical data blocks as well as data dictionary
blocks are shared across this interconnect.
How do you determine what protocol is being used for Interconnect traffic?
One of the ways is to look at the database alert log for the time period when the
database was started up.
What methods are available to keep the time synchronized on all nodes in the
cluster?
Either the Network Time Protocol(NTP) can be configured or in 11gr2, Cluster Time
Synchronization Service (CTSS) can be used.
Where does the Clusterware write when there is a network or Storage missed
heartbeat?
The ocrconfig -showbackup can be run to find out the automatic and manually run
backups.
You can use either the logical or the physical OCR backup copy to restore the
Repository.
How do you find out what object has its blocks being shipped across the instance
the most?
You can query the V$ACTIVE_INSTANCES view to determine the member instances of the
RAC cluster.
The Cluster Health Monitor (CHM) stores operating system metrics in the CHM
repository for all nodes in a RAC cluster. It stores information on CPU, memory,
process, network and other OS data, This information can later be retrieved and
used to troubleshoot and identify any cluster related issues. It is a default
component of the 11gr2 grid install. The data is stored in the master repository
and replicated to a standby repository on a different node.
What would be the possible performance impact in a cluster if a less powerful node
(e.g. slower CPU�s) is added to the cluster?
All processing will show down to the CPU speed of the slowest server.
Oracle Local repository contains information that allows the cluster processes to
be started up with the OCR being in the ASM storage ssytem. Since the ASM file
system is unavailable until the Grid processes are started up a local copy of the
contents of the OCR is required which is stored in the OLR.
In 10g the default SGA size is 1G in 11g it is set to 256M and in 12c ASM it is set
back to 1G.
You can use md_backup to restore the ASM diskgroup configuration in-case of ASM
diskgroup storage loss.
Datafiles
Redo logfiles
Spfiles
In 12c the files below can also new be stored in the ASM Diskgroup
Password file
What it the ASM POWER_LIMIT?
This is the parameter which controls the number of Allocation units the ASM
instance will try to rebalance at any given time. In ASM versions less than
11.2.0.3 the default value is 11 however it has been changed to unlimited in later
versions.
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
INSTANCE_TYPE (RDBMS or ASM)
ACTIVE_INSTANCE_COUNT
UNDO_MANAGEMENT
What is the future of the Oracle Grid?
The Grid software is becoming more and more capable of not just supporting HA for
Oracle Databases but also other applications including Oracle�s applications. With
12c there are more features and functionality built-in and it is easier to deploy
these pre-built solutions, available for common Oracle applications.
Is there an easy way to verify the inventory for all remote nodes
You can run the opatch lsinventory -all_nodes command from a single node to look at
the inventory details for all nodes in the cluster.
If your archive logs are not on their default path you can specify the full path of
the archive logs in this recovery process.
The recover database until command supports three clauses that will abort the
recovery process at a specified point:
recover database until cancel: recovers the database applying one log file at a
time until the recovery process is manually canceled
recover database until time 'YYYY-MM-DD:HH24:MI:SS': recovers the database to a
specified point in time
recover database until change <scn>: recovers the database to a specified system
change number ( SCN)
The following example demonstrates using the recover database until command with
the cancel clause.
In the alert log (<SID>ALRT.LOG, ) locate and note down the log sequence number of
the last log archived before the error occurred. This will be needed to terminate
the recovery at the desired point.
svrmgr:>startup mount;
With the database mounted, run the recover database until cancel command from
svrmgr:
Before Oracle applies each archived log sequence, it will return a message similar
to the following suggesting an archived log to apply and allowing the operator to
either continue or cancel the recovery:
Press Return until the archived log sequence determined by examining the alert log
(<SID>ALRT>LOG) is reached, at which point type cancel to stop further recovery.
Oracle will return the following message:
Restart the database with the resetlogs clause. This is necessary in order to
synchronize the log sequence up to the point of recovery and to prevent any further
system changes made after that point to be applied. The following command will
restart the database and reset the logs:
Database altered
The database is now recovered. Because the redo log sequence has been reset, it is
vital to immediately take a fresh full database backup.
step.1
First see the size of the current logs.
SQL> select group#, bytes, status from v$log;
step.2
Retrieve all the log member names for the groups.
step.3
Create 3 new log groups and name them groups 4, 5, and 6, with different size:
SQL> alter database add logfile group 4 '/oracle/dbs/log4PROD.dbf' size 10M;
step.4
Run a query to view the v$log status.
SQL> select group#, status from v$log;
step.5
Drop the old redolog files, make sure the status should be INACTIVE.
SQL> alter database drop logfile group 1;
SQL> alter database drop logfile group 2;
SQL> alter database drop logfile group 3;
step.6
Verify the groups were dropped, and the new groups' sizes are correct.
SQL> select group#, bytes, status from v$log;
step.7
Take a backup of the database, and delete the files associated with old redolog
groups as they are no longer needed.
rm /usr/oracle/dbs/log1PROD.dbf
rm /usr/oracle/dbs/log2PROD.dbf
rm /usr/oracle/dbs/log3PROD.dbf
step.8
Monitor the alert.log for the times of redo log switches. Due to increased redo log
size, the groups should not switch as frequently under the sameload conditions.
Note:
You cannot drop CURRENT and ACTIVE redolog files.
Solution:
a) Create a new undo tablespace of the same size (larger or smaller) depending on
your database requirements.
SQL> create undo tablespace undotbs02 datafile '/u01/oracle/prod/undotbs02.dbf'
size 5000M;
b) Switch to the new Undo tablespace
ALTER SYSTEM SET UNDO_TABLESPACE = undotbs02 SCOPE=BOTH;
c) Check the status of the undo segments and determine if all the segments in the
old undo tablespace are offline.
select tablespace_name , status , count(*) from dba_rollback_segs group by
tablespace_name , status;
If there are Undo segments with status other than OFFLINE in the tablespace to be
dropped, we need to wait till they become OFFLINE. You may have to wait for the
duration of the tuned_undoretention (from v$undostat) to ensure all Undo segments
have become OFFLINE.
select status,segment_name from dba_rollback_segs where status not in ("OFFLINE')
and tablespace_name=<undo tablespace to be dropped>;
eg:
select status,segment_name from dba_rollback_segs where status not in ("OFFLINE')
and tablespace_name='UNDOTBS1';
d). If all the Undo segments in the old Undo tablespace to the dropped is of status
OFFLINE, then drop the tablespace.
select tablespace_name , status , count(*) from dba_rollback_segs group by
tablespace_name , status;
Verify and then drop:
SQL>Drop tablespace <tablespace_name> including contents and datafiles;
eg:
SQL>Drop tablespace UNDOTBS1 including contents and datafiles;
Example:
alter database datafile '/u01/oracle/prod/undotbs02.dbf' resize 1500M;
Example:
alter tablespace UNDOTBS1 ADD DATAFILE '/u01/oracle/prod/undotbs02.dbf' size 20M;
g:\prints\interview\RMAN configurations.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rman Configuration
===================:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you set Redundancy to 1, RMAN will keep one backup. If you take second backup ,
RMAN will sign previous backup as obsolete. You can delete obsolete backup with
�delete obsolete� command.
If you set Recovey windows to 3 days, RMAN will sign backups as obsolete older than
3 days. For example, we have 4 backups. And our backup dates are 16 may, 18 may, 21
may and 23 may. If we set Recovery window to 3 days, RMAN must sign 16may and 18
may backups as obsolete (23may � 3 days=20may). But RMAN signs 18may backup as not
obsolete. Because RMAN automatically detects backups. And 18may backup is needed
for recovery of 20may.
There are two compression method ZLIB and BZIP2. ZLIB consumes less cpu but the
compression rate is low. BZIP2 consumes more cpu but the compression rate is high.
There are 3 compression level. LOW, MEDIUM and HIGH. HIGH level is not recommended
because of suited for backups over slower networks. MEDIUM level is recommended.
RMAN raised a WARNING that indicates that deletion of the ArchiveLog is not
permitted until a Backup has been taken. Thus, you can protect your ArchiveLogs
from deletion by RMAN commands if they have not been backed up.
NOTE: This does NOT prevent non-RMAN commands (e.g. cron jobs with shell scripts)
from deleting ArchiveLogs.
The archived log deletion policy also has option specific to Data Guard. For
example, if you set archive log deletion policy to the �APPLIED ON STANDBY� then
RMAN can delete logs after they have been applied at all mandatory remote
destinations.
You can use maxpiecesize channel parameter to set limits on the size of backup
pieces. In my example below, I limit the backup piece size to 2G.
RMAN needs a snapshot control file when resynchronizing with the recovery catalog
or taking a backup of the current control file. The default location is platform
specific and depends on the Oracle home of each target database. In Linux
environment it locates in $ORACLE_HOME/dbs directory. You can change its location
with this configuration.
g:\prints\interview\rman int.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
What is RMAN?
Recovery Manager (RMAN) is a utility that can manage your entire Oracle backup and
recovery activities.
What is the difference between using recovery catalog and control file?
When new incarnation happens, the old backup information in control file will be
lost. It will be preserved in recovery catalog.
In recovery catalog we can store scripts.
Recovery catalog is central and can have information of many databases.
How do you know that how much RMAN task has been completed?
By querying v$rman_status or v$session_longops
You loss one datafile and DB is running in ARCHIVELOG mode. You have full database
backup of 1 week/day old and don�t have backup of this (newly created) datafile.
How do you restore/recover file?
Create data file and recover datafile.
SQL> alter database create datafile �/u01/app/oracle/oradata/xyz.dbf� size 2G;
RMAN> recover datafile file_id;
In catalog database, if some of the blocks are corrupted due to system crash, How
will you recover?
using RMAN BLOCK RECOVER command
How do you enable the autobackup for the controlfile using RMAN?
Issue command at RMAN prompt.
RMAN> configure controlfile autobackup on;
Also we can configure controlfile backup format.
RMAN> configure controlfile autobackup format for device type disk to
2> �$HOME/BACKUP/RMAN/ F.bkp�;
How do you identify what are the all the target databases that are being backed-up
with RMAN database?
You don�t have any view to identify whether it is backed up or not. The only option
is connect to the target database and give list backup this will give you the
backup information with date and timing.
How do you identify the block corruption in RMAN database? How do you fix it?
Using v$block_corruption view you can find which blocks corrupted.
RMAN> block recover datafile <fileid> block <blockid>;
Using the above statement You recover the corrupted blocks. First check whether the
block is corrupted or not by using this command
SQL>select file# block# from v$database_block_corruption;
file# block
2 507
the above block is corrupted�
conn to Rman
To recover the block use this command�
RMAN>blockrecover datafile 2 block 507;
the above command recover the block 507
Now just verify it�..
Rman>blockrecover corruption list;
How do you clone the database using RMAN software? Give brief steps? When do you
use crosscheck command?
Check whether backup pieces proxy copies or disk copies still exist.
Two commands available in RMAN to clone database:
1) Duplicate
2) Restore.
List some of the RMAN catalog view names which contain the catalog information?
RC_DATABASE_INCARNATION RC_BACKUP_COPY_DETAILS
RC_BACKUP_CORRUPTION
RC_BACKUP-DATAFILE_SUMMARY
How to enable Fast Incremental Backup to backup only those data blocks that have
changed?
SQL> ALTER DATABASE enable BLOCK CHANGE TRACKING;
How do you use the V$RECOVERY_FILE_DEST view to display information regarding the
flashrecovery area?
SQL> SELECT name, space_limit, space_used,space_reclaimable, number_of_filesFROM
v$recovery_file_dest;
=========================
RMAN DUPLICATE
==============
1)DIRECTORY STRUCTURE
/d02/oracle/admin/orcl/adump
/d02/oracle/admin/orcl/adump
/d02/oracle/flash_recovery_area
/d03/oracle/flash_recovery_area/test
mkdir -p /d03/oracle/admin/test/adump
mkdir -p /d03/oracle/flash_recovery_area
test.__db_cache_size=973078528
test.__java_pool_size=16777216
test.__large_pool_size=16777216
test.__oracle_base='/d03/oracle'#ORACLE_BASE set from environment
test.__pga_aggregate_target=469762048
test.__sga_target=1375731712
test.__shared_io_pool_size=0
test.__shared_pool_size=335544320
test.__streams_pool_size=16777216
*.audit_file_dest='/d03/oracle/admin/test/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/d03/oracle/oradata/test/control01.ctl','/d03/oracle/flash_recover
y_area/test/control02.ctl'
*.db_block_size=8192
*.db_domain='oracle.com'
*.db_name='test'
*.db_recovery_file_dest='/d03/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='/d03/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=testXDB)'
*.local_listener='LISTENER_ORCL'
*.open_cursors=300
*.pga_aggregate_target=455081984
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1365245952
*.undo_tablespace='UNDOTBS1'
~
14 substitutions on 13 lines
=====================================================
db_file_name_convert='/d01/oracle/oradata/prod/','/d03/oracle/oradata/test'
log_file_name_convert='/d01/oracle/oradata/prod/','/d03/oracle/oradata/test'
rman log /d03/duplicate.log
connect auxiliary /
run {
ALLOCATE auxiliary CHANNEL ch00 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch01 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch02 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch03 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch04 TYPE DISK;
duplicate target database to 'TEST'
BACKUP LOCATION '/backup/rman/prod/28dec2013_fullbkp/'
NOFILENAMECHECK;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
RELEASE CHANNEL ch02;
RELEASE CHANNEL ch03;
RELEASE CHANNEL ch04;
}
exit;
++++++++++++++++++++++++++++
g:\prints\interview\RMAN Qadar.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
How to check the backup of particular tablespace
------------------------------------------------
RMAN>
===================================================================================
===============================================
===================================================================================
=====================================================
2 1 4 A 28-DEC-13
Name:
/d02/oracle/flash_recovery_area/ORCL/archivelog/2013_12_28/o1_mf_1_4_9cxlsw8r_.arc
3 1 5 A 28-DEC-13
Name:
/d02/oracle/flash_recovery_area/ORCL/archivelog/2013_12_28/o1_mf_1_5_9cxlth7p_.arc
===================================================================================
=========
To check the failure of RMAN
----------------------------
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
10 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T180400
11 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T180401
12 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T180446
13 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T180448
14 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T181106
15 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T181107
16 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T181156
17 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T181356
18 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T181518
19 B A A DISK 28-DEC-13 1 1 NO
TAG20131228T182940
20 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T182941
21 B F A DISK 28-DEC-13 1 1 NO
TAG20131228T182941
22 B A A DISK 28-DEC-13 1 1 NO
TAG20131228T182959
===================================================================================
=======
To check RMAN Schemas
---------------------
===================================================================================
============
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN>
RMAN> connect target /;
RMAN>
==========================
Changing rman configuration
===========================
CONFIGURE commands in RMAN are used to configure/setup various initial settings
The above command verifies to make sure that identical files are NOT backed up to
the device specified.
============================
Automatic backup of controlfile
=============================
RMAN>
==================================================
How to change controlfile autobackup format in rman?
=====================================================
[oracle@qader prod]$ rman
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN>
=============================================
How to backup current controlfile using rman?
==============================================
RMAN> backup current controlfile;
RMAN>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The below command resets the Optimization option to the default value.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
RMAN>
++++++++++++++++++++++++++++++++++++++
How to set retention policy to 2
++++++++++++++++++++++++++++++++++++++
[oracle@qader 2013_12_27]$ rman
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 27 22:21:28 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target /;
connected to target database: PROD (DBID=246965557)
SHOW Commands :
*****************
Show commands are used to show/display the configuration setting values.
RMAN>
++++++++++++++++++
REPORT Commands :
++++++++++++++++++
Report commands list/report specific information.
++++++++++++++++++++++++++++++++++++++++++
How to find which files need to backup?
+++++++++++++++++++++++++++++++++++++++++++
RMAN> report need backup;
+++++++++++++++++++++++++++++++++++++++++++++++++++++
How to find which backup files can be deleted in rman?
++++++++++++++++++++++++++++++++++++++++++++++++++++++
RMAN> report obsolete;
RMAN>
----------------------------------------------
DELETE Commands :
Delete commands delete/remove specific items from the server, repository catalog.
RMAN> delete obsolete;
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece
handle=/d01/oracle/flash_recovery_area/PROD/backupset/2013_12_27/o1_mf_ncnnf_TAG201
31227T220955_9cvcbwhr_.bkp RECID=1 STAMP=835308596
deleted backup piece
backup piece handle=/backup/rman/prod/c-246965557-20131227-00 RECID=2
STAMP=835308597
Deleted 2 objects
RMAN>
The above command deletes all the backups that are older based on the retention
policy setup.
++++++++++++++++++++++++++++++++++++++
How to backup of spfile?
++++++++++++++++++++++++++++++++++++++
RMAN> backup spfile;
RMAN>
++++++++++++++++++++++++++++++++++++++++++++++
How to take backup of the database with tag
++++++++++++++++++++++++++++++++++++++++++++++
RMAN> BACKUP DATABASE TAG='TEST BACKUP';
++++++++++++++++++++++++++++++++++++++++++++++++
How to validate the database?
+++++++++++++++++++++++++++++++++++++++++
RMAN> BACKUP VALIDATE DATABASE;
RMAN>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Take the backup datafiles which are not backuped up
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
RMAN>
FILE_NAME
--------------------------------------------------------------------------------
/d01/oracle/oradata/prod/users01.dbf
/d01/oracle/oradata/prod/undotbs01.dbf
/d01/oracle/oradata/prod/sysaux01.dbf
/d01/oracle/oradata/prod/system01.dbf
Tablespace altered.
SQL>
RMAN>
+++++++++++++++++++++++++++++++++++
To execute multiple commands ata time
++++++++++++++++++++++++++++++++++
run
{
backup current controlfile;
backup datafile 1;
}
RMAN> run
{
backup current controlfile;
backup datafile 1;
}2> 3> 4> 5>
g:\prints\interview\soa interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SOA stands for Service Oriented Architecture. If you are preparing for SOA
interview, the following SOA interview questions and answers can be very useful to
you. Basically, these SOA interview questions and answers cover basic concepts of
SOA like services in SOA, characteristics and principles of services in SOA, loose
coupling of services, contract, address and bindings in SOA, main benefits of SOA
to the business and IT, difference between services and components in SOA,
requirement of SOA to the business, pitfalls of SOA etc. Let's have a look:
Example 1 (from Real World): You go to a restaurant and order food. Your order
first goes to the counter and then it goes to the kitchen where the food is
prepared and finally the waiter serves the food.
So in order to order an item from a restaurant you need three logical departments /
services to work together (counter, kitchen, and waiter).
In the same manner in software world, these services are termed as business
services.
All the services are self contained and logical. They are like black boxes. In
short we do not need to understand the internal details of how the business service
works. For the external world it�s just a black box which takes messages and serves
accordingly. For instance the �payment gateway� business service takes the message
�check credit� and gives out output: does the customer have credit or not. For the
�order system� business service �payment gateway� service is a black box.
A) SOA components are loosely coupled. When we say loosely coupled that means every
service is self contained and exists alone logically. For instance we take the
�payment gateway� service and attach it to a different system.
B) SOA services are black boxes. In SOA, services hide there inner complexities.
They only interact using messages and send services depending on those messages. By
visualizing services as black boxes, services become more loosely coupled.
C) SOA service should be self defined: SOA services should be able to define
themselves.
What is SOA?
SOA stands for Service Oriented Architecture. SOA is an architecture for building
business applications using loosely coupled services which act like black boxes and
can be orchestrated to achieve a specific functionality by linking together.
What are Contract, Address, and Bindings?
These three terminologies on which SOA service stands. Every service must expose
one or more ends by which the service can be available to the client. End consists
of three important things where, what and how:-
Contract is an agreement between two or more parties. It defines the protocol how
client should communicate with your service. Technically, it describes parameters
and return values for a method.
An Address indicates where we can find this service. Address is a URL, which points
to the location of the service.
Bindings determine how this end can be accessed. It determines how communications
is done. For instance, you expose your service, which can be accessed using SOAP
over HTTP or BINARY over TCP. So for each of these communications medium two
bindings will be created.
SOA is a thinking, it�s an architectural concept, and web service is one of the
technical approaches to complete it. Web services are the preferred standards to
achieve SOA.
In SOA we need services to be loosely coupled. A web service communicates using the
SOAP protocol which is XML based, which is very loosely coupled. It answers the
what part of the service.
SOA services should be able to describe themselves. WSDL describes how we can
access the service.
SOA services are located in a directory. UDDI describes where we can get the web
service. This is nothing but the implementation of the SOA registry.
SOA helps create greater alignment between IT and line of business while generating
more flexibility - IT flexibility to support greater business flexibility. Your
business processes are changing faster and faster and global competition requires
the flexibility that SOA can provide.
SOA can help you get better reuse out of your existing IT investments as well as
the new services you�re developing today. SOA makes integration of your IT
investments easier by making use of well-defined interfaces between services. SOA
also provides an architectural model for integrating business partners�, customers�
and suppliers� services into an enterprise�s business processes. This reduces cost
and improves customer satisfaction
A reusable service should be governed at the enterprise level throughout its entire
lifecycle, from design-time through run-time. Its reuse should be promoted through
a prescriptive process, and that reuse should be measured.
One strategy for achieving loose coupling is to use the service interface (the WSDL
for a SOAP Web Service) to limit this dependency, hiding the service implementation
from the consumer. Loose coupling can be addressed by encapsulating the service
functionalities in a manner that limits the impact of changes to the implementation
on the service interface. However, at some point you will need to change the
interface and manage versioning without impacting service consumers, in addition to
managing multiple security constraints, multiple transports, and other
considerations
10. Do you recall any pattern which could be used to leverage loose coupling?
The Mediation pattern, using an enterprise service bus (ESB), will help in
achieving this.
Mediation will take loose coupling to the highest level. It will establish
independence between consumers and providers on all levels, including message
formats, message types (including SOAP, REST, XML, binary) and transport protocols
(including HTTP, HTTPS, JMS).
Service should be stateless. It may have a context within its stateless execution,
but it will not have an intermediary state waiting for an event or a call-back. The
retention of state-related data must not extend beyond a request/response on a
service. This is because state management consumes a lot of resources, and this can
affect the scalability and availability that are required for a reusable service.
The Enterprise Service Bus is a core element of any SOA. ESBs provide the �any to
any� connectivity between services within your own company, and beyond your
business to connect to your trading partners. But SOA does not stop at just
implementing an ESB. Depending on what your goals are, you may want to use an ESB
to connect other services within your SOA such as information services, interaction
services and business process management services. Additionally, you will need to
consider development services and IT service management services. The SOA reference
architecture can help you lay out an SOA environment that meets your needs and
priorities. The ESB is part of this reference architecture and provides the
backbone of an SOA but it should not be considered an SOA by itself.
No. If you need to integrate or make an existing system as a business service, you
just need to create loosely coupled wrappers which will wrap your custom systems
and expose the systems functionality in a generic fashion to the external world.
17. The concept of SOA is nothing new, however why everyone started to talk about
SOA only in the recent years?
Yes, I agree the basic concepts of SOA aren�t new, however some technology
technology changes in the last 10 years made service-oriented architecture more
practical and applicable to more organizations than it was previously. Among this:
1. Universally-accepted industry standards such as XML, its many variants, and Web-
services standards have contributed to the renewed interest in SOA.
18. What is the most important skill you need to adopt SOA? Technical or Cultural?
Surely cultural. SOA does require people to think of business and technology
differently. Instead of thinking of technology first (e.g., If we implement this
system, what kinds of things can we do with it?), practitioners must first think in
terms of business functions, or services (e.g., My company does these business
functions, so how can I set up my IT system to do those things for me most
efficiently?).It is expected that adoption of SOA will change business IT
departments, creating service-oriented (instead of technology-oriented) IT
organizations.
1. Shortage of skills.
2. Justifying the ROI of SOA projects.
To move your organization toward greater service orientation, you need to take a
balanced approach to building versus buying. To create the infrastructure for an
SOA, you'll need the right commercial off-the-shelf software that complements
(rather than replaces) your existing IT infrastructure. This is a �buy� statement.
On the �build� side, you may also choose to access know-how and hands-on
involvement to use these software products effectively and get the most out of
them. This infrastructure and the associated tools can help you create the business
services that run on your SOA. Again, there is some �building� associated with
this. So the real answer is that you need a certain measure of both building and
buying.
To get started quickly with SOA, you need to select an initial project that focuses
on a particular business opportunity that can be completed in a reasonably short
time frame. The SOA Entry points are project areas that have been shown to provide
business value in a timely manner. Each Entry Point provides a key SOA related
solution:
Process - optimize and deploy processes on the fly and monitor the effectiveness of
the altered processes.
Information - improve business insight and reduce risk by using trusted information
services delivered in line and in context.
Reuse - newly created and reusable services are the building blocks of SOA. Reuse
gives users flexibility through reduced cycle time and elimination of duplicate
processes.
Another common pitfall is to try to solve multiple problems at once, rather than
solving small pieces of the problem. Taking a top-down approach�starting with major
organization-wide infrastructure investments�often fails either to show results in
a relevant time-frame or to offer a compelling return on investment.
SOA is not for everyone. While SOA delivers significant benefits and cost savings,
SOA does require disciplined enforcement of centralized governance principals to be
successful. For some organizations, the cost of developing and enforcing these
principals may be higher than the benefits realized, and therefore not a sound
initiative.
What is WSDL ?
Answer : WSDL stands for Web Services Description Language
WSDL is a document written in XML. The document describes a Web service. It
specifies the location of the service and the operations (or methods) the service
exposes.
What is SOAP ?
Answer : SOAP is a simple XML-based protocol to let applications exchange
information over HTTP.
Or more simply: SOAP is a protocol for accessing a Web Service.
Note: This element must appear as the first child node of <xsl:stylesheet> or
<xsl:transform>.
Syntax: <xsl:import href="URI"/>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
< xsl:call-template name="myTemplate">
< !-- Content: xsl -->
< /xsl:call-template>
< stylesheet>
For synchronous operations with a conditional filter, the echo option does not
return a response to the caller when the filter condition is set to false. Instead,
it returns a null response.
The echo option is available for asynchronous operations only if the Oracle
Mediator interface has a callback operation. In this case, the echo is run on a
separate thread.
When you choose to create dynamic routing rule then it creates a new business rule
service component that is wired to the Oracle Mediator service component within the
SOA composite of the Oracle Mediator service component. The business rule service
component includes a rule dictionary. The rule dictionary is a metadata container
for the rule engine artifacts, such as fact types, rulesets, rules, decision tables
and so on.
{http://schemas.oracle.com/mediator/faults}mediatorFault.
Types of Adapters ?
Answer: Transactional & Non- Transactional Adapter
Difference between Read & Sync-Read operation in File & FTP adapter?
Answer: Read is used when Polling is required to be done while SyncRead is used
when you need to read the file in between the flow i.e you want to have a
synchrnous communication.
For example, a BPEL process is writing files to a directory and a second BPEL
process is polling the same directory for files. If you want the second process to
start polling the directory only after the first process has written all the files,
then you can use a trigger file. You can configure the first process to create a
trigger file at the end. The second process starts polling the inbound directory
once it finds the trigger file.
The same metadata that is used during the design phase of application is used at
application runtime through the metadata service layer. This ensures consistency
through the lifecycle of the application. Metadata such as XML files or XSD schema
files is usually shared among different components. Therefore, it is not only
necessary that those resources can be accessed easily and referenced by all the
components, but it is also important that they remain consistent; a change in the
metadata should be reflected in all the components that are referencing it. Having
only one copy of each metadata resource avoids unnecessary redundancy and
guarantees that the changes are made in only one place.
Can we use both Catch block & fault handling framework in one BPEL?
Answer: Yes, we can have both Catch Block & Fault policies files in one BPEL.
What is OWSM?
Answer: OWSM stands for Oracle Web Service Manager. Oracle Web Services Manager
offers a comprehensive and easy-to-use solution for policy management and security
of service infrastructure. It is a standalone platform for securing and managing
access to web services.
When we call secured web service from SOA, which policy we will use �Client� or
�Service�?
Answer: When we call secured web service from SOA then we add �Client� policy to
reference partner link and when we want to secure our web service then we use
�Service� policy.
Can we use OWSM with Oracle Service Bus?
Answer: Yes, we can access OWSM policies from OSB.
what is the scope of Policy Sets or where we can apply Policy sets ?
Answer:
-Domain � all policy subjects of the specified type in a domain
-Application or Partition�all policy subjects of the specified type in an
application or SOA partition
-Application module or SOA composite�all policy subjects of the specified type in
an application module or SOA composite
-Service or reference�all policy subjects of the specified type in a SOA service or
reference
-Port or component�all policy subjects of the specified type in a port or SOA
component
How to handle errors when we unable to read/poll a file using file adapter if that
file is corrupt?
Answer: We need to use File rejection handler to catch these types of error.
-True (default): If Oracle BPEL Server fails; it performs the activity again after
restarting. This is because the server does not dehydrate immediately after the
invoke and no record exists that the activity executed. Some examples of where this
property can be set to True are: read-only services (for example,
CreditRatingService) or local EJB/WSIF invocations that share the instance's
transaction.
This property is recommended only for processing large payloads. Enabling this
property could reduce performance for normal payloads.
Which property we need to use to control number of message processed from MQ at one
time?
Answer: we need to use InboundThreadCount property to control number of messages
which MQ adapter pick from MQ.
Which property we need to use with singleton property to process the message in
sequential order for AQ?
Answer: We need to set activtionInstances=1 along with singleton property for AQ
adapter in cluster environment to process message in sequential order.
Q. What is SOA?
Service Oriented Architecture (SOA) is used to develop Enterprise applications by
using a collection of services which communicates each other. Service-Oriented
Architecture (SOA) is a set of principles and methodologies for designing and
developing software in the form of interoperable services.
Q. Principles of SOA?
1. Loose coupling
2. Re-usability
3. Interoperability
4. Flexible
Q. What is SCA?
Service Component Architecture (SCA) provides a programming model for building
applications and systems based on a Service Oriented Architecture. SCA is a model
that aims to encompass a wide range of technologies for service components and for
the access methods which are used to connect them.
Q. What are dspMaxThread and recieverThread properties? Why are they important?
Receiver Threads property specifies the maximum number of MDBs that process Async
across all domains. Whereas the dspMaxThread are the maximum number of MDBs that
process Async and threads that operate across a domain. So, we need to ensure that
the dspMaxThread value is not greater than Receiver Threads.
Q. Is it possible to use MS SQL Server as dehydration store with SOA Suite ?if yes
how?
Yes it is possible.
To automatically maintain long-running asynchronous processes and their current
state information in a database while they wait for asynchronous callbacks, you use
a database as a dehydration store. Storing the process in a database preserves the
process and prevents any loss of state or reliability if a system shuts down or a
network problem occurs. This feature increases both BPEL process reliability and
scalability. You can also use it to support clustering and failover.
Q. What is MDS?
MDS �Metadata Store
Wsdl and Schemas to be used in the process can be published to the MDS and get it
used in the code by referring the artifacts from the MDS
Advantages:
1. JAR (Deployment unit) size will be reduced.
2. Duplication of the artifacts can be avoided between the services.
Q. How can we secure our web services using Oracle SOA Suite?
When accessing the services should be restricted to the group,then service should
be secured via WSM (Web service Manager).
Q. What is a pick activity? Can I have a pick activity with no onMessage branch?
Pick activity picks the messages from service (Source) which has multiple
operations or the BPEL process needs to receive the messages from multiple source
system. Pick activity should have at least on Message branch.
Q. What is a flow activity? What is a flowN activity and how does it leverages the
flow activity?
Flow activity is used, when parallel execution of the flow is needed and to use
this property �non blocking invoke should be set as true �at the partner link level
and no. of execution of parallel flow is defined and static. Where as in Flown the
no. of execution of parallel flow is not static and it is determined during run
time.
Q. What do you mean by non-idempotent activity? Which all activities are non-
idempotent by default?
Activities like Pick, Wait, receive, reply and checkpoint() are called non-
Idempotent activity and during the execution of the process whenever these
activities are encountered then it gets dehydrated to the dehydration store.
Q. Can we use a File Adapter to get a file without reading its content?
Yes, by selecting the Do not read file content check box in the Jdeveloper wizard
while configuring the �Read operation.�
Q. Explain error handling in BPEL and what is a error handling framework? How does
a error handling framework better than simple error handling in BPEL?
EHF �Whenever any error thrown by the BPEL process/Mediator then EHF will check
whether exist in Fault-Bindings.xml files and if so then the action in the Fault-
Policy.xml file will be taken and if the action is not found then the fault will
the thrown and it will be handled in the catch block.
Q. What is Mediator?
The Mediator is in charge of interconnecting, within an SOA composite application,
components that expose different interfaces. In addition, the Mediator can perform
duties such as filtering and making routing decisions.
The composite editor in Jdeveloper gives you the flexibility to define the
interface now, to choose an existing interface, or to define the interface later as
you wire components to the Mediator.
Transforming data from one representation to another is, along with routing, one of
the key functions of the Mediator.
Explore Oracle SOA Sample Resumes! Download & Edit, Get Noticed by Top Employers!
Download Now!
Q. What are ends, contract, address, and bindings?
These are the three terminologies on which SOA service stands. Every service must
expose one or more ends by which the service can be made available to the client.
The End consists of three important things: where, what, and how:
1. Contract(What): Contract is an agreement between two or more parties. It defines
the protocol how clients should communicate with your service. Technically, it
describes parameters and return values for a method.
2. Address(Where): An Address indicates where we can find this service. Address is
a URL, which points to the location of the service.
3. Binding(How): Bindings determine how this end can be accessed. It determines how
communication is done. For instance, you expose your service, which can be accessed
using SOAP over HTTP or binary over TCP. So for each of these communication
mediums, two bindings will be created.
SOA separates business functions into services (endpoints), which are made
accessible over a network in order to allow users to combine and reuse them in
their applications.
The SOA services can be developed in different languages and OS�es as long as they
follow the SOA principles.
Services are unassociated and loosely coupled units that do not directly rely on
each other for their full functioning. Rather than services embedding calls to each
other in their source code, they use defined protocols that describe how services
pass and parse messages using description metadata.
Orchestration is a process where business functionality from various services are
combined in a system fully aware of all available services and the associated
metadata that defines these services and their characteristics.
Question3. Mention The Soa Principles?
Answer :
SOA principles were first defined by Thomas Erl. These 8 principles are underlying
to any good architecture that utilizes SOA design to build their products and
services:
SOA helps create greater alignment between IT and line of business while generating
more flexibility � IT flexibility to support greater business flexibility. Your
business processes are changing faster and faster and global competition requires
the flexibility that SOA can provide.
SOA can help you get better reuse out of your existing IT investments as well as
the new services you�re developing today. SOA makes integration of your IT
investments easier by making use of well-defined interfaces between services. SOA
also provides an architectural model for integrating business partners�, customers�
and suppliers� services into an enterprise�s business processes. This reduces cost
and improves customer satisfaction.
Question5. How Do You Transform An Enterprise Business In A Soa?
Answer :
A reusable service should be governed at the enterprise level throughout its entire
lifecycle, from design-time through run-time. Its reuse should be promoted through
a prescriptive process, and that reuse should be measured.
Question7. Which Approach Between Top-down And Bottom-up Methodologies Best Fits
With A Soa In Regards Of Service Identification?
Answer :
However, the result of building SOA only Top-Down could be perceptual Architecture
building with no run time artifacts, so some SOA efforts should be Bottom-Up
efforts. To sum up: Initially SOA is a Top-Down approach but pragmatic approach
requires mixing Top-Down approach with Bottom-Up approach.
One strategy for achieving loose coupling is to use the service interface (the WSDL
for a SOAP Web Service) to limit this dependency, hiding the service implementation
from the consumer. Loose coupling can be addressed by encapsulating the service
functionalities in a manner that limits the impact of changes to the implementation
on the service interface.
However, at some point you will need to change the interface and manage versioning
without impacting service consumers, in addition to managing multiple security
constraints, multiple transports, and other considerations.
One of the most common pitfalls is to view SOA as an end, rather than a means to an
end. Developers who focus on building an SOA solution rather than solving a
specific business problem are more likely to create complex, unmanageable, and
unnecessary interconnections between IT resources.
Another common pitfall is to try to solve multiple problems at once, rather than
solving small pieces of the problem. Taking a top-down approach�starting with major
organization-wide infrastructure investments�often fails either to show results in
a relevant timeframe or to offer a compelling return on investment.
Question10. What Is The Most Important Skill Needed To Adopt Soa ?technical Or
Cultural?
Answer :
Surely cultural. SOA does require people to think of business and technology
differently. Instead of thinking of technology first (e.g., If we implement this
system, what kinds of things can we do with it?), practitioners must first think in
terms of business functions, or services (e.g., My company does these business
functions, so how can I set up my IT system to do those things for me most
efficiently?).
No. If you need to integrate or make an existing system as a business service, you
just need to create loosely coupled wrappers which will wrap your custom systems
and expose the systems functionality in a generic fashion to the external world.
Question12. Can You Explain Business Layers And Plumbing Layers In Soa?
Answer :
In SOA we can divide any architecture in two layers. The first which has direct
relevance to the business as it carries out business functions. The second layer is
a technical layer which talks about managing computer resources like database, web
server, etc. This division is needed to identify a service. Consider the figure
�Simple order system�. It has various components which interact with each other to
complete the order system functionality.
The simple order system can be divided in to two layers. You can see the plumbing
layer consisting of data access layer, AJAX, and yes more technical stuff.
The main goal of SOA is to connect disparate systems. In order that these disparate
systems work they should message each other. ESB (Enterprise Service Bus) acts like
a reliable post office which guarantees the delivery of messages between systems in
a loosely coupled manner. ESB is a special layer which delivers messages between
applications. In the figure we have shown a huge plump pipe. It�s not hardware or
some wire etc. It�s a group of components/software which helps you send and receive
messages between the disparate applications. Do not try to code your own ESB, you
can think of buying one from Microsoft, IBM, Oracle, Progress, etc.
These are the three terminologies on which SOA service stands. Every service must
expose one or more ends by which the service can be made available to the client.
The End consists of three important things: where, what, and how:
SOA is a thinking, it�s an architectural concept, and web service is one of the
technical approaches to complete it. Web services are the preferred standards to
achieve SOA.
In SOA we need services to be loosely coupled. A web service communicates using the
SOAP protocol which is XML based, which is very loosely coupled. It answers the
what part of the service.
SOA services should be able to describe themselves. WSDL describes how we can
access the service.
SOA services are located in a directory. UDDI describes where we can get the web
service. This is nothing but the implementation of the SOA registry.
SOA helps create greater alignment between IT and line of business while generating
moreflexibility � IT flexibility to support greater business flexibility. Your
business processes arechanging faster and faster and global competition requires
the flexibility that SOA can provide.SOA can help you get better reuse out of your
existing IT investments as well as the newservices you�re developing today. SOA
makes integration of your IT investments easier bymaking use of well-defined
interfaces between services. SOA also provides an architecturalmodel for
integrating business partners�, customers� and suppliers� services into an
enterprise�sbusiness processes. This reduces cost and improves customer
satisfaction
SOA is now used in all the enterprise level and it�s easy to implement . The
business flexibility is the biggest advantage
SOA helps create greater alignment between IT and line of business while generating
more flexibility � IT flexibility to support greater business flexibility. Your
business processes are changing faster and faster and global competition requires
the flexibility that SOA can provide.SOA can help you get better reuse out of your
existing IT investments as well as the new services you�re developing today. SOA
makes integration of your IT investments easier by making use of well-defined
interfaces between services. SOA also provides an architectural model for
integrating business partners�, customers� and suppliers� services into an
enterprise�s business processes. This reduces cost and improves customer
satisfaction
One strategy for achieving loose coupling is to use the service interface (the WSDL
for a SOAP Web Service) to limit this dependency, hiding the service implementation
from the consumer. Loose coupling can be addressed by encapsulating the service
functionalities in a manner that limits the impact of changes to the implementation
on the service interface. However, at some point you will need to change the
interface and manage versioning without impacting service consumers, in addition to
managing multiple security constraints, multiple transports, and other
considerations
Do you recall any pattern which could be use to leverage loose coupling ?
The Mediation pattern, using an enterprise service bus (ESB), will help in
achieving this. Mediation will take loose coupling to the highest level. It will
establish independence between consumers and providers on all levels, including
message formats, message types (including SOAP, REST, XML, binary) and transport
protocols (including HTTP, HTTPS, JMS).Architecturally speaking this means the
separation of concerns between consumers and providers on the transport, message
type, and message format levels.
Service should be stateless. It may have a context within its stateless execution,
but it will not have an intermediary state waiting for an event or a call-back. The
retention of state-related data must not extend beyond a request/response on a
service. This is because state management consumes a lot of resources, and this can
affect the scalability and availability that are required for a reusable service.
Oracle Adapters
Oracle Mediator
Business Events and Events Delivery Network
Oracle Business Rules
Human Workflow
Oracle Business Activity Monitoring
Oracle Enterprise Manager
Q3. What are the different design patterns in SOA?
Synchronous
Asynchronous Fire and Forget
Asynchronous Delayed Response.
Q4. Enlist the Principles of SOA?
1. Loose coupling
2. Re-usability
3. Interoperability
4. Flexible
Q16. What are DVM�s and how are they helpful in SOA?
DVM-Domain Value Map is static mappings between a source and target system which
can be used in transformations. The value can be changed via SOA composer.
Q19. Is it possible to use MS SQL Server as dehydration store with SOA Suite ?if
yes how?
Yes it is possible.
To automatically maintain long-running asynchronous processes and their current
state information in a database while they wait for asynchronous callbacks, you use
a database as a dehydration store. Storing the process in a database preserves the
process and prevents any loss of state or reliability if a system shuts down or a
network problem occurs. This feature increases both BPEL process reliability and
scalability. You can also use it to support clustering and failover.
Q21. What is a XA data source? How it differs from a non-XA data source?
An XA transaction involves a coordinating transaction manager, with one or more
databases (or other resources, like JMS) all involved in a single global
transaction. Non-XA transactions have no transaction coordinator, and a single
resource is doing all its transaction work itself (this is sometimes called local
transactions).
Q22. How can we secure our web services using Oracle SOA Suite?
When accessing the services should be restricted to the group,then service should
be secured via WSM (Web service Manager).
Q25. What is a pick activity? Can I have a pick activity with no onMessage branch?
Pick activity picks the messages from service (Source) which has multiple
operations or the BPEL process needs to receive the messages from multiple source
system. Pick activity should have at least on Message branch.
Q26. What is a flow activity? What is a flowN activity and how does it leverages
the flow activity?
Flow activity is used, when parallel execution of the flow is needed and to use
this property �non blocking invoke should be set as true �at the partner link level
and no. of execution of parallel flow is defined and static. Where as in Flown the
no. of execution of parallel flow is not static and it is determined during run
time.
Q27. What do you mean by non-idempotent activity? Which all activities are non-
idempotent by default?
Activities like Pick, Wait, receive, reply and checkpoint() are called non-
Idempotent activity and during the execution of the process whenever these
activities are encountered then it gets dehydrated to the dehydration store.
Q28. What are dspMaxThread and recieverThread properties? Why are they important?
Receiver Threads property specifies the maximum number of MDBs that process Async
across all domains. Whereas the dspMaxThread are the maximum number of MDBs that
process Async and threads that operate across a domain. So, we need to ensure that
the dspMaxThread value is not greater than Receiver Threads.
Q31. Can we use a File Adapter to get a file without reading its content?
Yes, by selecting the Do not read file content check box in the Jdeveloper wizard
while configuring the �Read operation.�
1) What is SOA?
2) Principles of SOA?
Loose coupling
Re-usability
Interoperability
Flexible
In 11g you can put all your project SOA components in composite.xml file and deploy
as a single deployment unit to single server, where in 10g you have to deploy each
component to the respective server (i.e. ESB to ESB server, BPEL to BPEL Server)
Basically all the SOA components like BPEL, ESB (Called Mediator in 11g), & OWSM
are brought into one place in 11g using SCA composite concept.
The major difference between 10g & 11g would be the app server container. 10g by
default runs onOC4J while 11g runs on Web logic Server.
In 10g every BPEL is a separate project, but in 11g several components can make 1
project as SCA.
In 10g consoles are separate for BPEL and ESB, but in 11g Enterprise Manager
contains all.
In 10g BAM and business rules are outside SOA Suite, but in 11g they are in SOA
Suite.
No because SOA is one of the parts in Fusion middleware and SOA behaves like user
interface where as Fusion is big platform
5) What is SCA?
Oracle Adapters
Oracle Mediator
Human Workflow
Synchronous
Using Jdeveloper
10) What are dspMaxThread and recieverThread properties? Why are they important?
Receiver Threads property specifies the maximum number of MDBs that process Async
across all domains. Whereas the dspMaxThread are the maximum number of MDBs that
process Async and threads that operate across a domain. So, we need to ensure that
the dspMaxThread value is not greater than Receiver Threads.
The delivery service saves the invocation message to the dlv_message table. The
initial state of the message is 0 (undelivered).
The dispatcher sends the JMS message to the queue. Places a very short JMS message
in the in-memory queue (jms/collaxa/BPELWorkerQueue) in OC4J JMS. The small JMS
message triggers the Worker Bean in the downstream step.
This message is then picked up by a Worker Bean MDB, which requests the dispatcher
for work to execute. If the number of Worker Bean MDBs currently processing
activities for the domain is sufficient, the dispatcher module may decide not to
request another MDB.
MDB passes the invocation message to Oracle BPEL Server, which updates the
invocation message state to 1 (delivered), creates the instance, and executes the
activities in the flow until a breakpoint activity is reached.
For the transaction timeout needs to be increased, all the below settings timeout
value needs to be changed to the expected Timeout value.
JTA
Engine Bean
Delivery Bean
13) Is it possible to use MS SQL Server as dehydration store with SOA Suite ?if yes
how?
Yes it is possible.
Managing the service lifecycle: This is meant to ensure that updates of services do
not disturb current services to the consumers. Using policies to restrict behavior:
Consistency of services can be ensured by having the rules applied to all the
created services. Monitoring performance of services: The consequences of service
downtime or underperformance can be severe because of service composition.
Therefore action can be taken instantly when a problem occurs by monitoring service
performance and availability.
Generally a service bus is used for endpoint virtualization and in 11g stack;
Oracle Service Bus (OSB) is the primary service bus. In exposed proxy's message
flow, it can route the request to any of your environment's actual (physical)
service on the basis of whatever logic.
Mediator can also be used to expose the service and in mediator routing rule, it
can be routed to actual service.
16) What are DVM's and how are they helpful in SOA?
DVM-Domain Value Map is static mappings between a source and target system which
can be used in transformations. The value can be changed via SOA composer.
XREF- It is dynamic since the values to the XREF can be populated dynamically and
it is stored in XREF_DATA table in SOA Dehydration store.
DVM- Domain Value Map is static mappings between a source and target system which
can be used in transformations.
Dehydration store is the database where the instances get stored when it gets
dehydrated by the process on the occurrence of non-idempotent activities and also
stores the information on the long running processes.
Oracle SOA Suite provides support for Decision components that support Oracle
Business Rules. A Decision component is a mechanism for publishing rules and rule
sets as a reusable service that can be invoked from multiple business processes.
These rules can be changed without redeploying the code.
OSB is the light-weight service bus wherever there is not much business logic
involves and there is need to just get the message routed between the systems OSB
is used where as when there is more business logic involves in the process, then
BPEL will be used.
Wsdl and Schemas to be used in the process can be published to the MDS and get it
used in the code by referring the artifacts from the MDS
Advantages:
22) What is a XA data source? How it differs from a non-XA data source?
23) How can we secure our web services using Oracle SOA Suite?
When accessing the services should be restricted to the group,then service should
be secured via WSM (Web service Manager).
In the clustered environment, File and FTP adapters should be used as HA (High-
Availability)
Inbound: It is controlled by Control Files and avoids the race between the manages
servers in reading the files where the reference of the files read by the managed
servers will be maintained in the control directory.
Outbound: It is controlled by DB Mutex table exist in the SOA dehydration store and
this avoids duplicated been written to the same file when all the managed servers
in the clusters process the same messages.
In the clustered environment when the processing of the message should happen via
only one SOA managed server, then the property singleton needs to be defined at the
adapter level.
27) What is a pick activity? Can I have a pick activity with no onMessage branch?
Pick activity picks the messages from service (Source) which has multiple
operations or the BPEL process needs to receive the messages from multiple source
system. Pick activity should have at least on Message branch.
28) What is a flow activity? What is a flowN activity and how does it leverages the
flow activity?
Flow activity is used, when parallel execution of the flow is needed and to use
this property �non blocking invoke should be set as true �at the partner link level
and no. of execution of parallel flow is defined and static. Where as in Flown the
no. of execution of parallel flow is not static and it is determined during run
time.
29) What do you mean by non-idempotent activity? Which all activities are non-
idempotent by default?
Activities like Pick, Wait, receive, reply and checkpoint() are called non-
Idempotent activity and during the execution of the process whenever these
activities are encountered then it gets dehydrated to the dehydration store.
Using JAVA embedding activity in BPEL, Java code can be embedded in BPEL and can be
used.
Pick activity can act as a multiple receive activity in some business scenarios. If
we have two inbound operations and both can trigger the bpel process then we will
go with pick activity as we can�t have two receive activity with create Instance
box checked.
If we have to send the request to different service which has the same wsdl then
dynamic partner link will be used and using addressing schema we can set the
endpoint dynamic to send the request to the desired service.
Non- blocking invoke is used when Parallel flow needs to be executed where new
thread will be created for each invoke a activity and which will execute
simultaneously.
Hard coding is not a good practice, so to avoid hard coding preference variable can
be used and the value of the preference variable is accessed using
getPreference().The preference variable value can be changed without re-deploying
the code via em console MBean property.
By avoiding use of various if statements and using choose and by using for-each
group in place of for-each.
Property needs to be defined to start the new transaction or to continue with the
same transactions
Property Name: Transaction and if this has value as required then the BPEL process
will be continued in the same transaction where as if the value is defined as
requiresnew then it will start the new transaction.
Durable:-It is long running process and initiated through a one-way invocation and
do incur one or more dehydration points in the database during execution Ex:
Asynchronous
When file has to be read in the mid of the BPEL process, then we will use
syncFileRead Operation, means some process should initiate the file read process
and it is an outbound operation and process can�t begin with Sync File read.
40) Can we use a File Adapter to get a file without reading its content?
Yes, by selecting the Do not read file content check box in the Jdeveloper wizard
while configuring the "Read operation."
42) Explain error handling in BPEL and what is a error handling framework? How does
a error handling framework better than simple error handling in BPEL?
EHF �Whenever any error thrown by the BPEL process/Mediator then EHF will check
whether exist in Fault-Bindings.xml files and if so then the action in the Fault-
Policy.xml file will be taken and if the action is not found then the fault will
the thrown and it will be handled in the catch block.
Scenario A: The BPEL code uses a fault-policy and a fault is handled using the
�ora-human-intervention� activity, then the fault is marked as Recoverable and the
instance state is set to �Running�.
Scenario B: The BPEL code uses a fault-policy and a fault is caught and re-thrown
using the �ora-rethrow-fault� action, then the fault is marked as Recoverable and
the instance state is set to �Faulted�; provided the fault is a recoverable one
(like URL was not available).
Custom errors
Timed out errors
BPM errors
Validation Errors
Throw activity will explicitly throw the fault and this fault will get caught by
the catch block and the corresponding actions will get executed.
Web services are application components, which are self-contained and self-
describing and provide services based on the open protocol communication (i.e. SOAP
UI, HTTP over the net).
A URI is an identifier for some resource, but a URL gives you specific information
as to obtain that resource. A URI is a URL and as one commenter pointed out, it is
now considered incorrect to use URL when describing applications. Generally, if the
URL describes both the location and name of a resource, the term to use is URI.
Since this is generally the case most of us encounter every day, URI is the correct
term.
The composite editor in Jdeveloper gives you the flexibility to define the
interface now, to choose an existing interface, or to define the interface later as
you wire components to the Mediator.
Transforming data from one representation to another is, along with routing, one of
the key functions of the Mediator.
In 10g for routing, separate router need to keep along with ESB for routing and
filter expressions.
Where as in 11g mediator contains routing rules and filter expressions itself.
Concrete: Besides the information about how to communicate to the web service, it
the information on where the service exist. It has Bindings (Protocol the message
should be sent) and Services(has endpoint for each bindings) .
Abstract: It has information about how to communicate to the web service like types
(Schema), Message (input and output messages service accepts) ,Operations
(operation that can be performed on this service) and port Type.
Request:
<property name="oracle.soa.ws.outbound.omitWSA">true</property>
Response:
<property name="oracle.soa.addressing.response.enabled">false</property>
Concrete wsdl is the client side rather run time wsdl which has the information
like binding,endpoint where as abstract wsdl is the design wsdl. client wsdl is
sufficient to proceed with the build since it removes the dependency that the
service should be deployed and ready before starting the build. Also same abstract
can be used for multiply binding with different concrete wsdl this removes the code
redundancy.
Also in SOA perspective, abstract wsdl should be used rather than the concrete
since when the process loads there will dependency across the calling services if
the callee service didn't load before the caller service then the service state
will be unknown in SOA. To avoid this if we use abstract wsdl all the process loads
normally and the concrete binding will be used only when it starts receiving the
request.
By default SOA 11g tries to call the services through local service invocation by
avoiding SOAP/HTTP instead it used java direct to call the services provided the
service exist in the same soa infrastructure this will be checked based on the
certain parameters like
Server URL
<property name="oracle.soa.local.optimization.force">false</property>
<property name="oracle.webservices.local.optimization">false</property>
4. Correlation vs WS-addressing?
WS-addressing- By default SOA engine uses this .The main advantage of this is
developer don�t have to write the coding to correlate the message for the callback
where as it has its dis-advantage that it adds the header to the SOAP header.
Correlation-This is used when the calling service don't support ws-addressing .Also
this does not overhead the message since it used content from the message rather
than adding some headers to the request.
5. What is Oracle SOA governance?
All the organization wants to get the greater or better benefit when they implement
integration through SOA. Oracle SOA governance drives this by providing products
like OER, OSR and EM Management pack for SOA
By using all these better SOA governance can be achieved to reach the SOA Maturity
level by providing policies which needs to be followed and the re-usability of the
existing service across the organization rather that duplicating the same.
Apply Template is a little different one but it is the real power of XSLT: It takes
any number of XML nodes (whatever you define in the select attribute), iterates
them ( apply-templates works like a loop!) and finds matching templates for them.
Setting the below property in jca file will change the format to filename_timetamp.
9) What is the difference between Async and Sync activity on wsdl level?
Async wsdl-It has only input messages for the operation and it has 2 operations one
for sending the request and other for call back.
Sync wsdl-It has 2 messages input and output messages for the wsdl operation.
definitions
Types
Messages
Operation
Port type
Bindings
Services
Ports
It is the one which uniquely identifies the WSDL and when the WSDL is used it
should be identified using its Target Namespace.
The SOAP envelope-The SOAP is the root element in every SOAP message, and contains
two child elements, an optional and a mandatory.
The SOAP header-The SOAP is an optional sub-element of the SOAP envelope, and is
used to pass application-related information that is to be processed by SOAP nodes
along the message path.
The SOAP body-The SOAP is a mandatory sub-element of the SOAP envelope, which
contains information intended for the ultimate recipient of the message.
The SOAP fault-The SOAP is a sub-element of the SOAP body, which is used for
reporting errors.
13) Why do we need to have messages in WSDL, aren't operations and types enough to
describe the parameters for a web service?
Messages consist of one or more logical parts. Each part is associated with a type
from some type system using a message-typing attribute. The set of message-typing
attributes is extensible.
The element describes the data being exchanged between the Web service providers
and consumers.
Each Web Service has two messages: input and output. The input describes the
parameters for the Web Service and the output describes the return data from the
Web Service.
Each message contains zero or more parameters, one for each parameter of the Web
Service's function.
Each parameter associates with a concrete type defined in the container element. So
describing the parameters cannot perform by operations and types this is the main
need of Messages.
The fundamental difference between include and import is that you must use import
to refer to declarations or definitions that are in a different target namespace
and you must use include to refer to declarations or definitions that are (or will
be) in the same target namespace.
BAM Adapter.
Architect
Administrator
Active Viewer
Active Studio
In the clustered environment where JMS queues are used, when for the queues in any
one of the Managed server doesn�t have the consumer, once messages reaches the
forward delay time it gets moved to the other managed server where consumer is
present.
When the message gets failed to get processed ,then it will be re-tried will the
redelivery limit exhausts and once after the redelivery limit the message can b e
either moved to the error Queue are it can be discarded.
When Messages enqueue to the JMS queue, it will be immediately consumed by the JMS
Subscribers, if any delay needs to be induced for the message consuming by the
Subscribers then timetodeliver needs to set. The JMS message will not be subscribed
until timetodelivery exhausts.
To enable communication between various applications, web services take the help of
open standards like XML (for data tagging), SOAP (for message transferring) and
WSDL (to denote service availability).
This is applicable in the same way when we talk about �Interoperability� in terms
of web services. Here it determines the communication between various applications,
sharing of data as well as services among themselves. There is no restriction on
the type of application to be in communication. If any code is written, it will be
treated as generic code that will be understood by all application. Thus, the cost
of writing specific codes for each application is reduced.
1) Service transport: This is the first layer which helps in transporting XML
messages between various client applications. This layer commonly uses the below-
mentioned protocols:
XML-RPC
SOAP(Simple Object Access Protocol)
3) Service description: This layer contains description like location, available
functions, and data types for XML messaging which describes the public interface to
a specific web service. This layer includes:
Service Provider: As the name denotes, service provider role is to create the web
service and makes it accessible to the client applications over the internet for
their usage.
Service Requestor: Service requestor is basically any consumer of web service like
any client application. Client applications are written in any language contact web
service for any type of functionality by sending XML request over the available
network connection.
Service Registry: Service registry is the centralized directory which helps locate
web services for client applications. Here we can find the existing web services,
as well as developers, can also create the new one.
The Service Provider uses the �Publish� interface of Service Registry to make the
existing web services available to client applications. With all the information
provided by the service registry, service requestor is able to bind or invoke
services.
XML stands for Extensible Markup Language. Thus XML-RPC represents a simple
protocol that performs RPCs by using XML messaging. This has been considered as an
excellent tool for connecting different environments and also establishing
connections between wide varieties of computers.
Ans: We have already discussed web services, its architecture, components. Now, let
us see some its advantages
Every application is now on the internet and it the web service which provides some
sort of required functionality to the client applications.
Web services help in exposing the existing functionalities over the network to help
other applications to use in their programs.
It has features like �Interoperability� which determines the communication between
various applications, sharing of data as well as services among themselves.
Web services use the standardized web service protocol stack for communication
which consists of 4 layers namely, Service Transport, XML messaging, Service
description and Service discovery.
It has the feature of the low cost of communication because of the usage of SOAP
(Simple Object Access Protocol) over HTTP protocol.
Easy to deploy, integrate and is reusable.
Allows simple integration between different feature as a part of loose coupling
feature.
Authentication
Security
Error handling
Handshake Protocol
SoapUI
REST client
JMeter
RESTful web services enable web services to work best by inducing properties like
Performance
Scalability
Modifiability
Q 15) Explain the advantages of RESTful web services?
Ans: Enlisted below are the advantages of RESTful web services
They are considered as language and platform independent as these can be written in
any programming language and can be executed on any platform.
REST is lightweight protocol and is considered as fast because of less consumption
of bandwidth and resources.
It supports multiple technologies and different data formats like plain text, XML,
JSON, etc.
It has loosely coupled implementation and can be tested easily over browsers.
Resources are represented with the help of XML, JSON, text etc in RESTful
architecture.
Q 19) What are the core components of HTTP request and HTTP response?
Ans: HTTP request has following 5 major components
Format of URI
<protocol>://<service-name>/<ResourceType>/<ResourceID>
Every time client interaction takes place, web services are to be provided with
extra information about each request so that they can interpret the client�s state.
Q 23) For designing a secure RESTful web service, what are the best factors that
should be followed?
Ans: As HTTP URL paths are used as a part of RESTful web service, so they need to
be secured. Some of the best practices include the following
Perform validation of all inputs on the server from SQL injection attacks.
Perform user�s session based authentication whenever a request is made.
Never use sensitive data like username, session token password, etc through URL.
These should be passed via POST method.
Methods like GET, POST, PUT, DELETE, etc should be executed with proper
restrictions.
HTTP generic error message should be invoked wherever required.
SOAPUI Web Services
Q 25) What are the various approaches available for developing SOAP based web
services?
Ans: There are basically 2 different approaches available for developing SOAP-based
web services. These are explained as follows
Contract-first approach: In this approach, the contract is defined first by XML and
WSDL and then java classes are derived from the contract.
Contract-last approach: In this approach, java classes are defined first and then
the contract is generated which is usually the WSDL file from the java class.
�Contract-first� method is the most preferred approach.
SOAP allows communications between various applications and it is both language and
platform independent.
It is very simple as well as uses standard HTTP protocol and XML for sending and
receiving messages.
It defines and uses its own security known as WS security.
It decouples the encoding and communication protocol from the runtime environment.
It eradicates firewall problems and is vendor neutral.
It allows circulation of messages in distributed and decentralized environment.
Enlisted below are disadvantages of SOAP web services
Envelope: This element is defined as the mandatory root element. It translates the
XML document and determines the start and end of the SOAP message.
Header: This element contains the optional header attributes of the message that
contains specific information of the application. This element can occur multiple
times and are intended to add new features and functionalities.
Body: This element is mandatory and contains the call and response messages. It is
also defined as the child element of the envelope containing all the application
derived XML data that has been exchanged as a part of SOAP message.
Fault element: Errors that occur during processing of the messages are handled by
the fault element. If the error is present, then this element appears as a child
element of the body. However, there can only be one fault block.
A SOAP message
The service contract should be standardized containing all the description of the
services.
There is loose coupling defining the less dependency between the web services and
the client.
It should follow Service Abstraction rule, which says the service should not expose
the way functionality has been executed to the client application.
Services should be reusable in order to work with various application types.
Services should be stateless having the feature of discoverability.
Services break big problems into little problems and allow diverse subscribers to
use the services.
It can help create functional, security and load testing test suites.
Data driven testing and scenario based testing is also performed.
It has the ability to impersonate web services as well as has got built-in
reporting abilities.
Web Services Security
1) Confidentiality: A single web service can have multiple applications and their
service path contains a potential weak link at its nodes. Whenever messages or say
XML requests are sent by the client along with the service path to the server, they
must be encrypted. Thus, maintaining the confidentiality of the communication is a
must.
Q 45) What are the points that should be considered by ports while binding?
Ans: WSDL allows extensibility elements which are used to specify binding
information. Below are few important points that should be kept in consideration
while binding.
A port must not
Specify more than one address.
Specify any binding information other than address information.
g:\prints\interview\sql interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.What is Normalization?
Ans: Normalization is the process of organizing the tables to remove the
redundancy. There are mainly 5 Normalization rules.
1st Normal Form: A table is said to be in 1st normal form when the attributes are
atomic and there is no repeating groups
2nd Normal Form: A table is said to be in 2nd Normal Form when it is in 1st normal
form and all the non-key columns are functionally dependant on the primary key. .
3rd Normal Form: A table is said to be in 3rd Normal form when it is in 2nd normal
form and all non key attributes not dependant transitively.
4th Normal Form: A table is said to be in 4th normal form when it is in 3rd normal
form and has no multi -valued dependencies.
5th Normal Form: A table is said to be in 5th normal form when it is in 4th normal
forma and every join dependency for the entity is a consequence of its candidate
keys.
3.What are the DDL Commands and the Purpose of these commands?
DDL (DataDefinition Language) command is used for defining the structure of the
Data. DDL Statements are auto commit.
CREATE - to create objects in the database
ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including all spaces allocated for the
records are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object
9. What is NULL?
NULL in Oracle is an Absence of information. A NULL can be assigned but not
evaluated by it self also.
�NULL not equal to null
�NULL Can not be Not equal to NULL (Neither Equal Not Not Equal)
�NULL Does not equal to empty String or doe not equal to ZERO.
20. You are updating the table, you ask some another user to logon to database to
check your changes before you issue the commit command ? Can he see the changes
done by you?
Another user can�t see the the changes done by you until you have given commit.
Ex : Insert Statement
SAVEPOINT A
UPDATE Statement
SAVEPOINT B
DELETE Statement
SAVEPOINT C
Roll Back to SAVEPOINT B (means it roll backs to till UPDATE statement)
24. What are the Difference between UNION and UNION ALL?
UNION Query displays the Unique rows ( No duplicate rows)
UNION ALL Query displays the Duplicate rows also.
25. If you a Table A, You want to create table B having the same fields in TABLE A
? That means you have to copy only structure not the data?
CREATE TABLE TABLEB AS (SELECT * FROM TABLE A where 1=2);
Rowid
Rowid is pseudo column that uniquely identifies a row with in the table but not
with in the database.
It is possible for two rows of different tables stored in the same cluster have the
same row id.
Connect By Prior
A condition that identifies the relationship between parent rows and child rows of
the heirarchy.
Level
For each row returned by heirachical query the level pseudo columns returns 1 for
root row , 2 for child row of the root and so on.
SQL Statement in the FROM clause of SQL statement called Inline View. Oracle treats
the data set that is returned from the inline view as if it were a table.
This is not a schema Object.
A common use for inline views in oracle sql is to simplify the complex queries by
removing join operations and condensinfg several separate queries into single
query.
SELECT * from (SELECT * from table);
37. What are Constraints? And what are the constraint Types?
NOTNULL:
Ensures the null values are not permitted for the column. Defined at column Level.
CREATE TABLE Tablename( Empname VARCHAR2(10) NOTNULL)
UNIQUE:
Not allow already existing value
Is defined either table level or column level
CREATE TABLE T1( X1 NUMBER,
X2 VARCHAR2(10),
CONSTRAINT x2_UK UNIQUE(X2))
PRIMARY KEY:
Doesn�t allow Nulls and already existing values.
CREATE TABLE T1( X1 NUMBER,
X2 VARCHAR2(10),
CONSTRAINT x2_UK PRIMARY KEY(X2))
FOREIGN KEY:
Foreign Key defines the column in the child table at table constraint level.
CREATE TABLE T1( X1 NUMBER,
X2 VARCHAR2(10),
CONSTRAINT x2_UK FOREIGN KEY(X2)
REFERENCES TABLE2(field2))
CHECK
Defines a condition that each row must satisfy
CONSTRAINT emp_salary CHECK(SAL>0)
1) 2 rows selected
2) No rows selected
DELETE FROM EMPMASTER A WHERE A.ROWID> (SELECT MIN(B.ROWID) FROM EMPMASTER B WHERE
A.EMPNO=B.EMPNO);
56. What is the difference Between Primary Key and Unique Key?
Primary Key
Unique Key
You can have only one primary key in a table
You can have more than one Unique key in a table
Primary disallows the duplicates and Nulls also
Unique key disallows only duplicates, it accepts the Nulls.
g:\prints\interview\upgrades scripts.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Understanding the Upgradation Process
======================================:
To upgrade oracle database manually from 10g to 11g, we need to use Oracle-supplied
pre- and post-upgrade scripts.
If I�m upgrading from an Oracle Database 10g release database to Oracle Database
11g and would need to use the following scripts in turn to perform the manual
upgrade.
-utlu111i.sql
-catupgrd.sql
-utilu111s.sql
-catuppst.sql and
-utlrp.sql
catupgrd.sql This performs the actual upgrading of the database to the Oracle
Database 11g release and it now supports parallel upgrades of the database.
Tips :
Tip #1: Either take a Cold or Hot backup of source 10g database (advisable to have
cold backup).
Since 11g upgrade requires downtime of oracle database, I strongly suggest to take
cold backup beforehand. The reason to do that is to minimize downtime as much as
possible. If anything wrong happens during upgrade, we get the most straightforward
way to restore source database.
Script utlu111i.sql does more than gathering information from database and
analysing database. It solves problems which could break the process of upgrade.
For instance, the time zone files required in Oracle 11g has been updated to
version 4. Failing doing that will cause break out of upgrade while we do upgrade
with running catupgrd.sql. By running script utlu111i.sql, the new time zone file
(version 4) will be recorded in view registry$database.
Tip #3: With running utlu111i.sql, making necessary change on parameter file if
required.
Running utlu111i.sql will present the report about warnings in upgrade issues such
as database version and compatibility, and so on�
Before doing real upgrade, I followed the generated report to change parameter file
as per as below.
**********************************************************************
**********************************************************************
Also, it�s critical that the parameter �compatible" need to be changed from
10.*.*.*.* to 11.1.0.0.0. Otherwise, upgrade process will raise problem and it�s
very likely that control file of source database would be corrupt and need to be
recovered if upgrade failed. That absolutely make DBA in timely trouble to recover
source database.
g:\prints\interview\weblogic interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Weblogic Interview
===================:
Answer
Oracle WebLogic Server is J2EE Server (earlier known as BEA WebLogic Server)
similar to Oracle Application Server.
Oracle Weblogic server
Answer
Oracle weblogic server includes
1)Domain
2)cluster
3)servers
Answer
Oracle bought Weblogic from BEA. BSU Stands for Bea Smart Update. This utility is
used to apply the WebLogic Server Patches. In simple terms, it is first letter of
name of founders Bill Coleman, Ed Scott and Alfred Chuang.
There can only be one administration Server in domain and zero to N Managed Server.
Answer
Admin server is the central point from where you can configure, Monitor and manage
all resources of a domain.
Administration Server is WebLogic Server instance that maintains configuration data
for a domain. You can deploy your application on administration Server but it is
recommended to create managed Server and deploy your application in managed server
and leave Administration domain for configuration and maintenance.
There will always be at least one Administration Server in a domain.
Answer
startWeblogic.sh script to start the weblogic server
What is Managed Server ?
Answer
It is an instance of your WebLogic server that is running on JVM and has its own
configuration.
In Managed server we will deploy the java components
Web Applications
EJB Applications
JMS Applications
Web services
Answer
By default, if a Managed Server is unable to connect to the specified
Administration Server during startup, it can retrieve its configuration by reading
a configuration file and other files directly. You cannot change the server�s
configuration until the Administration Server is available. A Managed Server that
starts in this way is running in Managed Server Independence mode
Answer
WebLogic Server installs the following script that you can use to set the classpath
that a server requires:
WL_HOME\server\bin\setWLSEnv.cmd (on Windows)
WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
Answer
Two or more managed server becomes or forms the cluster in a domain and cluster
handle the load balancing across the cluster.
Group of WebLogic Managed Server Instances that work together to provide high
availability and scalability for applications is called cluster. WebLogic Servers
with in cluster can run on same machine or different machines. These are also
called as managed Server cluster.
What is Server
Answer
Server is an instance of your WebLogic which is running on a JVM and has dedicated
RAM.
Answer:
$WL_HOME\server\bin\startNodeManager.sh
Answer
A Node Manager process is not associated with a specific WebLogic domain but with a
machine. You can use the same Node Manager process to control server instances in
any WebLogic Server domain, as long as the server instances reside on the same
machine as the Node Manager process. Node Manager must run on each computer that
hosts WebLogic Server instances. whether Administration Server or Managed Server
that you want to control with Node Manager.
Answer
There are 3 types of weblogic installation.
Answer:
Members of the Cluster communicate over the Cluster Multicast IP and Port by
sending periodic heart beat messages.
What is the difference between the Sun JVM and BEA JRockit JVM?
Answer
The most well know JVM is the implementation from Sun. The Sun JVM is called
HotSpot. The Sun JVM is shipped in the Java Developer�s Kit (JDK) and Java Runtime
Environment (JRE) from Sun.
The BEA JRockit JVM from BEA systems is optimized for reliability and performance
for server side applications. To achieve this, BEA JRockit JVM uses technologies
such as code generation, hot spot detection, code optimization, advanced garbage
collection algorithms and tight operating system integration.
Answer
a. Application Tuning.
jsp precompilation, ejb pool size cache..
b. OS Tuning
Setting tcp ip parameter.
tcp_time_wait_interval
tcp_conn_req_max_q
d. JVM Tuning
tuning gc strategy, monitoring garbage collection..
Answer
Clients that connect to a WebLogic Server cluster and look up a clustered object
obtain a replica-aware stub for the object. This stub contains the list of
available server instances that host implementations of the object. The stub also
contains the load balancing logic for distributing the load among its host servers
Answer
HTTP tuning provides a way to simulate a tasteful socket connection between
WebLogic Server and a Java client when your only option is to use the HTTP
protocol. It is
generally used to tunnel through an HTTP port in a security firewall. HTTP is a
stateless protocol, but WebLogic Server provides tunneling functionality to make
the connection appear to be a regular T3Connection.
Steps to configure Http tunneling.
Login into the Admin Console, click on the server on which you want to enable he
Http Tunneling feature
Click on the Protocols tab
General
check the �Enable Tunneling� check box.
Now you can communicate with the JVMs (Server Instances) using protocols other than
t3
Answer
WebLogic uses the T3 protocols for internal and external connections to the
servers. The T3 protocol often is used in WebLogic implementation of RMI.
Proprietary of WebLogic Server.
Http protocols are used primarily for HTTP communication between the browser and
the web server. Standard follows the W3C (World Wide Web Consortium).
Note: All of these protocols are, by default, multiplexed over the same connection
to the server�s address and port. So you can access a web page hosted by the
server using a URL such as http://host:port/page.jsp. An external client can set
up an initial JNDI context to a server using the URL t3://host:port/. All that has
changed is the protocol over which the client must communicate with the server.
Answer
There are 9 states of server which are given below
Shutdown
Starting
Standby
Resuming
Running
Suspending
Shutting down
Failed
Unknown
Answer
Unicast is the method used in the clustering technique where there are cluster
master and each server should ping to this cluster master for informing that the
server is alive.
Answer
ssl enabled admin console accessed as :
https://<hostname_or_ip_address_where_admin_server_running>:<port_on_which_admin_se
rver_is _running>/console
Example � https://localhost:7001/console
http://<hostname_or_ip_address_where_admin_server_running>:<port_on_which_admin_ser
ver_is_ running>/console
Example � http://localhost:7001/console
Answer
only one is possible
Answer
7001
Answer
config.xml is the central configuration repository for a domain. every resource you
have configured from admin console or by command line or by any other tool
registered under this file.
Answer
boot.properties is the file used by admin or managed server during startup for
username and password. it exist under your domain/servers/server_name/security
folder.
When you create a domain in development mode then it creates automatically during
startup of admin server but if you create a domain in production mode then you
need to define it explicitly otherwise on every reboot of admin server it will
prompt you for username and password.
So in production mode �
Start admin server by manually passing the username and password
stop it ( press cntrl+c on the started session )
go to your domain/servers/your_admin_server/ create a folder �security�
go inside security and create a file �boot.properties� with below contents
username=your_admin_username
password=your_admin_password
now start the admin server, it will not prompt you for username & password further.
If you are going to start your managed servers from admin console then no need to
create this file for managed server but if you are going to start managed servers
via startManagedweblogic script then you need to follow the same above procedure
for each
managed server.
Answer:
Basically all the web-tier related files (.jsp .class, JSPCompiled files etc.,) get
stored in some directory. This is treated as cache whenever there is restart of a
WebLogic instance happen then the WebLogic server will look-up for last serviced
object status stored in the cache to service for any pending requests. Usually,
when your EJB Classes need sessions, JMS object requires persistance, your web-
tier may contain static contents then Cache will be used by WebLogic Application
Server instance.
Answer:
Whenever your application is accessed for the first time that fresh deployment of a
new version, WebLogic server lookup in this directory, if there are older objects
persists that will be conflict with new code objects. This is where the need of
removal of cache arises.Where there is a need of new version deployment we might
need to clear the cache when the changes to the new version is not reflected.
WIN: C:\weblogic\user_projects\domains\yourdomain\servers\yourserver\tmp
UNIX: /weblogic/user_projects/domains/yourdomain/servers/yourserver/tmp
Here I am removing all the subdirectories and files in the the given directory.
Answer
Thread Dump is a textual dump of all active threads and monitors of Java apps
running in a
Virtual Machine.
Answer
Answer
we have to take a Thread dumps many times when we faced issues. We can choose one
Procedure. For analyzing take dumps some Intervals (like every 20mins, 5mins etc.).
Answer
We can manage the whole gamut of activities from Node manager
1) Start, Shut Down, and Restart an Administration Server
2) Start, Shut Down, Suspend, and Restart Managed Servers
3) Monitor Servers and View Log Data
Answer
netstat -na |grep connected (to find the ports connected in Linux box.)
netstat -na |grep listen (to find the listening ports in HP-UX,Solaris)
Answer
There are various capabilities associated with WebLogic server and they are
Changes in dynamic configuration.
Production application redeployment
Rolling upgrades.
Answer:
For changing the JVM can be done by following the steps below.
1)You should first set the JAVA_HOME in the start script of the server.
2)Change the config.xml of domain for using the JRockit javac.exe
3) Remove any kind of switches specific to Sun JVM from start scripts of server.
Answer:
Production mode:
You use production mode when your application is running in its final form. A
production domain uses full security and may use clusters or other advanced
features.
We see error like 404 and 500. What does they mean?
Answer
The error code 404 � Page not found this says there is no page on the server when
browser client requesting, this can happen when application is not deployed
properly or not in active state or not initialized properly
500- Internal server error This error occurs when there is a communication issue
between server�s intermediate services
Staged deployment will copy your deployment units onto the deployment servers,
place them into the $WL_HOME/servers/SERVER_NAME/stage directory and deploy them
from there.
In no-stage mode, the Administration Server does not copy the archive files from
their source location. Instead, each target server must access the archive files
from a single source directory for deployment. The staging directory of target
servers is ignored for no-stage deployments.
Answer
java -version run this command in linux to know the java version.
g:\prints\interview\wf interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1. What is Oracle workflow?
Oracle Workflow is a complete workflow management system that facilitates business
process reengineering. Oracle Workflow automatically processes and routes
information of any type, according to business rules you can easily change, to any
person inside or outside your enterprise. You can easily include customers and
suppliers in your workflow using the Internet and the Worldwide Web.
g:\prints\interview\wls interview.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1. Can you give the deployer utility syntax?
The syntax goes like this:
$ java weblogic.Deployer -adminurl http://admin:7001 -name appName -source
/myapp/appName.ear -targets [serverList] [-activate or other options]
http://wlabypani.blogspot.com/2009/11/apache-installation-configuaration.html
3 What is Oracle SID in Database?
In Oracle listener is that which is associated with a SID and host, port. It is
configured in the tnsnames.ora file. You can verify it by tnsping command.
First we look for is there any last good backup of configuration is availble on the
Admin machine. If it is not found then alternatively you can find it on remote
machines where the managed servers running.
Best practice is whenever there is a configuration changes made before and after
you need to take a backup.That will help you such situation where you might need
old configuration sometime.
11. What are the difference between Connection pool and data source?
ConnectionPool is physically connects to the Database. where as Data Source is a
logical resource that can be used by developer or any other resource for accessing
Connection of pools.
DataSource can be associated with JNDI name that is used for lookup from from any
other client.
16. How to get thread dump and what the purpose of stuck thread?
Get the java process id, you can get it by jps or customized script for it.
kill -3 pid for unix env.
Ctrl+break for windows env.
When there is a Stuck Thread need to monitor the log for few minutes some times 2
or 3 stuck threads hogging but after sometime it will be unstucked. If you take
multiple thread dump for every 5 sec gap and analyse with sumarai or Java Thread
Analyzer tool you will get to know why it is stuck what is causing the instances to
mis behave that time.
In UNIX environments we have vi editor for creating new file which can be shell or
python or jython or plain file.
I - insert mode
Esc - to come out of the mode
r - replace char
a - append to the line
O - insert above line
o - insert below line
dw - delete word
dd - delete line
x - delete char
/ - search a pattern
:set nu setup numbers etc...