Define transaction deadlock - what is it

Assignment Help Database Management System
Reference no: EM131419035

Advanced Database Topics Assignment

Q1) a) Describe the difference between optimistic and pessimistic concurrency control mechanisms.

b) Define transaction deadlock (what is it / what causes it).

c) Why do we always have to record the log entry before we update an attribute?

d) Consider the following schedule of transactions (the beginning of rectangle is when transaction starts and end of the rectangle is when transaction commits) with checkpoints and crash point denoted on the same schedule. During recovery after crash, which transactions need to be rolled back? Which transactions need to be re-done?

2173_Figure.png

Q2) a) Name at least one failure type/cause that is specific to distributed databases.

b) Under what circumstances is semi-join preferable to traditional execution of a distributed join?

3) In this homework you will use Oracle to load data and execute some SSBM queries. Please DO NOT load too much data into your DePaul CDM Oracle account. I have created Oracle accounts on my personal server that you can use to load data - instructions are included below.

You can also use your own Oracle installation if you prefer (but not the DePaul CDM account because you won't be able to load that much data). I am attaching a separate document with instructions on how to install Oracle on Windows.

a) Create the SSBM tables and load Scale1 data (please see a section below that discusses your data-loading options with Oracle).

b) Get the baseline performance for Q2.2 and Q2.3 (just the two queries) by noting down the "real" runtime and the "estimated" (EXPLAIN/F-10 in SQL Developer) query cost. Real time might vary since you'll be sharing the server, so report whatever numbers you get.

Include a screenshot of result from running one of the queries (either one)

c) Create an index for Q2.2 and report the estimated query cost using your index Include a screenshot of the resulting query plan in SQL Developer

d) Create an index usable by both Q2.2 and Q2.3 - is the index the same compared to before or different? Report the estimated query costs for Q2.2 and Q2.3.

e) Now, let's try using some materialized views. Create a materialized view that will benefit both queries - it is up to you whether you want to pre-join all columns or also preaggregate the MV. Do not use any filter (WHERE Column = 'XXX') predicates in this MV yet. Report the estimated query costs for Q2.2 and Q2.3.

f) Next, add an index to the previously created MV to improve query performance. Report estimated costs for Q2.1 and Q2.2.

g) Now create another MV that pre-filters the rows by including predicates from the original queries. Report the estimated query costs for Q2.2 and Q2.3.

h) Re-evaluate one of the queries (your choice) and add any query optimization hint. It is up to you what kind of query change you make - you can try forcing a different join, a different index or a different MV. Include a screenshot of the "before" and "after" query plan.

Attachment:- Assignment.rar

Reference no: EM131419035

Questions Cloud

How internal auditing contributes to effectiveness of act : What is the responsibility by of audit committee of Sarbanes-Oxley of 2002? Explain how internal auditing contributes to the effectiveness of the purpose and goals of the Sarbanes-Oxley Act.
While the highest-paid employees get the largest increase : One of the objections to granting wage increases on a percentage basis is that the lowest-paid employees, who are having the most trouble making ends meet, get the smallest increase, while the highest-paid employees get the largest increase. Is this ..
Story enhanced for an online audience : You will write a 300-350-word meeting news story enhanced for an online audience based your bellow; Meeting Story.
Descriptive or inferential statistics : Determine whether each of the following is a descriptive or an inferential statistics problem.- The Food Channel conducted a blind taste test to determine the best chocolate for baking.
Define transaction deadlock - what is it : CSC 553 Advanced Database Topics Assignment. Describe the difference between optimistic and pessimistic concurrency control mechanisms. Define transaction deadlock (what is it / what causes it). Why do we always have to record the log entry before we..
Consider evaluating their international marketing strategy : You are the consultant employed by 2B. What information would you ask the management team to consider evaluating their international marketing strategy? The management team is advocating setting up sales offices in these two countries. What other alt..
Compared to the federal labor relations authority : Develop a flow chart or step-by-step list of the key steps employees must take to form unions. Explain how the union-organizing process works differently in the public sector compared to the private sector. Describe the roles of the National Labor..
Describe population of interest and the sample : A sample of teenagers was obtained and all were asked if they can cook. Describe the population of interest, the sample, and the variable of interest in this problem.
What kind of marketing materials do you anticipate : What kind of marketing materials do you anticipate and what do you envision for their design? (Youneed not create a poster but you must describe what you think the marketing materials should looklike.)

Reviews

len1419035

3/8/2017 3:40:08 AM

Please include all screenshot query result and timing for question 2. Submit a single document containing your written answers. Be sure that this document contains your name and “CSC 553 Assignment 6” at the top. In the “Column Definition” method, you should choose Match By “Position”, because data files have no headers with column names. You could also try adding column names – but I have not tested that option. In the “Import Method” step, “Insert” is the default available method. If you want to use SQL*Loader utility instead, you can choose that method. This particular option will generate the necessary ctrl files and commands to use the Oracle bulk loader.

Write a Review

Database Management System Questions & Answers

  Which three application transactions must be made atomic

Which of the three application transactions must be made atomic (e.g., specify transaction boundaries) to prevent possible lost update? Why and why not?

  Create a database schema that supports the company

Write a five to ten (5-10) page design document in which you: Create a database schema that supports the company’s business and processes. Explain and support the database schema with relevant arguments that support the rationale for the structure

  Brief synopsis analyzing the detailed requirements

Provide a brief synopsis analyzing the detailed requirements of your prototype database design and design a database prototype that includes diagrams, data dictionary, design decisions, limitations, etc.

  What a query execution plan

What a query execution plan? Discuss the reasons for converting SQL queries into relational algebra queries before optimization is done

  Write names and e-mail addresses from database

Suppose a database has tables given below. Write the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

  Excel for decision support modeling

Willy Wonka is considering starting a production line to produce fizzy lifting drinks. As Chief Oompa Loompa (COL) you have access to a wide variety of financial data to help you determine whether bringing the new production line on will be a sma..

  Develop a demonstration prototype system

ISY103 - Database Management for Business Individual Project: Database Case Study. Using MySQL, you are required to develop a demonstration prototype system that handles hotel bookings and payments. Use MySQL to create a new database called HMS

  Installing and configuring integration services

Steps you through the process of installing SQL Server Analysis Services in a named instance. The instance will be named ASvc and will include Integration Services and management components, including BIDS.

  Explaining controls for database to execute transaction

Controls which need a database to either execute transaction completely or not at all.

  Develop proposal recommends hardware and operating system

Papers should be created with Microsoft Word in the APA style and have a title page, short abstract, body, and conclusion. The "body" should contain between 1000 and 2000 words and include a Works Cited page, headers and other appropriate APA ele..

  Types of relationships in a design model of a database

There are many kinds of relationships in a design model of a database. Why is it important to classify each of these types in an ERD Model?

  Create naming conventions for each entity and attributes

Create naming conventions for each entity and attributes. Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form da..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd