Wednesday, November 04, 2020

Issues faced while upgrading Oracle Applications (E-Business Suite) from 11i to R12.2

Issues faced while upgrading Oracle Applications (E-Business Suite) from 11i to R12.2

 

Issue #3:

 When running AC on DB node, it failed with below error:

 

afdbprf.sh started at Sun Feb 12 20:42:36 AST 2017

 

 

The environment settings are as follows ...

 

       ORACLE_HOME : /oracle/TEST/db/tech_st/11.2.0.4

        ORACLE_SID : TEST

              PATH : /usr/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/ccs/bin:/usr/sbin:/oracle/TEST/db/tech_st/11.2.0.4/jdk/bin:/usr/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/ccs/bin:/usr/sbin:/oracle/TEST/db/tech_st/

11.2.0.4/jdk/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/ccs/bin:/usr/sbin:/oracle/TEST/db/tech_st/11.2.0.4/jdk/bin:/usr/ccs/bin:/oracle/TEST/db/tech_st/11.2.0.4/bin:/usr/bin:/bin:/opt/EMCpower/bin:/etc/emc/bin:/etc:/usr/X

/bin:/usr/X11/bin:.:/usr/X/bin:/usr/X11/bin:/usr/ccs/bin:.:/usr/X/bin:/usr/X11/bin:/usr/ccs/bin:.

      Library Path : /oracle/TEST/db/tech_st/11.2.0.4/lib:/usr/dt/lib:/usr/openwin/lib:/oracle/TEST/db/tech_st/11.2.0.4/ctx/lib

 

Executable : /oracle/TEST/db/tech_st/11.2.0.4/bin/sqlplus

 

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun Feb 12 20:42:36 2017

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

Enter value for 1: Enter value for 2: Enter value for 3: ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect Descriptor

 

Solution:

a)       Tnsnames.ora contains wrong entries:

TEST=

        (DESCRIPTION=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            (CONNECT_DATA=

                (SERVICE_NAME=TEST, ebs_patch)

                (INSTANCE_NAME=TEST)

            )

        )

 

With this configuration, sqlplus connection to TEST will fail:

 

{oratest@rsm4k02: TEST_rsm4k02 $} sqlplus apps/apps@test

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun Feb 12 21:28:29 2017

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

 

b)       AC is generating worng values, updating TEST_rsm4k02_ifile.ora with the correct values which will override the worng entries in tnsnames.ora

 

ð  Try first to purge the complete Net Services Topology Data Model:

 

{appltest@rsm4k02: ~ $} perl $AD_TOP/bin/adgentns.pl contextfile=$CONTEXT_FILE -removesystem

Enter the APPS user password:

##########################################################################

                   Generate Tns Names

##########################################################################

Logfile:  /oracle/TEST/prodappl/admin/TEST_rsm4k02/log/02122150/NetServiceHandler.log

        Classpath                   : /oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/oracle/TEST/prodcomn/java/appsborg2.zip:/oracle/TEST/prodcomn/java

 

Updating s_tnsmode to 'generateTNS'

UpdateContext exited with status: 0

 

adgentns.pl exiting with status 0

ERRORCODE = 0 ERRORCODE_END

{appltest@rsm4k02: ~ $}

 

SQL> conn apps/apps

Connected.

SQL> select NAME, SERVER_TYPE from FND_APP_SERVERS, FND_NODES

where FND_APP_SERVERS.NODE_ID = FND_NODES.NODE_ID and

SERVER_TYPE='DB' and FND_NODES.NODE_NAME like upper('%rsm4k02%');

  2    3 

no rows selected

 

SQL> select DB_NAME from FND_DATABASES;

 

no rows selected

 

SQL>

 

c)       Run AC on DB:

{oratest@rsm4k02: ~ $}

{oratest@rsm4k02: ~ $} $ORACLE_HOME/appsutil/scripts/TEST_rsm4k02/adautocfg.sh

Enter the APPS user password:

The log file for this session is located at: /oracle/TEST/db/tech_st/11.2.0.4/appsutil/log/TEST_rsm4k02/02122153/adconfig.log

 

AutoConfig is configuring the Database environment...

 

