0% found this document useful (0 votes)
28 views2 pages

LAB Week 8 311L

The document discusses controlling user access in a database by creating users, granting system privileges to users and roles, changing passwords, granting object privileges, and using grant options and public keys.

Uploaded by

Raiyan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

LAB Week 8 311L

The document discusses controlling user access in a database by creating users, granting system privileges to users and roles, changing passwords, granting object privileges, and using grant options and public keys.

Uploaded by

Raiyan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSE 311L(Database Management System)

LAB-Week 08 (Part A)

Controlling User Access


Topics:
Creating Users
Granting System Privileges
What is a role?
Creating and Granting Privileges to a Role
Changing Password
Granting Object Privileges
Using WITH GRANT OPTION and PUBLIC key

Creating Users

CREATE USER faisal


IDENTIFIED BY eecs;

Granting System Privileges

GRANT create session, create table, create view


TO faisal;

What is a role?
Creating and Granting Privileges to a Role

CREATE ROLE manager;

GRANT create table, create view


TO manager;

GRANT manager
TO faisal, hasib;

Changing Password

ALTER USER faisal


IDENTIFIED BY dhaka;

Granting Object Privileges

Using WITH GRANT OPTION and PUBLIC key

You might also like