Monday, October 14, 2013

Troubleshooting Workflow Notification Mailer Issues

Troubleshooting Workflow Notification Mailer Issues


Troubleshooting Workflow Notification Mailer Issues
Find Workflow Notification Mailer is up and Running?


SELECT component_name, component_status
FROM fnd_svc_components
WHERE component_type = 'WF_MAILER';


Workflow log’s: FNDCPGSC*.txt under $APPLCSF/$APPLOG directory


Find the Failed One’s?


Select NOTIFICATION_ID, MESSAGE_TYPE, MESSAGE_NAME, STATUS, MAIL_STATUS, FROM_USER, TO_USER from wf_notifications where MAIL_STATUS='FAILED';


Check pending e-mail notification that was pending for process.


Sql> SELECT COUNT(*), message_name FROM wf_notifications
WHERE STATUS='OPEN'
AND mail_status = 'MAIL'
GROUP BY message_name;


Sql> SELECT * FROM wf_notifications
WHERE STATUS='OPEN'
AND mail_status = 'SENT'
ORDER BY begin_date DESC




Check the Workflow notification has been sent or not?


select mail_status, status from wf_notifications where notification_id=


--If mail_status is MAIL, it means the email delivery is pending for workflow mailer to send the notification
--If mail_status is SENT, its means mailer has sent email
--If mail_status is Null & status is OPEN, its means that no need to send email as notification preference of user is "Don't send email"
--Notification preference of user can be set by user by logging in application + click on preference + the notification preference


1. Verify whether the message is processed in WF_DEFERRED queue


select * from applsys.aq$wf_deferred a where a.user_data.getEventKey()= ''
- notification id


2. If the message is processed successfully message will be enqueued to WF_NOTIFICATION_OUT queue, if it errored out it will be enqueued to WF_ERROR queue


select wf.user_data.event_name Event_Name, wf.user_data.event_key Event_Key,
wf.user_data.error_stack Error_Stack, wf.user_data.error_message Error_Msg
from wf_error wf where wf.user_data.event_key = '
To check what all mails have went and which all failed ?


Select from_user,to_user,notification_id, status, mail_status, begin_date
from WF_NOTIFICATIONS where status = 'OPEN';


Select from_user, to_user, notification_id, status, mail_status,begin_date,USER_KEY,ITEM_KEY,MESSAGE_TYPE,MESSAGE_NAME begin_date
from WF_NOTIFICATIONS where status = 'OPEN';




Users complain that notifications are stuck ?


Use the following query to check to see whatever the users are saying is correct


SQL> select message_type, count(1) from wf_notifications
where status='OPEN' and mail_status='MAIL' group by message_type;


E.g o/p of query -


MESSAGE_Type COUNT(1)
-------- ----------
POAPPRV 11 --- 11 mails of Po Approval not sent ---
INVTROAP 12
REQAPPRV 9
WFERROR 45 --- 45 mails have error




If Mail not received by User ?


select Name,DISPLAY_NAME,EMAIL_ADDRESS,NOTIFICATION_PREFERENCE,STATUS
from wf_users where DISPLAY_NAME=’xxx,yyy’ ;


Status – Active
Notification_preference-> Mailtext
Email Address should not be null


Notification not sent waiting to be mailed ?


SQL> select notification_id, status, mail_status, begin_date from WF_NOTIFICATIONS
where status = ‘OPEN’ and mail_status = ‘MAIL’;
To debug the notification id ?


$FND_TOP/sql
run wfmlrdbg.sql
******************************

Note: 1054215.1 - How to Check if the Workflow Mailer is Running
Note: 415516.1 - How to Check Whether Notification Mailer is Working or Not

Note: 831982.1 - 11i/R12 - A guide for troubleshoting Workflow Notification Emails - Inbound and Outbound
Note: 1012344.7 - Notifications Not Being Sent In Workflow
Note: 560472.1 - Workflow Mailers Not Sending Notifications

Please see (Note: 753845.1 - How to Perform a Meaningful SMTP Telnet Test to Troubleshoot Java Mailer Issues), the same error is reported in this doc.

How To Find The Module Patch Levels On An eBusiness Suite Instance (Doc ID 1076033.1)