AutoConfig will consider the custom templates if present.

        Using ORACLE_HOME location : /oracle/TEST/db/tech_st/11.2.0.4

        Classpath                   : /oracle/TEST/db/tech_st/11.2.0.4/jdk/jre/lib/rt.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdk/lib/dt.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdk/lib/tools.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdbc/lib/ojdbc5.jar:/oracle/TEST/db/tech_st/11.2.0.4/appsutil/java/xmlparserv2.zip:/oracle/TEST/db/tech_st/11.2.0.4/appsutil/java:/oracle/TEST/db/tech_st/11.2.0.4/jlib/netcfg.jar:/oracle/TEST/db/tech_st/11.2.0.4/jlib/ldapjclnt11.jar

 

        Using Context file          : /oracle/TEST/db/tech_st/11.2.0.4/appsutil/TEST_rsm4k02.xml

 

Context Value Management will now update the Context file

 

        Updating Context file...COMPLETED

 

        Attempting upload of Context file and templates to database...COMPLETED

 

Updating rdbms version in Context file to db112

Updating rdbms type in Context file to 64 bits

Configuring templates from ORACLE_HOME ...

 

AutoConfig completed successfully.

{oratest@rsm4k02: ~ $}

 

 

SQL> select DB_NAME from FND_DATABASES;

 

DB_NAME

--------

TEST

 

SQL> select NAME, SERVER_TYPE from FND_APP_SERVERS, FND_NODES

where FND_APP_SERVERS.NODE_ID = FND_NODES.NODE_ID and

SERVER_TYPE='DB' and FND_NODES.NODE_NAME like upper('%rsm4k02%');  2    3 

 

NAME

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

SERVER_TYPE

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

rsm4k02_TEST_DB

DB

 

 

SQL>

 

d)      Run AC on MT:

{appltest@rsm4k02: ~ $} $AD_TOP/bin/adconfig.sh contextfile=$CONTEXT_FILE appspass=apps

 

The log file for this session is located at: /oracle/TEST/prodappl/admin/TEST_rsm4k02/log/02122154/adconfig.log

 

AutoConfig is configuring the Applications environment...

 

AutoConfig will consider the custom templates if present.

        Using APPL_TOP location     : /oracle/TEST/prodappl

        Classpath                   : /oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/oracle/TEST/prodcomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/oracle/TEST/prodcomn/java/appsborg2.zip:/oracle/TEST/prodcomn/java

 

        Using Context file          : /oracle/TEST/prodappl/admin/TEST_rsm4k02.xml

 

Context Value Management will now update the Context file

 

        Updating Context file...COMPLETED

 

        Attempting upload of Context file and templates to database...COMPLETED

 

Configuring templates from all of the product tops...

        Configuring AD_TOP........COMPLETED

        Configuring FND_TOP.......COMPLETED

        Configuring ICX_TOP.......COMPLETED

        Configuring IEO_TOP.......COMPLETED

        Configuring ABM_TOP.......COMPLETED

        Configuring ECX_TOP.......COMPLETED

        Configuring BIS_TOP.......COMPLETED

        Configuring GL_TOP........COMPLETED

        Configuring AMS_TOP.......COMPLETED

        Configuring CCT_TOP.......COMPLETED

        Configuring WSH_TOP.......COMPLETED

        Configuring CLN_TOP.......COMPLETED

        Configuring OKE_TOP.......COMPLETED

        Configuring OKL_TOP.......COMPLETED

        Configuring OKS_TOP.......COMPLETED

        Configuring CSF_TOP.......COMPLETED

        Configuring XNC_TOP.......COMPLETED

        Configuring IGS_TOP.......COMPLETED

        Configuring IBY_TOP.......COMPLETED

        Configuring PA_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 IMT_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

 

AutoConfig completed successfully.

{appltest@rsm4k02: ~ $}

 

e)       If the above did not work, you can apply below work around:

 

{oratest@rsm4k02: ~ $} cat /oracle/TEST/db/tech_st/11.2.0.4/network/admin/TEST_rsm4k02/TEST_rsm4k02_ifile.ora

TEST=

        (DESCRIPTION=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            (CONNECT_DATA=

                (SERVICE_NAME=TEST)

                (INSTANCE_NAME=TEST)

            )

        )

 

TEST_806_BALANCE=

        (DESCRIPTION=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            (CONNECT_DATA=

                (SERVICE_NAME=TEST)

                (INSTANCE_NAME=TEST)

            )

        )

 

TEST_FO=

        (DESCRIPTION=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            (CONNECT_DATA=

                (SERVICE_NAME=TEST)

                (INSTANCE_NAME=TEST)

            )

        )

 

TEST_LOCAL=

        (DESCRIPTION=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

        )

 

