Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Oracle Apex ACL

Posted on 2014-02-07
Medium Priority
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.

How can i get around this?  who would be the principal? APEX_040000? APEX_PUBLIC_USERS?
Question by:FutureDBA-
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

Author Comment

ID: 39842221
or better yet,

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

Expert Comment

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

            acl           => 'yourACL.xml',
            description   => 'your apex acl',
            principal     => 'ANONYMOUS',
            is_grant      => TRUE,
            privilege     => 'connect'

        --- resolve might be optional for your use
            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', '*');

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"

Author Comment

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 74

Accepted Solution

sdstuber earned 2000 total points
ID: 39842351
I mean apex_040200

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

Author Comment

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.

LVL 74

Expert Comment

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?

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

722 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