Oracle Field Service - Version 11.5.10.2 and later
Oracle Depot Repair - Version 11.5.10.2 and later
Oracle Scheduler - Version 11.5.10.2 and later
Oracle Mobile Field Service - Version 11.5.10.2 and later
Oracle Spares Management - Version 11.5.10.2 and later
Information in this document applies to any platform.
***Checked for relevance on 17-Sep-2013***

GOAL

How can one determine the patch level for an eBusiness Suite module?



SOLUTION

To determine the patch level for an eBusiness Suite module there are three options:

Either
(A) Run Diagnostics Apps Check Concurrent Request for the module (for example for the Field Service module use the parameters listed below):

Navigation path to run the concurrent request:
(R) Oracle Order Management
(N) Reports,Requests > Run Requests > Single Request

Name = Diagnostics: Apps Check
Parameters
----------
Application 1 = Field Service

To retrieve the output navigate to:
View > Requests > Relevant Request ID (button)
Click View Output > Save File as "filename.txt"

or

(B) In a similar way it is possible to obtain this information by running the 'Diagnostics' report from Order Management or Purchasing module. The required information can be gathered using the following steps:

1. Responsibility: Order Management Super User (or Purchasing Super User).

2. Navigation Path: Request -> Run Request ->  Single Request.

3. Choose "Diagnostics: Apps Check".

4. Select 'Product Name' from the Application LOV (You can choose up to 5 products).

5. Submit the request.

The generated report contains many details, but the data of particular interest is under the heading: Application Installation Details, where it lists the patch set level for each licensed application.

Or

(C) run the following SQL

select fpi.patch_level,
fa.application_short_name,
fa.application_id
from fnd_product_installations fpi,
fnd_application fa
where fa.application_short_name = '&short_name'
and fa.application_id = fpi.application_id;

The values for the variable &short_name would be:
CSF - Field Service
CSD - Depot Repair
CSR - Scheduler
CSM - Mobile Field Service
CSP - Spares Management



Is Install Of FPI Patchsets for TCA and HR Required For iSupplier Portal Release 12.1?




APPLIES TO:

Oracle iSupplier Portal - Version: 12.1 to 12.1.2 - Release: 12.1 to 12.1
Information in this document applies to any platform.
GOAL

The implementation guide for Release 12.1 iSupplier Portal mentions installing TCA and HR patches for Patchset FPI.  Is this required?

Specifically for these documents:

Oracle� iSupplier Portal Implementation Guide Release 12.1 Part No. B31600-03 April 2009
Oracle� iSupplier Portal Implementation Guide Release 12.1 Part No. E16345-01 December 2009,

In Chapter 4,  under  section "Implementing Prospective Vendor Registration (Optional)"  on page 4-18 it states:


Step 1: Install FPI Patchset (Required)

To implement the Prospective Vendor Registration feature, you must first apply the
TCA and HR patches for FPI.



SOLUTION


This is a documentation Bug:

Bug 9394316 - INSTALL FPI PATCHSET STILL IN 12.1.2 DOCUMENTATION

The 'FPI' references 'Procurement Family Pack I' which is seeded with Release 11.5.9.

The TCA and HR patches are likely to have been superseded and already applied as part of Release 12 installation, so this step can be ignored

Get the current Patchset level of Oracle Applications products in R12



1) Login to OAM

(Responsibility "Oracle Applications Manager", menu "OAM Support Cart")
and Navigate: Support Cart -> Applications Signature -> Collect -> Check "Product Information" box -> Click on "View" (eyeglasses)

In R12

(Responsibility "System Administrator", Menu "Oracle Application Manager")
and Navigate : Applications Usage >> Products Installed


This will display the following patchset information :

Application Name
Current Patch Level
Product Version
Status (Installed, Shared Product, Inactive)

2) The patchset level information can be retrieved directly via sqlplus with the following diagnostic script : $AD_TOP/sql/adutconf.sql

3) Use the below query to pull out the details

SQL>SELECT fav.application_id,
fav.application_short_name, 
fav.application_name,
fav.basepath,
fav.creation_date,
fpi.status,
fpi.patch_level,
fpi.product_version,
fpi.TABLESPACE,
fpi.index_tablespace,
fpi.temporary_tablespace
FROM fnd_application_vl fav,
fnd_product_installations fpi
WHERE fav.application_id = fpi.application_id(+) 
ORDER BY creation_date DESC