TEST_BALANCE=

        (DESCRIPTION=

            (LOAD_BALANCE=YES)

            (FAILOVER=YES)

            (ADDRESS_LIST=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            )

            (CONNECT_DATA=

                (SERVICE_NAME=TEST)

            )

        )

 

TEST_REMOTE=

        (DESCRIPTION=

            (ADDRESS_LIST=

                (ADDRESS=(PROTOCOL=tcp)(HOST=rsm4k02.bvo.com)(PORT=1531))

            )

        )

 

extproc_connection_data =

    (DESCRIPTION=

         (ADDRESS_LIST =

             (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCTEST))

        )

        (CONNECT_DATA=

            (SID=PLSExtProc)

            (PRESENTATION = RO)

        ) )

{oratest@rsm4k02: ~ $}

 

f)        Rerun AC:

{oratest@rsm4k02: ~ $} $ORACLE_HOME/appsutil/scripts/TEST_rsm4k02/adautocfg.sh

Enter the APPS user password:

The log file for this session is located at: /oracle/TEST/db/tech_st/11.2.0.4/appsutil/log/TEST_rsm4k02/02122130/adconfig.log

 

AutoConfig is configuring the Database environment...

 

AutoConfig will consider the custom templates if present.

        Using ORACLE_HOME location : /oracle/TEST/db/tech_st/11.2.0.4

        Classpath                   : /oracle/TEST/db/tech_st/11.2.0.4/jdk/jre/lib/rt.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdk/lib/dt.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdk/lib/tools.jar:/oracle/TEST/db/tech_st/11.2.0.4/jdbc/lib/ojdbc5.jar:/oracle/TEST/db/tech_st/11.2.0.4/appsutil/java/xmlparserv2.zip:/oracle/TEST/db/tech_st/11.2.0.4/appsutil/java:/oracle/TEST/db/tech_st/11.2.0.4/jlib/netcfg.jar:/oracle/TEST/db/tech_st/11.2.0.4/jlib/ldapjclnt11.jar

 

        Using Context file          : /oracle/TEST/db/tech_st/11.2.0.4/appsutil/TEST_rsm4k02.xml

 

Context Value Management will now update the Context file

 

        Updating Context file...COMPLETED

 

        Attempting upload of Context file and templates to database...COMPLETED

 

Updating rdbms version in Context file to db112

Updating rdbms type in Context file to 64 bits

Configuring templates from ORACLE_HOME ...

 

AutoConfig completed successfully.

{oratest@rsm4k02: ~ $}

Issues faced while upgrading Oracle Applications (E-Business Suite) from 11i to R12.2

Issue #2:

During the application of patch “u_merged.drv”, it seems that Patch application is hanged.

There are now 76388 jobs remaining (current phase=A66):

    0 running, 1 ready to run and 76387 waiting.

 

 Assigned: file adobjcmp.sql on worker  1 for product ad  username APPLSYS.

 

Solution:

a)       Stop all workers

b)       Restart the DB

c)       Restart the adpatch session

 

Issues faced while upgrading Oracle Applications (E-Business Suite) from 11i to R12.2

Issue #1:

 

ATTENTION: All workers either have failed or are waiting:

 

           FAILED: file cskbcat.ldt  on worker  1.

 

ATTENTION: Please fix the above failed worker(s) so the manager can continue.

 

Worker log:

Time when worker restarted job: Sun Feb 19 2017 06:33:15

 

Loading data using  FNDLOAD function.

