Thursday 1 October 2020

Warning: VKTM detected a time drift in 11gR2

ALERT LOG:

Warning: VKTM detected a time drift.
Time drifts can result in an unexpected behavior such as time-outs. Please check trace file for more details.

 

Cause:


This problem is due to the Bug 11837095 -"TIME DRIFT DETECTED" APPEARS INTERMITTENTLY IN ALERT LOG"

 

Solution:


Time drift" error is a " message which can be ignored, to remove the "Warning: VKTM detected set event 10795 or Apply patch 11837095

 

SQL> alter system set event="10795 trace name context forever, level 2" scope=spfile;

 

Then bounce the DB instances to implement the event/change.

Oracle EBS-Blank Page Appslogin/AppsLocal Login Page in R12

There were quite a few times that I have encountered this blank front-end issue. The root cause was not the same every time it was investigated. There are many reasons for this issue to occur which I have compiled to make it easier for Apps DBA’s. Listed below are some of them.

Here is the error page while logging into Oracle E-Business Suite front end.

These are some of the main reasons for the APPS blank login page in R12:

·    JSP pages not compiled properly after the clone

·    Data block corruption on Cloned environment with bulk synchronization issues

·    Database Listeners are down

·    Archive log space is full

·    DB or APPS file system is Full including /tmp location

·    Java Cache issues between the multiple middle-tiers

 

Here are different scenarios and work around/Fixes:

Scenario 1:  After the clone if any of the users experience user login issues other than super user with the below error message then please follow the steps in scenario 1.

The login in page may show Http-500 Internal server error (or) Http-404

1.         http 500 internal server error:

              java.lang.NoClassDefFoundError
              at oracle.apps.fnd.sso.AppsLoginRedirect.doGet(AppsLoginRedirect.java:623)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
              at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)].
              server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
              at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)

Solution: (from Application Tier)


$cd $ADMIN_SCRIPTS_HOME

$adopmnctl.sh stopall — to shutdown opmn managed services viz., opmn, forms, oacore & oc4j 

$ cd $COMMON_TOP/_pages

$ mv _pages _pages_old

$mkdir _pages

$ cd $FND_TOP/patch/115/bin or export PATH=$FND_TOP/patch/115/bin:$PATH

Compile all jsps.

$perl ojspCompile.pl –compile –flush -p 2 (or) ojspCompile.pl --compile --fast --quiet

(-p represents parallel threads, if you have enough horse power on your server, you can increase it to 8 or 10)

$cd $ADMIN_SCRIPTS_HOME

adopmnctl.sh startall

OR:

