CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Module 2: Database Architecture
Introduction to Oracle
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Recovery Basics. Types of Recovery Catastrophic – disk crash –Backup from tape; redo from log Non-catastrophic: inconsistent state –Undo some operations.
Oracle Architecture. Database instance When a database is started the current state of the database is given by the data files, a set of background (BG)
IS 4510 – Database Administration Module – 1 Database Architecture 9/14/20141Compiled by: Zafar Iqbal Khan.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Agenda Journalling More Embedded SQL. Journalling.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
7202ICT – Database Administration
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
© Dennis Shasha, Philippe Bonnet 2001 Log Tuning.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
Database Storage Structures
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Over view  Why Oracle Forensic  California Breach security Act  Oracle Logical Structure  Oracle System Change Number  Oracle Data Block Structure.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
1-1 Copyright © Oracle Corporation, All rights reserved. Redo Logs and Recovery John Hibbard Senior Principal Instructor Minneapolis MN
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
What is Oracle ? Oracle is a relational database management system. It is a management system which uses the relational data model. In the relational data.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Initialization Parameters
Database structure and space Management
Redo Logs and Recovery John Hibbard Senior Principal Instructor
Assignment 4 - Solution Problem 1
SQL SERVER TRANSACTION LOG INSIDE
Introduction To Oracle 10g
Oracle Memory Internals
Oracle Architectural Components
Updating Databases With Open SQL
Database administration
Updating Databases With Open SQL
Presentation transcript:

CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________ [5 Points] Assuming that an Oracle instance has just been started and the following SQL is issued for it to run: update emp set sal = 70000 where empno = 7369; commit; Fill in the blanks in the statements below that describe the steps followed by Oracle to execute this SQL. See the Word Bank on the next page. The User Process contacts a Listener on a port on the Oracle Server. The Listener creates a Server Process and establishes a connection between the Server Process and the User Process. The User Process sends the SQL to the Server Process. The Server Process creates an optimized execution plan for the SQL and stores this plan in the Library Cache with a unique hash code. The Server Process then causes the 8K Byte Block on the disk containing the emp tuple with empno equal to 7369 to be brought into the Database Buffer Cache in the System Global Area. The value is modified. The fact that the block has been modified and how it was modified is written into the Redo Log Buffer. In addition, the next free Undo Block is brought into the Database Buffer Cache and information to undo the sql change is recorded in it. The fact that the Undo Block has been modified and how it was modified is written into the Redo Log Buffer which, after the commit, gets flushed to the Online Redo Log by the LGWR Process. One of the DBW Processes eventually writes the modified 8K Byte Blocks to disk.

[5 Points] Assuming that an Oracle instance has just been started and the following SQL is issued for it to run: insert into emp (empno, ename, sal) values (405, ‘Long’, 5000); commit; Fill in the blanks in the statements below that describe the steps followed by Oracle to execute this SQL. The User Process contacts a Listener on a port on the Oracle Server. The Listener creates a Server Process and establishes a connection between the Server Process and the User Process. The User Process sends the SQL to the Server Process. The Server Process creates an optimized execution plan for the SQL and stores this plan in the Library Cache with a unique hash code. The Server Process then causes the next free 8K Byte Block on the disk from the tablespace containing the emp table to be brought into the Database Buffer Cache in the System Global Area. The value is inserted. The fact that the block has been inserted and how it was modified is written into the Redo Log Buffer. In addition, the next free Undo Block is brought into the Database Buffer Cache and information to undo the sql insert is recorded in it. The fact that the Undo Block has been inserted and how it was inserted is written into the Redo Log Buffer which, after the commit, gets flushed to the Online Redo Log by the LGWR Process. One of the DBW Processes eventually writes the modified 8K Byte Blocks to disk. Word Bank for Problems 1 and 2. 8K Byte Block DBW Processes Database Buffer Cache Execution LGWR Process. Library Cache Listener Online Redo Log Optimized Oracle Server Plan Port Redo Log Buffer. SQL Server Process System Global Area Tablespace Tuple Undo Block User Process commit, unique hash code.