Quick References 22032016
Quick References 22032016
tar__________________________________________________________________________________________3
Error________________________________________________________________________________________3
problem to get jbo_03_01.dtd_____________________________________________________________________3
Decompiling Java class file using jad_______________________________________________________________3
Error Solving_______________________________________________________________________________4
What does the Application Technology include ?___________________________________________________4
XML-20108: (Fatal Error) Start of root element expected.______________________________________________4
Setup –> Profile Options_________________________________________________________________5
Database_________________________________________________________________________6
Recompile Database Objects______________________________________________________________6
1. From Database Tier___________________________________________________________________________6
2. From application tier (using adadmin)____________________________________________________________6
3. From SQL (Individual objects)__________________________________________________________________6
How to identify database port from front end?________________________________________________________7
Port__________________________________________________________________________________8
Single Query__________________________________________________________________________________8
Scanning a range of ports________________________________________________________________________8
How to find the TNS details from front end?_________________________________________________9
FORMS_________________________________________________________________________11
How to compile Forms in 11i and R12_____________________________________________________________11
APPS___________________________________________________________________________12
How to Make Help Diagnostics Examine be Password Protected OR Not?________________________________12
How to create dbc file__________________________________________________________________________12
AUTOCONIG________________________________________________________________________________13
How to know the DBC file being accessed?_________________________________________________________14
R 12.1.3 How to Clear Cache, Bounce Apache___________________________________________15
HOWTO - CLEAR CACHE________________________________________________________________15
HOWTO - CLEAR Browser Cache__________________________________________________________16
HOWTO - RESTART APACHE____________________________________________________________16
To bounce the OC4J container there is a specific script:__________________________________________18
For 11i users : How To Clear Server Cache and Bounce Apache (Web Server)?____________________________20
11i OU Context setting__________________________________________________________________20
PATCHES AND BUGS_________________________________________________________________21
MS DOS_________________________________________________________________________25
SET COMMAND_____________________________________________________________________________25
UNIX___________________________________________________________________________26
How to check number of forms users at any time?____________________________________________________26
Find command_______________________________________________________________________________26
TKPROF:___________________________________________________________________________________26
PL/SQL Sample Codes_____________________________________________________________28
Update______________________________________________________________________________________28
Purchasing___________________________________________________________________________________28
Inventory____________________________________________________________________________________29
Internal requisition and Sales Orders:______________________________________________________________29
Organizational Queries:________________________________________________________________________29
Relation between Ledger , Legal entity, Operating Unit information in Oracle Apps R12_____________________30
HRMS______________________________________________________________________________________31
1
To Know Scheduled concurrent programs__________________________________________________________31
Receiving Tables______________________________________________________________________________32
Purchasing______________________________________________________________________33
Retroactive dates problem_______________________________________________________________________33
Purchase Order information from General Ledger____________________________________________________33
ASN Queries:-________________________________________________________________________________33
What happens when we submit ASN from portal.__________________________________________________34
Supplier User Queries:_________________________________________________________________________34
ENGLISH_______________________________________________________________________43
Security notes____________________________________________________________________43
Create Custom Top________________________________________________________________45
Run Commands___________________________________________________________________62
SQL loader_______________________________________________________________________62
Reset system password_____________________________________________________________62
To know the version of Linux____________________________________________________________________64
[appl123@bb02 ~]$ cat /etc/*-release_____________________________________________________64
Red Hat Enterprise Linux Server release 5.4 (Tikanga)_____________________________________64
[appl123@bb02 ~]$_______________________________________________________________________64
Useful SQL Queries_______________________________________________________________64
Applet/JRE problem in R12__________________________________________________________70
2
JAVA
tar
Create the tar file using command below
tar -cvf xxEmailPersonalize.tar ./oracle/*
This file xxEmailPersonalize.tar can be FTPed to the new environment,
Error
jar xvf bc4jmt.jar
Solution
add
<stub />
in the las leg.
D:\>jad DetailDataInputCO.class
Parsing DetailDataInputCO.class... Generating DetailDataInputCO.jad
Error Solving
Exception Details.
3
oracle.apps.fnd.framework.OAException: Application: FND, Message Name:
FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-
06550: line 1, column 39:
PLS-00103: Encountered the symbol "?" when expecting one of the following:
fetches 2 records
Error: oracle.apps.icx.por.req.server.RequisitionAM: Application Module
oracle.apps.icx.por.req.server.RequisitionAM has an invalid View Instance
OpenWorklistVO.
add
<stub />
in the las leg.
4
– Required to migrate personalizations
– Set this profile option to a tmp directory with open (777) permissions
• FND:OA:Enable Defaults
– Allows defaulting through personalizations to take place
5
Database
Recompile Database Objects
Check for invalid database objects and recompile if necessary. Invalid objects
may cause the load to fail. Contact your System Administrator for more
information.
SQL> @ advrfapp.sql
6
How to identify database port from front end?
System administrator Autoconfig
7
Port
Single Query
C:\PortQryV2>portqry -n estudiodell07.oracle.co.uk -e 1523
8
portqry -n 172.28.10.231 -p tcp -r 1521:1550
APPS_JDBC_URL
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)
(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=db01.lntinfotech.com)(PORT=1525)))
(CONNECT_DATA=(SID=VISR12)))
9
AD_APPS_JDBC_URL
(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)
(ADDRESS=(PROTOCOL=tcp)(HOST=db01.lntinfotech.com)(PORT=1525)))
(CONNECT_DATA=(SID=VISR12)))
10
FORMS
11
APPS
How to Make Help Diagnostics Examine be Password Protected OR Not?
1. Login to Applications and choose the System Administrator responsibility.
2. Navigate to Profile System.
3. Search on %diagn%
4. Select 'Utilities: Diagnostics'.
5. Set this to 'No'.
6. Log out then log in to Applications.
7. To disable password protection set profile to 'Yes'.
What is GWYUID ?
GWYUID , stands for Gateway User ID and password. Usually like
APPLSYSPUB/PUB
12
AUTOCONIG
$ cd $INST_TOP/admin
$ ls
install log out scripts
$ cd sc*
$ ls
adalnctl.sh adcmctl.sh adformsrvctl.sh adopmnctl.sh adstrtal.sh gsmstart.sh javacache.log
mwactl.sh
adapcctl.sh adexecsql.pl adoacorectl.sh adpreclone.pl cmclean.sql ieo jtffmctl.sh
mwactlwrpr.sh
adautocfg.sh adformsctl.sh adoafmctl.sh adstpall.sh core java.sh msc sqlnet.log
$ adautocfg.sh
Enter the APPS user password:
13
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED
14
The DBC file being accessed provides, the full path of the dbc file (ie.,
$FND_SECURE or $INST_TOP/appl/fnd/12.0.0/.dbc). The expanded path will have
the hostname. That is the mid-tier we are connected to.
Clearing the _pages in R12 creates blank login page issue, as in R12 the jsp files
does not get compiled automatically.
15
Instead should use the following, which is safer:
For Firefox:
- go to menu Tools => 'Clear Private Data...' to clear the entire cache
or
- go to menu Tools => Options.
- Privacy Tab
- Within here there are two links to "Clear Recent History" and "Remove
Individual Cookies"
Checking status of OPMN managed Oracle HTTP Server (OHS) instance ...
16
Processes in Instance: VISR12_r01.r01.lntinfotech.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 30388 | Alive
OC4JGroup:default_group | OC4J:forms | 30317 | Alive
OC4JGroup:default_group | OC4J:oacore | 4021 | Alive
HTTP_Server | HTTP_Server | 29892 | Alive
$ adapcctl.sh stop
$ adapcctl.sh start
17
12/09/11-08:21:12 :: Removing gantt cache directory
12/09/11-08:21:12 :: Successfully removed the gantt cache
directory:/u01/applvis12/apps/apps_st/comn/webapps/oacore/html/cabo/images/cache/
gantt
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile
/u01/applvis12/inst/apps/VISR12_r01/logs/appl/admin/log/adapcctl.txt for more
information ..
$ adapcctl.sh status
In R12 the command to stop and start apache only takes action on Apache web
server and not on the OC4J container that executes the JVM.
$INST_TOP/admin/scripts/adoacorectl.sh
Therefore when making a modification to a JAVA class in R12 for the web
application, in order to have that change recognized, it is needed to bounce
OC4J using adoacorectl.sh script.
Bouncing oacore OC4J engine may also be needed if you make modifications to
system properties. Example for JTT based applications: jtt system properties.
$ pwd
$INST_TOP
18
/u01/applvis12/inst/apps/VISR12_r01/admin/scripts
[applvis12@R01 scripts]$ adoacorectl.sh stop
You are running adoacorectl.sh version 120.13
Stopping OPMN managed OACORE OC4J instance ...
adoacorectl.sh: exiting with status 0
adoacorectl.sh: check the logfile
/u01/applvis12/inst/apps/VISR12_r01/logs/appl/admin/log/adoacorectl.txt for
more information ...
$ adoacorectl.sh status
You are running adoacorectl.sh version 120.13
Checking status of OPMN managed OACORE OC4J instance ...
$ adoacorectl.sh status
You are running adoacorectl.sh version 120.13
Checking status of OPMN managed OACORE OC4J instance ...
Processes in Instance: VISR12_r01.r01.lntinfotech.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 30388 | Alive
OC4JGroup:default_group | OC4J:forms | 30317 | Alive
OC4JGroup:default_group | OC4J:oacore | 25362 | Alive
HTTP_Server | HTTP_Server | 23575 | Alive
adoacorectl.sh: exiting with status 0
19
adoacorectl.sh: check the logfile
/u01/applvis12/inst/apps/VISR12_r01/logs/appl/admin/log/adoacorectl.txt for
more information ...
$
For 11i users : How To Clear Server Cache and Bounce Apache (Web Server)?
(note:295484.1)
To clear HTML cache :
cd $COMMON_TOP/_pages
Direcetory is :
/global/oracle/your_sid/apps/apps_st/comn/_pages
20
PATCHES AND BUGS
select bug_number, to_char(creation_date,'DD-MON-RRRR HH:MM:SS')
DATE_APPLIED
from ad_bugs where bug_number in ('4658981')
BUG_NUMBER DATE_APPLIED
4658981 30-NOV-2007 12:11:02
select patch_level
from fnd_product_installations
where application_id = 200;
21
How To Add Responsibility to USER using pl/sql?
If you have the Apps Password, its quite easy to create a FND_USER for yourself
by using the API. I find this script very useful when development environment
gets cloned from Production (that is when i do not have FND_USER in
Production).
1. You will be allocated System Administrator by this script. Hence you can
assign whatever responsibilities that you desire latter, after logging in.
2. The password will be set to oracle
3. You need apps password to run this script. Alternately you need execute
permission on fnd_user_pkg from the user where this script will be run. If using
some other user, please use apps.fnd_user_pkg.createuser
4. You need a COMMIT. I have not included the commit within this script.
5. When running this script, you will be prompted to enter a user name.
Using the pl/sql you can add responsibility to any USER without having
Application System Administrator Rights.
SELECT FAV.APPLICATION_SHORT_NAME,
FAV.APPLICATION_NAME,FRV.RESPONSIBILITY_KEY, FRV.RESPONSIBILITY_NAME
FROM FND_APPLICATION_VL FAV, FND_RESPONSIBILITY_VL FRV
WHERE FRV.APPLICATION_ID=FAV.APPLICATION_ID
ORDER BY FRV.RESPONSIBILITY_NAME
BEGIN
fnd_user_pkg.addresp
(‘JILTIN’,‘AR’,‘RECEIVABLES_MANAGER’,‘STANDARD’,‘Add Responsibility to USER
using pl/sql’,SYSDATE,SYSDATE + 100);
COMMIT;
DBMS_OUTPUT.put_line (‘Responsibility Added Successfully’);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ( ‘ Responsibility is not added due to ‘” SQLCODE”
SUBSTR (SQLERRM, 1, 100));
ROLLBACK;
END;
Another sample script to add System Administrator
22
DECLARE
v_session_id INTEGER := userenv(’sessionid’);
v_user_name VARCHAR2(30) := upper(‘&Enter_User_Name’);
BEGIN
–Note, can be executed only when you have apps password.
– Call the procedure to Creaet FND User
fnd_user_pkg.createuser(x_user_name => v_user_name
,x_owner => ”
,x_unencrypted_password => ‘oracle’
,x_session_number => v_session_id
,x_start_date => SYSDATE – 10
,x_end_date => SYSDATE + 100
,x_last_logon_date => SYSDATE – 10
,x_description => ‘www.notesbit.com’
,x_password_date => SYSDATE – 10
,x_password_accesses_left => 10000
,x_password_lifespan_accesses => 10000
,x_password_lifespan_days => 10000
,x_employee_id => 30 /*Change this id by running below SQL*/
/*
SELECT person_id
,full_name
FROM per_all_people_f
WHERE upper(full_name) LIKE ‘%’ ” upper(’full_name’) ” ‘%’
GROUP BY person_id
,full_name
*/
23
‘&Responsibility_Key’,/*get from Query Below */
‘&Security_Group’, /* Most of cases it is ‘STANDARD’ so you can hard code
it */
‘&Description’, /* Any comments you want */
‘&Start_Date’, /* Sysdate From Today */
‘&End_Date’ ); /* Sysdate + 365 Rights for Next One Year*/
commit;
dbms_output.put_line(‘Responsibility Added Successfully’);
exception
when others then
dbms_output.put_line(‘ Responsibility is not added due to ‘ ” SQLCODE
” substr(SQLERRM, 1, 100));
Rollback;
end;
/
24
MS DOS
SET COMMAND
SET EXP_OBJECT=/oracle/apps/icx/lov/webui/ReqSupplierLovRN
ECHO %EXP_OBJECT %
ECHO %CLASSPATH%
25
UNIX
How to check number of forms users at any time?
Find command
1) cd $JAVA_TOP/oracle/apps/pos
2) find . * -print -exec strings {} \; | grep Header >>
/home/murthyg/FileVersions.txt
26
TKPROF:
cmd
c:\
ftp DETUX4.AAM.NET
lcd
bi
get
put
ls -l *APPSPERF*
ERP3:/home/murthyg>tkprof erp3_ora_14205_MARYHESSTHYS.trc
erp3_ora_14205_MARYHESSTHYS.prof
TKPROF: Release 9.2.0.5.0 - Production on Mon Feb 25 08:53:26 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERP3:/home/murthyg> ls
2266.tkp erp3_ora_2416_MARYHESSTHYS.trc
2266.trc erp3_ora_2633_MARYHESSTHYS.prof
SR7482.tkp erp3_ora_2633_MARYHESSTHYS.trc
debug.log murthyg.tkp
erp3_ora_14205_MARYHESSTHYS.prof murthyg.trc
erp3_ora_14205_MARYHESSTHYS.trc salman.tkp
erp3_ora_2416_MARYHESSTHYS.prof
ERP3:/home/murthyg>
27
PL/SQL Sample Codes
Update
update hr_all_organization_units
set date_to=To_date('11/22/2004','MM/DD/YYYY')
where organization_id=274
Purchasing
select * from po_headers_all where segment1='269679'
select * from mtl_system_items_b where segment1='A97L-0218-0239#320E-
201'
28
1121472
select * from po_line_locations_all where po_header_id=345689 and
PO_RELEASE_ID=1121472 and shipment_num='90'
Inventory
Organizational Queries:
BG
select * from hr_all_organization_units haou, hr_organization_information hoi
where haou.organization_id=hoi.organization_id
and org_information_context='Business Group Information'
LE
select * from hr_legal_entities where BUSINESS_GROUP_ID=202
OU
select * from hr_operating_units where BUSINESS_GROUP_ID=202
INV
29
select * from org_organization_definitions where BUSINESS_GROUP_ID=202
30
HRMS
Employee and User id :
select * from fnd_user where employee_id in (select person_id from per_people_f
where full_name ='BURNEY, LINDA C')
select * from per_people_f where PERSON_ID IN (select employee_id from
fnd_user WHERE USER_ID IN (69168384,25077))
31
AND cp.LANGUAGE = 'US'
AND fcr.release_class_id(+) = cr.release_class_id
AND fcr.application_id(+) = cr.release_class_app_id
AND fr.responsibility_id = cr.responsibility_id
AND cp.user_concurrent_program_name LIKE :user_concurrent_program_name
AND fu.user_name LIKE :user_name;
Receiving Tables
There are two (2) main tables associated with the Receiving Open Interface:
RCV_HEADERS_INTERFACE, which should contain one row per receipt number,
and RCV_TRANSACTIONS_INTERFACE, which may contain one or more
transactions per header.
How can you view the error messages, for any rows that failed to
import successfully?
32
Purchasing
Retroactive dates problem
select *
from po_line_locations_all
where po_header_id = 499199
and retroactive_date is not null
UPDATE po_line_locations_all
SET START_DATE='01-APR-2007'
WHERE PO_HEADER_ID=382685
AND LINE_lOCATION_ID iN (4926801,4926804,4926809,4926810,4926811) ;
commit;
ASN Queries:-
select * from RCV_HEADERS_INTERFACE where shipment_num='48488'
select * from po_interface_errors where REQUEST_ID= 46527200(Requiest id for
con. Program Receiving Transaction Processor)
select * from RCV_SHIPMENT_HEADERS where SHIPMENT_HEADER_ID=823860
RCV_SHIPMENT_HEADERS/RCV_SHIPMENT_LINES
select * from po_interface_errors where interface_TRANSACTION_ID in
(36770123,36770131,36770135)
33
select * from RCV_TRANSACTIONS_INTERFACE where
processing_request_id=49138113
and group_id=6371075
34
fndregistrationseo.assigned_user_name,
fndregistrationseo.registration_status,
fndregistrationseo.exists_in_fnd_user_flag,
fndregistrationseo.user_title, fndregistrationseo.first_name,
fndregistrationseo.middle_name, fndregistrationseo.last_name,
fndregistrationseo.email, fndregistrationseo.phone,
fndregistrationseo.phone_extension, fndregistrationseo.fax,
fndregistrationseo.language_code, fndregistrationseo.date_requested,
fndregistrationseo.last_update_date,
fndregistrationseo.last_updated_by, fndregistrationseo.created_by,
fndregistrationseo.creation_date, fndregistrationseo.last_update_login,
fndregdetsuppliername.registration_id AS registration_id1,
fndregdetsuppliername.application_id AS application_id1,
fndregdetsuppliername.registration_type AS registration_type1,
fndregdetsuppliername.field_name, fndregdetsuppliername.field_type,
fndregdetsuppliername.field_format,
fndregdetsuppliername.field_value_string,
fndregdetsuppliername.field_value_number,
fndregdetsuppliername.field_value_date,
fndregdetsuppliername.last_update_date AS last_update_date1,
fndregdetsuppliername.last_updated_by AS last_updated_by1,
fndregdetsuppliername.created_by AS created_by1,
fndregdetsuppliername.creation_date AS creation_date1,
fndregdetsuppliername.last_update_login AS last_update_login1,
fndregdetsuppliernum.registration_id AS registration_id2,
fndregdetsuppliernum.application_id AS application_id2,
fndregdetsuppliernum.registration_type AS registration_type2,
fndregdetsuppliernum.field_name AS field_name1,
fndregdetsuppliernum.field_type AS field_type1,
fndregdetsuppliernum.field_format AS field_format1,
fndregdetsuppliernum.field_value_string AS field_value_string1,
fndregdetsuppliernum.field_value_number AS field_value_number1,
fndregdetsuppliernum.field_value_date AS field_value_date1,
fndregdetsuppliernum.last_update_date AS last_update_date2,
fndregdetsuppliernum.last_updated_by AS last_updated_by2,
fndregdetsuppliernum.created_by AS created_by2,
fndregdetsuppliernum.creation_date AS creation_date2,
fndregdetsuppliernum.last_update_login AS last_update_login2,
fndregdetsourcing.registration_id AS registration_id3,
fndregdetsourcing.application_id AS application_id3,
fndregdetsourcing.registration_type AS registration_type3,
fndregdetsourcing.field_name AS field_name2,
fndregdetsourcing.field_type AS field_type2,
fndregdetsourcing.field_format AS field_format2,
fndregdetsourcing.field_value_string AS field_value_string2,
fndregdetsourcing.field_value_number AS field_value_number2,
fndregdetsourcing.field_value_date AS field_value_date2,
35
fndregdetsourcing.last_update_date AS last_update_date3,
fndregdetsourcing.last_updated_by AS last_updated_by3,
fndregdetsourcing.created_by AS created_by3,
fndregdetsourcing.creation_date AS creation_date3,
fndregdetsourcing.last_update_login AS last_update_login3,
fndregdetisp.registration_id AS registration_id4,
fndregdetisp.application_id AS application_id4,
fndregdetisp.registration_type AS registration_type4,
fndregdetisp.field_name AS field_name3,
fndregdetisp.field_type AS field_type3,
fndregdetisp.field_format AS field_format3,
fndregdetisp.field_value_string AS field_value_string3,
fndregdetisp.field_value_number AS field_value_number3,
fndregdetisp.field_value_date AS field_value_date3,
fndregdetisp.last_update_date AS last_update_date4,
fndregdetisp.last_updated_by AS last_updated_by4,
fndregdetisp.created_by AS created_by4,
fndregdetisp.creation_date AS creation_date4,
fndregdetisp.last_update_login AS last_update_login4,
fndregdetjobtitle.registration_id AS registration_id5,
fndregdetjobtitle.application_id AS application_id5,
fndregdetjobtitle.registration_type AS registration_type5,
fndregdetjobtitle.field_name AS field_name4,
fndregdetjobtitle.field_type AS field_type4,
fndregdetjobtitle.field_format AS field_format4,
fndregdetjobtitle.field_value_string AS field_value_string4,
fndregdetjobtitle.field_value_number AS field_value_number4,
fndregdetjobtitle.field_value_date AS field_value_date4,
fndregdetjobtitle.last_update_date AS last_update_date5,
fndregdetjobtitle.last_updated_by AS last_updated_by5,
fndregdetjobtitle.created_by AS created_by5,
fndregdetjobtitle.creation_date AS creation_date5,
fndregdetjobtitle.last_update_login AS last_update_login5,
fndregdetnote.registration_id AS registration_id6,
fndregdetnote.application_id AS application_id6,
fndregdetnote.registration_type AS registration_type6,
fndregdetnote.field_name AS field_name5,
fndregdetnote.field_type AS field_type5,
fndregdetnote.field_format AS field_format5,
fndregdetnote.field_value_string AS field_value_string5,
fndregdetnote.field_value_number AS field_value_number5,
fndregdetnote.field_value_date AS field_value_date5,
fndregdetnote.last_update_date AS last_update_date6,
fndregdetnote.last_updated_by AS last_updated_by6,
fndregdetnote.created_by AS created_by6,
fndregdetnote.creation_date AS creation_date6,
fndregdetnote.last_update_login AS last_update_login6,
36
fndregdetuseraccess.registration_id AS registration_id7,
fndregdetuseraccess.application_id AS application_id7,
fndregdetuseraccess.registration_type AS registration_type7,
fndregdetuseraccess.field_name AS field_name6,
fndregdetuseraccess.field_type AS field_type6,
fndregdetuseraccess.field_format AS field_format6,
fndregdetuseraccess.field_value_string AS field_value_string6,
fndregdetuseraccess.field_value_number AS field_value_number6,
fndregdetuseraccess.field_value_date AS field_value_date6,
fndregdetuseraccess.last_update_date AS last_update_date7,
fndregdetuseraccess.last_updated_by AS last_updated_by7,
fndregdetuseraccess.created_by AS created_by7,
fndregdetuseraccess.creation_date AS creation_date7,
fndregdetuseraccess.last_update_login AS last_update_login7,
fndregdetrestrictaccess.registration_id AS registration_id8,
fndregdetrestrictaccess.application_id AS application_id8,
fndregdetrestrictaccess.registration_type AS registration_type8,
fndregdetrestrictaccess.field_name AS field_name7,
fndregdetrestrictaccess.field_type AS field_type7,
fndregdetrestrictaccess.field_format AS field_format7,
fndregdetrestrictaccess.field_value_string AS field_value_string7,
fndregdetrestrictaccess.field_value_number AS field_value_number7,
fndregdetrestrictaccess.field_value_date AS field_value_date7,
fndregdetrestrictaccess.last_update_date AS last_update_date8,
fndregdetrestrictaccess.last_updated_by AS last_updated_by8,
fndregdetrestrictaccess.created_by AS created_by8,
fndregdetrestrictaccess.creation_date AS creation_date8,
fndregdetrestrictaccess.last_update_login AS last_update_login8,
fndregdetapproverid.registration_id AS registration_id9,
fndregdetapproverid.application_id AS application_id9,
fndregdetapproverid.registration_type AS registration_type9,
fndregdetapproverid.field_name AS field_name8,
fndregdetapproverid.field_type AS field_type8,
fndregdetapproverid.field_format AS field_format8,
fndregdetapproverid.field_value_string AS field_value_string8,
fndregdetapproverid.field_value_number AS field_value_number8,
fndregdetapproverid.field_value_date AS field_value_date8,
fndregdetapproverid.last_update_date AS last_update_date9,
fndregdetapproverid.last_updated_by AS last_updated_by9,
fndregdetapproverid.created_by AS created_by9,
fndregdetapproverid.creation_date AS creation_date9,
fndregdetapproverid.last_update_login AS last_update_login9,
fndregdetinvitedflag.registration_id AS registration_id10,
fndregdetinvitedflag.application_id AS application_id10,
fndregdetinvitedflag.registration_type AS registration_type10,
fndregdetinvitedflag.field_name AS field_name9,
fndregdetinvitedflag.field_type AS field_type9,
37
fndregdetinvitedflag.field_format AS field_format9,
fndregdetinvitedflag.field_value_string AS field_value_string9,
fndregdetinvitedflag.field_value_number AS field_value_number9,
fndregdetinvitedflag.field_value_date AS field_value_date9,
fndregdetinvitedflag.last_update_date AS last_update_date10,
fndregdetinvitedflag.last_updated_by AS last_updated_by10,
fndregdetinvitedflag.created_by AS created_by10,
fndregdetinvitedflag.creation_date AS creation_date10,
fndregdetinvitedflag.last_update_login AS last_update_login10,
fndregadvplanner.registration_id AS registration_id11,
fndregadvplanner.application_id AS application_id11,
fndregadvplanner.registration_type AS registration_type11,
fndregadvplanner.field_name AS field_name10,
fndregadvplanner.field_type AS field_type10,
fndregadvplanner.field_format AS field_format10,
fndregadvplanner.field_value_string AS field_value_string10,
fndregadvplanner.last_update_date AS last_update_date11,
fndregadvplanner.last_updated_by AS last_updated_by11,
fndregadvplanner.created_by AS created_by11,
fndregadvplanner.creation_date AS creation_date11,
fndregadvplanner.last_update_login AS last_update_login11,
osntpname.field_value_string AS osn_tp_name,
osnehubid.field_value_number AS osn_ehub_id,
osnrequestid.field_value_number AS osn_request_id,
osnrequestinternalid.field_value_number AS osn_request_internalid
FROM fnd_registrations fndregistrationseo,
fnd_registration_details fndregdetsuppliername,
fnd_registration_details fndregdetsuppliernum,
fnd_registration_details fndregdetsourcing,
fnd_registration_details fndregdetisp,
fnd_registration_details fndregdetjobtitle,
fnd_registration_details fndregdetnote,
fnd_registration_details fndregdetuseraccess,
fnd_registration_details fndregdetrestrictaccess,
fnd_registration_details fndregdetapproverid,
fnd_registration_details fndregdetinvitedflag,
fnd_registration_details fndregadvplanner,
fnd_registration_details osntpname,
fnd_registration_details osnehubid,
fnd_registration_details osnrequestid,
fnd_registration_details osnrequestinternalid
WHERE ( ( ( ( ( ( ( ( ( ( (fndregistrationseo.registration_id =
fndregdetsuppliername.registration_id
)
AND (fndregistrationseo.application_id =
fndregdetsuppliername.application_id
)
38
)
AND (fndregistrationseo.registration_type =
fndregdetsuppliername.registration_type
)
)
AND ( ( (fndregdetsuppliername.registration_id =
fndregdetsuppliernum.registration_id
)
AND (fndregdetsuppliername.application_id =
fndregdetsuppliernum.application_id
)
)
AND (fndregdetsuppliername.registration_type =
fndregdetsuppliernum.registration_type
)
)
)
AND ( ( (fndregdetsuppliernum.registration_id =
fndregdetsourcing.registration_id
)
AND (fndregdetsuppliernum.application_id =
fndregdetsourcing.application_id
)
)
AND (fndregdetsuppliernum.registration_type =
fndregdetsourcing.registration_type
)
)
)
AND ( ( (fndregdetsourcing.registration_id =
fndregdetisp.registration_id
)
AND (fndregdetsourcing.application_id =
fndregdetisp.application_id
)
)
AND (fndregdetsourcing.registration_type =
fndregdetisp.registration_type
)
)
)
AND ( ( (fndregdetisp.registration_id =
fndregdetjobtitle.registration_id
)
AND (fndregdetisp.application_id =
fndregdetjobtitle.application_id
)
39
)
AND (fndregdetisp.registration_type =
fndregdetjobtitle.registration_type
)
)
)
AND ( ( (fndregdetjobtitle.registration_id =
fndregdetnote.registration_id
)
AND (fndregdetjobtitle.application_id =
fndregdetnote.application_id
)
)
AND (fndregdetjobtitle.registration_type =
fndregdetnote.registration_type
)
)
)
AND ( ( (fndregdetnote.registration_id =
fndregdetuseraccess.registration_id
)
AND (fndregdetnote.application_id =
fndregdetuseraccess.application_id
)
)
AND (fndregdetnote.registration_type =
fndregdetuseraccess.registration_type
)
)
)
AND ( ( (fndregdetuseraccess.registration_id =
fndregdetrestrictaccess.registration_id
)
AND (fndregdetuseraccess.application_id =
fndregdetrestrictaccess.application_id
)
)
AND (fndregdetuseraccess.registration_type =
fndregdetrestrictaccess.registration_type
)
)
)
AND ( ( (fndregdetrestrictaccess.registration_id =
fndregdetapproverid.registration_id
)
AND (fndregdetrestrictaccess.application_id =
fndregdetapproverid.application_id
40
)
)
AND (fndregdetrestrictaccess.registration_type =
fndregdetapproverid.registration_type
)
)
)
AND ( ( (fndregdetapproverid.registration_id =
fndregdetinvitedflag.registration_id
)
AND (fndregdetapproverid.application_id =
fndregdetinvitedflag.application_id
)
)
AND (fndregdetapproverid.registration_type =
fndregdetinvitedflag.registration_type
)
)
AND ( fndregadvplanner.registration_id(+) =
fndregistrationseo.registration_id
AND fndregadvplanner.application_id(+) =
fndregistrationseo.application_id
AND fndregadvplanner.registration_type(+) =
fndregistrationseo.registration_type
)
AND ( osntpname.registration_id(+) = fndregistrationseo.registration_id
AND osntpname.application_id(+) = fndregistrationseo.application_id
AND osntpname.registration_type(+) =
fndregistrationseo.registration_type
)
AND ( osnehubid.registration_id(+) = fndregistrationseo.registration_id
AND osnehubid.application_id(+) = fndregistrationseo.application_id
AND osnehubid.registration_type(+) =
fndregistrationseo.registration_type
)
AND ( osnrequestid.registration_id(+) =
fndregistrationseo.registration_id
AND osnrequestid.application_id(+) = fndregistrationseo.application_id
AND osnrequestid.registration_type(+) =
fndregistrationseo.registration_type
)
AND ( osnrequestinternalid.registration_id(+) =
fndregistrationseo.registration_id
AND osnrequestinternalid.application_id(+) =
fndregistrationseo.application_id
AND osnrequestinternalid.registration_type(+) =
fndregistrationseo.registration_type
41
)
AND fndregistrationseo.application_id = 177
AND fndregdetsuppliername.field_name = 'Supplier Name'
AND fndregdetsuppliernum.field_name = 'Supplier Number'
AND fndregdetsourcing.field_name = 'Sourcing'
AND fndregdetisp.field_name = 'ISP'
AND fndregdetjobtitle.field_name = 'Job Title'
AND fndregdetnote.field_name = 'Note'
AND fndregdetuseraccess.field_name = 'User Access'
AND fndregdetrestrictaccess.field_name = 'Restrict Access'
AND fndregdetapproverid.field_name = 'Approver ID'
AND fndregdetinvitedflag.field_name = 'Invited Flag'
AND fndregadvplanner.field_name(+) = 'CollaborativePlanning'
AND osntpname.field_name(+) = 'OSN TP Name'
AND osnehubid.field_name(+) = 'OSN EHub ID'
AND osnrequestid.field_name(+) = 'OSN Request ID'
AND osnrequestinternalid.field_name(+) = 'OSN Request InternalID'
--and Upper(REQUESTED_USER_NAME)='[email protected]'
-- and Upper(EMAIL)='[email protected]'
and Upper( fndregdetsuppliername.field_value_string)='PTI ASSEMBLY AND
MACHINING LLC'
42
ENGLISH
please let me know for any issues.
Theses workshops were conducted with the objective of proving that a Project
Trial Balance can be generated without using a Project Segment in the COA.
********************
This has been a week full of great memories and emotions as I began transitioning and packing. As most of
you
know, this is my last week at AAM and EDS. I have taken the Early Retirement Offer, and will be moving on.
I sincerely appreciate all the support you have provided me over the years and the hard work which has made
all
of us successful. It has been a pleasure working with each and every one of you.
I will treasure the memories I have from working here during the last ten years. Keep up the good work and
enjoy
being part of a great Team!
Keep me in mind for any future AAM/ERP reunions.
My personal e-mail address is ……………. for future reference.
*******************
Security notes
Basingstoke notes
$ cd ../..
$ ls
admin dbab2i dbab8i interface misc ood_repository root sys
autofs dbab3i dev lib mnt opt sbin tmp
bin dbab6i etc lib64 oem proc selinux usr
boot dbab7i home media ohsadmin ptsadmin srv var
$ pbrun impanalyst password-manager dbab3i
CREATE
OR REPLACE PACKAGE get_pwd AS FUNCTION decrypt ( KEY IN VARCHAR2 ,VALUE IN
VARCHAR2 ) RETURN VARCHAR2;
END get_pwd;
CREATE OR REPLACE
PACKAGE BODY get_pwd
AS
FUNCTION decrypt(
KEY IN VARCHAR2 ,
VALUE IN VARCHAR2 )
RETURN VARCHAR2
43
AS
LANGUAGE JAVA NAME
'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,j
ava.lang.String) return java.lang.String';
END get_pwd;
/
SELECT
(SELECT get_pwd.decrypt (UPPER (
(SELECT fnd_vault.get('FND', 'GUEST_USER_PWD') FROM dual
)), usertable.encrypted_foundation_password)
FROM DUAL
) AS apps_password
FROM fnd_user usertable
WHERE usertable.user_name LIKE UPPER (
(SELECT SUBSTR (fnd_vault.get('FND', 'GUEST_USER_PWD') ,1 , INSTR
(fnd_vault.get('FND', 'GUEST_USER_PWD'), '/') - 1 )
FROM DUAL
))
SELECT usertable.user_name ,
(SELECT get_pwd.decrypt (UPPER (
(SELECT
(SELECT get_pwd.decrypt (UPPER (
(SELECT UPPER (fnd_vault.get('FND', 'GUEST_USER_PWD')) FROM DUAL
)), usertable.encrypted_foundation_password)
FROM DUAL
) AS apps_password
FROM fnd_user usertable
WHERE usertable.user_name LIKE UPPER (
(SELECT SUBSTR (fnd_vault.get('FND', 'GUEST_USER_PWD') ,1 , INSTR
(fnd_vault.get('FND', 'GUEST_USER_PWD'), '/') - 1 )
FROM DUAL
))
)) ,usertable.encrypted_user_password)
FROM DUAL
) AS encrypted_user_password
FROM fnd_user usertable
WHERE usertable.user_name LIKE UPPER ('BSTSKUMAR')
44
Create Custom Top
HOW TO INTEGRATE APPLICATIONS RELEASE R12 WITH CUSTOM
APPLICATIONS
Assumptions:
APPL_TOP: /d01/oracle/PROD/apps/apps_st/appl
Instance Name: PROD
Server Name: linux7
((((((((((((((((
login as: applvis12
[email protected]'s password:
Last login: Mon Jan 9 22:08:33 2012 from 172.29.18.0
[applvis12@R01 ~]$ cd $APPL_TOP
[applvis12@R01 appl]$ pwd
/u01/applvis12/apps/apps_st/appl
[applvis12@R01 appl]$ mkdir XXERP
mkdir XXERP/12.0.0
mkdir XXERP/12.0.0/admin
mkdir XXERP/12.0.0/admin/sql
mkdir XXERP/12.0.0/admin/odf
45
mkdir XXERP/12.0.0/sql
mkdir XXERP/12.0.0/bin
mkdir XXERP/12.0.0/reports
mkdir XXERP/12.0.0/reports/US
mkdir XXERP/12.0.0/forms
mkdir XXERP/12.0.0/forms/US
mkdir XXERP/12.0.0/lib
mkdir XXERP/12.0.0/out
mkdir XXERP/12.0.0/log
[applvis12@R01 appl]$ mkdir XXERP/12.0.0
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/admin
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/admin/sql
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/admin/odf
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/sql
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/bin
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/reports
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/reports/US
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/forms
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/forms/US
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/lib
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/out
[applvis12@R01 appl]$ mkdir XXERP/12.0.0/log
[applvis12@R01 appl]$ ls
ad ax cse ebi gl icx itg oke pos wms
admin az csf ec gma ieb izu oki pqh wps
ahl ben csi ecx gmd iec ja okl pqp wsh
ak bic csl edr gme iem je oks prp wsm
alr bil csm ego gmf ieo jg okx psa xdo
ame bim csp eng gmi ies jl ont psb xdp
ams bis csr eni gml ieu jmf opi psp xla
amv biv cua fa gmo iex jtf ota pv xle
amw bix cuf fem gmp igc jtm ozf qa xnb
ap bne cug ff gms igf lns pa qot xnp
APPSVISR12_r01.env bom cui fii gr igi mfg pay qp xtr
ar bsc cup flm hri igs mrp per qpr XXERP
as cct cus fnd hxc igw msc pft qrm zpb
asf ce cz fpa hxt imc msd pji rg zx
asg chv ddd frm ia inl mso pjm rlm
asl cln ddr fte ibc inv msr pmi rrs
asn cn dna ftp ibe ipa mst pn sht
aso crp dom fun ibp ipm mth po ssp
asp cs dpp fv ibu irc mwa poa vea
ast csc dt gcs ibw isc oe pom VISR12_r01.env
au csd eam ghr iby ita okc pon wip
[applvis12@R01 appl]$ cd XXERP
[applvis12@R01 XXERP]$ LS
-bash: LS: command not found
[applvis12@R01 XXERP]$ ls
12.0.0
[applvis12@R01 XXERP]$ cd 12.0.0
[applvis12@R01 12.0.0]$ ls
46
admin bin forms lib log out reports sql
[applvis12@R01 12.0.0]$ cd admin
[applvis12@R01 admin]$ ls
odf sql
[applvis12@R01 admin]$ cd ..
[applvis12@R01 12.0.0]$ cd reports
[applvis12@R01 reports]$ ls
US
[applvis12@R01 reports]$ cd .
[applvis12@R01 reports]$ cd forms
-bash: cd: forms: No such file or directory
[applvis12@R01 reports]$ ls
US
[applvis12@R01 reports]$ cd ..
[applvis12@R01 12.0.0]$ ls
admin bin forms lib log out reports sql
[applvis12@R01 12.0.0]$ cd reports
[applvis12@R01 reports]$ ls
US
[applvis12@R01 reports]$ cd US
[applvis12@R01 US]$ ls
[applvis12@R01 US]$ pwd
/u01/applvis12/apps/apps_st/appl/XXERP/12.0.0/reports/US
))))))))))))))))
cd $APPL_TOP
echo "XXERP_TOP=/d01/oracle/PROD/apps/apps_st/appl/XXERP/12.0.0"
>customPROD_linux7.env
echo "export XXERP_TOP " >> customPROD_linux7.env
((((((((((((((((((
echo "XXERP_TOP=/u01/applvis12/apps/apps_st/appl/XXERP/12.0.0" >customPROD_linux7.env
))))))))))))))))))
47
<XXERP_TOP oa_var="s_xxerptop" oa_type="PROD_TOP"
oa_enabled="FALSE">/u01/applvis12/apps/apps_st/appl/XXERP/12.0.0</XXERP_TOP>
(((((((((((((((((
$ cd $INST_TOP/appl/admin
$ ls
adovars_VISR12_r01.env ojspCompile.properties
oamextensions.xml txk_system_jazn_data_credentials.xml
ojspCompile.conf VISR12_r01.xml
vi VISR12_r01.xml
)))))))))))))))))
cd $INST_TOP/admin/install
sh adgentopfile.sh
((((((((((((((((((((((((((((((((((
Could not locate adgentopfil.sh. so run adaautocfg.sh
[applvis12@R01 scripts]$ pwd
/u01/applvis12/inst/apps/VISR12_r01/admin/scripts
[applvis12@R01 scripts]$ ls
adalnctl.sh adcmctl.sh adformsctl.sh adoafmctl.sh adstpall.sh ieo
L5799425.log msc
adapcctl.sh adexecsql.pl adformsrvctl.sh adopmnctl.sh adstrtal.sh java.sh
L5799426.log mwactl.sh
adautocfg.sh adforms-c4wsctl.sh adoacorectl.sh adpreclone.pl gsmstart.sh
jtffmctl.sh L5799433.log mwactlwrpr.sh
48
AutoConfig is configuring the Applications environment...
49
[applvis12@R01 scripts]$
))))))))))))))))))))))))))
(((((((((((((((((
select * from dba_data_files
Connect system/manager,
create tablespace XXERP datafile '/u01/oravis12/db/apps_st/data/XXERP01.dbf' size
500M;
tablespace created.
)))))))))))))))))
((((((((((((((((
In toad, databaseadministertablespace, you can see temp1 tablespace with
file type as temp file.
50
6) Register Oracle User
Navigate to Security-->Oracle-->Register
Database User Name = XXERP
Password = XXERP
Privilege = Enabled
Install Group = 0
Description = XXERP Custom Application User
51
8) Create custom request group
This will act as a placeholder for any custom reports we wish to make available
for the
Custom Responsibility (which is defined at a later stage)
Navigate to Security-->responsibility-->Request
Group = XXERP Request Group
Application = XXERP Custom
Code = XXERP
Description = XXERP Custom Requests
We will not define any requests to add to the group at this stage, but you can
add some
now if required.
52
9) Create custom menu
This will act as a placeholder for any menu items we wish to make available for
the
Custom Responsibility (which is defined at a later stage). We will create two
menus, one
for Core Applications and one for Self Service.
Navigate to Application-->Menu
Menu = XXERP_CUSTOM_MENU
User Menu Name = XXERP Custom Application
Menu Type =
Description = XXERP Custom Application Menu
Seq = 100
Prompt = View Requests
Submenu =
Function = View All Concurrent Requests
Description = View Requests
Seq = 110
Prompt = Run Requests
Submenu =
Function = Requests: Submit
Description = Submit Requests
53
10) Create new responsibility. Navigate to Security-->Responsibility-->Define
Responsibility Name = XXERP Custom
Application = XXERP Custom
Responsibility Key = XXERPCUSTOM
Description = XXERP Custom Responsibility
Available From = Oracle Applications
Data Group Name = XXERPGroup
Data Group Application = XXERP Custom
Menu = XXERP Custom Application
Request Group Name = XXERP Request Group
54
11) Add responsibility to user
Navigate to Security-->User-->Define
Add XXERP Custom responsibility to users as required.
(((((((((((((((((((
Connect XXERP/XXERP@visr12
55
table created.
connect as apps
select * from xxerp.devaraj
no rows selected
))))))))))))))))))))
)))))))))))))))))))
56
Application > Function (Add the form to a function)
57
Application > Menu (Attach the function to a menu)
Open new session, source environment file, and stop middle tier services, run
autoconfig
Open new session, source environment file, check for custom top in topfile.txt in
$APPL_TOP/admin, start the middle tier services.
(((((((((((((((
[applvis12@R01 scripts]$ cd $APPL_TOP/admin
[applvis12@R01 admin]$ pwd
58
/u01/applvis12/apps/apps_st/appl/admin
[applvis12@R01 admin]$ ls
adaiplnc.txt addb1020.sql adjborg2.txt admrctrg.txt adstats.sql applCS.txt applIW.txt applRU.txt
applZHT.txt
adalldefaults.txt addb1110_nt.sql adjborg_nt.txt admsc1010_nt.sql adsy1010_nt.sql appldemo.txt applJA.txt
applSF.txt cplex
adaprb.pls addb1110.sql adjborg.txt admsc1010.sql adsy1010.sql applDK.txt applKO.txt applSK.txt
file.drv
adaprs.pls adddlb.pls adjv1010_nt.sql admsc1020_nt.sql adsy1020_nt.sql applD.txt applLT.txt applSL.txt
javaVersionfile
adcert.txt adddls.pls adjv1010.sql admsc1020.sql adsy1020.sql applEL.txt applNL.txt applSQ.txt
log
adclutlb.pls addrpmrc.sql adjv1020_nt.sql admsc1110_nt.sql adsy1110_nt.sql applESA.txt applN.txt applS.txt
out
adclutls.pls adgrants_nt.sql adjv1020.sql admsc1110.sql adsy1110.sql applE.txt applora.txt applterr.txt
Preinstall_Codelevel_AD.txt
adcmpb.pls adgrants.sql adjv1110_nt.sql adovars.env adsysapp2.lst applFRC.txt applorau.txt applTH.txt
Preinstall_Codelevel_MP.txt
adcmps.pls adinstb.pls adjv1110.sql adpcpspb.pls adsysapp2.sql applF.txt applPL.txt appltop.cer
restart
adconfig.txt adinsts.pls adkeystore.dat adpcpsps.pls adsysapp.sql applHR.txt applprod.tmp applTR.txt
topfile.txt
adcstprd.txt adinvspb.pls adlinkbk.txt adplsexp.txt aducrsex.txt applHU.txt applprod.txt applUK.txt
VISR12
addb1010_nt.sql adinvsps.pls admdsys.sql adpltfrm.txt adUtilMapNew.txt applIN.txt applPTB.txt applUS.txt
VISR12_r01
addb1010.sql adjareas.txt admlsb.pls adprepdb.sql adUtilMap.txt applIS.txt applPT.txt applVN.txt
addb1020_nt.sql adjborg2_nt.txt admlss.pls adsign.txt applAR.txt applI.txt applRO.txt applZHS.txt
[applvis12@R01 admin]$
ftp topfile.txt, you can see following content:
ad /u01/applvis12/apps/apps_st/appl
fnd /u01/applvis12/apps/apps_st/appl
XXERP /u01/applvis12/apps/apps_st/appl
admin /u01/applvis12/apps/apps_st/appl
)))))))))))))))))
cd $ADMIN_SCRIPTS_HOME
sh adstpall.sh apps/apps
sh adautocfg.sh
sh adstrtal.sh apps/apps
cat $APPL_TOP/admin/topfile.txt
XXERP /d01/oracle/PROD/apps/apps_st/appl
Menu that is added to a particular responsibility is given to specific user
Security > User >
Connect as Ajay
59
Errors and Solution:
Solution
Restart the forms server
cd $ADMIN_SCRIPTS_HOME
60
sh adstpall.sh apps/apps
sh adstrtal.sh apps/apps
61
Run Commands
services.msc
SQL loader
sqlldr userid=apps/apps@vis control=SalesHeader.ctl log=SalesHeader.log rows=1
((((((((((((((((
SYS user details:
sqlplus / as sysdba
show user
sys
62
Enter password:
Connected.
SQL>
172.28.10.240
63
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -
Production
With the Partitioning, OLAP, Data Mining and Real Application
Testing options
Grant succeeded.
[appl123@bb02 ~]$
64
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 – Production
SQL> !date
Tablespace altered.
SQL>
65
Query to search Responsibility by Concurrent program name
66
a.responsibility_id(+) = b.responsibility_idAND a.responsibility_id = &resp_idAND
b.menu_id = c.menu_idAND b.menu_id = d.menu_idAND e.application_id =
f.application_idAND f.application_id = b.application_idAND a.LANGUAGE = 'US';
Query 3: Get User name and related assigned responsibilitiesSELECT distinct
u.user_id, u.user_name user_name,r.responsibility_name
responsiblity,a.application_name applicationFROM fnd_user
u,fnd_user_resp_groups g,fnd_application_tl a,fnd_responsibility_tl rWHERE
g.user_id(+) = u.user_idAND g.responsibility_application_id =
a.application_idAND a.application_id = r.application_idAND g.responsibility_id =
r.responsibility_idorder by 1;Query 4: Get Request Group associate with
Responsibility NameSELECT responsibility_name responsibility,
request_group_name,frg.descriptionFROM fnd_request_groups frg,
fnd_responsibility_vl frvWHERE frv.request_group_id =
frg.request_group_idORDER BY responsibility_name
SELECT responsibility_name ,
frg.request_group_name,fcpv.user_concurrent_program_name,
fcpv.descriptionFROM fnd_request_groups frg,fnd_request_group_units
frgu,fnd_concurrent_programs_vl fcpv,fnd_responsibility_vl frvWHERE
frgu.request_unit_type = ‘P’AND frgu.request_group_id =
frg.request_group_idAND frgu.request_unit_id = fcpv.concurrent_program_idAND
frv.request_group_id = frg.request_group_idORDER BY
responsibility_name;Query 8: SQL to view all requests who have attached to a
responsibilitySELECT responsibility_name ,
frg.request_group_name,fcpv.user_concurrent_program_name,
fcpv.descriptionFROM fnd_request_groups frg,fnd_request_group_units
frgu,fnd_concurrent_programs_vl fcpv,fnd_responsibility_vl frvWHERE
67
frgu.request_unit_type = ‘P’AND frgu.request_group_id =
frg.request_group_idAND frgu.request_unit_id = fcpv.concurrent_program_idAND
frv.request_group_id = frg.request_group_idORDER BY
responsibility_name;Query 9: SQL to view all types of request Application
wiseSELECT
fa.application_short_name,fcpv.user_concurrent_program_name,description,DEC
ODE (fcpv.execution_method_code,‘B’, ‘Request Set Stage Function’,‘Q’,
‘SQL*Plus’,‘H’, ‘Host’,‘L’, ‘SQL*Loader’,‘A’, ‘Spawned’,‘I’, ‘PL/SQL Stored
Procedure’,‘P’, ‘Oracle Reports’,‘S’, ‘Immediate’,fcpv.execution_method_code)
exe_method,output_file_type, program_type,
printer_name,minimum_width,minimum_length,
concurrent_program_name,concurrent_program_idFROM
fnd_concurrent_programs_vl fcpv, fnd_application faWHERE fcpv.application_id =
fa.application_idORDER BY descriptionQuery 10: SQL to view concurrent request
processing time, quite usefulSELECT f.request_id ,
pt.user_concurrent_program_name user_concurrent_program_name,
f.actual_start_date actual_start_date, f.actual_completion_date
actual_completion_date,floor(((f.actual_completion_date-
f.actual_start_date)*24*60*60)/3600)|| ‘ HOURS ‘ ||
floor((((f.actual_completion_date-f.actual_start_date)*24*60*60) -
floor(((f.actual_completion_date-f.actual_start_date)*24*60*60)/3600)*3600)/
60)|| ‘ MINUTES ‘ ||round((((f.actual_completion_date-
f.actual_start_date)*24*60*60) -floor(((f.actual_completion_date-
f.actual_start_date)*24*60*60)/3600)*3600 -(floor((((f.actual_completion_date-
f.actual_start_date)*24*60*60) -floor(((f.actual_completion_date-
f.actual_start_date)*24*60*60)/3600)*3600)/60)*60) ))|| ‘ SECS ‘
time_difference,DECODE(p.concurrent_program_name,’ALECDC’,p.concurrent_pr
ogram_name||’['||f.description||']‘,p.concurrent_program_name)
concurrent_program_name,
decode(f.phase_code,’R',’Running’,'C’,'Complete’,f.phase_code) Phase,
f.status_codeFROM apps.fnd_concurrent_programs p,
apps.fnd_concurrent_programs_tl pt, apps.fnd_concurrent_requests fWHERE
f.concurrent_program_id = p.concurrent_program_idand
f.program_application_id = p.application_idand f.concurrent_program_id =
pt.concurrent_program_idand f.program_application_id = pt.application_idAND
pt.language = USERENV(‘Lang’)and f.actual_start_date is not nullORDER by
f.actual_completion_date-f.actual_start_date desc;
68
10001,'Site',
10002,'Application',
10003,'Resp',
10004,'User') Option_Level,
decode(pov.level_id,
10001,'Site',
10002,appl.application_short_name,
10003,resp.responsibility_name,
10004,u.user_name) Level_Value,
nvl(pov.profile_option_value,'Is Null') Profile_option_Value
FROM
fnd_profile_option_values pov,
fnd_responsibility_tl resp,
fnd_application appl,
fnd_user u,
fnd_profile_options pro,
fnd_profile_options_tl pro1
WHERE
pro1.user_profile_option_name like ('%Ledger%')
and pro.profile_option_name = pro1.profile_option_name
and pro.profile_option_id = pov.profile_option_id
and resp.responsibility_name like '%General%Ledger%' /* comment this line if
you need to check profiles for all responsibilities */
and pov.level_value = resp.responsibility_id (+)
and pov.level_value = appl.application_id (+)
and pov.level_value = u.user_id (+)
order by 1,2;
69
fnd_user u,
fnd_profile_options pro,
fnd_profile_options_tl pro1
WHERE
pro.profile_option_name = pro1.profile_option_name
and pro.profile_option_id = pov.profile_option_id
and resp.responsibility_name like '%General%Ledger%'
and pov.level_value = resp.responsibility_id (+)
and pov.level_value = appl.application_id (+)
and pov.level_value = u.user_id (+)
order by 1,2;
70
Applet/JRE problem in R12
https://oinstall.wordpress.com/2013/10/02/how-to-open-oracle-apps-r12-forms-
in-internet-explorer-11-ie-11/
2) Navigate to Tools –> Internet options –> Security . Select internet and click on
Custom level. Scroll down till end of the options and change the option Enable
XSS filter to Disable.
This solution worked for me and I am able to open R12 forms in Internet Explorer
version 11.
71