Oracle users, roles, and permissions

Source: Internet
Author: User

1. Oracle User

There are two types of Oracle users, one is System user SYS system, the other is ordinary user;
The view Dba_users stores all user information;
To create a user:
Create user username identified by password default Tablespace table space
Grant Session Permission: Grant create session to TEST;
Lock and Open accounts: Alter user TEST account Lock/unlock;
Modify password: Alter user TEST identified by 123;
Delete users: Drop user TEST cascade; Delete the user, and delete the objects under the user, such as tables, views, triggers, etc.

2. Oracle Permissions

Oracle permissions are divided into system permissions and object permissions;
System permissions are built-in to Oracle, independent of object-specific permissions, such as the creation of table permissions, connection database permissions;
Object permission is the operation permission for specific objects, such as tables, views, triggers, etc.
System Permissions View: System_privilege_map
Rights Assignment View: Dba_sys_privs
Reclaim system permissions revoke permissions from user
Object Permission Assignment
User table Permissions View: Dba_tab_privs
Grants grant permission on object to user with GRANT option;
Reclaim permissions: Revoke object permissions on object from user;

3. Oracle Role

A role is a set of permissions that can be assigned directly to a user without the need for a single assigned permission;
Grammar:
Create role name;
Use view Dba_roles to find role information;

  

Create user Test identified by root default tablespace users;

Grant DBA to Test;

Oracle users, roles, and permissions

Related Article

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.