Friday, October 11, 2013

APPS DBA - IMPORTANT NOTES


Oracle Applications Technology Stack - Version 11.5.10.2 to 12.1.3 [Release 11.5.10 to 12.1]
Information in this document applies to any platform.

GOAL
This note is to list the main Setup, Installation and Diagnostics notes available related to the Oracle E-Business Suite Technology stack.
FIX
Java
----------------------------------------------------------------------------------------------------
Note 418664.1 Overview of Using Java with Oracle E-Business Suite Release 12
Note 455492.1 Using Latest Update of Java 6.0 with Oracle E-Business Suite Release 12
Note 384249.1 Using Latest Update of JDK 5.0 with Oracle E-Business Suite Release 12
Note 300482.1 Overview of Using Java with Oracle E-Business Suite Release 11i
Note 401561.1 Using J2SE Version 6 with Oracle E-Business Suite 11i
Note 304099.1 Using J2SE Version 5.0 with Oracle E-Business Suite 11i, Release 11.5.10
Note 246105.1 Upgrading to J2SE 1.4.2 with Oracle Applications 11i
Note 130091.1 Upgrading Oracle Applications 11i to use JDK 1.3

JRE/Jinitiator/EBS Client Software
----------------------------------------------------------------------------------------------------
Note 389422.1 Recommended Browsers for Oracle E-Business Suite Release 12
Note 393931.1 Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12
Note 285218.1 Recommended Browsers for Oracle Applications 11i
Note 290807.1 Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i
Note 124606.1 Upgrading JInitiator with Oracle E-Business Suite 11i
Note 1155883.1 Oracle E-Business Suite Desktop Client Hardware and Software Requirements

Forms
----------------------------------------------------------------------------------------------------
Note 437878.1 Upgrading OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12
Note 750359.1 Upgrading to Previous Version of OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12
Note 384241.1 Using Forms Socket Mode with Oracle E-Business Suite Release 12
Note 438652.1 R12 Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications
Note 125767.1 Upgrading Developer 6i with Oracle Applications 11i
Note 232313.1 Information on Previous Versions of Developer 6i Patchsets
Note 201340.1 Using Forms Listener Servlet with Oracle Applications 11i
Note 150168.1 Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i
Note 760250.1 Diagnosing Forms Mouse Focus Problems Using JRE in Release 11i
Note 1207184.1 Enhanced Signing of Oracle E-Business Suite JAR Files

OracleAS
----------------------------------------------------------------------------------------------------
Note 454811.1 Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12
Note 743518.1 Starting up AS10g services in an EBusiness Suite Release 12 environment

JDBC
----------------------------------------------------------------------------------------------------
Note 557194.1 monitor_jdbc_conn.sql - Script to monitor JDBC connections in Apps eBusiness Suite
Note 427759.1 How To Prevent Inactive JDBC Connections In Oracle Applications

JVM
----------------------------------------------------------------------------------------------------
Note 362851.1 Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12
Note 567551.1 Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12
Note 370583.1 Basic troubleshooting of JVM consuming cpu or too many JDBC connections in Apps 11i

Apache/mod_jserv
----------------------------------------------------------------------------------------------------
Note 230688.1 11i Basic Apache/mod_jserv Troubleshooting with Hello.class

Debug/Trace
----------------------------------------------------------------------------------------------------
Note 422419.1 R12 - How To Enable and Collect Debug for HTTP, OC4J and OPMN
Note 443671.1 R12 - Collecting Configuration Information for HTTP, OC4J and OPMN
Note 427848.1 How to Enable Execution Context ID (ECID) in the R12 access_log
Note 455154.1 R12: How To Obtain A Thread Dump When OC4J is shutdown
Note 603390.1 How To Create a User Event Trace in R11i / R12

OA Framework
----------------------------------------------------------------------------------------------------
Note 391554.1 Oracle Application Framework Documentation Resources, Release 12
Note 275880.1 Oracle Application Framework Release 11i Documentation Road Map
Note 275875.1 Oracle Application Framework Troubleshooting Release 11i (11.5.10)
Note 357597.1 How To Generate A SQL Trace In OA Framework For Oracle Applications

