Crontab Scripts
Crontab Scripts
Run the following command to locate the properties file that you want to customize
to preserve your settings:
R11i10
sh $AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE
target=$IAS_ORACLE_HOME/Apache/Jserv/etc/xmlsvcs.properties
R12
sh $AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE
target=$INST_TOP/ora/10.1.3/j2ee/oafm/config/oc4j.properties
Navigate to the location of the template directory and create a custom subdirectory
to store to store your customization:
cd $FND_TOP/admin/template
mkdir custom
Copy the template file to the custom directory. and edit to add custom entries and
run autoconfig"
AOLJTEST
http://hostname:portno/OA_HTML/jsp/fnd/aoljtest.jsp
WFLOAD syntax
WFLOAD 0 Y {UPLOAD | DOWNLOAD | UPGRADE | FORCE} [@:] []
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
JSP compilation
$ cd $JTF_TOP/admin/scripts
$ ./ojspCompile.pl --compile
perl -x $JTF_TOP/admin/scripts/ojspCompile.pl --compile --quiet
perl -x $JTF_TOP/admin/scripts/ojspCompile.pl --compile --quiet -log
/tmp/ojspc_error.log 341205.1
cd $FND_TOP/patch/115/bin
$ ls -rlt ojsp*
-rwxr-xr-x 1 appldev2 dba 85192 Apr 24 06:23 ojspCompile.pl
$ perl -x ojspCompile.pl --compile --quiet
logfile set: $INST_TOP/logs/appl/rgf/ojsp/ojspc_error.log
For r12
export PATH=$PATH:$AU_TOP/forms/US:$AU_TOP/resource:$AU_TOP/resource/US
export FORMS60_PATH=$FORMS60_PATH:$AU_TOP/forms/US:$AU_TOP/resource:
$AU_TOP/resource/US
$AU_TOP/resource:$AU_TOP0/forms/F:$AU_TOP/resource/F
TO start dataInstaller
jre oracle.apps.per.DataInstall apps pwd thin dbt11.unix.flarock.com:1551:OABT
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 relink manually
adrelink.sh force=Y ranlib=Y "AD"
./adrelink.sh force=y ranlib=y "WPS WPCFSQ"
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
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)
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
# Take a backup of all the crucial configuration files and Generate and apply
AutoConfig configuration file:
-----------------------------------------------------------------------------------
-------------------------
cd /appsutil/bin
adconfig.sh contextfile= appspass=
c) Restore the $TNS_ADMIN/*.ora and $ORACLE_HOME/dbs/*.ora Immediately
d) Do a reload of the listener.ora to make sure other instances using
/var/opt/oracle/listener.ora do not get affected:
$ lsnrctl reload qa
$ lsnrctl reload sandbox
How to find JDBC thin driver that your iAS 1.0.2.2.2 is using ?
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)
---------
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());
}
}
-----------
Replace following parameters
1. with your database hostname or IP address
2. with your database port no.
3. with SID for your database
4. with your apps password
After changing save it with name JDBCVersion.java in your middle tier & execute
command
javac JDBCVersion.java
This will create class file in your workign directory. Include your current
directory into your classpath like
export CLASSPATH=$CLASSPATH:/
then execute
java JDBCVersion
you should see output like
JDBC driver version is 9.2.0.6.0
Which means you are using jdbc thin driver version 9.2.0.6.0.
Context Editor
Application /util/editcontext/
Database /appsutil/editcontext/
"To run the Context Editor:
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
start Apache in SSL mode as root (on web025) using following cmd:
. //APPSORA.env
$IAS_ORACLE_HOME/Apache/Apache/bin/httpdsctl startssl.
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”.
$ ./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
% 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.
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
This concurrent request basically sets the fnd_user.password_date to null for all
apps users. The users are thus prompted to change their passwords on next login
Query useful when user wants to get application wise responsibility list
SELECT (SELECT application_short_name
FROM fnd_application fa
WHERE fa.application_id = frt.application_id) application,
frt.responsibility_id, frt.responsibility_name
FROM apps.fnd_responsibility_tl frt;
SET serveroutput ON
DECLARE
l_appl_short_name fnd_application.application_short_name%TYPE;
l_resp_key fnd_responsibility.responsibility_key%TYPE;
BEGIN
SAVEPOINT create_user;
SELECT application_short_name
,responsibility_key
INTO l_appl_short_name
,l_resp_key
FROM fnd_responsibility_vl resp
,fnd_application app
WHERE app.application_id = resp.application_id
AND responsibility_name = 'System Administrator';
DBMS_OUTPUT.put_line('Adding Responsibility...'||CHR(10));
COMMIT;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line(SUBSTR(SQLERRM,1,200));
ROLLBACK TO create_user;
END;
/
####### Script to create LENOVO User ###################
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, recommanded 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.