CiS120-PJ 8-DB Admin

.docx

School

West Los Angeles College *

*We aren’t endorsed by this school

Course

120

Subject

Computer Science

Date

May 19, 2024

Type

docx

Pages

4

Uploaded by ElderAlbatrossMaster767

CiS120 Intro to Databases Project 8 (PJ 8) Dr. Lin Version 2/13/23 PJ 8 Report My Name: Keiana Flowers You must answer all the following 12 questions based on the BITS database (if applicable). Q1. Please write a proper SQL command for each of the following requests regarding privileges of the Client table. (A) Give ALL the privilege or rights on Client table to UserA. GRANT ALL ON TO CLIENT TO UserA (B) Give the select, insert, delete, update on Client table to UserB. GRANT, SELECT, INSERT, DELETE, UPDATE ON CLIENT TO UserB (C) Give the select privilege on Client table to UserC. SELECT ON TO CLIENT TO UserC (D) Revoke the delete privilege on Client table from UserD. REVOKE DELETE ON TO CLIENT TO UserD (E) Revoke the alter privilege on Client table from UserE. REVOKE ALTER ON TO CLIENT TO UserE Q2. In order to improve the performance of accessing client’s consultant information in the BITS database, DBA plans to add Consultant’s LastName and FirstName fields to the Client table. The altered Client table would become as follows: Client ( ClientNum , ClientName, Street, City, State, ZipCode, Balance, CreditLimit, ConsltNum , ConsltLastName, ConsltFirstName ) (A) Is the altered Client table in 2NF? Please explain why. Yes, because the primary key contains only one column this makes it 2NF. (B) Is the altered Client table in 3NF? Please explain why. (C) Is the altered Client table in 4NF? Please explain why. (B/C) No these are not 3NF or 4NF because ConsltLastName, and ConltFirstName should be in a separate table with ConsltNum as the primary key, and foreign key in the Client table. Q3. (A) What is a DBA? Why is this position necessary for a DBMS? DBA is Data Base Administrator. A DBA would formulate database policies and constraints, communicate policies to users and enforce those policies. (B) What are the DBA’s responsibilities regarding access privileges? The DBA assigns access privileges to users. Page 1 of 4
CiS120 Intro to Databases Project 8 (PJ 8) Dr. Lin Version 2/13/23 (C) What SQL commands can DBA use in order to control access privileges? Grant and Revoke Q4. (A) What is database denormalization? It is when the redundant data or columns, that already exists in another table, are added to the table (B) What is the purpose of database denomalization? Increasing the performance of DBMS by reducing the number of disk access. (C) Please denormalize a table in BITS database, and explain why you have decided to do this denormalization. Client ( ClientNum, ClientName, Street, City, State, ZipCode, Balance, CreditLimit, ConsltNum, ConsltLastName, ConsltFirstName). This optimizes the Client table making it easy to have the consultant information. Q5. (A) What is a disaster recovery plan? What is its purpose? Disaster Recovery plans are put in place in case there are reasons for data loss, system interruptions, or corruption of the database. (B) What is a data archive? What is its purpose? It archives data from databases that are no longer needed but still important and necessary for future referencing. (C) What is the relationship between a database and its data archive? It allows businesses to be able to keep this data indefinitely without causing the database to become too massive. It also allows for important information to be stored in a secure location to be retrieved when deemed necessary. Q6. (A) What is a shared lock? What is its purpose? A shared lock permits other users to read the same data. (B) What is an exclusive lock? What is its purpose? An exclusive lock prevents other users accessing certain data (C) Does a DBMS use both shared locks and exclusive locks? Why so? Yes, it protects from a concurrent update problem. Q7. (A) What is “tuning a database”? The DBA changes database design to improve the performance. (B) What is the purpose of tuning a database? It can improve the performance. (C) Who should perform the tuning of a database? How often should it be done? DBA should be performing the tuning and it should be done on a regular basis. Page 2 of 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help