FNDLOAD APPS/***** 0 Y UPLOAD @CS:patch/115/import/cskbcat.lct @CS:patch/115/import/US/cskbcat.ldt -

 

Connecting to APPS......Connected successfully.

 

Calling FNDLOAD function.

 

Returned from FNDLOAD function.

 

Log file: /u01/oracle/TEST/fs1/EBSapps/appl/admin/TEST/log/US_cskbcat_ldt.log

Error calling FNDLOAD function.

 

 

Time when worker failed: Sun Feb 19 2017 06:33:16

 

Fndload log file:

Uploading from the data file /u01/oracle/TEST/fs1/EBSapps/appl/cs/12.0.0/patch/115/import/US/cskbcat.ldt

Altering database NLS_LANGUAGE environment to AMERICAN

Dumping from LCT/LDT files (/u01/oracle/TEST/fs1/EBSapps/appl/cs/12.0.0/patch/115/import/cskbcat.lct(120.1), /u01/oracle/TEST/fs1/EBSapps/appl/cs/12.0.0/patch/115/import/US/cskbcat.ldt) to staging tables

Dumping LCT file /u01/oracle/TEST/fs1/EBSapps/appl/cs/12.0.0/patch/115/import/cskbcat.lct(120.1) into FND_SEED_STAGE_CONFIG

Dumping LDT file /u01/oracle/TEST/fs1/EBSapps/appl/cs/12.0.0/patch/115/import/US/cskbcat.ldt into FND_SEED_STAGE_ENTITY

Dumped the batch (CS_KB_SOLN_CATEGORIES_VL 1 , CS_KB_SOLN_CATEGORIES_VL 1 ) into FND_SEED_STAGE_ENTITY

Uploading from staging tables

  Error loading seed data for CS_KB_SOLN_CATEGORIES_VL:  CATEGORY_ID = 1,  ORA-29877: failed in the execution of the ODCIINDEXUPDATE routine

ORA-20000: Oracle Text error:

DRG-50857: oracle error in textindexmethods.ODCIIndexUpdate

ORA-20000: Oracle Text error:

DRG-10607: index meta data is not ready yet for queuing DML

DRG-13201: KOREAN_LEXER is desupported

ORA-30576: ConText Option dictionary loading error

 

 

Concurrent request completed

Current system time is Sun Feb 19 06:33:16 2017

 

Solution:

As per Applying The Patch 6678700 Worker 1 Failed: File Cskbcat.Ldt. ERRORS: ORA-20000: Oracle Text error: DRG-50857: oracle error in textindexmethods.ODCIIndexUpdate, DRG-13201: KOREAN_LEXER is desupported (Doc ID 1333659.1)

 

{oratest@ruh01sm4k02: ~ $} sqlplus "/ as sysdba" @$ORACLE_HOME/ctx/sample/script/drkorean.sql

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun Feb 19 06:37:29 2017

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

List of indexes that use KOREAN_LEXER as top level lexer:

List of indexes that use KOREAN_LEXER as a sub lexer:

"CS"."CS_FORUM_MESSAGES_TL_N4"

"CS"."CS_INCIDENTS_ALL_TL_N1"

"CS"."CS_KB_ELEMENTS_TL_N2"

"CS"."CS_KB_SETS_TL_N3"

"CS"."CS_KB_SOLN_CAT_TL_N1"

"ICX"."ICX_QUES_CTX"

Migrate KOREAN_LEXER to KOREAN_MORPH_LEXER

Rebuild all indexes that use korean lexer as top level lexer:

Reindex all documents that use KOREAN_LEXER as sub lexer

reindexing : "CS"."CS_FORUM_MESSAGES_TL" finished.

reindexing : "CS"."CS_INCIDENTS_ALL_TL" finished.

reindexing : "CS"."CS_KB_ELEMENTS_TL" finished.

reindexing : "CS"."CS_KB_SETS_TL" finished.

reindexing : "CS"."CS_KB_SOLN_CATEGORIES_TL" finished.

reindexing : "ICX"."ICX_QUESTIONS_TL" finished.

SQL>

 

a)       Restart failed worker

 

Tuesday, February 24, 2015

How to change the hostname in Oracle linux OS server

1- vi /etc/sysconfig/network
2- edit the valus of HOSTNAME in that file to the value you want.
3- Replace the old value with the new value in /etc/hosts
4- Reboot the server

Regards,
Mohamed

Creating Oracle DB Enterprise Manager repository

Note ID: 278100.1

- As the DB files owner run:

[ortest@erpapp02 ~]$ emca -config dbcontrol db -repos create

STARTED EMCA at Apr 3, 2011 9:51:31 AM
EM Configuration Assistant, Version 11.1.0.7.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: TEST
Listener port number: 1521
Password for SYS user: 
Password for SYSMAN user:  
Password for SYSMAN user: Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /Oracle/Test/db/tech_st/11.1.0

Local hostname ................ erpapp02.rsteel.com
Listener port number ................ 1521
Database SID ................ TEST
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Apr 3, 2011 9:53:35 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /Oracle/Test/db/tech_st/11.1.0/cfgtoollogs/emca/TEST/emca_2011_04_03_09_51_31.log.
Apr 3, 2011 9:53:37 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 3, 2011 10:03:03 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Apr 3, 2011 10:03:07 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Apr 3, 2011 10:04:01 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Apr 3, 2011 10:04:05 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Apr 3, 2011 10:04:05 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Apr 3, 2011 10:04:16 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Apr 3, 2011 10:04:16 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Apr 3, 2011 10:04:39 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Apr 3, 2011 10:04:39 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Apr 3, 2011 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Apr 3, 2011 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://erpapp02.rsteel.com:5500/em <<<<<<<<<<<
Apr 3, 2011 10:05:13 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************  WARNING  ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /Oracle/Test/db/tech_st/11.1.0/erpapp02.alrajhisteel.com_TEST/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Apr 3, 2011 10:05:13 AM
[ortest@erpapp02 ~]$




Recreate DB Enterprise Manager Repository :

- This will first drop the existing repository first, ensure you deleted the old EM folder under the $ORACLE_HOME

emca -config dbcontrol db -repos recreate



Drop DB Enterprise Manager Repository :

emca -deconfig dbcontrol db -repos drop

IMPORTANT: Dropping or recreating the EM repository will put the DB in the quiesce mode.


Regards,
Mohamed

How to get the SID and OS process for a running CR

- Run the below SQL statement to get the SID and OS procedd ID for a running request.
- The statement will ask for the Request ID

set pages 1000 lin 300
SELECT a.request_id, d.sid, d.serial# ,d.osuser,d.process , c.SPID "OS Process", d.STATUS, d.username
FROM apps.fnd_concurrent_requests a,
apps.fnd_concurrent_processes b,
v$process c,
v$session d
WHERE a.controlling_manager = b.concurrent_process_id
AND c.pid = b.oracle_process_id
AND b.session_id=d.audsid
AND a.request_id = &Request_ID
AND a.phase_code = 'R';

Regards,
Mohamed

Login Page is not accessible

Issue:

Getting the following error when trying to open the login page:

You have encountered an unexpected error. Please contact the System Administrator for assistance.
  • All MT services are up and running normally!
  • No errors in the log files!

Solution:

To get more info about the error do the following:

- Enable "FND:Diagnostics" profile option from backend

update fnd_profile_option_values set profile_option_value='YES' where level_id=10001 and profile_option_id = (select fpo.profile_option_id from fnd_profile_options fpo,fnd_profile_options_tl fpot where upper(fpot.user_profile_option_name) like upper('FND: Diagnostics') and fpo.profile_option_name=fpot.profile_option_name);

commit;

select fnd_profile.value('FND_DIAGNOSTICS') "FND: Diagnostics" from dual;


- Refresh the login page again, now the error is:

Exception Details. 
 oracle.apps.fnd.framework.OAException: Could not load application module 'oracle.apps.fnd.sso.login.server.MainLoginPageAM'.
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:279)
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:78)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    at _OA._jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    at _RF._jspService(_RF.java:225)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_TRANSACTION_ID.
    at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java:352)
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:133)
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:78)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    at _OA._jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    at _RF._jspService(_RF.java:225)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_TRANSACTION_ID.
    at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java:352)
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:133)
    at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:78)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    at _OA._jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    at _RF._jspService(_RF.java:225)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)


- Make sure you do not have Invalid objects, incase you have, run the following:

login to the DB node as sysdba

SQL> @$ORACLE_HOME/rdbms/admin/utlrcmp.sql

Package created.

No errors.
SQL> exec utl_recomp.recomp_parallel(6);

PL/SQL procedure successfully completed.

SQL>

 
- Then run "$FND_TOP/sql/FNDDLTMP.sql" to Purge Inactive Sessions:

SQL> @$FND_TOP/sql/FNDDLTMP.sql

PL/SQL procedure successfully completed.


70 rows deleted.


78 rows deleted.


265 rows deleted.


0 rows deleted.


0 rows deleted.


0 rows deleted.


0 rows deleted.


Commit complete.


PL/SQL procedure successfully completed.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[apfintest@erpmigrate02 ~l]$


 
- Refresh your login page (no need to restart any services).
- Disable "FND:Diagnostics" profile option

update fnd_profile_option_values set profile_option_value='NO' where level_id=10001 and profile_option_id = (select fpo.profile_option_id from fnd_profile_options fpo,fnd_profile_options_tl fpot where upper(fpot.user_profile_option_name) like upper('FND: Diagnostics') and fpo.profile_option_name=fpot.profile_option_name);

commit;


=> logout and relogin

select fnd_profile.value('FND_DIAGNOSTICS') "FND: Diagnostics" from dual;


Regards,
Mohamed