Professional Documents
Culture Documents
1 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
ursvenkat's Blog
Oracle Applications DBA Blog
Home
Uncategorized
22/03/2016 2:06 PM
2 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Follow
22/03/2016 2:06 PM
3 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
backup menus, Responsibility, user using below FNDLOAD commands( ****IMPORTANT STEP****)
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct PATCH_SUB_MENU.ldt
MENU MENU_NAME=WH_ENQ
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct PATCH_MENU.ldt
MENU MENU_NAME=WH_ENQ_MAIN
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct PATCH_RESP.ldt
FND_RESPONSIBILITY RESP_KEY=MFG US ATP WH MGMT
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct PATCH_USER.ldt
FND_USER USER_NAME=MOBILE_USER
Upload Menus, Responsibility and User using below FNDLOAD commands
cd $backup_dir ** directory in which files were backed up thru step#4
FNDLOAD apps/appspwd 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct PATCH_SUB_MENU.ldt
FNDLOAD apps/appspwd 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct PATCH_MENU.ldt
FNDLOAD apps/appspwd 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct PATCH_RESP.ldt
FNDLOAD apps/appspwd 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct /tmp/PATCH_USER.ldt
PACKAGE CREATION USING PKH and PKB FILES
sqlplus apps/apps @******.pkh this will create the package header or specification
sqlplus apps/apps @******.pkb this will create the package body
ODF FILE EXECUTION
adodfcmp userid=cn/cn mode=TABLES odffile=cntrx02.odf touser=apps/apps priv_schema=apps/apps
logfile=cn.log changedb=YES
adodfcmp userid=/ odffile=afsec.odf touser=apps_appfnd/xxx logfile=/tmp/a2.lst changedb=Yes
priv_schema=apps_appfnd/xxx mode=tables
Execute the following command to determine the version of OA.jsp:
ident $FND_TOP/html/OA.jsp and
ident $OA_HTML/OA.jsp
(ie: Header: OA.jsp 115.26 2002/01/18 14:49:41 pkm ship)
Attention: The version of OA.jsp in $FND_TOP/html should be the same as the one in $OA_HTML if the
version of OA.jsp does not match do the following :
Run adadmin.
Choose the option called Maintain Application Files.
Choose the option called Copy files to destination.
Note: If the ident command returns a no such file error or does not return any version information for OA.jsp
then you have not installed the Oracle Applications Self Service Framework. Please use this metalink
document to install the Self Service Framework.
Note: ident is not available on SUN & AIX. In this instance please use:
adident Header $FND_TOP/html/OA.jsp and
adident Header $OA_HTML/OA.jsp
How to compile JSP in Oracle Apps ?
You can use ojspCompile.pl perl script shipped with Oracle apps to compile JSP files. This script is under
Follow
$JTF_TOP/admin/scripts. Sample compilation method is
22/03/2016 2:06 PM
4 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Follow
22/03/2016 2:06 PM
5 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
22/03/2016 2:06 PM
6 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
hrglobal.drv
PER_TOP/patch/115/driver
To check to make sure the correct data was installed run the following script this script can also be used
to check if datainstaller was run successfully:
select application_short_name, Legislation_code, status, action, last_update_date
from hr_legislation_installations
where application_short_name in (PER,PAY);
To check the version of the iAS 1.0.2.2.2
cd <ias_oracle_home>/Apache/Apache
httpd -version
To check the version of the forms
f60gen
To relink manually
adrelink.sh force=Y ranlib=Y AD
./adrelink.sh force=y ranlib=y WPS WPCFSQ
To complile forms and reports library
cd $ORACLE_HOME/forms/lib32
Note: if this directory does not exist: cd $ORACLE_HOME/forms/lib
$ make -f ins_forms.mk install
cd $ORACLE_HOME/reports/lib32
Note: if this directory does not exist: cd $ORACLE_HOME/reports/lib
$ make -f ins_reports.mk install
Relink Procedure Builder, Forms, Graphics and Reports:
cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install
cd $ORACLE_HOME/forms60/lib; make -f ins_forms60w.mk install
cd $ORACLE_HOME/graphics60/lib; make -f ins_graphics60w.mk install
Reports has both link-time and run-time dependency with libjava.so so you need to append
$ORACLE_HOME/network/jre11/lib/linux/native_threads in
$LD_LIBRARY_PATH before linking Reports. The same $LD_LIBRARY_PATH should be used at run-time.
cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install
Relink iAS and Oracle Home using
$IAS_ORACLE_HOME/bin/adlnkiAS.sh and $ORACLE_HOME/bin/adlnk806.sh
To fin perl version
$ perl -version
To find java version
$ java -version
To find JDK version:
From appl_top, xml file
Follow
22/03/2016 2:06 PM
7 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
<jdk_top oa_var=s_jdktop>/amtoac/applmgr/common/util/java/1.4/j2sdk1.4.2_04
Discoverer launcher and viewer urls
http://hostname.oracle.com:10000/discwb4/html/discolaunch.htm)
http://hostname.oracle.com:10000/discoverer4i/viewer
Plushttp://hostname.domain:port/discwb4/html/english/welcome.htm
To find Version
$ string a dis4pr | grep i discoverer version
The location for looking for dis4pr is $ORACLE_HOME/diswb4/bin
To start discoverer
Script to start discoverer server is addisctl.sh under $OAD_TOP/admin/scripts/$CONTEXT_NAME
This script in turn start discoverer processes which can be start by startall.sh under
$ORACLE_HOME/discwb4/util (This script is different from adstrtal.sh)
startall.sh calls scripts like startgatekeeper.sh, startlocator.sh , startoad.sh, startosagent.sh to start
gatekeeper, locator, oad & osagent resp.
In Apps two major way to access EUL is via Discoverer view & Discoverer Plus edition (You can use
Discoverer Administration Edition as well)
to generate xml file on apps and db tier
ad_top/bin
adbldxml.sh tier=apps appsuser= appspasswd=
Source the environment before runnibg
Go to /appsutil/bin
perl adbldxml.pl tier=db appsuser= appspasswd=
Make command
make -f $APPL_TOP/admin/train/out/link_inv_1040580.mk $INV_TOP/bin/INCOIN
restart apache without killing current web sessions
usellx41.corp.invacare.us:support_conf> $SCRIPTS/adapcctl.sh graceful
adapcctl.sh version 115.48
Apache Web Server Listener :httpd ( pid 16249 ) is running.
Gracefully restarting the Apache Web Server Dedicated HTTP Listener..
Apache Web Server Listener (PLSQL) :httpd ( pid 16379 ) is running.
Gracefully restarting the Apache Web Server Dedicated PLSQL Listener..
adapcctl.sh: exiting with status 0
enabling Autoconfig on DB tier
As applmgr Copy AutoConfig templates to the RDBMS ORACLE_HOME
Follow
22/03/2016 2:06 PM
8 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
sandbox> pwd
/ORACLE/sandbox/9.2.0/appsutil/bin
sandbox> id
uid=300(oracle) gid=200(dba) groups=1(staff),202(oaa),203(move),13(oinstall)
sandbox> perl adbldxml.pl tier=db appsuser=apps
Starting context file generation for db tier..
Using JVM from /ORACLE/sandbox/9.2.0/jdk/bin/java to execute java programs..
APPS Password: apps
The log file for this adbldxml session is located at:
/ORACLE/sandbox/9.2.0/appsutil/log/adbldxml_09061436.log
Enter the value for Display Variable: hostname:1
Context File /ORACLE/sandbox/9.2.0/appsutil/sandbox_hostname.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /ORACLE/sandbox/9.2.0/appsutil/sandbox_hostname.xml.bak
The context file has been created at:
/ORACLE/sandbox/9.2.0/appsutil/sandbox_hostname.xml
# Take a backup of all the crucial configuration files and Generate and apply AutoConfig configuration file:
Follow
22/03/2016 2:06 PM
9 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Create a file with name JDBCVersion.java in your middle tier (Application Tier)
import java.sql.*;
import oracle.jdbc.driver.*;
class JDBCVersion
{
public static void main (String args[])
throws SQLException
{
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Get a connection to a database
Connection conn = DriverManager.getConnection
(jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES) (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST= ) (PORT= )))(CONNECT_DATA=(SID=))) ,apps,);
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println(JDBC driver version is + meta.getDriverVersion());
}
}
Follow
22/03/2016 2:06 PM
10 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
On UNIX
editcontext
If the [COMMON_TOP]/util/editcontext (for Unix) or [COMMON_TOP]\util\editcontext (for Windows)
directory does not
exist, please refer to MetaLink Note 165195.1 titled Using AutoConfig to Manage System Configurations
with Oracle
Applications 11i.
Copy the Context Editor meta data file adctxinf.tmp to the common top directory under util/editcontext/etc
and rename
it as adctxinf.xml:
on UNIX:
cp $AD_TOP/admin/template/adctxinf.tmp [COMMON_TOP]/util/editcontext/etc/adctxinf.xml
EDITING CONTEXT FILE
Editing Context file(xml file) in Oracle apps R12 using Context editor.
It is a mandatory thing that you should not edit the context file or xml file manually .
Context editor should be used for this(This can be used for updating ports or to change any configuration)
of application Tier or database tier.
follow these steps to install context editor in your existing oracle apps R12 system.
Apply patch 2873456 from metalink
after applying you will not be able to invoke the editcontext executable and you will get a error. this is
because jre 1.1.8 which is
supplied along with this patch is no longer supported.
So download jre1.5.0_10 from sun.java.com and unpack it inside the path editcontext/jre/Linux/
and rename the old 1.1.8 jre inside that
then go to the bin directory inside the editcontext directory
open the file runWizard.sh
and accordingly replace the jre directory and also replace the jre executable with java in the same file ..
and invoke it from
$RDBMS_ORACLE_HOME/appsutil for editing database context(xml) file.
$COMMON_TOP/util for editing Application context(xml) file.
Syntax is
./editcontext
Before editing shutdown the application tier and after editing run autoconfig.sh to update the configuration
files to reflect the new value.
The URL for ext web node is
JTF Login Page for customers using CRM (Check for each MT using real host names).
http://:port/OA_HTML/jtflogin.jsp
start Apache in SSL mode as root (on web025) using following cmd:
. //APPSORA.env
$IAS_ORACLE_HOME/Apache/Apache/bin/httpdsctl startssl.
URL to access OAM
access http://.:/servlets/weboam/oam/oamlogin
Follow
22/03/2016 2:06 PM
11 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
How will you identify if you are using Forms in Socket or Servlet mode in Oracle Applications 11i or
R12 ?
You can find out the form are in Socket or Servlet mode in form configuration file it is in
$COMMON_TOP/html/bin and the file name is appsweb_SID_hostname.cfg.
s_forms_servlet_serverurl If value is blank that means this is not servlet else if value is /forms/formservlet
this indicates forms servlet.
In the context file, unde OA variable, frmConnectMode
repackage the jinit using the following command :
adjbuild.sh $COMMON_TOP/util/jinitiator $COMMON_TOP/util/jinitiator/j2se15012.exe 1.5.0.12
CPU patch log location on iAS HOME/d01/oratst/preprodora/iAS/cpu/CPUJul2005/installJun-09-2008-07-11-34.log
Apache config test
$ pwd
/d01/oratst/preprodora/iAS/Apache/Apache/bin
$ ./apachectl configtest
Syntax error on line 239 of /d01/oratst/preprodora/iAS/Apache/Apache/conf/httpd.conf:
Cannot load /d01/oratst/preprodora/iAS/Apache/Apache/libexec/mod_log_config.so into server: ld.so.1:
httpd: fatal: relocation error: file /d01/oratst/preprodora/iAS/Apache/Apache/libexec/mod_log_config.so:
symbol ap_escape_logitem: referenced symbol not found
To check X-display is working
Access page at http://hostname.domainnmae:8000/OA_HTML/testXServer.jsp. If the display setting is
inappropriate you will see an exception page
Edit the AutoConfig context file.
If you are currently using E-Business Suite level 11.5.9 or above, or have applied FND.G patchset (or above),
you will use Oracle Applications Manager to edit your context file. For all previous versions, you will use the
AutoConfig Context Editor tool.
To edit the context file using Oracle Applications Manager, login to Oracle Applications Manager and
navigate to Site Map > AutoConfig > Edit Parameters.
To edit the context file using the AutoConfig Context Editor tool, enter the following commands:
% cd [COMMON_TOP]/util/editcontext/
% ./editcontext
To convert host specific url to user friendly url
Make host entries for ebus and make the following xml file changes and run autoconfig.
$ grep evis VIS_hostname.xml
ebus
<disco_machine oa_var=s_disco_machine>evis.corpdom.local
Follow
22/03/2016 2:06 PM
12 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
http://evis.corpdom.local:8000
evis
<apps_portal_url oa_var=s_apps_portal_url>http://evis.corpdom.local:8000/pls/VIS_portal30
/portal30.home
<login_page oa_var=s_login_page>http://evis.corpdom.local:8000/OA_HTML
/US/ICXINDEX_VIS_hostname.htm
<forms60_mapping oa_var=s_f60map>http://evis.corpdom.local:8000/OA_TEMP
$
MWA boucne procedure on 11 i
cd $MWA_TOP/bin
mwactl.sh start 10200
mwactl.sh start 10210
mwactl.sh start 10220
mwactl.sh start 10230
mwactl.sh start 10240
nohup mwactl.sh start_dispatcher & Port for Dispatcher is 10300
Procedure to Shutdown Dispatcher
mwactl.sh -login sysadmin/xxx stop_force 10200
mwactl.sh -login sysadmin/xxx stop_force 10210
mwactl.sh -login sysadmin/xxx stop_force 10220
mwactl.sh -login sysadmin/xxx stop_force 10230
mwactl.sh -login sysadmin/xxx stop_force 10240
nohup mwactl.sh stop_dispatcher &
1. Autoconfig. In autoconfig-enbled environment configuration file mwa.cfg is written by autoconfig. So it
would be good to modify any configuration setting that you want to be permanent via AutoConfig editor in
OAM. For all MWA server configuration variables OA_VAR begins from s_mwa. There is also a description
for each parameter.
2. R12. While in 11i mwa.cfg is located in $MWA_TOP/secure, in R12 its in $INST_TOP/admin/install.
Startup script mwactl.sh in R12 is located in $INST_TOP/admin/scripts
3. Dispatcher. If we are going to run multiple servers (specified by mwa.TelnetPortNumber /
s_mwaTelnetPortNo) then we most likely will also use dispatcher to load balance client requests between
MCSA telnet servers. We use mwa.Dispatcher=host:port to set MCSA dispatcher (in AutoConfig there is
s_mwaDispatcherPort for the port setting). To start|stop dispatcher we can use:
mwactl.sh start_dispatcher | stop dispatcher.
Dispatcher is MWADIS binary within $MWA_TOP/bin directory. We can check whether its running using:
ps -ef | grep MWADIS
4. OAM. There are Generic Services (MWA MSCA Telnet Server & MWA MSCA Telnet Dispatchers) in
OAM that corresponds to MSCA telnet server & dispatcher respectively and can be used to start/stop them
automatically.
5. Server shutdown. When we use
mwactl.sh -login / stop [port]
its so called graceful shutdown. MCSA Telnet Server wont stop unless there are no clients currently using
Follow
it. If you need to force shutdown, use stop_force instead of stop
6. Tracing. Setting mwa.LogLevel could be very useful for trobleshooting issues with MWA In 11.5.10/R12
22/03/2016 2:06 PM
13 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
this will usually produce serveral files within MWA log directory:
.system.log
.INV.log
.WMS.log (optionally)
But for performance tuning we can also use SQL tracing. It can be enabled by setting mwa.LogLevel
(s_mwaLogLevel) to performance. SQL trace file will be put into usual user_dump_dest directory on database
server.
The steps that needs to be done to disable MWA are as follows:
1. Modify the $IAS_ORACLE_HOME/Apache/Jserv/etc/mobile.properties file by commenting out the
following line:
servlets.startup=oracle.apps.mwa.wap.engine.WapServlet
2. Comment out the following lines in the $IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.properties file:
zones=mobile
3. Comment out the following lines in the $IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.conf file:
ApJServGroupMount /mobile balance://OACoreGroup/mobile
Check if tcfsocket server is running
ps -ef|grep jre|grep comn
appltst 6466 6226 0 14:04:07 ? 0:03 /d01/oratst/testcomn/util/jre/1.1.8/bin/../bin/sparc/native_threads/jre
-Ddbcfi
appltst 7969 6226 0 14:12:59 ? 0:03 /d01/oratst/testcomn/util/jre/1.1.8/bin/../bin/sparc/native_threads/jre
-Ddbcfi
appltst 6496 6226 0 14:04:13 ? 0:03 /d01/oratst/testcomn/util/jre/1.1.8
Generating jar files
Generating product JAR files in JAVA_TOP
/d01/oratst/testcomn/java with command:
adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @/d01/oratst/testappl/admin/TEST02/out/genjars.cmd
The AutoConfig check utility
The AutoConfig check utility is located at Target Database Tier /appsutil/bin
i) Check the AutoConfig configuration files by executing the following command
adchkcfg.sh contextfile=.xml appspass= This report provides information about All the profile options that
get changed during the next normal execution of AutoConfig.
For every profile option there is information about the current value in the database, the changed value and
the AutoConfig script that changes the profile option.
The script will also create a zip file report ADXcfgcheck.zip that contains all the files and reports
mentioned above, so that you can copy the ADXcfgcheck.zip to a local desktop PC and view the html report
from there without breaking the hyper-links in the report.
Check Java Cache in your Env :
login to URL http://: /OA_HTML/jtflogin.jsp
Login as sysadmin and navigate to Performance -> Components.
Follow
22/03/2016 2:06 PM
14 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Follow
22/03/2016 2:06 PM
15 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
22/03/2016 2:06 PM
16 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Requirement:
Client want to secure login policy to more robust for users of 11i.
> The password contains at least one letter and at least one number
> The password does not contain the username
> If user tried more than 3 attempts , password should lock
> If user unable to login more than 2 attempted, need weekly report of those users.
After doing a bit R & D, recommended for the client the following:
1. Change the profile option Signon Password Failure limit to 3, defalt is None.
2. Change the profile option Signon Password Hard to guess to YES, defalt is NO.
3. We are sheduling a con.program weekly using the tables FND_UNSUCCESSFUL_LOGINS and
ICX.ICX_FAILURES to reports on login attempts.
JDK version userd by AD Utilities
AD Utilities use jdk 1.3 or jdk 1.4. You can detect the version used by the AD Utilities with the command
$ADJVAPRG -version.
Rate this:
1 Votes
Share this:
Leave a Reply
RSS feed
Follow
22/03/2016 2:06 PM
17 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
ursvenkat
ursvenkat
Born in India, traveled and lived in various cities and countries and now my journey has led me to US.
Learning a new language & culture, living a new life...I'm Working as Oracle Applications DBA, Expertise in
Oracle Applications 11i &12i which encompasses installation, configuration, upgrade, patch management...
View Full Profile
Recent Topics
ASM FAQs
ResourceLimitException : No resources currently available in pool to allocate to applications Oracle
SOA 11g
Follow
Weblogic Managed server status in STARTING
22/03/2016 2:06 PM
18 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Check my Twitter
RT @vennelakishore: Entry unte chaalu..inka Entertainment add aithe..bumper bonus bonanza..power
hour begins youtu.be/bUZfER6-dLA https 4 days ago
Follow @ursvenkat
Archives
List of topics
About Me !!
All About Tablespace, datafiles, tables, index related scripts
Apps DBA Daily tasks!!
Apps DBA FAQ Part-2
APPS DBA Interview questions !!
Concurrent request scripts / Max run time, Avg Run time.etc
Daily used SQL for DBA.. Happy SQLing.
Differences and changes between oracle E-Business Suite 11i
Directory structure of Rel 12 EBS application file system
Find the Version of Oracle Application Components
How to Create APPS Read-Only Account
How to Create NEW DOMAIN in OTM (GLOG)
How to do Application Tier / Concurrent Tuning!!
How to find component version in Oracle E-Business Suite.
How to Find LOCKS / blocking sessions :
How to Find the versions Oracle Apps Components !!
How to Migrate AIX to Linux Application Tier
How to recover Applications context file if it is corrupted or deleted accidentally?
How to troubleshoot Concurrent Managers!!
KEY POINTS TO A SUCCESSFUL INTERVIEW !!
Metalink Docs for Daily issues. !!
Objects Count on :
Performance Settings of Concurrent Managers
Pinning Objects to Improve Apps Performance
RAC Frequently Used Commands
Rel.12 File system and features!!
RMAN Commands
Follow
22/03/2016 2:06 PM
19 of 19
https://ursvenkat.wordpress.com/how-to-find-component-version-in-orac...
Calender
March 2016
M T WT F S S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Feb
Blog Stats
53,488 hits
Top
Blog at WordPress.com. The INove Theme.
Follow
22/03/2016 2:06 PM