WebCache
----------------------------------------------------------------------------------------------------
Note 380486.1 Installing and Configuring Web Cache 10g and Oracle E-Business Suite 12
Note 306653.1 Installing and Configuring Web Cache 10.1.2 and Oracle E-Business Suite 11i

JDeveloper
----------------------------------------------------------------------------------------------------
Note 330236.1 Configuring JDeveloper For Use With Oracle Applications 11i and R12
Note 357218.1 Troubleshooting JDeveloper setup for Oracle Applications
Note 416708.1 How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x

Performance
----------------------------------------------------------------------------------------------------
Note 163208.1 bde_last_analyzed.sql - Verifies CBO Statistics
Note 174605.1 bde_chk_cbo.sql - Reports Database Initialization Parameters related to an Apps 12 or 11i instance
Note 396009.1 Database Initialization Parameters for Oracle Applications Release 12
Note 216205.1 Database Initialization Parameters for Oracle Applications 11i
Note 744143.1 Tuning performance on eBusiness suite
Note 169935.1 Troubleshooting Oracle Applications Performance Issues
Note 244040.1 Oracle E-Business Suite Recommended Performance Patches

Security
----------------------------------------------------------------------------------------------------
Note 738923.1 Oracle E-Business Suite Releases 11i and 12 Critical Patch Update note (January 2009)
Note 403537.1 Best Practices for Securing Oracle E-Business Suite Release 12
Note 189367.1 Best Practices for Securing the E-Business Suite Release 11i

Ihelp
----------------------------------------------------------------------------------------------------
Note 740834.1 R12: Troubleshooting iHelp

Advanced Configurations
----------------------------------------------------------------------------------------------------
Note 380483.1 Oracle E-Business Suite Release 12 Additional Configuration and Deployment Options
Note 384248.1 Sharing The Application Tier File System in Oracle E-Business Suite Release 12
Note 217368.1 Advanced Configurations and Topologies for Enterprise Deployments of E-Business Suite 11i
Note 233428.1 Sharing the Application Tier File System in Oracle Applications 11i
Note 233436.1 Installing Oracle Application Server 10g with Oracle E-Business Suite Release 11i
Note 364439.1 Tips and Queries for Troubleshooting Advanced Topologies

DMZ
----------------------------------------------------------------------------------------------------
Note 380490.1 Oracle E-Business Suite R12 Configuration in a DMZ
Note 726953.1 Case History: Implementing a Reverse Proxy Alone in the DMZ Configuration - R12
Note 287176.1 DMZ Configuration with Oracle E-Business Suite 11i
Note 438744.1 Case History: Implementing a Reverse Proxy Alone in a DMZ Configuration - 11i
Note 460564.1 Hints and Tips for Troubleshooting the URL Firewal

Loadbalancer
----------------------------------------------------------------------------------------------------
Note 380489.1 Using Load-Balancers with Oracle E-Business Suite Release 12
Note 727171.1 Implementing Load Balancing On Oracle E-Business Suite - Documentation For Specific Load Balancer Hardware
Note 601694.1 How To Check Session Persistence On BigIP F5 And Cisco Ace Load Balancer Appliances
Note 603325.1 Using Cisco ACE Series Application Control Engine with Oracle E-Business Suite Release 12

SSL
----------------------------------------------------------------------------------------------------
Note 376700.1 Using SSL with Oracle E-Business Suite Release 12
Note 1330799.1 Login Page Fails To Render On SSL Terminated Application Tiers  
Note 123718.1 11i A Guide to Understanding and Implementing SSL for Oracle Applications

Portal
----------------------------------------------------------------------------------------------------
Note 380484.1 Using Oracle Portal 10g with Oracle E-Business Suite Release 12
Note 305918.1 Using Oracle Portal 10g with Oracle E-Business Suite Release 11i

SSO/OID
----------------------------------------------------------------------------------------------------
Note 876539.1 Using the Latest Oracle Internet Directory 11gR1 Patchset with Oracle Single Sign-on and Oracle E-Business Suite
Note 376811.1 Integrating Oracle E-Business Suite Release 12 with 10g AS Oracle Internet Directory and Oracle Single Sign-On
Note 261914.1 Integrating Oracle E-Business Suite Release 11i with Oracle Internet Directory and Oracle Single Sign-On
Note 444573.1 Basic checks for user integration when using Oracle E-Business Suite 11i with Oracle AS 10g

