Skip to content

Assignment 3

Rahul Thapa edited this page Aug 4, 2026 · 4 revisions

USER Administration:

Create a user named as SHAUSR

Creating the user image Verifying image

How to check number of user and their account status at DB level?

image

How to lock user account?

image Verifying image

How to unlock User account?

image

How to identify the default tablespace allocated to particular user?

image

How to drop a user normally and with cascade option?

Normally image Cascade image Verifying image

HOW to check system privilege assinged to a user?

image

How to check Object privilege assinged to a user?

image

How to check what roles is assinged to a user?

image

Create a script to Kill all session of a specific user?

image

PRIVILEGES:

Grant system privs (Create session, create tablespace) to user SHAUSR.

image Verifying image

Grant system privs (Create session, create tablespace) to user SHAUSR1 admin option.

image Verifying image

How to check which user has admin privs?

image

Grant object privs (Select, Insert) to user SHAUSR to access and insert HR.Employees tables.

image Verifying image

Grant object privs (Select, Update) to user SHAUSRI to access and append HR.Employees tables with Grant option.

image

Create a read user "SHA_READ" and grant Select privs to access all HR Schemas database objects. (With Script)

Not Done

Revoke system privs (Create session, create tablespace) from user SHAUSR.

image

Revoke object privs (Select, Insert) from user SHAUSR to restrict access HR.Employees tables.

image

Clone this wiki locally