Solved

Oracle Apex ACL

Posted on 2014-02-07
6
618 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-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:FutureDBA-
ID: 39842221
or better yet,

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

Expert Comment

by:sdstuber
ID: 39842237
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-
ID: 39842337
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 39842351
I mean apex_040200

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

Author Comment

by:FutureDBA-
ID: 39842634
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 74

Expert Comment

by:sdstuber
ID: 39842854
>>> 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

617 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