Thursday, July 20, 2017

R12.2.4 : Unable to locate the server named error in supplier search page

Error:

While accessing Supplier Entry getting the below error,

Description: Unable to locate the server named "fa5099-obiee.oracleads.com" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.

Solution:

Navigation: Payables Manager -> Suppliers -> Entry

Click “Personalize Page”:

Search for "Rich Container", you will be able to find 2 elements, and click the update seed and set the renderedd property to false for both the elements.

To Enable the personalize in EBS:

Set the profile value,

FND: Personalization Region Link Enabled = Yes
Personalize Self-Service Defn = Yes
Disable Self-Service Personal = No


Wednesday, July 19, 2017

staus: Failure - Test Failed: IO Error: Got minus one from a read call Error

While connecting the database through sql developer got error,

"staus: Failure - Test Failed: IO Error: Got minus one from a read call"

Solution:

set "tcp.validnode_checking = no" or comment this parameter in sqlnet.ora file then restart listener on db server and test again.


Find Process ID from SID

select spid
FROM V$SESSION S, V$PROCESS P
where s.sid = '362899073'
and s.paddr = p.addr;

Sunday, July 16, 2017

adoacorectl.sh: exiting with status 206

While starting the EBS services through adstrtall.sh script in DMZ server, we have got the below error.

Log File:

ias-instance id=TEST_oracle.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    default_group/oacore/default_group/

Error
--> Process (index=1,uid=607085474,pid=0)
    no port available from the port range
    failed to start a managed process after the maximum retry limit
    no port available from the port range
    no port available from the port range
    Log:
    none

07/16/17-14:04:00 :: adoacorectl.sh: exiting with status 206

Solution:

Stopped the Discover services which is running in same server using ./opmnctl stopall

Started the EBS services using ./adstrtall.sh. now oacore service started without any issue.

Finally started the discover services.




Finding the PID of the process using a specific port

lsof -n -i :80 | grep LISTEN
nginx   125004 nginx    3u  IPv4   6645      0t0  TCP 0.0.0.0:80 (LISTEN)

netstat -tulnp |grep 1011

Thursday, July 13, 2017

Find Weblogic version and FMW EBS Component Version on R12.2

After Logging into the application set the environment to RUN Filesystem

. /u01/oracle/EBSapps.env run

Then
cat $FMW_HOME/wlserver_10.3/.product.properties | grep WLS_PRODUCT_VERSION

You will get Below Output:

WLS_PRODUCT_VERSION=10.3.6.0
To find the FMW version Oracle E-Business Suite Component Version on R12.2

export ORACLE_HOME=/u01/oracle/fs1/FMW_Home/Oracle_EBS-app1

./opatch lsinv

You will get below Output

Oracle E-Business Suite Component 11.1.1.6.0

Tuesday, July 11, 2017

SQL script to check product patchlevel or codelevel

SELECT app_short_name, MAX(patch_level)
FROM apps.ad_patch_driver_minipks
GROUP BY app_short_name ;

Friday, July 7, 2017

Check Current Undo Configuration and Advise Recommended Setup

SET SERVEROUTPUT ON
SET LINES 600
ALTER SESSION SET NLS_DATE_FORMAT = 'DD/MM/YYYY HH24:MI:SS';

DECLARE
v_begin_time           varchar2(30);
v_end_time             varchar2(30);
v_max_qry_len          number;
v_unto_tbs             varchar2(100);
v_cur_undo_ret         number;
v_cur_undo_mb          number;
v_undo_autoext         varchar2(5);
v_cur_dt               date;
v_recommended_undo_mb  number;
v_analyse_start_time   date;
v_analyse_end_time     date;
BEGIN
select sysdate
into v_cur_dt
from dual;

select sysdate into v_cur_dt from dual;
DBMS_OUTPUT.PUT_LINE(CHR(10));
DBMS_OUTPUT.PUT_LINE('--------------------------------------------------');
DBMS_OUTPUT.PUT_LINE('- Undo Analysis started at : ' || v_cur_dt || ' -');
DBMS_OUTPUT.PUT_LINE('--------------------------------------------------');