Orace Access Manager / AccessGate
----------------------------------------------------------------------------------------------------

Note 975182.1 Integrating Oracle E-Business Suite with Oracle Access Manager using Oracle E-Business Suite AccessGate
Note 1077460.1 Troubleshooting Oracle Access Manager and Oracle E-Business Suite AccessGate

Webcenter
----------------------------------------------------------------------------------------------------
Note 1074345.1 Using WebCenter 11.1.1 with Oracle E-Business Suite Release 12 
Note 557221.1 Oracle WebCenter 10g Application Creation and Deployment Guide for Oracle E-Business Suite Release 12

Secure Enterprise Search
----------------------------------------------------------------------------------------------------
Note 566097.1 Oracle E-Business Suite Secure Enterprise Search Release Notes, Release 12.1.1
Note 744820.1 Oracle E-Business Suite Secure Enterprise Search Best Practices, Release 12
Note 462377.1 Installing Oracle E-Business Suite Secure Enterprise Search, Release 12
Note 740499.1 Oracle E-Business Suite Secure Enterprise Search Release Notes, Release 12.0.6
Note 726239.1 Oracle E-Business Suite Secure Enterprise Search Troubleshooting Guidelines, Release 12

SOA/BPEL/Webservices
----------------------------------------------------------------------------------------------------
Note 556540.1 Installing Oracle E-Business Suite Integrated SOA Gateway, Release 12.1
Note 565922.1 Oracle E-Business Suite Integrated SOA Gateway Release Notes, Release 12.1.1
Note 815196.1 Oracle E-Business Suite Integrated SOA Gateway 12.1.1 Consolidated One-Off
Note 726414.1 Oracle E-Business Suite Integrated SOA Gateway Troubleshooting Guide, Release 12
Note 755067.1 Using Oracle BPEL 10g with E-Business Suite Release 12.1.1
Note 782455.1 How Can I Expose E-Business Suite Integration Interfaces as Web Services in Release 11i and R12.0

MWA
----------------------------------------------------------------------------------------------------
Note 782162.1 MWA Troubleshooting Tips for Release 12
Note 269991.1 MWA Troubleshooting Tips for Release 11i

Certified/Supported
----------------------------------------------------------------------------------------------------
http://blogs.oracle.com/stevenchan/certifications.html
Note 363827.1 Rebaselined Oracle Applications Technology Components for Releases 11.5.7, 11.5.8, 11.5.9, and 11.5.10
Note 883202.1 Minimum Baseline Patch Requirements for Extended Support on Oracle E-Business Suite 11.5.10 
Note 1199724.1  E-Business Suite 11.5.10 Minimum Patch Level and Extended Support Information Center

WEBADI
----------------------------------------------------------------------------------------------------
Note 417692.1 Installing, Configuring and Troubleshooting Web ADI (Web Applications Desktop Integrator)
Note 452452.1 R12 Installing, Configuring and Troubleshooting Web ADI (Web Applications Desktop Integrator)
Note 294739.1 How to enable tracing for WEBADI
Note 726989.1 List of Patches in Web Applications Desktop Integrator (Web ADI) for Releases 11i and 12

Diagnostics
----------------------------------------------------------------------------------------------------
Note 167000.1 E-Business Suite Diagnostics Installation Guide
Note 421245.1 E-Business Suite Diagnostics References for R12
Note 179661.1 E-Business Suite Diagnostics 11i Test Catalog

Installation
----------------------------------------------------------------------------------------------------
Note 761564.1 Oracle Applications Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86
Note 402310.1 Oracle Applications Installation and Upgrade notes Release 12 (12.0) for Linux (32-bit)
Note 406982.1 Cloning Oracle Applications Release 12 with Rapid Clone
Note 559518.1 Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone
Note 421409.1 Unbreakable Linux enviroment check before R12 install
Note 458533.1 How to Enable Enterprise Manager on the Oracle E-Business Suite Release 12
Note 603716.1 Using AS10g AS Control with eBusiness Suite Rel 12
Note 452120.1 How to locate the log files and troubleshoot RapidWiz for R12
Note 316806.1 Oracle Applications Installation Update notes, Release 11i (11.5.10.2)
Note:230672.1 Cloning Oracle Applications Release 11i with Rapid Clone
note 207296.1 How to Find out Linux Version Information?





