Controlling User Permissions

Source: Internet
Author: User

Actions such as creating a role grant permission

1 Permissions

The security of database is divided into system security and data security.

System permissions are permissions on the database Permissions object permission is the permission to manipulate database objects

2 System Permissions

More than 100 effective permissions

The database administrator has advanced permissions to complete administrative tasks such as

Create a new user delete a user delete a table backup table

3 Creating a user

Create User username

Identified by password

4 After the user has been created, theDBA will give some permissions

Grant Create session

To user name

For example, application developers typically have the following system permissions

Create session Creation sessions

CREATE table creating tables

Create SEQUENCE Creating a sequence

CREATE View View

CREATE Procedure Process

5 Creating a user table space

In addition to the create table permission, the user also needs to allocate a table space to open up the tables that the storage space uses to create

Alter User username Quota Unlimited ( Unlimited values can also be limited)

On users ( table space)

6 users have permission to modify their own password

Alter User username

Identified by password

7 characters

Collection of permissions

Create a role

Create My_role

granting permissions

Grant Create Session,create table,create view to My_role

Grant a role to a user

Grant my_role to user name

8 Object Permissions

Different objects have different object permissions

The owner of the object has all permissions

The owner of the object can assign permissions outside the

9grant Select

On table name

To user name /public/role

A table for a user

Written as a user . Table name

11with Grant Option

If you add the WITH Grant option after the grant, the person you grant can continue to grant this permission to others

Revoke object Permissions

Revoke Object Permissions

On table name

From user name

Cascade constraints Cascade retract

Controlling User Permissions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.