Monday, 1 January 2024

How To Increasing Output Post Process Values In Apps R12


Error (encounter in 325-ABCD Account Analysis Subledger 150) report 

 

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

General Ledger: Version : 12.0.0

 

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

 

325 module: 325-Hinopak Account Analysis Subledger 150

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

 

Current system time is 15-DEC-2017 10:03:03

 

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

 

 

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

| Starting concurrent program execution...

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

 

Arguments

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

p_datef='16-NOV-2017'

p_datet='30-NOV-2017'

p_facont='2900001'

p_tacont='3921102'

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

 

Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing

 

 Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :

American_America.US7ASCII

 

'.,'

 

Enter Password:

 

Report Builder: Release 10.1.2.3.0 - Production on Fri Dec 15 10:03:04 2017

 

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

 

 

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

Start of log messages from FND_FILE

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

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

End of log messages from FND_FILE

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

 

 

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

Executing request completion options...

 

Output file size:

99138382

 

+------------- 1) PUBLISH -------------+

Beginning post-processing of request 74442184 on node APPS at 15-DEC-2017 10:07:33.

Post-processing of request 74442184 failed at 15-DEC-2017 10:10:27 with the error message:

One or more post-processing actions failed. Consult the OPP service log for details.

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

 

+------------- 2) PRINT   -------------+

Not printing the output of this request because post-processing failed.

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

 

 

Finished executing request completion options.

 

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

Concurrent request completed

Current system time is 15-DEC-2017 10:10:27

 

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

 

Solution

 

Step 01

1-     Find value in profile option


Before Values

 

Concurrent: OPP Process Timeout 600

Concurrent: OPP Response Timeout 240

 

Step 02


After Value (replace with old values)

 

Concurrent: OPP Process Timeout 1800

Concurrent: OPP Response Timeout 600

 

Step 03

Go to the concurrent => Manager => Administer


Step 04

Restart the concurrent of Output Post Process


Step 05

Re-run => the 325-FURQAN Account Analysis Subledger 150

 

Issue Resolve.











HTTP Server wallet password error Application R12


 Error:

Executing service control script:

/u01/applmgr/prodappl/inst/apps/TEST_ebstest/admin/scripts/adapcctl.sh start

script returned:

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

 

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=ebstest.hinopak.com:6200

    0 of 1 processes started.

 

ias-instance id=TEST_ebstest.ebstest.hinopak.com

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

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

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

    HTTP_Server/HTTP_Server/HTTP_Server/

 

Error

--> Process (index=1,uid=692153092,pid=17246)

    failed to start a managed process after the maximum retry limit

    Log:

    /u01/applmgr/prodappl/inst/apps/TEST_ebstest/logs/ora/10.1.3/opmn/HTTP_Server~1.log

 

 

adapcctl.sh: exiting with status 0

 

adapcctl.sh: check the logfile /u01/applmgr/prodappl/inst/apps/TEST_ebstest/logs/appl/admin/log/adapcctl.txt for more information ...

 

 

Solution:

 

Error: Failed to open the wallet - Fix

During cloning activity in one of our EBS R12, the whole cloning process completed successfully without reporting any issues. But when we are trying to start application services all “opmn” services are started except HTTP_Server.

e.g.,

[applprod@app scripts]$ ./adopmnctl.sh status

You are running adopmnctl.sh version 120.6.12010000.5

Checking status of OPMN managed processes...

Processes in Instance: PRODHCM_app.app.testdomain.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status 
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2418 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2219 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2218 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2216 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2215 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1889 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1888 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1887 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1886 | Alive  
HTTP_Server                              | HTTP_Server       |     N/A | Down   


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/applprod/inst/apps/PRODHCM_app/logs/appl/admin/log/adopmnctl.txt for more information ... 

[applprod@app scripts]$

In the opmn logfile below error messages are reported:

$ cat /u01/applprod/inst/apps/PRODHCM_app/logs/ora/10.1.3/opmn/HTTP_Server~1.log

