0% found this document useful (0 votes)
1 views

DBA Part-2

This document outlines a practical assignment for Database Administration, submitted by Ayush Shakya. It includes tasks related to user management, such as creating users, granting and revoking privileges, and working with roles and privileges. The assignment requires executing various SQL commands to manage database users and their permissions effectively.

Uploaded by

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

DBA Part-2

This document outlines a practical assignment for Database Administration, submitted by Ayush Shakya. It includes tasks related to user management, such as creating users, granting and revoking privileges, and working with roles and privileges. The assignment requires executing various SQL commands to manage database users and their permissions effectively.

Uploaded by

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

Practical Assignment

for
Database Administration

Submitted by:
Ayush Shakya
Roll: 22/078
Symbol No: 544/078

Submitted to:
Bipin Timalsina
DBA Professor, BIT,
Patan Multiple Campus
Lab
Submissio
. Title Signature Remarks
n Date
No.
8) User management with grant and revoke privileges
a) Display the information about users using
DBA_USERS view
b) Create a user having name 'user_yourName' with
passwords. [replace yourName with your name, if
your name is Nisha then username should be
'user_nisha'.
c) Grant the privileges like create session, create
table etc to the user created in (b).
d) Create a table after logging in through the user
created in (b)
e) Create another user (username should be
yourName_yourSurname with tablespace clause.
f) Create another user of your choice.
g) Grant the privileges like create session, create
table to the user created in (f)
h) Change the password of user created in (b)
i) Enable password expiration for the user created in
(e)
j) Grant CREATE SESSION privileges and other
privileges like SELECT, INSERT,
UPDATE, DELETE on table created in (d) to the user
created in (e).
k) Insert any two records to table created in (d), edit
second record and select all records
from the table by logging in through user created in
(e).
l) Revoke DELETE privilege on the table created in (b)
from the user created in (e).
m) Remove the user created in (f)
9) Working with roles and privileges
a) Create a role named 'role_by_yourName'
b) Grant some system privilege (like create table)
and object privileges (like select, insert,
update) to the role created in (a)
c) Assign the role created in (a) to the user created in
lab 9 (b).
d) Write a command to view Roles Granted to any
user in your system.
e) Write a command to show the privileges granted
to the role created
f) Create another role of your interest and grant
some privileges.
g) Modify the role created in (f)
h) Drop the role created in (f)
8 a)

b)
c) d)

e) i)
j)
k)
l)

m)
9)a-e)

f,g,h)

You might also like