MIS 380_Fall 2020
Database Project #4
Museum database processing with ORACLE: updates, views, security, concurrency control
DO NOT FORGET TO RECORDYOUR WORK (either directly into a Word document, or into a spool file opened before you start your oracle work). Presentation: as project 3. Special presentation for questions 9 and 10
Due December 18, 8PM (xtra credit +1), uploaded to blackboard as a Word document. Accepted until Dec 20, 10PM. Not accepted later.
Students working as a team for the full project: have both names atop first page of the project. Show both usernames. Both accounts must show the work.
Teams optional.
Questions 1 to 8: use same ORACLE username as in Project 3. Questions 9 and 10: you need a second oracle account. If you are not part of a team, or do not have another student to work with, please email me to get a second Oracle account.
GUIDELINES. Complete each question below in the shown. For each question, print the question number, show ALL the SQL commands used for the question (unless told otherwise). Note that you need not complete each question to work on the following ones.
Paintings before 1800: increase by 50%
1800-1899 paintings: increase by 40%
1900 and after paintings: decrease by 20%
Show the update commands and the resulting Painting table
ROLLBACK – DO NOT COMMIT
Note: similar to, but more complex than the insert p.116. It is permitted to mix in the SELECT statement columns that consist of data values and attribute names and use DISTINCT
From PAINTING: Painting_name, estvalue, Painter_Name, MuseumName
From Painter: ABdate, Acountry
Show the Create View command. Show the data in the view, by Painting_name
c(2). “Waterlilies” is loaned to Tate. Show the command(s) on the table(s) and display the resulting view. Explain. rollback
9 . GRANT command
Questions 9 and 10 require you to work with two ORACLE accounts. I call them account1 and account2 here. If you are not part of a team, or do not have another student to work with, please email me to get a second Oracle account..
Open two concurrent ORACLE sessions as follows:
Logon to edoras with account1. SQLPLUS to account1. Logon to edoras with account2. without closing the first session. SQLPLUS to account2.
You have now two ORACLE accounts in session.
(Students working together for questions 9 and 10 only: indicate both names aand usernames here. Both project reports must showthe work)
Presentation for questions 9 and 10. Insert a table with 3 columns into your word document (careful: those are not Oracle tables, they are Word tables)_. Column 1 is for account1, column 2 is for account2, column 3 is for your explanations. Show content of columns 1 and 2 in chronological (by shifting a column down if necessary)and explanations in the row of what is taking place in Oracle accounts.
Penguin 1930
Kids 1910
Blue 1907
Chicken 1920
Execute COMMIT:
grant select, update(Pname), insert on Xpainting to account2; show the Grant command.
Show and explain the following (permitted or not permitted) actions performed by account2 on Xpainting: SELECT –INSERT –DELETE — UPDATE Pname – UPDATE Year
When done, Execute Rollback; in account2
10.. (2 +3 extra-credit) Concurrent processing of tables. . . No matter how much you show,, no credit will be given if you do not give proper explanations as requested, and do not follow the proper guidelines for presenting the results of this question. Please show all SQL commands you execute
. In account 1, execute “GRANT all on XpaintingTo account2; (this gives permission to account2 to execute any legal SQLcommand on table Xpainting)
Rollback; in both accounts
ere lock executed Concurrent processing of tables. (2 + 2 extra-credit). To properly demonstrate things, sql that fails as well as sql that succeeds must be shown.
Illustrate row-level locking caused by an update (row-level locking is shown by being able to update an unlocked row (or insert one) and not being able to update a row that has been locked). Explain the various events occurring before and after COMMIT; in terms of transactions and their ACID properties
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more