ORA-01578: ORACLE data block corrupted (file # 23, block # 221085)
ORA-01110: data file 23: ‘/RDBMS ORACLE_HOME/app/a_txn_data02.dbf’
ORA-26040: Data block was loaded using the NOLOGGING option

Solution: Login as apps user

$ sqlplus apps/apps_pwd


set serveroutput on size 100000;

 declare

 begin

 WF_LOCAL_SYNCH.BULKSYNCHRONIZATION(

 P_ORIG_SYSTEM => 'ALL',

 P_PARALLEL_PROCESSES => null,

 P_LOGGING => null,

 P_RAISEERRORS => TRUE);

 exception

 when others then

 dbms_output.put_line('sqlerrm = ' || sqlerrm);

 end;

 /

Scenario 2: Database Listener is down

Solution:  Start the database listener.

Scenario 3: Database Archive Locaion is 100% full or any mount point or tmp location is full(including concurrent log and output storage mount point)

Solution: Either temporarily move the files/archivelogs to another location or delete older files/archives (provided you had taken a cold backup sometime).

Scenario 4: IAS Cache initialization failed (Doc ID 1484840.1)

E-Business Suite Applications Technology Stack,  HTTP / IAS Server related issues

Users report cache initialization errors in OA Framework related pages.

The oacorestd.err file shows: 

Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps.jtf.base.resources.FrameworkException: IAS Cache initialization failed. 

The Distributed Caching System failed to initialize on port: 12360. The list of hosts in the distributed caching system is: 10.24.248.41 . 

The port 12360 should be free on each host running the JVMs. 

Solution:

To resolve the issue test the following steps in a development instance and then migrate accordingly:

I. For Autoconfig enabled environment:
   1. Bring down opmn services on all boxes.
   2. Verify no process is listening for s_java_object_cache_port value:

  netstat -an | grep [port number] | grep LISTEN

    Identify the OS process associated with a port:

  lsof -i tcp:[port number]

   3. Change s_java_object_cache_port on all the nodes in $CONTEXT_FILE.

   4. Run autoconfig.

II. For Non-Autoconfig enabled environments:

  s_java_object_cache_port value is referrenced in two places

   1. $INST_TOP/ora/10.1.3/javacache/admin/javacache.xml

   2.  JTF_DIST_CACHE_PORT profile option.

   Change the port value to a new number in the $CONTEXT_FILE and bounce opmnctl services.

   3. Verify no process is listening for s_java_object_cache_port value : 

  netstat -an | grep [port number] | grep LISTEN

   Identify the OS process associated with a port

  lsof -i tcp:[port number]

If the newly assigned port still does not listen on the server you can use workaround given bellow. This workaround will resolve the “IAS Cache initialization failed” even if the port is not listening.

 Workaround: (Note: The below workaround is intended for testing purposes only to help identify RCA)

a. Set LONG_RUNNING_JVM=false in $INST_TOP/ora/10.1.3/j2ee/oacore/config/oc4j.properties.

b. Bounce opmn services.
Note: This happens when Distributed Java Caching is enabled in a multi middle tier environment

Note: In 11i, if the database listener is down or if the archive location is full, may get the internal server page while trying to access the login page. In R12 may get a blank page and apache error log will show the “oc4j_socket_recvfull timed out” and "mod_oc4j: request to OC4J [mid-tier servername:ajp port] failed: Connect failed" error messages.

Scenario 5: mod_oc4j: Failed to find a failover oc4j process for session request for destination

Error Noticed in the log file 

$LOG_HOME/ora/10.1.3/Apache

Solution: 

1. Noticed the When we have started the Application Services the load average was 1.

2. When executed ps -ef  |grep applmgr  noticed many processes.

3. Killed the process via 

ps -ef |grep applmgr|grep -v grep |awk '{print $2}'|xargs kill -9

Issue got resolved.

a. Started the services.

b. Via forms fixed restart and all the concurrent managers are up.

XML Publisher Reports End With Warnings - oracle.xdo.parser.v2.XPathException: Cannot convert to number

XML Publisher Reports End With Warnings -(Doc ID 1505402.1)

APPLIES TO:

BI Publisher (formerly XML Publisher) - Version 10.1.3.2.0 to 11.1.1.7.0 [Release 10.1 to 11.1]
Information in this document applies to any platform.

SYMPTOMS

On Oracle Applications 12.1.3 version, Reports for Applications Technology

When attempting to run some XML reports the following error occurs:

java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke

Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.

The issue can be reproduced at will with the following steps:
1. Run XML reports.

The issue has the following business impact:
Due to this issue, users cannot run XML reports

CAUSE

The cause was from the template design or the data.

SOLUTION

The above error suggests there is a problem with either the template design or the data.
Somewhere there is text data that the code in the layout expects to be numerical.
Correct the template or fix the program that generates the XML data to make sure the data is always numeric.

 

Autoconfig Error: adgentns.pl exiting with status 2 after Clone/Refresh

Error: adgentns.pl exiting with status 2

[CVM Error Report]

The following report lists errors encountered during CVM Phase

/UATappl/apps/apps_st/appl/ad/12.0.0/bin/adgentns.pl  2

No of scripts failed in CVM phase: 1

AutoConfig is exiting with status 1 

Solution:

Open a new terminal and source the APPS-Tier Environment.

$sqlplus apps/apps_pwd

SQL> exec fnd_conc_clone.setup_clean

SQL>commit;

Open a new terminal and source the DB-Tier Environment.

Execute Autoconfig on the DB Tier.

Switch back to the APPS environment or start a new terminal and source the APPS-Tier environment.

Execute Autoconfig at the Apps Tier.

Check the Autoconfig log for any errors and ensure that the services start correctly.

R12 Apache Issue: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

Problem

Web server were not up while start the Application server

Installation Log File

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

opmnctl: opmn is already running.

opmnctl: starting opmn managed processes...

================================================================================

opmn id=erpuatappl.com.in:6215

    0 of 1 processes started.

ias-instance id=UAT_erpuatappl.erpuatappl.com.in

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

ias-component/process-type/process-set:

    HTTP_Server/HTTP_Server/HTTP_Server/

Error

--> Process (index=1,uid=606170722,pid=28344)

    failed to start a managed process after the maximum retry limit

    Log:

    /UATappl/inst/apps/UAT_erpuatappl/logs/ora/10.1.3/opmn/HTTP_Server~1.log

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /UATappl/inst/apps/UAT_erpuatappl/logs/appl/admin/log/adapcctl.txt for more information ...  

Apache Log File

09/30/20-13:46:10 Start process

--------

/UATappl/inst/apps/UAT_erpuatappl/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd

/UATappl/apps/tech_st/10.1.3/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

Status of the Services

[applmgr@erpuatappl scripts]$ ./adopmnctl.sh status apps/apps

09/30/20-13:46:16 :: adopmnctl.sh version 120.6.12010000.5

09/30/20-13:46:16 :: adopmnctl.sh: Checking the status of Oracle Process Manager (OPMN)

Processes in Instance: UAT_erpuatappl.erpuatappl.com.in

---------------------------------+--------------------+---------+---------

ias-component                    | process-type       |     pid | status  

---------------------------------+--------------------+---------+---------

OC4JGroup:default_group          | OC4J:oafm          |    4503 | Alive   

OC4JGroup:default_group          | OC4J:forms         |    4434 | Alive   

OC4JGroup:default_group          | OC4J:oacore        |    4287 | Alive   

HTTP_Server                      | HTTP_Server        |     N/A | Down    

09/30/20-13:46:17 :: adopmnctl.sh: exiting with status 0

Cause

http web server unable to start due to missing library.

Solution

1. Shutdown all application services.

2. Create link for library file as below

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

OR

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 with the E-Business Suite technology stack.

Link to Berkeley DB library for HTTP server (on Oracle Linux 7 and RHEL 7 only)

$ cd /usr/lib

$ ln -s libdb-4.7.so libdb-4.3.so

Reference : Attempting to Start Apache (adapcctl.sh) Throws an 'Error While Loading Shared Libraries: libdb.so.2' on Linux (Doc ID 879522.1)