Skip to Main Content

SQL & PL/SQL

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!

User access to dblink

user517674Apr 16 2014 — edited Apr 16 2014

I have a user 'X' that I am granting access to certain roles. But when I test the user x to see what kind of access they have, looks like its restricted to only those tables that I am granting access via role, but they also have access via dblinks to all the other tables.

We use public dblinks across our databases and I am wondering if there is a way to restrict them to what they can get to just via the role in the current database and not via dblink.

The script that I am using to create the user is:

CREATE USER X

  IDENTIFIED BY <password>

  DEFAULT TABLESPACE xxxx

  TEMPORARY TABLESPACE yyyy

  PROFILE DEFAULT

  ACCOUNT UNLOCK;

  GRANT CONNECT TO X;

  GRANT ROLEA TO X;

  GRANT ROLEB TO X;

  ALTER USER X DEFAULT ROLE ALL;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2014
Added on Apr 16 2014
4 comments
1,147 views