Solved

Oracle Apex ACL

Posted on 2014-02-07
6
580 Views
Last Modified: 2014-02-17
I want to allow an apex application to access a json feed via UTL_HTTP from outside my network.

I currently get.

acl
How can i get around this?  who would be the principal? APEX_040000? APEX_PUBLIC_USERS?
0
Comment
Question by:FutureDBA-
  • 3
  • 3
6 Comments
 

Author Comment

by:FutureDBA-
Comment Utility
or better yet,

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

Expert Comment

by:sdstuber
Comment Utility
I wrote an article that shows how to create and maintain ACLs

http://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"
0
 

Author Comment

by:FutureDBA-
Comment Utility
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
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
I mean apex_040200

or whichever schema you're using, usually it would be the latest
0
 

Author Comment

by:FutureDBA-
Comment Utility
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.


api
api
0
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
>>> 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?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now