--------

16/10/17 10:34:10 Start process
--------
/u01/applprod/inst/apps/PRODHCM_app/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
Error: Failed to open the wallet [Hint: incorrect password, bad wallet file, ...] (Server app.apollohospitals.com:8030, wallet file:/u01/applprod/inst/apps/PRODHCM_app/certs/Apache)

Then I tried to start the "apache"server only but issue not resolved. Restart of application serer also not resolved the issue. From the above error it seems there is a issue with Apache server certificate. So, Finally below workaround worked fine:

So, connected to App server and stopped the all application services.

$ cd $ADMIN_SCRIPTS_HOME
$ ./adstpall.sh

Then, go to Apache sertificate directory.

$ cd $INST_TOP/certs/Apache

 

Just rename exiting file in the folder:

$ mv cwallet.sso cwallet.sso_BAK

And, copy the same file from source ( prod) to this cloned environment and start the application. It worked for me.

 

OR

[applmgr@ebstest opmn]$cd $INST_TOP/certs/opmn

/u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/opmn

[applmgr@ebstest opmn]$ ls

cwallet.sso  ewallet.p12

 

[applmgr@ebstest opmn]$ cp cwallet.sso /u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/Apache

 

[applmgr@ebstest Apache]$ ls

cwallet.sso  cwallet.sso_old  cwallet.sso_prod  ewallet.p12

[applmgr@ebstest Apache]$

OR

[applmgr@ebstest default]$ cd /u01/applmgr/prodappl/apps/tech_st/10.1.3/opmn/conf/ssl.wlt/default

[applmgr@ebstest default]$ ls

cwallet.sso  ewallet.p12

[applmgr@ebstest default]$ cp cwallet.sso  /u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/Apache

 

[applmgr@ebstest Apache]$ ls

cwallet.sso  cwallet.sso_old  cwallet.sso_prod  ewallet.p12

[applmgr@ebstest Apache]$

Wednesday, 20 December 2023

