Oracle user permissions to create a set query

Users can create a reference blog:
https://blog.csdn.net/u014427391/article/details/84889023

Oracle user permissions to grant tables:

  • Syntax: grant [permission name (select | insert | update | delete | all)] on [table name] to [User Name]
  • Example: user1 delegated authority to the query table1:grant select on table1 to user1;

However, above a little trouble, if the table a lot, then perhaps you can use the cursor test, if the user table privileges are not very strict, authorized users can query table permissions for all users:grant select any table to gd_user with admin option;

However, when a query, or to add a user to query name, for example:select * from user.table1

The above is by way sql assign permissions, can also be authorized by the role, give the role permissions, then give users assign roles

Oracle system main roles:

  • DBA: Has full privileges, is the highest authority, only the DBA can create a database structure.
  • RESOURCE: Users with Resource privilege can only create an entity, can not create the database structure .
  • CONNECT: Connect Users with permission can only log Oracle, can not create an entity, can not create the database structure.

  • Ordinary users: general grant connect, resource permissions.
  • DBA to manage user: grant connect, resource, dba privileges.
    Sometimes the direct authorization of Oracle system roles, you can also create your own role, then authorize

By setting PLSQL
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/mzq123/p/11330604.html