Database
----------------------------------------------------------------------------------------------------
Note:454750.1 Oracle Apps Release 12 with Oracle Database 10.2.0 interoperability notes
Note 735276.1 Interoperability notes E-Business Suite R12 with Oracle Database 11gR1
Note 388577.1 Configuring Oracle Applications Release 12 with 10g R2 RAC
Note 466649.1 Using Oracle 11g Release 1 Real Application Clusters and Automatic Storage Management with Oracle E-Business Suite Release 12
Note 216550.1 Oracle Applications Release 11i with Oracle9i Release 2 (9.2.0)
Note 362203.1 Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)
Note 452783.1 Oracle Applications Release 11i with Oracle 11g Release 1 (11.1.0)
Note 362135.1 Configuring Oracle Applications Release 11i with 10g R2 RAC and ASM
Note 554539.1 Using Database Partitioning with Oracle E-Business Suite


Current workflow mailer log file location



select fl.meaning,fcp.process_status_code, 
decode(fcq.concurrent_queue_name,'WFMLRSVC','maile r container','WFALSNRSVC','listener container',fcq.concurrent_queue_name),
fcp.concurrent_process_id,os_process_id, fcp.logfile_name
from fnd_concurrent_queues fcq, fnd_concurrent_processes fcp , fnd_lookups fl
where fcq.concurrent_queue_id=fcp.concurrent_queue_id and fcp.process_status_code='A'
and fl.lookup_type='CP_PROCESS_STATUS_CODE' and
fl.lookup_code=fcp.process_status_code
and concurrent_queue_name in('WFMLRSVC','WFALSNRSVC')
order by fcp.logfile_name;

Workflow Service Containers Will Not Start: oracle.jms.AQjmsException: JMS-120: Dequeue failed

APPLIES TO:
Oracle Workflow Cartridge - Version 11.5.9 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.
Checked for relevance on 20-APR-2013

SYMPTOMS

The Workflow Service Container logs shows error:
oracle.jms.AQjmsException: JMS-120: Dequeue failed
at oracle.jms.AQjmsError.throwEx(AQjmsError.java:233)
at oracle.jms.AQjmsConsumer.dequeue(AQjmsConsumer.java:1424)
at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:692)
at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:629)
at oracle.apps.fnd.wf.bes.ControlListener.run(ControlListener.java:74)

Monitoring failed this iteration -> oracle.apps.fnd.cp.gsc.ProcessorException: Could not start automatic component -> oracle.apps.fnd.cp.gsc.server.GenericSvcComponentEOException: ORA-20002: 3825: Error '-24033 - ORA-24033: no recipients for message' encountered during execution of Rule function 'WF_RULE.ERROR_RULE' for event 'oracle.apps.fnd.cp.gsc.SvcComponent.start' with key 'SVC:15/JAN/2010'. FUNCTION_NAME=WF_EVENT_OJMSTEXT_QH.enqueue()
CHANGES
Payroll patch 9204430 was applied which revoked DBA role from the APPS user by running script:
$AD_TOP/patch/115/sql/adrevdba.sql.
CAUSE

The APPS user do not have the privilege to execute the SYS.DBMS_AQIN package.

The following error is thrown when run describe from the apps schema sys.dbms_aqin.

sqlplus apps/apps_pw

desc sys.dbms_aqin

ERROR:
ORA-04043: object sys.dbms_aqin does not exist
SOLUTION

1. Grant AQ_ADMINISTRATOR_ROLE to APPS which includes execute privilege on DBMS_AQIN.

sqlplus / @$AD_TOP/patch/115/sql/adgrnaq.sql

Example

sqlplus apps/apps @$AD_TOP/patch/115/sql/adgrnaq.sql manager apps apps


2. Confirm AQ_ADMINISTRATOR_ROLE is granted to APPS as BOTH ADMIN and DEFAULT.