Query For List of Scheduled Concurrent Programs in Apps R12 

 select r.request_id,  

       p.user_concurrent_program_name ||

       case 

          when p.user_concurrent_program_name = 'Report Set' then 

            (select ' - ' || s.user_request_set_name  

              from apps.fnd_request_sets_tl s  

             where s.application_id = r.argument1  

               and s.request_set_id = r.argument2  

               and language = 'US'

            )  

          when p.user_concurrent_program_name = 'Check Periodic Alert' then 

            (select ' - ' || a.alert_name  

              from apps.alr_alerts a  

             where a.application_id = r.argument1  

               and a.alert_id = r.argument2  

               and language = 'US'

            )  

       end concurrent_program_name,  

       decode(c.class_type,  

              'P', 'Periodic',  

              'S', 'On Specific Days',  

              'X', 'Advanced',  

              c.class_type

             ) schedule_type,   

       case 

          when c.class_type = 'P' then 

            'Repeat every ' ||  

            substr(c.class_info, 1, instr(c.class_info, ':') - 1) ||  

            decode(substr(c.class_info, instr(c.class_info, ':', 1, 1) + 1, 1),  

                   'N', ' minutes',  

                   'M', ' months',  

                   'H', ' hours',  

                   'D', ' days') ||  

            decode(substr(c.class_info, instr(c.class_info, ':', 1, 2) + 1, 1),  

                  'S', ' from the start of the prior run',  

                  'C', ' from the completion of the prior run')  

          when c.class_type = 'S' then 

             nvl2(dates.dates, 'Dates: ' || dates.dates || '. ', null) ||  

             decode(substr(c.class_info, 32, 1), '1', 'Last day of month ') ||  

             decode(sign(to_number(substr(c.class_info, 33))),  

                    '1',  'Days of week: ' ||  

                    decode(substr(c.class_info, 33, 1), '1', 'Su ') ||  

                    decode(substr(c.class_info, 34, 1), '1', 'Mo ') ||  

                    decode(substr(c.class_info, 35, 1), '1', 'Tu ') ||  

                    decode(substr(c.class_info, 36, 1), '1', 'We ') ||  

                    decode(substr(c.class_info, 37, 1), '1', 'Th ') ||  

                    decode(substr(c.class_info, 38, 1), '1', 'Fr ') ||  

                    decode(substr(c.class_info, 39, 1), '1', 'Sa '))  

       end schedule,  

    r.requested_start_date next_run,  

       case 

          when p.user_concurrent_program_name != 'Report Set' and 

               p.user_concurrent_program_name != 'Check Periodic Alert' then 

               r.argument_text  

       end argument_text,  

       r.hold_flag on_hold,  

       c.date1 start_date,  

       c.date2 end_date,  

       c.class_info, user_name

  from apps.fnd_concurrent_requests r,  

       applsys.fnd_conc_release_classes c,  

       apps.fnd_concurrent_programs_tl p,  

       apps.fnd_user                    usr,

       (SELECT release_class_id,  

               substr(max(SYS_CONNECT_BY_PATH(s, ' ')), 2) dates  ,a

          FROM (select release_class_id,  

                       rank() over(partition by release_class_id order by s) a,  

                       s  

                  from (select c.class_info,  

                               l,  

                               c.release_class_id,  

                               decode(substr(c.class_info, l, 1), '1', to_char(l)) s  

                          from (select level l

                                  from dual

                               connect by level <= 31),  

                               apps.fnd_conc_release_classes c  

                         where c.class_type = 'S')  

                  where s is not null)  

         CONNECT BY PRIOR 

                     (a || release_class_id) = (a - 1) || release_class_id  

        group by release_class_id,a) dates

  where r.phase_code = 'P' 

    and c.application_id = r.release_class_app_id  

    and c.release_class_id = r.release_class_id  

    and nvl(c.date2, sysdate + 1) > sysdate  

    and c.class_type is not null 

    and p.concurrent_program_id = r.concurrent_program_id  

    and p.application_id = r.program_application_id  

    and p.language = 'US' 

    and dates.release_class_id(+) = r.release_class_id  

    and usr.user_id = requested_by

  order by requested_by,on_hold, next_run;

Query For Currently Login Users List in Apps EBS 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;

Query For Oracle Application EBS R12 Naming User List


select * from fnd_user c where c.end_date is null 

and c.user_name not in ('APPSMGR','AME_INVALID_APPROVER','ASGADM','ASGUEST','GUEST','IEXADMIN','INDUSTRY DATA','IRC_EMP_GUEST','IRC_EXT_GUEST','MOBADM','MOBDEV','MOBILEADM','OP_CUST_CARE_ADMIN','OP_SYSADMIN','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','PORTAL30',

'PORTAL30_SSO','XML_USER','WIZARD','AUTOINSTALL');

How to Identify & Kill Zombie Process in Linux


Zombie Process Definition in Linux

In conclusion, a zombie process in Linux is a terminated child process that remains in the system's process table while waiting for its parent process to collect its exit status. A zombie process is a type of process that has completed its execution but still has an entry in the process table.

What is zombie process in Linux?

In the world of Linux, a zombie process refers to any process that is essentially removed from the system as 'defunct', but still somehow resides in the processor's memory as a 'zombie'.

Step-01 Find Zombie Processes :-

 $ ps aux | egrep "Z|defunct"

 USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

linuxdb  309480  0.0  0.0 112720  2248 pts/0    S+   09:36   0:00 grep -E --color=auto Z|defuct

polkitd  396842  0.0  0.0      0     0 ?        Z    Dec18   0:00 [pkla-check-auth] <defunct>

Step-02 Kill Zombie Processes :-

We can kill above process with two deferent way 

$ kill –s SIGCHLD  Parent_PID

OR

$ kill -9 Parent_PID