I have a user with only CONNECT privileges and I'd like to know if RESOURCE would be enough to query objects in other schemas and create objects in my own schema based on that.
i.e.: create a view in my own schema by selecting tables from other schemas.
Would a SELECT ANY TABLE
privilege be enough or does my user have to be granted specific object privileges for any action on another user?
Best Answer
RESOURCE
role has the following system privileges.And has no table privileges.
After the observation we can know that the user, with
RESOURCE
role, can create certain objects such as tables and procedures.But in order to
SELECT
from tables belong to another schema, another user needs to grantSELECT
object privilege on tables explicitly.Now
user2
can create view(user should haveCREATE VIEW
system privilege) by selecting from the tables ofuser1
schema.Demo(Based on Oracle 11.2.0.4):