I’m currently working in a project using Oracle Apex and Oracle e-Business suite for medication logistics. After some time we experienced some weird behavior when querying some tables and API’S in EBS. In the beginning we thought it was related to logon and initializing the session with EBS.

We experienced that that a query like this below, did not return any data when it was executed from our APEX app.

select * from apps.org_organization_definitions;

When selecting with pl/sql developer from APPS-schema all is fine.

When doing the same select from our APEX APP, no data i returned. This even if we are properly logged in and initialized with an EBS user.

Some searching led us to this blog post, from Ace Director Johannes Michler: Accessing EBS APIs from APEX – HR_SECURITY

You can read that blog for the details of the problem. The solution to the problem was adding the APEX_PUBLIC_USER to the user table in e-Business Suite.

exec fnd_oracle_user_pkg.load_row('APEX_PUBLIC_USER', 'CUSTOM', 'INVALID', 'Apex Schema Description', 'N', 'K');
commit;

This worked fine until we upgraded from APEX 24.1 to Apex 24.2. At the same time the URL was changed to friendly URL type. Then the same odd behavior came back. The UAT environment with the same version of the APP on APEX version 24.1 worked fine.

I compared the the two environments. DEV had one extra user compared to UAT. The user APEX_PUBLIC_ROUTER was present in the upgraded DEV environment, but not in UAT. Looking at the definition of this user:

APEX_PUBLIC_ROUTER – This minimally privileged account is used for an ORDS REST module to resolve friendly URLs.

Still remembering the issues with the APEX_PUBLIC_USER I immediately tried this fix:

exec fnd_oracle_user_pkg.load_row('APEX_PUBLIC_ROUTER', 'CUSTOM', 'INVALID', 'Apex Schema Description', 'N', 'K');
commit;

This fixed the problem after upgrading to Apex 24.2 and starting to use friendly URL’S.

Leave a Reply


Oppdag mer fra Standal.blog

Abonner for å få de siste innleggene sendt til din e-post.

Håvard Standal avatar

Published by

Discover more from Standal.blog

Subscribe now to keep reading and get access to the full archive.

Continue reading