Oracle10g role, permission and user

Source: Internet
Author: User

 

I have some questions about Oracle10g learning. Now I want to sort out my ideas.

 

There are two parts:

 

The first part is the relationship between permissions and roles and users:

 

 

 

Permission refers to the user's permissions to access the database, such as the most basic permissions to log on to the database and add, delete, modify, and query permissions. You can connect to the database only with the create session permission. You can create a table only with the create table permission.

 

The instance code is as follows:

 

Grant create session to user_name; -- log on to the database

Grant select on scott. emp to user_name; -- allows you to query the emp table under the scott user.

 

A role is a set of Multiple permissions. It is too troublesome to assign permissions one by one when users are granted permissions. You can assign Multiple permissions to a role, then, assign the role to the user.

 

 

 

The user is the username used to log on to the database.

 

 

 

The second part is sys and system users, sysdba and sysoper system permissions:

 

Through the above sentence, we know that sys and system are users, and sysdba and sysoper are permissions.

 

Sys has a higher level than system, but both have full rights to the database, such as opening the database and closing the database. Generally, users do not have this right.

 

When plsql is used, there are three: normal, sysdba, and sysoper.

 

In fact, normal, sysdba and sysoper can also be said to be roles, but sysdba and sysoper basically belong to sys and system, and other general users use the normal role.

 

Author: tingtingego

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.