This process will be documented schematically in the table below that will: - identify all SQL commands (using proper role names, table names, user names, etc. and proper syntax), - identify which user (DBA or NEW USER) should execute each command, and - detail the expected outcome based on your knowledge of Oracle data administration, roles, and granting and revoking privileges to roles. Initially, the new user will not be able to do anything, including any selects, inserts, updates, or deletes on any of the DBA’s tables. The DBA will create a role and assign the new user to that role. Then, the DBA will grant and revoke various select, insert, update or delete privileges to the role. It is your responsibility to determine the outcome. You will not be able to execute any of these commands in a live environment. The DBA would like for you to complete this documentation to help a new intern learn the process. The intern will arrive early next week. The database relational schema and sample data are shown below. You should study the tables and data to become familiar with the layout prior to completing this work.
This process will be documented schematically in the table below that will:
- identify all SQL commands (using proper role names, table names, user names, etc. and proper syntax),
- identify which user (DBA or NEW USER) should execute each command, and
- detail the expected outcome based on your knowledge of Oracle data administration, roles, and granting and revoking
privileges to roles.
Initially, the new user will not be able to do anything, including any selects, inserts, updates, or deletes on any of the DBA’s tables.
The DBA will create a role and assign the new user to that role. Then, the DBA will grant and revoke various select, insert, update
or delete privileges to the role. It is your responsibility to determine the outcome.
You will not be able to execute any of these commands in a live environment. The DBA would like for you to complete this
documentation to help a new intern learn the process. The intern will arrive early next week.
The
layout prior to completing this work.
Task |
Description of Task |
Oracle SQL Commands Needed to Complete Task |
Executed by DBA? |
Executed by NEW USER? |
Expected Outcome |
1. |
Identify the Primary Keys in each of the four (4) tables above. |
|
|||
2. |
Identify the Foreign Keys in each of the four (4) tables above. |
|
|||
3. |
Create a new user named tstusr281 with password tstusr281 and grant that user session privileges (2 commands). Log in as the new user (no command for this). |
|
|
|
|
4. |
To determine if the new user can do an insert, update, or delete on the CARD_HOLDERS table in the DBA’s schema, have him attempt each of these commands with sample data as follows:
Insert: Insert a record for card holder number 11, for
Update: |
|
|
|
|
5. |
The DBA will create a role called USERROLE and will grant the role to the new user and commit his work. He will also do a set role and commit his work. |
|
|
|
|
6. |
The DBA will grant select, insert, and update privileges on the CARD_HOLDERS table in his schema to the role. |
|
|
|
|
7. |
The new user will attempt to do a select, insert, update and delete on the CARD_HOLDERS table in the DBA’s schema using the data below:
Select:
Insert a record for card holder number 11, for
Update: |
|
|
|
|
8. |
The DBA would like to revoke insert privileges on the CARD_HOLDERS table to the role and commit his work. |
|
|
|
|
9. |
The new user will attempt to do a select, insert, update and delete on the CARD_HOLDERS table in the DBA’s schema using the data below:
Select:
Insert a record for card holder number 12, for Carol Adams, 101 Arc Street, Seattle, WA, 01256
Update: |
|
|
|
|
10. |
The DBA needs to create and execute a view called S_LIST that lists the Cardholder Number, last name, first name and due date for all cardholders who have not returned a book. |
|
|
|
|
11. |
The DBA would like to execute a select on this view and make it available to all users in the role and commit his work. |
|
|
|
|
12. |
The new user hears about this new view and wishes to try it out by doing a select of all records on the view. |
|
|
|
|
13. |
The DBA would like to create another role and grant INSERT and DELETE access to all four (4) of his tables from this database to the following users: student1, student2, student3, student4 and student5. |
|
|
|
|
14. |
How are VIEWS important? |
|
|||
15. |
What advantages or benefits do ROLEs provide? |
|
![A Dennis Dashboard x
O Module 9 HW
O M9HW.pdf
b Answered: You ha X
G You have been giv
b My Questions | ba x
New Tab
O File
C:/Users/kwaku/Downloads/M9HW-1.pdf
M9HW.pdf
3 / 7
110%
+
BOOKS CHECKED OUT
Cardholder_Number
Book_Number
Date_Checked_Out
Due_Date
Actual_Retum_Date
BOOK LIST
Book Number
ISBN Number
Book Name
Category_Num
CARD HOLDERS
Cardholder_Number
First Name
Last Name
Address
City
State
Zip_Code
BOOK_CATEGORIES
Category_Num
Category
3
O M9HW-1 (1).pdf
Show all
1:46 AM
hp
X
N
W
7/17/2021
II](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F02ddd219-f6d6-4e80-8171-9f39fd40e511%2F9dcdd4a7-0d1e-4b9d-857d-db4eb07edb9d%2Flpmgbix_processed.png&w=3840&q=75)
![A Dennis Dashboard x
O Module 9 HW
O M9HW.pdf
b Answered: You ha X
G You have been giv x b My Questions | ba x
New Tab
+
O File
C:/Users/kwaku/Downloads/M9HW-1.pdf
M9HW.pdf
4 / 7
100% +| 0 0
BOOK LIST
Book Number - ISBN Number -
Book Name
• Category_Num -
10-385-19237-1
San Francisco Encore
20-9604222-0-X The Memphis Cookbook
Charlotte Cooks Again
Colorado Cache Cookbook
30-9613214-1-5
1
40-9603946-5-6
50-960-79142-6
Atlanta Cooknotes
BOOK.CATEGORIES
60-9607076-1-1 Beyond Parsley
7 09605788-0-3
8 0811826848
Category_Num - Category
1 Biography
2 Fiction
3 Non Fiction
4 Cookbooks
5 History
Out of Our League
The Beatles Anthology
90-425-17139-6 Net Force
Nothing Like It in The World
Tuesdays with Morri
Flags of Our Fathers
10 0684846098
11 0385484528
12 OS53111337
I CARD HOLDERS
Address
Cardholder First Name Last_Name-
Downs
Johnson
City
San Francisco CA
- Zip_Code
95409
State
2
1 Robert
100 E. Town St.
2345 7th Avenue
2 John
Denver
co
80222
3 Judy
Toon
4012 Main Street
Memphis
2310 W. Fifth Avenue Richmond
TN
38118
4 Barbara
Brown
VA
23286
5 Robert
6 Carol
7 Janice
8 Will
9 Judy
10 Betty
Smith
25110 Central Park
199 South Fourth
2020 State St.
Denver
Richmond
CO
co
80222
Carter
VA
23286
Johns
Greensboro
Columbus
San Francisco CA
NC
27408
Hamilton
56 E. Main St.
он
43215
95409
94588
Smith
490 E. Lincoln
Olivette
55 Sunshine Coast San Francisco CA
BOOKS. CHECKED OUT
Cardholder_Number - Book_Number - Date Checked Out - Due_Date- Actual Return_Date -
1
10
29-Dec-00
08-lan-02
06-Dec-00
16-Dec-00
20-Dec-00
07-Dec-00 17-Dec-00
15-Dec-00
15-Dec-00
25-Dec-00
28-Dec-00
12
02-Jan-02
12-Jan 02
01-lan-02
11-lan-02
02-Jan-02
12-Jan-02
11-Dec-00
05- Dec 00 15-Dec 00
10
01-Dec-00
05-Dec-00
10
20 Dec 00
4
O M9HW-1 (1).pdf
Show all
1:47 AM
hp
7/17/2021
II](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F02ddd219-f6d6-4e80-8171-9f39fd40e511%2F9dcdd4a7-0d1e-4b9d-857d-db4eb07edb9d%2Fql1688_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 10 steps with 8 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)