Monday, July 8, 2013

Script for finding Oracle Applications 11i and R12 Modules and their Short Names

sql> Set Markup html on;
SQL> spool on
SQL> SELECT  FND.APPLICATION_ID,  APPLICATION_SHORT_NAME, PRODUCT_CODE, APPLICATION_NAME, FNDPI.STATUS
FROM FND_APPLICATION FND , FND_APPLICATION_TL FNDTL, FND_PRODUCT_INSTALLATIONS FNDPI WHERE FND.APPLICATION_ID=FNDTL.APPLICATION_ID
AND FNDPI.APPLICATION_ID=FND.APPLICATION_ID;

SQL>spool off


Monday, July 1, 2013

Ad Relink


AD Relink is a AD utility that is used to relink oracle Applications AD executables. The
other executables must be relinked using adadmin. In other words AD Relink is used
to regenerate an Oracle Applications executable. One notable feature of AD relink is
that it is not an executable like other Ad utilities. It is a shell script that uses the UNIX
'make' command.

Relinking may be required under various scenarios like an executable getting corrupt
or lost. Relinking is also recommended after cloning, upgrades and patching. But
mostly Auto Patch will take care of the relinking process at the end of the patching.

The following is the syntax for AD Relink

adrelink.sh force={y | n} [optionalargs]
adrelink force={y|n} [<optional args>] <targets> => to relink programs individually.

Or

adrelink force={y|n} [<optional args>] filelist=<file> => to relink many programs .
Here force option is used to specify whether to relink regardless of the status of the
library or object files.

Valid <optional arguments> are:
envfile=adsetenv.sh

Used only by the 'adsetup' script
link_debug={y|n}

Will we link executables with debug or not? Default is 'n'
backup_mode={none|all|file}

Default is 'file'. Meanings are:
- none: do not back up any executables
- all : back up all executables
- file: do what $APPL_TOP/admin/adlinkbk.txt

adrelink.sh path $AD_TOP/bin/
AD Relink Examples
To relink adpatch:
'adrelink.sh force=y "ad adpatch"'
To relink adpatch, adsplice, and adadmin:
'adrelink.sh force=y "ad adpatch" "ad adsplice" "ad adadmin"'
To relink all AD executables:
'adrelink.sh force=y "ad all"'

Please Note : To relink all executables for a non-AD product:Use the AD
Administration Utility, not adrelink.

If you we are relinking files on the Concurrent Processing Server then Shut down
the Concurrent Managers before relink operation.

If we are relinking files on the Forms Server then all Oracle applications users must
be logged off before relink operation.

Sunday, June 23, 2013

How to share folder using NFS in linux.

1. On Server
    If the folder is not existing, make directory like below.

$mkdir -p /VIS/backup

2. Check the rpms intalled for NFS services, if not installe the rpms required below.
[root@visap13 ~]# rpm -qa nfs*
nfs-utils-lib-1.0.8-7.6.el5
nfs-utils-1.0.9-50.el5
[root@visap13 ~]#
[root@visap13 ~]# rpm -qa portmap*
portmap-4.0-65.2.2.1
[root@visap13 ~]#
[root@visap13 ~]# rpm -qa xinetd*
xinetd-2.3.14-10.el5
[root@visap13 ~]#

3. edit the /etc/exports as below.
    /VIS/backup     192.168.1.1(rw,sync)
   Note: the ip should be client ip here.

4. Start portmap service.
[root@visap13 ~]# service portmap start
Starting portmap:                                          [  OK  ]

5. Restart NFS
[root@visap13 ~]# service nfs restart
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS quotas:                                  [FAILED]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]


On Client.

1. Make the directory for shared folder. 
[root@visap13 ~]#mkdir -p /VIS/backup
Note: In this case I am using the names of the folder as same, here we can give any name for the folders.

2. Change the owner of the folder.
[root@visap13 ~]#chown 777 /VIS/backup

