Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extract country from aria via sql code in oracle apex

SaRaH-OracleSep 16 2020 — edited Sep 18 2020

Hello,

I have the below query to extract a given user's manager name from people.oracle.com

SELECT

REPLACE(LOWER(SUBSTR(VAL,4,INSTR(VAL,',')-4)),'_','.')||'@oracle.com'

FROM

TABLE

  ( apex_ldap.search(

    p_host => 'ldap.oracle.com',

    p_search_base => 'dc=oracle,dc=com',

    p_search_filter=>'mail='||apex_escape.ldap_search_filter(:APP_USER),

    p_attribute_names => 'manager')

  );

 

In the p_attribute_name, I wish to extract the country to which that :app_user belongs to. is this possible?

Thanks in advance.

Comments
Post Details
Added on Sep 16 2020
3 comments
250 views