Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Management Systems II ( DBMS - 2 0 0 6 ) Challenge 5 Users and Roles Note: Use the JR _ Movie database in

Database Management Systems II (DBMS-2006)
Challenge 5 Users and Roles
Note: Use the JR_Movie database in this challenge.
1. Create logins and user accounts for the following users. The login for each user must be their full name, capitalizing the first character of first and last name e.g JenniferGarnet. The user id must be the first letter of the users first name and their full last name (permissions will be given shortly). Use your Red River Userid as the password for all user accounts.
User Name Employee Job
Jennifer Garnet Receptionist
Phil Blat Salesperson
Rhonda Seymore Sales Manager
Role Creation: Create the following roles. Do not embed permissions (do not grant a role to a role). Each role must have all required permissions defined.
2. Create a role called receptionist_role.
3. The receptionist role needs to have SELECT on the following tables:
Customer
RentalAgreement
MovieRented
Movie
4. Give Jennifer Garnet the receptionist role.
5. Create a role called salesperson_role.
6. The salesperson role needs select on the following tables:
Customer
RentalAgreement
MovieRented
Movie
In addition, the role requires INSERT on the RentalAgreement and MovieRented tables.
7. Give Phil Blat the sales person role.
8. Create a role called salesmanager_role
9. The salesmanager role needs full permissions (SELECT, INSERT, UPDATE and DELETE) on the following tables:
Customer
RentalAgreement
MovieRented
Movie
10. Give Rhonda Seymore both the salesperson and and sales manager roles.
11. Perform the following for all three accounts
Show the command necessary to impersonate the account
Write a sql statement (SELECT, INSERT, UPDATE and DELETE) to test the permissions of each account for each table (Customer, RentalAgreement, MovieRented and Movie). For each insert statement into the customer table ensure that the FNAME and LNAME columns your first name and last name
Include a comment before each statement of success or failure. Was this expected why or why not?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago