Link to home
Create AccountLog in
Oracle Database

Oracle Database

--

Questions

--

Followers

Top Experts

Avatar of FutureDBA-
FutureDBA-

Oracle Apex ACL
I want to allow an apex application to access a json feed via UTL_HTTP from outside my network.

I currently get.

User generated image
How can i get around this?  who would be the principal? APEX_040000? APEX_PUBLIC_USERS?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of FutureDBA-FutureDBA-

ASKER

or better yet,

Who can i create an ACL for user Anonymous to have access to a specific hostname.

Avatar of Sean StuberSean Stuber

I wrote an article that shows how to create and maintain ACLs

https://www.experts-exchange.com/Database/Oracle/A_8429-How-to-use-Access-Control-Lists-in-Oracle.html


BEGIN
DBMS_NETWORK_ACL_ADMIN.create_acl(
            acl           => 'yourACL.xml',
            description   => 'your apex acl',
            principal     => 'ANONYMOUS',
            is_grant      => TRUE,
            privilege     => 'connect'
        );

        --- resolve might be optional for your use
        DBMS_NETWORK_ACL_ADMIN.add_privilege(
            acl         => 'yourACL.xml',
            principal   => 'ANONYMOUS',
            is_grant    => TRUE,
            privilege   => 'resolve'
        );

        --Assign these privileges to all hosts and all ports
        -- You can change the * to a specific host or set of hosts
        DBMS_NETWORK_ACL_ADMIN.assign_acl('yourACL.xml', '*');
        COMMIT;
end;


In your case though I think you want put the APEX schema as the principal, rather than ANONYMOUS.

Check the installation guide under "Enable Network Services"

when you say apex schema.

Do you mean the schema I am using apex with? (in my case cdc)

or, do you mean the users

apex_040000
apex_040200
apex_public_users

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of Sean StuberSean Stuber

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

I've created the schema, i still cannot connect, oddly enough, when i run sql command from within apex, i can get the url.

please see below.


User generated image
User generated image

>>> I've created the schema, i still cannot connect


what schema did you create? How are you using this new schema in relation to this question?
Did you add your new schema as a principal to the same ACL as the apex owner?
Oracle Database

Oracle Database

--

Questions

--

Followers

Top Experts

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.