06 October 2017

REP-0004: Warning: Unable to open user preference file

All Concurrent request completed with below Error.

Error:

REP-0004: Warning: Unable to open user preference file.
REP-0069: Internal error
REP-57054: In-process job terminated:Finished successfully but output is voided

Solution :

I have Checked all necessary permission and access are given already.

Copy of the file prefs.ora in the directory  $ORACLE_HOME/tools/admin to $HOME

$ cp $ORACLE_HOME/tools/admin/prefs.ora $HOME/

Reference : 12: Request Logs Contain the Message "REP-0004: Warning: Unable to open user preference file" (Doc ID 1120529.1)

03 October 2017

ld: 0711-851 SEVERE ERROR: Output file: librw.so The file is in use and cannot be overwritten


Relink report executables failed with below error on AIX 6.1 X64
Error:

$ cd $ORACLE_HOME/reports/lib32
$ make -f ins_reports.mk install
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.a  > librwuso.exp
        rm -f rwsutil.o rwspid.o ;  /bin/ar x /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.a  rwsutil.o rwspid.o ;  (LD_OPTIONS="-zmultidefs";  ld -o /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.so -bM:SRE -bnoentry -bnolibpath  -bE:librwuso.exp rwsutil.o rwspid.o  -lm -lc -lm  -ldl /web03/oratest/apps/tech_st/10.1.2/lib32/libclntsh.a -lpthreads  -L/usr/lpp/X11/lib/R6 -L/usr/lpp/X11/lib/R6/Motif2.1 -lXm -lXt -lX11 -lm `cat /web03/oratest/apps/tech_st/10.1.2/lib32/sysliblist` /web03/oratest/apps/tech_st/10.1.2/lib32/libclntst10.a )
        rm -f zrhitem.o zrhcursor.o;  /bin/ar x /web03/oratest/apps/tech_st/10.1.2/lib32//librw.a zrhitem.o zrhcursor.o
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32/libmmcm.a > temp1.exp
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32/librw.a > temp2.exp
        cat temp1.exp temp2.exp > temp.exp
        sort -u temp.exp > librw.exp
        rm temp1.exp temp2.exp temp.exp
ld: 0711-851 SEVERE ERROR: Output file: /web03/oratest/apps/tech_st/10.1.2/lib32//librw.so
        The file is in use and cannot be overwritten.
make: 1254-004 The error code from the last command is 12.

