Ask DBMS Expert


Home >> DBMS

Lab Manual

In the first part of this lab you will learn how to protect the data in the Oracle database by implementing security via profiles, roles, and privileges. You will also use object privileges to protect individual tables or columns.

You can use Oracle Data Dictionary list at http://ss64.com/orad/. Use CTRL+F to search the page. Oracle uses self-explanatory names for tables, views and columns.

In the second part of this lab you will learn how to protect the data in the SQL Server database by implementing security via security policies, roles, and privileges. You will also use object privileges to protect individual tables or columns.

Use INFORMATION_SCHEMA reference at http://msdn.microsoft.com/en-us/library/ms186778.aspx

The requirement of the lab is listed as deliverables. The deliverable is abbreviated as "D" in this manual.

Deliverables

NOTE: do not use GUI, you have to provide SQL code. Check out "Lab4Tutorial.docx" for tutorials.

D1 - D12 need to completed using Oracle

D1. Create the following three user-defined roles that are shown in the table below and assign them the specified permissions for the

OE.CUSTOMERS table.

Role

Select

Insert

Update

Delete

account_managers



CREDIT_LIMIT only

 

customer_service


 

sales_reps

 

Include SQL scripts:

D2. Create user user1. Assign role account_manger to user1

Include SQL scripts:

D3. Use SQL Plus to login as user1 and test permissions.

List all steps you performed to test permissions add screenshot with results

D4. Close SQL Plus. Assign role sales_reps to user1

Include SQL scripts:

D5. As a part of an auditing process your company is conducting, you are required to report all users who have been granted system privileges with ADMIN option.

These users can grant system privileges to other users. Write a query that will display users and their privileges. (Hint: use data dictionary SYS_PRIVS)

Include SQL scripts, number of rows and screenshot of the results

D6. As a part of an auditing process your company is conducting, you are required to report all users who have been granted object privileges with GRANT option.

These users as well as object owners can grant object privileges to other users. Write a query that will display owner, grantee and table name. (Hint: use data dictionary TAB_PRIVS)

Include SQL scripts, number of rows and screenshot of the results

D7. Write SQL statement that lists all roles AND users (without repetition) who have access to the OE.CUSTOMERS table.

Include SQL scripts and screenshot of the results

D8. Do you see ACCOUNT_MANAGERS on the list generated from D7? Why?

D9. How can you check that whether ACCOUNT_MANAGERS have permission to update only one column in CUSTOMERS table?

Include SQL scripts and screenshot of the results

D10. Create an Oracle profile OE_PROFILE to limit database resources using the following criteria:

a. Logon time-2 hours
b. Idle time-3 minutes
c. CPU time required per call-1 second
d. 1 block per query

Include SQL scripts:

D11. Assign profile OE_PROFILE to user1.

Include SQL scripts:

D12. Test that IDLE time setting in the profile works.

Outline steps and provide SQL queries if necessary

D13 - D22 need to completed using SQL Server

D13. Create two user-defined roles in database AdventureWorks that are shown in the following table and assign them the specified permissions for the PURCHASING.Vendor table:

Role

Select

Insert

Update

Delete

account_managers

fin_clerk

AccountNumber, Name, CreditRating, and ActiveFlag

 

CreditRating and ActiveFlag

 

Include SQL scripts:

D14. Use data dictionary to check that permissions were granted correctly in D13. Hint: check column permissions and table permission separately.

Include SQL scripts and screen shots of the results:

D15. Use Computer Management to create local Windows user with user name sam. (Right click My Computer - Mange - Local Users and Groups - Right click - New)

You don't need to include anything for this step.

D16. Grant sam permission to logon to SQL server and AdventureWorks database.

Include SQL scripts:

D17. Open new query window and run statement "execute as login" to execute queries as sam (see chapter slides). Try to select NAMES from Vendor table.

Include SQL scripts and screen shots of the results:

D18. Switch to the previous query window (the one you used to run query in D16) and Assign role fin_clerk to sam.

Include SQL scripts:

D19. Switch to the "new" query window (the one you opened in #6) and try AGAIN to select NAMES from Vendor table when you logged as sam.

Include SQL scripts and screen shots of the results:

D20. Try to delete vendor with VendorID = 1 when you logged as sam (Explain the result). Include SQL scripts and explain the result.

D21. Explain in detail the use of the DENY statement in SQL Server.

Provide example on how to restrict access to a column VendorID in a table

D22. Create a password policy that password expires in 60 days and locks the user's account if the password is entered incorrectly four times in a row. Document the process

Step-by-step instructions and screenshot of successful operation.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92054099
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As