SELECT begin_time,end_time into v_analyse_start_time, v_analyse_end_time
FROM v$undostat WHERE undoblks = (SELECT MAX(undoblks) FROM v$undostat);

DBMS_OUTPUT.PUT_LINE('NOTE:The following analysis is based upon the peak database workload during the period -');
DBMS_OUTPUT.PUT_LINE('Begin Time : ' || v_analyse_start_time);
DBMS_OUTPUT.PUT_LINE('End Time   : ' || v_analyse_end_time);


select min(BEGIN_TIME), max(end_time) into v_begin_time, v_end_time from v$undostat;
select max(MAXQUERYLEN) into v_max_qry_len from v$undostat;
select value into v_cur_undo_ret from v$parameter where name = 'undo_retention';
select value into v_unto_tbs from v$parameter where name = 'undo_tablespace';

SELECT ROUND((UR * (UPS * DBS))/1024/1024)
INTO v_recommended_undo_mb
FROM
 ( select max(MAXQUERYLEN) UR
from v$undostat) ,
 (SELECT undoblks/((end_time-begin_time)*86400) AS UPS
  FROM v$undostat
  WHERE undoblks =
  (SELECT MAX(undoblks)
FROM v$undostat)),
 (SELECT block_size AS DBS
  FROM dba_tablespaces
  WHERE tablespace_name =
  (SELECT UPPER(value)
FROM v$parameter
WHERE name = 'undo_tablespace'));


select sum(bytes)/1024/1024 into v_cur_undo_mb from dba_data_files where tablespace_name = v_unto_tbs;

SELECT CASE(select count(*) from dba_data_files
where tablespace_name = v_unto_tbs
and autoextensible = 'YES')
WHEN 0 THEN 'OFF'
ELSE 'ON' END
into v_undo_autoext
from dual;

DBMS_OUTPUT.PUT_LINE(CHR(10));
DBMS_OUTPUT.PUT_LINE('----');
DBMS_OUTPUT.PUT_LINE(RPAD('Longest running query ran for : ',40) || ' : ' || v_max_qry_len || ' Seconds');
DBMS_OUTPUT.PUT_LINE(RPAD('Current undo retention is ',40) || ' : ' || v_cur_undo_ret || ' Seconds');
DBMS_OUTPUT.PUT_LINE(RPAD('Current undo tablespace size is ',40) || ' : ' || v_cur_undo_mb || 'M');
DBMS_OUTPUT.PUT_LINE(RPAD('AUTOEXTEND for undo tablespace size is ',40) || ' : ' || v_undo_autoext);
DBMS_OUTPUT.PUT_LINE('----');
DBMS_OUTPUT.PUT_LINE(RPAD('Recommended undo retention is ',40) || ' : ' || TO_CHAR(v_max_qry_len+1) || ' Seconds');
DBMS_OUTPUT.PUT_LINE(RPAD('Recommended undo tablespace size is ',40) || ' : ' || v_recommended_undo_mb || 'M');

select sysdate into v_cur_dt from dual;
DBMS_OUTPUT.PUT_LINE(CHR(10));
DBMS_OUTPUT.PUT_LINE('----------------------------------------------------');
DBMS_OUTPUT.PUT_LINE('- Undo Analysis completed at : ' || v_cur_dt || ' -');
DBMS_OUTPUT.PUT_LINE('----------------------------------------------------');

END;
/


Sample Output:
------------------

- Undo Analysis started at : 30/08/2013 11:08:40 -
---------------------------------------------------------
NOTE:The following analysis is based upon the database workload during the period -
Begin Time : 23/08/2013 11:08:40
End Time   : 30/08/2013 11:08:40

Current Undo Configuration
----------------------------------
Current undo tablespace                                              : UNDOTBS2
Current undo tablespace size (datafile size now)        : 20M
Current undo tablespace size (consider autoextend)   : 20M
AUTOEXTEND for undo tablespace is                      : ON
Current undo retention                                                : 900
UNDO GUARANTEE is set to                                  :FALSE

Undo Advisor Summary
------------------------------
Finding 1:Undo Tablespace is under pressure. Recommendation 1:Size undo tablespace to 26 MB

