Fifth Lecture Oracle users

The concept of user oracle for Oracle databases is essential, in the real world which usually only a server installed an Oracle instance, an Oracle user represents a user group who, through the user login database, create database objects, query development .

Each of the N multi-object corresponding to the user under the user, and therefore, in the actual project development process, different projects use different sets of users to develop Oracle, do not interfere with each other. Can also be understood as an Oracle user is both a service module, the user group to form a complete business system, the association between the different modules can be controlled by Oracle user permissions to acquire data of other service module and the operation of the other service modules a some objects.

Oracle users to create

Syntax: Create a User

 

 Through the above statement, you can create a student user, but the user still can not log database, because it does not have permission to log database, he needs at least a create session system privileges to log into the database.

User rights

Oracle database user privileges: System and object privileges two kinds.

System privileges: For example: create session can be connected and permissions database, create table, create view, etc. have permission to create database objects.

Object Permissions: example: the data in the table CRUD operations, the user may have permission database object corresponding operations on the object owned.

Database Roles

oracle database role is a collection of several system privileges granted to the Oracle database user role, it is equal to give the user a number of database system privileges. Common database roles are as follows:

CONNECT role: connect the basic role is the role of Oracle users, connect permission representing a user can connect and Oracle server to establish session (session).

RESOURCE role: resouce role in the development process is commonly used in the role. RESOURCE provides the user can create their own objects, comprising: a table, view, sequence, procedures, triggers, indexes, packages, and other types.

DBA role: DBA role is to manage the database administrator role of the others. It support all system privileges and permissions to other authorized users. SYSTEM user with DBA authority.

Therefore, in the actual development process according to the needs, the system privileges granted to a role or a user. Authorization statement is as follows:

 Syntax: Authorization

 

 Syntax: Cancel user rights

 

 Other operating Oracle users: Syntax

Guess you like

Origin www.cnblogs.com/xiaohumeng/p/12130790.html