Stop.
$
Solution:
$ su - root
root's Password:
/etc/profile[61]: q:  not found.
# /usr/sbin/slibclean
# exit
$ cd $ORACLE_HOME/reports/lib32
$ make -f ins_reports.mk install
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.a  > librwuso.exp
        rm -f rwsutil.o rwspid.o ;  /bin/ar x /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.a  rwsutil.o rwspid.o ;  (LD_OPTIONS="-zmultidefs";  ld -o /web03/oratest/apps/tech_st/10.1.2/lib32//librwu.so -bM:SRE -bnoentry -bnolibpath  -bE:librwuso.exp rwsutil.o rwspid.o  -lm -lc -lm  -ldl /web03/oratest/apps/tech_st/10.1.2/lib32/libclntsh.a -lpthreads  -L/usr/lpp/X11/lib/R6 -L/usr/lpp/X11/lib/R6/Motif2.1 -lXm -lXt -lX11 -lm `cat /web03/oratest/apps/tech_st/10.1.2/lib32/sysliblist` /web03/oratest/apps/tech_st/10.1.2/lib32/libclntst10.a )
        rm -f zrhitem.o zrhcursor.o;  /bin/ar x /web03/oratest/apps/tech_st/10.1.2/lib32//librw.a zrhitem.o zrhcursor.o
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32/libmmcm.a > temp1.exp
        /web03/oratest/apps/tech_st/10.1.2/bin/mkexp.sh /web03/oratest/apps/tech_st/10.1.2/lib32/librw.a > temp2.exp
        cat temp1.exp temp2.exp > temp.exp
        sort -u temp.exp > librw.exp
        rm temp1.exp temp2.exp temp.exp
ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-224 WARNING: Duplicate symbol: .memmove
ld: 0711-224 WARNING: Duplicate symbol: .lxsVldStr
ld: 0711-224 WARNING: Duplicate symbol: .kgesec4
ld: 0711-224 WARNING: Duplicate symbol: .kgesec3
ld: 0711-224 WARNING: Duplicate symbol: .kgesec2
ld: 0711-224 WARNING: Duplicate symbol: .kgesec1
ld: 0711-224 WARNING: Duplicate symbol: .kghalp
ld: 0711-224 WARNING: Duplicate symbol: .kglgob
ld: 0711-224 WARNING: Duplicate symbol: .kghgrw
ld: 0711-224 WARNING: Duplicate symbol: .kghalf
ld: 0711-224 WARNING: Duplicate symbol: .kghfrf
ld: 0711-224 WARNING: Duplicate symbol: .kghalo
ld: 0711-224 WARNING: Duplicate symbol: .kgesec0
ld: 0711-224 WARNING: Duplicate symbol: .kglgdn
ld: 0711-224 WARNING: Duplicate symbol: .kglhfr
ld: 0711-224 WARNING: Duplicate symbol: .kglhin
ld: 0711-224 WARNING: Duplicate symbol: .kglini
ld: 0711-224 WARNING: Duplicate symbol: .kglfls
ld: 0711-224 WARNING: Duplicate symbol: .kgldmc
ld: 0711-224 WARNING: Duplicate symbol: .kgldmp
ld: 0711-224 WARNING: Duplicate symbol: .kglaud

Reference : What are the steps needed to Clean up the Libraries during Relinking of Reports on AIX? (Doc ID 834577.1)

05 July 2017

BEGIN failed--compilation aborted at adcfgclone.pl line 27

Error:-

$ perl adcfgclone.pl dbTechStack
Can't locate strict.pm in @INC (@INC contains: ../lib/5.10.0/aix-thread-multi-64all ../lib/5.10.0 ../lib/site_perl/5.10.0/aix-thread-multi-64all ../lib/site_perl/5.10.0 ../lib/5.10.0/aix-thread-multi-64all ../lib/5.10.0 ../lib/site_perl .) at adcfgclone.pl line 27.
BEGIN failed--compilation aborted at adcfgclone.pl line 27.

Solution :

$ echo $PERL5LIB

$ export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/lib/site_perl/5.10.0:$ORACLE_HOME/perl

$ perl adcfgclone.pl dbTechStack

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/web01/oratest/db/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /web01/oratest/db/appsutil/clone/jlib/java:/web01/oratest/db/appsutil/clone/jlib/xmlparserv2.jar:/web01/oratest/db/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /web01/oratest/db/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_17498188.lst -stage /web01/oratest/db/appsutil/clone -dbTechStack 2> /tmp/adcfgclone_17498188.err; echo $? > /tmp/adcfgclone_17498188.res

Log file located at /web01/oratest/db/appsutil/clone/bin/CloneContext_0413104358.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [dev] :

Target Instance is RAC (y/n) [n] :

Target System Database SID : TEST

Target System Base Directory : /web01/oratest

Target System utl_file_dir Directory List : /usr/tmp

Number of DATA_TOP's on the Target System [2] :

Target System DATA_TOP Directory 1 [/u12/oraprod/fmsproddata] : /web01/oratest/fmstestdata

Target System DATA_TOP Directory 2 [/u14/oraprod/fmsproddata] : /web03/oratest/fmstestdata

Target System RDBMS ORACLE_HOME Directory [/web01/oratest/db/tech_st/11.2.0] : /web01/oratest/db

Do you want to preserve the Display [PRDDB] (y/n)  : n

Target System Display [dev:0.0] :

Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 5

Checking the port pool 5
done: Port Pool 5 is free
Report file located at /web01/oratest/db/appsutil/temp/portpool.lst
Complete port information available at /web01/oratest/db/appsutil/temp/portpool.lst

Backing up /web01/oratest/db/appsutil/FMSTEST_epswdev.xml to /web01/oratest/db/appsutil/FMSTEST_epswdev.xml.bak

Creating the new Database Context file from :
  /web01/oratest/db/appsutil/template/adxdbctx.tmp

The new database context file has been created :
  /web01/oratest/db/appsutil/FMSTEST_epswdev.xml

Log file located at /web01/oratest/db/appsutil/clone/bin/CloneContext_0413104358.log
Check Clone Context logfile /web01/oratest/db/appsutil/clone/bin/CloneContext_0413104358.log for details.

Running Rapid Clone with command:
perl /web01/oratest/db/appsutil/clone/bin/adclone.pl java=/web01/oratest/db/appsutil/clone/bin/../jre mode=apply stage=/web01/oratest/db/appsutil/clone component=dbTechStack method=CUSTOM dbctxtg=/web01/oratest/db/appsutil/FMSTEST_epswdev.xml showProgress contextValidated=true
Running:
perl /web01/oratest/db/appsutil/clone/bin/adclone.pl java=/web01/oratest/db/appsutil/clone/bin/../jre mode=apply stage=/web01/oratest/db/appsutil/clone component=dbTechStack method=CUSTOM dbctxt

PLS-00201: identifier 'AD_JAR.GET_JRIPASSWORDS' must be declared

AD code level : [B.3]

Error: Unable to execute statement <
Begin
ad_jar.get_jripasswords(:l_storepass, :l_keypass);
End;
> len = 63

AD Administration error:
ORA-06550: line 3, column 1:
PLS-00201: identifier 'AD_JAR.GET_JRIPASSWORDS' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored


AD Administration error:

Unable to get passwords from Vault

You should check the file
/u02/applgstR12/apps/apps_st/appl/admin/FMSGST/log/adadmin.log

for errors.

Solution:

The AD_JAR object not available in apps schema.

sqlplus apps/apps @$AD_TOP/patch/115/sql/ADJRIS.pls

sqlplus apps/apps @$AD_TOP/patch/115/sql/ADJRIB.pls

Run the below SQL to see whether objects are valid

select owner,object_type,status from dba_objects where object_name='AD_JAR';

rerun the adadmin again.

Reference: ADOP Fails With Error "PLS-00201: identifier 'AD_JAR.GET_JRIPASSWORDS' must be declared" (Doc ID 1610328.1)

*******FATAL ERROR*******

$ $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u03/appltest/inst/apps/FMSTEST_fmdevap/logs/appl/rgf/TXK/txkCfgOC4JApp_Mon_Feb_27_16_16_15_2017.log
Program : /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl started @ Mon Feb 27 16:16:15 2017

*** Log File = /u03/appltest/inst/apps/FMSTEST_fmdevap/logs/appl/rgf/TXK/txkCfgOC4JApp_Mon_Feb_27_16_16_15_2017.log

Enter Application name for re-deployment ? forms
Enter Oc4j Instance  password for re-deployment ?
Run Autoconfig <Yes/No> ? No


*****************************************************
Required values for starting OC4J instance "forms":
====================================================
s_formsstatus = enabled
s_forms_nprocs = 1 (value should be greater than 0)


Existing values from the context file:
======================================
s_formsstatus = enabled
s_forms_nprocs = 1
----------------------------------------------

*** Values for context variables are VALID ***

----------------------------------------------

*****************************************************

Stopping all OPMN processes.
OPMN stopped.

Errors encountered running /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl

*******FATAL ERROR*******
PROGRAM : /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl(/u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/txkrun.pl)
TIME    : Mon Feb 27 16:16:38 2017
FUNCTION: TXK::Process::run [ Level 3 ]
MESSAGES:
Command error: <rc> = 32512, <command> = /u03/appltest/apps/tech_st/10.1.3/opmn/bin/opmnctl start


STACK TRACE
        TXK::Error::abort('TXK::Error','HASH(0x201147d8)') called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/Common.pm line 299
        TXK::Common::doError('TXK::Process=HASH(0x20779f38)','Command error: <rc> = 32512, <command> = /u03/appltest/apps/t...','undef') called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/Common.pm line 314
        TXK::Common::setError('TXK::Process=HASH(0x20779f38)','Command error: <rc> = 32512, <command> = /u03/appltest/apps/t...') called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/Process.pm line 449
        TXK::Process::run('TXK::Process=HASH(0x20779f38)','HASH(0x20634294)') called at /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl line 1587
        TXK::RunScript::execOPMNControl('HASH(0x20b13dac)') called at /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl line 599
        require /u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/RunScript.pm line 105
        TXK::RunScript::require('TXK::RunScript','/u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkC...') called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/Script.pm line 177
        eval {...} called at /u03/appltest/apps/apps_st/appl/au/12.0.0/perl/TXK/Script.pm line 177
        TXK::Script::run('TXK::Script=HASH(0x20bfec88)','/u03/appltest/inst/apps/FMSTEST_fmdevap/logs/appl/rgf/TXK','/u03/appltest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkC...') called at /u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/txkrun.pl line 174

       
Solution :

TXKRUN.PL Deploying a New Forms .EAR File Error with OPMNCTL Start (Doc ID 1295791.1)  -  Workaround 2

Unable to get passwords from Vault

Completed database cleanup for previous session.

Error: Unable to execute statement <
Begin
ad_jar.get_jripasswords(:l_storepass, :l_keypass);
End;
> len = 63

AD Administration error:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 101
ORA-06512: at "APPS.AD_JAR", line 17
ORA-06512: at line 3


AD Administration error:

Unable to get passwords from Vault


You should check the file
/u02/applgstR12/apps/apps_st/appl/admin/FMSGST/log/adadmin.log

for errors.


Solution:

Run adgrants.sql

sqlplus sys "/as sysdba" @adgrants.sql APPS

31 March 2017

Relink of module "UMX_ENDECA_RBACMigration.sh" failed

Relink of module "UMX_ENDECA_RBACMigration.sh" failed

Error:

Relink of module "UMX_ENDECA_RBACAuto.sh" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure.  Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.

Relink of module "UMX_ENDECA_RBACMigration.sh" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure.  Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.

Cause: above files are missing.

$ ls $FND_TOP/bin/UMX_ENDECA_RBACAuto.sh
ls: 0653-341 The file /u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/UMX_ENDECA_RBACAuto.sh does not exist.
$ ls $FND_TOP/bin/UMX_ENDECA_RBACMigration.sh
ls: 0653-341 The file /u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/UMX_ENDECA_RBACMigration.sh does not exist.

Solution:

Apply Patch 17797381 on your test instance then execute relink.

$ ls $FND_TOP/bin/UMX_ENDECA_RBACAuto.sh
/u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/UMX_ENDECA_RBACAuto.sh
$ ls $FND_TOP/bin/UMX_ENDECA_RBACMigration.sh
/u03/appltest/apps/apps_st/appl/fnd/12.0.0/bin/UMX_ENDECA_RBACMigration.sh
$

Reference: Relink Fails On 12.1.3+ With "UMX_ENDECA_RBACMigration.sh" & "UMX_ENDECA_RBACAuto.sh" (Doc ID 1680871.1)

23 March 2017

Step by Step to change all FND_USER password using Pl/sql

Step by Step to change all  FND_USER  password without old password using pl/sql

 DECLARE
   x   BOOLEAN;
   CURSOR c_user
   IS
      SELECT *
  FROM fnd_user
 WHERE     NVL (end_date, SYSDATE + 1) > SYSDATE
       AND user_name NOT IN
              ('ANONYMOUS',
               'AUTOINSTALL',
               'CONCURRENT MANAGER',
               'FEEDER SYSTEM',
               'GUEST',
               'INITIAL SETUP',
               'APPSMGR',
               'SYSADMIN',
               'WIZARD',
               'IEXADMIN',
               'ASGADM',
               'MOBILEADM',
               'IBE_GUEST',
               'OP_SYSADMIN',
               'OP_CUST_CARE_ADMIN',
               'PORTAL30',
               'PORTAL30_SSO',
               'ASGUEST',
               'IBE_ADMIN',
               'IBEGUEST',
               'IRC_EXT_GUEST',
               'IRC_EMP_GUEST',
               'INDUSTRY DATA',
               'ASADMIN',
               'XML_USER',
               'ORACLE12.0.0',
               'ORACLE12.1.0',
               'ORACLE12.2.0',
               'ORACLE12.3.0',
               'ORACLE12.4.0',
               'ORACLE12.5.0',
               'ORACLE12.6.0',
               'ORACLE12.7.0',
               'ORACLE12.8.0',
               'ORACLE12.9.0',
               'AME_INVALID_APPROVER');
BEGIN
   FOR i IN c_user
   LOOP
      BEGIN
         x  := fnd_user_pkg.ChangePassword ( username      => i.user_name,
                                             newpassword   => 'welcome'   );
                                            
      --  dbms_output.put_line('password sucessfully changed for' || i.user_name);
      EXCEPTION
         WHEN OTHERS THEN
        DBMS_OUTPUT.put_line ( 'Error encountered while restting password for users and the Error Detail is ' || SQLERRM);
      END;
   END LOOP;
END;

07 February 2017

Compile JSP in Oracle Application R12

1. Login with application unix user and source the environment

. <APPL_TOP>/APPS<@TWO_TASK>_<Hostname>.env

2. Unix based Plateforms

$ perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile --flush -p 2
logfile set: /u03/appltest/inst/apps/$TWO_TASK_hostname/logs/appl/rgf/ojsp/ojspc_error.log
starting...(compiling all)
using 10i internal ojsp ver: 10
synchronizing dependency file:
  loading deplist...8096
  enumerating jsps...8096
  updating dependency...0
initializing compilation:
  eliminating children...6025 (-2071)
translating and compiling:
  translating jsps...6025/6025 in 3m2s
  compiling jsps...6025/6025 in 12m43s
Finished!

3. Restart the apache services.

$ cd $ADMIN_SCRIPTS_HOME
$ ./adopmnctl.sh stopall

You are running adopmnctl.sh version 120.6.12010000.5


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u03/appltest/inst/apps/$TWO_TASK_hostname/logs/appl/admin/log/adopmnctl.txt for more information ...

$ ./adopmnctl.sh startall

You are running adopmnctl.sh version 120.6.12010000.5

Starting Apache...
Apache started successfully.


Starting OACORE oc4j...
OACORE oc4j started successfully.


Starting FORMS oc4j...
FORMS oc4j started successfully.


Starting OAFM oc4j...
OAFM oc4j started successfully.



adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u03/appltest/inst/apps/FMSTEST_fmdevap/logs/appl/admin/log/adopmnctl.txt for more information ...

$

27 January 2017

Unable to locate 'linkxlC' utility in path


$ adcfgclone.pl dbTechStack
                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle Applications Rapid Clone
                                 Version 12.0.0
                      adcfgclone Version 120.31.12010000.8
Enter the APPS password :
no linkxlC in /u01/oradev/fmsdevdb/11.2.0/appsutil/clone/bin/../jre/bin /usr/bin /etc /usr/sbin /usr/ucb /home/oradev/bin /usr/bin/X11 /sbin /u01/oradev/fmsdevdb/11.2.0/bin .
Checking for make...    found - /usr/bin/make
 Checking for ld...     found - /usr/bin/ld
 Checking for linkxlC...
 Unable to locate 'linkxlC' utility in path
 Checking for ar...     found - /usr/bin/ar
 Unable to locate all utilities with system path.
 PATH = /u01/oradev/fmsdevdb/11.2.0/appsutil/clone/bin/../jre/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oradev/bin:/usr/bin/X11:/sbin:/u01/oradev/fmsdevdb/11.2.0/bin:.

WARNING: Could not find all the required OS utilities in the $PATH. Please review the checks above
$

Solution :-

$ which linkxlC
/usr/vacpp/bin/linkxlC
$ export PATH=/usr/vacpp/bin:$PATH
$ adcfgclone.pl dbTechStack
                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle Applications Rapid Clone
                                 Version 12.0.0
                      adcfgclone Version 120.31.12010000.8
Enter the APPS password :
Running:
/u01/oradev/fmsdevdb/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/oradev/fmsdevdb/11.2.0/appsutil/clone/jlib/java:/u01/oradev/fmsdevdb/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/oradev/fmsdevdb/11.2.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /u01/oradev/fmsdevdb/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_44171378.lst -stage /u01/oradev/fmsdevdb/11.2.0/appsutil/clone -dbTechStack 2> /tmp/adcfgclone_44171378.err; echo $? > /tmp/adcfgclone_44171378.res
Log file located at /u01/oradev/fmsdevdb/11.2.0/appsutil/clone/bin/CloneContext_0127105900.log
Provide the values required for creation of the new Database Context file.
Target System Hostname (virtual or normal) [fmdevdb] :
 

26 January 2017

REP-50125: Caught exception: java.lang.reflect.InvocationTargetException

When submitting concurrent requests they run for a very long time will not compete You are forced to kill the request.

Error: -

$ rwdiag.sh -findAll
Environment:Environment java.lang.UnsatisfiedLinkError: Can't find library rwu  (librwu.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin
java.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/cz/12.0.0/bin:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/sht/12.0.0/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/lib/ppc:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/sovvm:/usr/lib
Environment:getEnvironmentStrings java.lang.UnsatisfiedLinkError: Can't find library rwu  (librwu.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin
java.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/cz/12.0.0/bin:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/sht/12.0.0/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/lib/ppc:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/sovvm:/usr/lib
java.lang.reflect.InvocationTargetException
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0

Broadcast mechanism used to locate servers
------------------------------------------
Channel address = 228.5.6.7
Channel port    = 14021

REP-50503 No server found in the network

$ rwrun help=yes
JVMCI200 - ERROR: User register saving is not enabled, Garbage Collection could be incorrect.
JVMCI200 - ERROR: because of this the JVM library is explicitly aborting the process
JVMCI200 - ERROR: You must either rebuild the executable using "-bM:UR"
JVMCI200 - ERROR: or run with "export LDR_CNTRL=USERREGS"
IOT/Abort trap(coredump)

$ $INST_TOP/ora/10.1.2/bin/appsrwrun.sh userid=apps/apps mode=character report=$FND_TOP/reports/US/FNDSCURS.rdf batch=yes destype=file desname=./ddr2.out desformat=$FND_TOP/reports/HPL pagesize=132x66 traceopts=trace_all tracefile=ddr2.trc tracemode=trace_replace
Environment:Environment java.lang.UnsatisfiedLinkError: Can't find library rwu  (librwu.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin
java.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/cz/12.0.0/bin:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/sht/12.0.0/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/lib/ppc:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/sovvm:/usr/lib
Environment:getEnvironmentStrings java.lang.UnsatisfiedLinkError: Can't find library rwu  (librwu.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin
java.library.path=/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/cz/12.0.0/bin:/u02/applgstR12/apps/tech_st/10.1.2/lib32:/u02/applgstR12/apps/tech_st/10.1.2/lib:/usr/dt/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/classic:/u02/applgstR12/apps/apps_st/appl/sht/12.0.0/lib:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/lib/ppc:/u02/applgstR12/apps/tech_st/10.1.2/jdk/jre/bin/sovvm:/usr/lib
REP-50125: Caught exception: java.lang.reflect.InvocationTargetException


Solution :

1. Take a backup and remove rwnetwork.conf from $ORACLE_HOME/reports/conf

  $ mv rwnetwork.conf rwnetwork.conf_orig

 2. Stop/restart Applications tier.

 3. You need to ensure rwnetwork.conf is created on its own. As rwnetwork.conf is removed , the system should generate new file automatically after the reports are run.

 4.Reproduce the issue and check the following commands work fine to ensure the issue is resolved.
 a) rwdiag.sh -findAll
 b) rwrun help=yes
 c) $INST_TOP/ora/10.1.2/bin/appsrwrun.sh userid=apps/apps mode=character report=$FND_TOP/reports/US/FNDSCURS.rdf batch=yes destype=file   desname=./ddr2.out desformat=$FND_TOP/reports/HPL pagesize=132x66 traceopts=trace_all tracefile=ddr2.trc tracemode=trace_replace

 5.Run the Concurrent Request