Undo Space Recommendation
------------------------------------
Minimum Recommendation                : Size undo tablespace to 26 MB
Rationale                                              : Increase undo tablespace size so that long running queries will not fail
Recommended Undo Tablespace Size : 26M

Retention Recommendation
---------------------------------
The best possible retention with current configuration is    : 9171 Seconds
The longest running query ran for                                        : 2543 Seconds
The undo retention required to avoid errors is                     : 2543 Seconds

PL/SQL procedure successfully completed.

 

Tuesday, July 4, 2017

Find the Concurrent Manager Status through Back END

select
decode(CONCURRENT_QUEUE_NAME,
'FNDICM','Internal Manager',
'FNDCRM','Conflict Resolution Manager',
'AMSDMIN','Marketing Data Mining Manager',
'C_AQCT_SVC','C AQCART Service',
'FFTM','FastFormula Transaction Manager'
,'FNDCPOPP','Output Post Processor',
'FNDSCH','Scheduler/Prereleaser Manager',
'FNDSM_AQHERP','Service Manager: AQHERP',
'FTE_TXN_MANAGER','Transportation Manager',
'IEU_SH_CS','Session History Cleanup',
'IEU_WL_CS','UWQ Worklist Items Release for Crashed session',
'INVMGR','Inventory Manager',
'INVTMRPM','INV Remote Procedure Manager',
'OAMCOLMGR','OAM Metrics Collection Manager',
'PASMGR','PA Streamline Manager',
'PODAMGR','PO Document Approval Manager',
'RCVOLTM','Receiving Transaction Manager',
'STANDARD','Standard Manager',
'WFALSNRSVC','Workflow Agent Listener Service',
'WFMLRSVC','Workflow Mailer Service','WFWSSVC',
'Workflow Document Web Services Service','WMSTAMGR',
'WMS Task Archiving Manager',
'XDP_APPL_SVC','SFM Application Monitoring Service',
'XDP_CTRL_SVC','SFM Controller Service',
'XDP_Q_EVENT_SVC','SFM Event Manager Queue Service',
'XDP_Q_FA_SVC','SFM Fulfillment Actions Queue Service',
'XDP_Q_FE_READY_SVC','SFM Fulfillment Element Ready Queue Service',
'XDP_Q_IN_MSG_SVC','SFM Inbound Messages Queue Service',
'XDP_Q_ORDER_SVC','SFM Order Queue Service',
'XDP_Q_TIMER_SVC','SFM Timer Queue Service',
'XDP_Q_WI_SVC','SFM Work Item Queue Service',
'XDP_SMIT_SVC','SFM SM Interface Test Service')
as "Concurrent Manager's Name",
max_processes as "TARGET Processes",
running_processes as "ACTUAL Processes"
from apps.fnd_concurrent_queues
where CONCURRENT_QUEUE_NAME in ('FNDICM','FNDCRM','AMSDMIN','C_AQCT_SVC','FFTM','FNDCPOPP','FNDSCH','FNDSM_AQHERP','FTE_TXN_MANAGER','IEU_SH_CS','IEU_WL_CS','INVMGR','INVTMRPM','OAMCOLMGR','PASMGR','PODAMGR','RCVOLTM','STANDARD','WFALSNRSVC','WFMLRSVC','WFWSSVC','WMSTAMGR','XDP_APPL_SVC','XDP_CTRL_SVC','XDP_Q_EVENT_SVC','XDP_Q_FA_SVC','XDP_Q_FE_READY_SVC','XDP_Q_IN_MSG_SVC','XDP_Q_ORDER_SVC','XDP_Q_TIMER_SVC','XDP_Q_WI_SVC','XDP_SMIT_SVC');

Monday, July 3, 2017

Find the Number of Concurrent Requests were completed for last 7 Days

select
trunc(REQUESTED_START_DATE),count(*)
FROM FND_CONCURRENT_REQUESTS
WHERE REQUESTED_START_DATE BETWEEN sysdate-7 AND sysdate
group by rollup(trunc(REQUESTED_START_DATE));