This is the result for R12.1.  Some roles are not in 11.5.x. The APPS user need to always have the DEFAULT profile.  Do not revoke DEFAULT from the APPS User.

select * from DBA_ROLE_PRIVS where grantee='APPS';

GRANTEE
GRANTED_ROLE
ADM
DEF
APPS
RESOURCE
NO
YES
APPS
CONNECT
NO
YES
APPS
HR_REPORTING_USE
YES
YES
APPS
CTXAPP
NO
YES
APPS
OWS_STANDARD_ROLE
NO
YES
APPS
WEBDB_DEVELOPER
NO
YES
APPS
APPS_CONNECT
NO
YES
APPS
JAVASYSPRIV
NO
YES
APPS
HR_SECURE_USER
YES
YES
APPS
AQ_ADMINISTRATOR_ROLE
YES
YES


3. Give the Default profile to the APPS user if it has been revoked.

alter user APPS default role ALL;

4. Shutdown and restart the Concurrent Manager.
11.5.x
cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
12.x
cd $ADMIN_SCRIPTS_HOME
sh adcmctl.sh stop apps/apps_pw

sh adcmctl.sh start apps/apps_pw

https://support.oracle.com/epmos/adf/images/t.gif

Wednesday, October 9, 2013

Integrated SOA Gateway EBS-R12 - 'SOA Provider Access is not available'


Hello Tech Community,


In this post, I will be discussing the issue that I came across the Integrated SOA Gateway. Everything was configured as per the implementation guide and was working fine. Then came the R1213 upgrade from R1212 and here we are with the issue. Let's get started. This is Linix (RedHat 5.5 x86-64) with EBS R12.1.3.


Error:


This issue is encountered while generating web service from a native java api through SOA Gateway.

Also cannot view the wsdl file from the hyperlink. Infact the hyperlink seems to be freezed.
The webservice must be deployed with the usename/password token- 
This generates a secondary error when deploy button is pressed.


The Error that display is - 'SOA Provider Access is not available'


The Navigation path is: EBS Login --> Integration Repository Administrator --(select the Integration Repository Tab)--> java -->(Your application) then the WSDL that you want to generate to




Debugging:


1- Since the Integrated SOA Gateway was working before the upgrade - so thought may be there is an issue with getting the WSDL generated so tried the following from the mid-tier:


$FND_TOP/bin/soagenerate  irepname= logfile= 


I gave the irepname that developer was using while he got the error. My irep name was "
oracle.apps.po.service.poxrqerq.POXRQERQServices_DocStyle"


The WSDL was generated fine.


2- Tried from the front end to deploy and I got the same error.


3- Now the testing time for the SOA Gateway  and found the issue.


First  Test got me to the issue. Tried following and got Error.


http://amghost5:8090/webservices/SOAProvider/?testquery


This should return " Test Response" but it  returned HTTP 500 Error.




Cause:


During the upgrade the xml file that host the ASADMIN password was reset to defalut of "welcome" while the DB has the modified password.


Solution:


edit the following file with the password that you have in DB with clear text for ASADMIN as "!MyPassw0rd" - Please note the "!" before the real password.



$ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/system-jazn-data.xml


The password can be verified as:

select fnd_web_sec.validate_login('ASADMIN','MyPassw0rd') from dual;


If password is not known the change the password as:

       1. Log on to Oracle E-Business Suite using sysadmin/sysadmin.
         2. Select the User Management responsibility in the Navigator.
         3. Click the Users link from the navigation menu to open the User Maintenance window.
         4. Locate 'ASADMIN' user by entering information in the search area to retrieve the 'ASADMIN' user.
         5. Click the Update icon next to the ASADMIN user to open the Update User window.
         6. Remove the Active To date field and click Apply.
         7. Click the Reset Password icon next to the ASADMIN user to open the Reset Password window.
         8. Enter new password twice and click Submit.

Restart the OAFM 



cd $ADMIN_SCRIPTS_HOME


./adoafmctl.sh stop

./adoafmctl.sh start
./adoacorectl.sh stop
./adoacorectl.sh start


Then check the status by:
./adopmnctl.sh status





Now test the SOA Gateway page again:


http://amghost5:8090/webservices/SOAProvider/?testquery 


and it resturns the test response.


Now Generate and deploy the WSDL - all is fine.