Reference : Concurrent Processing - R12 Concurrent Requests Run Forever, rwrun Errors with REP-50125 (Doc ID 737445.1)

If not resolved Follow below steps.

2. Relink the reports executables:

cd $ORACLE_HOME/reports/lib32
make -f ins_reports.mk install

Reference : Concurrent Reports UnsatisfiedLinkError (Doc ID 849369.1)

24 January 2017

R12 Error 'Function not available to this responsibility' When Trying to Access Custom Form

R12 Error 'Function not available to this responsibility' When Trying to Access Custom Form


The issue is caused by the following setup:

Missing entry for CUSTOM_TOP under default.env file

Ideally in such cases,CUSTOM_TOP should be defined under default.env in $INST_TOP/ora/10.1.2/forms/server directory to have your custom form work with R12.

Solution:-

To implement the solution, please execute the following steps:

1. Login to server with APPLMGR manager user access.

2. Go to $INST_TOP/ora/10.1.2/forms/server directory.

3. Ensure that your CUSTOM_TOP 's are registered in the default.env file.

This means that, you should create an entry for environment variable CUSTOM_TOP (which contains physical path to your custom directory) like below in default.env file present under location $INST_TOP/ora/10.1.2/forms/server directory.

For Example:
.....

APPL_TOP=/home/applmgr/PROD/apps/apps_st/appl
CUSTOM_TOP=/home/applmgr/PROD/apps/apps_st/custom

4. Restart the middle tier services.

5. Retest the issue.


Reference : R12 Error 'Function not available to this responsibility' When Trying to Access Custom Form. (Doc ID 553014.1)