Search This Blog

Wednesday, October 3, 2012

WAS error while installing UPK Professional Release 11.1

Hello Everybody,

While starting the User Productivity Kit Professional Release 11.1 installtion on Windows 2003 R2 Server with SP2 the most common error comes is:-








To resolve the issue we nned to install IIS on Windows 2003. Following are the steps:-
 
  1. Click Start, point to Control Panel, and then click Add or Remove Programs.
  2. In Add or Remove Programs, click Add/Remove Windows Components.
  3. In the Windows Components Wizard, under Components, select Application Server.
  4. After the wizard completes the installation, click Finish.
  5. Click Next.
 
NOTE:- For thus you need Windows Server 2003 CD
 
After that you can continue with the UPK Server installation.
 

Monday, September 17, 2012

R12 installation 64 bit on OEL 5 update 5(From Scratch to END)


1. Download R12 64 bit software from

https://edelivery.oracle.com (create your account if you using this site first time).
Select product E-business suite on 64 Bit.

Oracle E-Business Suite Release 12.1.1 Media Pack for Linux x86-64-bit ; download first 39 cd. and unzip them on the host where you want to perform the installation.


2. Set Up Stage Area Directory

$ cd /u01
$ mkdir StageR12

3. Unzip the Files


  • $ cd /u01/download

  • $ unzip -d /u01/StageR12 <ZipFile>


  • Prerequisites before Starting Installation:-

    a. Make sure these package has been installed manually:

    openmotif21-2.1.30-11.EL5.i386
    xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386

    These two rpm can be download from here:
    http://oss.oracle.com/projects/compat-oracle/files/Enterprise_Linux/
    For Update 1 or 2:
    binutils-2.17.50.0.6-6.0.1.x86_642

    For Update 3:
    binutils-2.17.50.0.6-9.0.1.x86_642

    For Update 4 (5.4) or higher, see workaround listed below in the 'After Installing or Upgrading' section.
    The following packages must be installed from the Oracle Linux 5 or RHEL 5 distribution media:
    gcc-4.1.2-14.el5.x86_64
    gcc-c++-4.1.2-14.el5.x86_64
    glibc-2.5-18.i686 (32-bit)
    glibc-2.5-18.x86_64
    glibc-common-2.5-18.x86_64
    glibc-devel-2.5-18.i386 (32-bit)
    glibc-devel-2.5-18.x86_64
    libgcc-4.1.2-14.el5.i386
    libgcc-4.1.2-14.el5.x86_64
    libstdc++-devel-4.1.2-14.el5.i386
    libstdc++-devel-4.1.2-14.el5.x86_64
    libstdc++-4.1.2-14.el5.i386
    libstdc++-4.1.2-14.el5.x86_64
    make-3.81-1.1.x86_64
    gdbm-1.8.0-26.2.1.i386
    gdbm-1.8.0-26.2.1.x86_64
    libXp-1.0.0-8.1.el5.i386
    libXp-1.0.0-8.1.el5.x86_64
    libaio-0.3.106-3.2.i386
    libaio-0.3.106-3.2.x86_64
    libgomp-4.1.2-14.el5.x86_64
    sysstat-7.0.0-3.el5.x86_64
    util-linux-2.13-0.45.el5.x86_64
    compat-libstdc++-296-2.96-138.i386
    compat-libstdc++-33-3.2.3-61.i386



    b. Kernel Settings
    Edit the /etc/sysctl.conf
    Parameter Value
    kernel.semmsl 256*
    kernel.semmns 32000*
    kernel.semopm 100*
    kernel.semmni 142*
    kernel.shmall 2097152
    kernel.shmmax Half the size of the physical memory (in bytes), and at least 2147483648
    kernel.shmmni 4096
    kernel.msgmax 8192
    kernel.msgmnb 65535
    kernel.msgmni 2878
    fs.file-max 65536
    net.ipv4.ip_local_port_range 10000 65000**
    net.core.rmem_default
    262144
    net.core.rmem_max 262144
    net.core.wmem_default 262144
    net.core.wmem_max 262144


    c. Verify that the /etc/hosts
    There should be information of hostname with IP address.


    d. Modifying the Number of Open File Descriptors
    Edit /etc/security/limits.conf
    *
    hard nofile 65535
    * soft nofile 4096
    * hard nproc 16384
    * soft nproc 2047

    e. OS Library Patch for Oracle HTTP Server (on Oracle Linux 5 and RHEL 5 only)
    Download and apply the patch 6078836 from My Oracle Support to fix an issue with the Oracle HTTP Server (missing libdb.so.2) bundled


    Create User & Group:-

    a) Create group dba and user oracle & .

    # groupadd dba
    #useradd -g dba oracle




    b) Create directory

    # mkdir -p /d01/oracle
    # chown -R oracle:dba /d01/oracle
    # chmod -R 775 /d01/oracle

    INSTALLATION PROCESS:-

    a. Login as applmgr and change directory to /stage/StageR12/StartCD/Disk1/rapidwiz
    b. Run Rapidwiz ...Type './rapidwiz' and press Enter
    c.  A screen appears which takes you through the installation steps .....Click Next on first 3 screens.
    d. Enter the CSI number, Metalink account and country and click Next else Ignore that.
    e. Choose create new configuration and Click Next
    f. Choose a port pool and Click Next
    g. Choose Database type Vision/fresh, Specify a SID,verify host and domain.....
    Give the username as applmgr and group as dba and specify the directory as /oraDB and Click Next
    h. Select Suite Licensing and Click Next
    i. Click Next on the Next 2 screens to accept license products and country specific functionalities.
    j. Choose Database character set as UTF8 and click Next
    k. Verify the host,domain and specify the base directory as /oraAPP and instance directory as /oraAPP/inst and Click Next
    l. Click Next ...The rapidwiz verifies and validates the system configuration and notifies if there are any errors...All the checks have to return a GREEN
    tick mark if passed. Correct the errors if there are any RED cross marks and restart the rapidwiz.
    m. Click Next and then Yes on the next screen to start the installation .
    n. Once the installation is finished it performs post installation checks and notifies if there are any errors. It should return all GREEN marks if successfully installed
    o. Click on Finish and that Ends the Installation Steps

    Common Error after Installation:-

    a) rw-50015 error - HTTP is not responding



    ln -s /usr/lib/libgdbm.so /usr/lib/libdb.so.2

    but in my case it just created a broken link.

    I had to use this instead:
    ln -s /usr/lib/libgdbm.so.2 /usr/lib/libdb.so.2

    Restart the Application and database server.

    Start rapid installation again with $rapidwiz -restart
     
     

    Tuesday, August 28, 2012

    How to Create Readonly User (for specific Schema) in Oracle Database

    1) create user bolinf_readonly identified by readonly;

    2) select username from dba_users
        where username like '%BOLINF%';

    3) grant create session to BOLINF_READONLY

    4) grant select any table to BOLINF_READONLY

    5) create or replace trigger log_on_after_bolinf
        after logon ON BOLINF_READONLY.SCHEMA
        BEGIN
        EXECUTE IMMEDIATE 'alter session set CURRENT_SCHEMA = BOLINF';
        END;

    Enjoy. . . . .
    :) 

    Thursday, July 19, 2012

    Login page error: 404 - The url /OA_HTML/AppsLogin not found

    This blog speaks about the Login Page Issue on R12.1.1 instance.

    Suddenly the login page was throwing an error - 404 /OA_HTML/AppsLogin was not found on the server

    The access_log shows no errors. error.log from $LOG_HOME/ora/10.1.3/Apache shows

    [Tue Jan 18 11:27:51 2011] [error] [client 123.238.255.152] [ecid: 1295330271:127.0.0.1:10897:0:2,0] File does not exist: /oracle/CLON/inst/apps/CLON_obaserver/portal/OA_HTML/AppsLogin
    [Tue Jan 18 11:27:54 2011] [error] [client 123.238.255.152] [ecid: 1295330274:127.0.0.1:10897:0:3,0] File does not exist: /oracle/CLON/inst/apps/CLON_obaserver/portal/OA_HTML/AppsLogin
    [Tue Jan 18 11:30:10 2011] [error] [client 123.238.255.152] [ecid: 1295330410:127.0.0.1:10899:0:2,0] File does not exist: /oracle/CLON/inst/apps/CLON_obaserver/portal/OA_HTML/AppsLogin


    I recreated the jar files using adadmin

    and compiled the jsp using

    cd $FND_TOP/patch/115/bin
    perl ojspCompile.pl --compile --flush -p 20 -log /tmp/ojspc_error2.log
    Nothing worked out.

    Fix:
    This problem occurred because wsrp_service.wsdl was owned by root but the services were being started by applmgr.

    Ensure that the file
    $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/html/server-wsdl/wsrp_service.wsdl

    it shows it is owned by root. Somebody started the services of Apps as root user.

    Changed the owner of the file to Apps Owner.

    Restarted the service.

    Wednesday, April 25, 2012

    Oracle Application Object Library (FND): Active Users Data Collection


    1. Login to Oracle E-Business Suite
    2. Select the responsibility "Oracle Diagnostics Tool"
    3. Select application "Oracle Application Object Library" from the "Application" list of values
    4. Click the "Advanced" tab
    5. Scroll down to group "Data Collection"
    6. Select test name "Active Users"
    7. Input Parameters (* required)

    Responsibility Id (LOV) *

    1. Output contains

    Product Installation Status and Patchset Level

    Parameters

    Key Profile Options

    Self Service Web Application Users

    Forms-Based Products Users

    Concurrent Programs Users

    References


    Thursday, April 12, 2012

    Find SID from Concurrent Program Request ID

    SELECT sid
    FROM v$session
    WHERE paddr LIKE
    (SELECT addr
    FROM v$process
    WHERE spid =
    (SELECT oracle_process_id
    FROM fnd_concurrent_requests
    WHERE request_id = TO_NUMBER(<your request id>)
    )
    );

    Friday, March 23, 2012

    ORA-04063: package body "APPS.AP_ACCTG_DATA_FIX_PKG" has errors

    Symptoms

    After applying GDF patch 11787050:R12.AP.B or any other patch requiring undo accounting, running the script "ap_undo_acctg.sql" throws the below error:

    ERROR
    -----------------------
    ORA-04063: package body "APPS.AP_ACCTG_DATA_FIX_PKG" has errors
    ORA-06508: PL/SQL: could not find program unit being called:
    "APPS.AP_ACCTG_DATA_FIX_PKG"
    ORA-06512: at line 38

    When trying to compile "APPS.AP_ACCTG_DATA_FIX_PKG", following errors are shown:

    AP_ACCTG_DATA_FIX_PKG PLS-00394: wrong number of values in the INTO list of a FETCH statement

    Cause

    A technical dependency has been introduced between the
    files apacpays.pls, apacpayb.pls and apgdfalb.pls with the
    bugfix 9716573.

    Due to the technical dependency introduced, the AP_ACCTG_DATA_FIX_PKG does not compile when there's a descrepancy between the datafix package and other packages.
    Hence results in the package being invalid.

    This is explained in the below internal bug:
    Internal BUG 11772495 - RCA: REMOVING TECHNICAL DEP BETWEEN APACPAYB.PLS & APGDFALB.PLS

    Solution

    1. Download and review the readme and pre-requisites for Patch 11772495:R12.AP.B (to fix the package apacpayb.pls) and Patch.12582979:R12.AP.B (to upgrade the version of apgdfalb.pls).

    2. Ensure that you have taken a backup of your system before applying
    the recommended patch.

    3. Apply the patch in a test environment.
    4. Confirm the following file versions:
    ap patch/115/sql apacpayb.pls 120.12.12010000.28
    ap patch/115/sql apacpays.pls 120.6.12010000.10
    ap patch/115/sql apgdfalb.pls 120.1.12010000.39
    ap patch/115/sql apgdfals.pls 120.1.12010000.13
    You can use the commands like the following:
    strings -a $XX_TOP/filename |grep '$Header'

    5. Check if the AP_ACCTG_DATA_FIX_PKG is now valid and retest running the script.

    6. Migrate the solution as appropriate to other environments.

    Thursday, January 19, 2012

    Step by Step Create read only user in oracle

    Step to Create Read only User in Oracle

    create role read_only; --- Give new Role name


    Oracle Auditing is configured to use the Database Audit Trail, type the following command:

    grant select on DBA_AUDIT_TRAIL to read_only;

    create user gaurav identified by password; -- Create User



    Oracle Auditing is configured to use the XML Audit Trail, type the following command:



    grant select on V_$XML_AUDIT_TRAIL to gaurav;

    grant connect to gaurav;

    grant read_only to gaurav;

    SQL> spool table.sql


    SQL> SELECT 'GRANT SELECT ON APPS.' ||TABLE_NAME || ' TO read_only;' FROM DBA_TABLES WHERE OWNER='APPS';
    'GRANTSELECTONAPPS.'||TABLE_NAME||'TO read_only;'
    ----------------------------------------------------------------------
    GRANT SELECT ON APPS.HYA_PERSONAL_VAR TO read_only;
    GRANT SELECT ON APPS.HFM_ERRORLOG TO read_only;
    GRANT SELECT ON APPS.HSX_DATASOURCES TO read_only;

    'GRANTSELECTONAPPS.'||TABLE_NAME||'TO read_only;'
    ----------------------------------------------------------------------
    GRANT SELECT ON APPS.HSV_ACTIVITY_USERS TO read_only;

    GRANT SELECT ON APPS.HSV_ACTIVITY_SESSIONS TO read_only;
    GRANT SELECT ON APPS.HSV_USERS_ON_SYSTEM TO read_only;
    GRANT SELECT ON APPS.HSV_ACTIVITY_KILL_USERS TO read_only;

    GRANT SELECT ON APPS.HSV_ACTIVITY_NO_ACCESS TO read_only;

    8145 rows selected.

    SQL> SELECT 'GRANT SELECT ON APPS.' ||VIEW_NAME || ' TO read_only;' FROM DBA_VIEWS WHERE OWNER='APPS';

    no rows selected

    SQL> spool off


    SQL>@table.sql


    Creating Trigger:-

    create or replace trigger log_on_after_gaurav
    after logon ON gaurav.SCHEMA
    BEGIN
    EXECUTE IMMEDIATE 'alter session set CURRENT_SCHEMA = APPS';
    END;
    /


    It's Done. . . .