3. Mount the folder.
[root@visap13 ~]# mount -t nfs 192.168.1.1:/VIS/backup/ /VIS/backup
[root@visap13 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             355G  299G   38G  89% /
/dev/sda1              99M   13M   82M  14% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
10.176.112.249:/VIS/backup/
                      896G  461G  390G  55% /VIS/backup
[root@visap13 ~]# cd /VIS/backup/

5. Edit /etc/fstab
    
For auto mount.

[root@visap13 ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0
### added for USB floppy Automount
/dev/sda                /mnt/floppy1            auto    noauto,owner, 0 0

10.176.112.249:/VIS/backup/ /VIS/backup         nfs     defaults  0 0
#10.176.112.249:/VIS/backup/ /VIS/backup         nfs     user,rw,noauto  0 0

For mount manually everytime when required.

[root@visap13 ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0
### added for USB floppy Automount
/dev/sda                /mnt/floppy1            auto    noauto,owner, 0 0

#192.168.1.1:/VIS/backup/ /VIS/backup         nfs     defaults  0 0
192.168.1.1:/VIS/backup/ /VIS/backup         nfs     user,rw,noauto  0 0

Wednesday, June 19, 2013

Script to check the Users who currently logged in to Oracle Applications in R12

SELECT DISTINCT icx.session_id,
                  icx.user_id,
                  fu.user_name,
                  fu.description
    FROM icx_sessions icx, fnd_user fu
   WHERE     disabled_flag != 'Y'
         AND icx.pseudo_flag = 'N'
         AND (last_connect +
              DECODE (fnd_profile.VALUE ('ICX_SESSION_TIMEOUT'),
                      NULL, limit_time,
                      0   , limit_time,
                      fnd_profile.VALUE ('ICX_SESSION_TIMEOUT')/60) / 24) > SYSDATE
         AND icx.counter < limit_connects
         AND icx.user_id = fu.user_id;

Sunday, June 16, 2013

Thursday, June 13, 2013

Configuring Audit trail in E-Business Suite R12

Configuring Audit:

Step 1 – Set AuditTrail Profile Option:

The System Profile Option AuditTrail:Activate must be set to Yes. Be sure to log out of the applications to activate the profile option in your session.

Step 2 – Select the Audit Installations

??As System Administrator, select Security -> AuditTrail -> Install.
??Check all the schemas for which auditing should be enabled. For example, if you want to audit FND_USERS, you would check APPLSYS since the FND_USERS table is in the APPLSYS schema.
??Save your selections.

Step 3 – Create a New Audit Group

??As System Administrator, select Security -> AuditTrail -> Groups.
??Create a new audit group by setting the Application Name to the application that owns the table (e.g., Application Object Library for APPLSYS),
     the Audit Group to a new name (e.g., My Audits), and Group State should be set to Enable Requested.
??Add the tables to be audited. Columns will be defined in the next step.
??Save the new audit group.

Step 4 – Define Table Columns to be Audited

For each table defined in the above step, define the columns to be audited using these steps –
??As System Administrator, select Security -> AuditTrail -> Tables.
??Query the table name.
??The primary key columns will always be saved. Add the columns that need to be audited. Do not ever add the following columns as user information is automatically added –
    Creation Date Created By Last Update Login Last Update Date Last Updated By
??Save the columns.

Step 5 – Run AuditTrail Update Program

Run the AuditTrail Update Tables program to activate the auditing. This program will create a shadow table for each audited table and create triggers on each audited column in the original table. The shadow table will have the same name as the audited table appended with “_A”. Two views will be created for each column with the names “_AC#” and “_AV#” where # is a sequential number.

Few key points for Auditing
–Auditing in Apps can be done on Row by Row basis or Individual Column of a table
–If you change any of your definitions for auditing, you must rerun Audit Trail Update Tables
Define Audit Table and Columns

After defining the audit groups and audit installations you can choose the tables and columns for which you wish to enable auditing. You can use the audit tables to do this.

Run the Audit Trail Update Tables Report
You must run a concurrent request Audit Trail Update Tables Report so that your audit trail definitions and the required shadow tables are created. This report is also responsible for building database triggers for your audit installations.

Disabling Auditing

You can disable auditing at anytime by changing the audit group state through the Audit Groups window to either Disable - Interrupt Audit, Disable - Prepare for Archive or Disable - Purge Table. You must run the Audit Trail Update Tables Report after making the selection.

Wednesday, June 12, 2013

Migration from jinitiator to jre 1.6.0_35 on E-Business Suite 11.5.10.2

Verify the below in the target instance.
========================================
interoperability patch 6863618
Download the JRE 1.6.0_35 Plug-in
Rename the JRE Native Plug-in
Developer 6i Patchset (6.0.8.28.0)
Developer 6i Patchset 19 (6.0.8.28.x) users must apply (14009893)
Additional Developer 6i Patchset 19 (6.0.8.28.x) interop patch(9935935)
Run the txkSetPlugin.sh Script
Verify plugin version



Final Plan
1. Download JRE 1.6.0_35 for windows 32/64bit
2. Rename the JRE native plug-in
a. goto $COMMON_TOP/util/jinitiator
b. take backup of the older j2se160x
c. rename the old j2se160x to j2se16035
3. Apply patch 14009893
   a. follow the readme file.
4. Apply patch 9935935
   a. follow the readme file.
5. Run txkSetPlugin.sh
   a. $FND_TOP/bin/txkSetPlugin.sh
      this script will update the values in context file and executes the autoconfig on midtier.
 s_sun_plugin_ver, s_sun_clsid
6. Verify plugin version
   a. login to the applications.
   b. launch forms if the java version update 1.6.35 is not found in the local desktop it will prompt for the plugin to install, click on the plugin to install.
   c. then u r good to use the forms using the latest jre.

References:
Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i [ID 290807.1]
Recommended Browsers for Oracle E-Business Suite 11i (Document 285218.1)
Upgrading Developer 6i with Oracle Applications 11i [ID 125767.1]