Module 2: Database Architecture

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Introduction to Oracle
Database Architectures and the Web
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Oracle Architecture. Instances and Databases (1/2)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Basic Storage Concepts and Settings
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Harvard University Oracle Database Administration Session 5 Data Storage.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Oracle Database Administration Database files Logical database structures.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Chapter 4 SQL. SQL server Microsoft SQL Server is a client/server database management system. Microsoft SQL Server is a client/server database management.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Basic Oracle Architecture
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
Architecture Rajesh. Components of Database Engine.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
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.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
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.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Database Storage Structures
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Managing Tablespaces and Data Files
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
Physical Database Structure .
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
Oracle Database Architectural Components
A Day in the Life of a Row Eddie Wuerch, mcm
Database structure and space Management
Physical Database Design and Performance
Oracle 10g Database Administrator: Implementation and Administration
Chapter Overview Understanding the Database Architecture
The Vocabulary of Performance Tuning
Database structure and space Management
Microsoft SQL Server 2014 for Oracle DBAs Module 3
Physical Database Structure .
Introduction To Oracle 10g
Index Index.
The Vocabulary of Performance Tuning
Storage Structure and Relationships
ISYS366, Oracle Disk Internals
Database administration
The Vocabulary of Performance Tuning
Presentation transcript:

Module 2: Database Architecture

Overview Schema and Data Structure (Objects) Storage Architecture Data Blocks, Extents, and Segments Storage Allocation Managing Extents and Pages Tablespaces and Datafiles SQL Server Data Files Mapping of Tablespaces and Filegroups Logging Model Data Dictionary

Schema and Data Structures (Objects) Schema – a collection of objects owned by a database user Schemas in SQL Server provide logical separation of objects, similar to Oracle’s schema Comparison of Core Schema and Data Structures (Objects) Oracle SQL Server Table Index View Synonym Sequence Identity Columns Procedure Stored Procedure Function Package N/A Queue in Streams Advanced Queuing Service Broker Queue Object Type Type XML DB XML Schema Collection

Temporary Tablespace Groups Storage Architecture Database storage architecture includes physical and logical structures Physical structures are data files, log files, and operating system blocks Logical structures are subdivisions of data files used to manage storage space Physical Data File Data File Data File Data File Data File Data File Temporary Tablespace Groups Tablespace Tablespace Filegroup Filegroup Logical Segment Segment Heap/Index Heap/Index Extent Extent Extent Extent Extent Extent Extent Blocks Blocks Blocks Blocks Pages Pages Pages ORACLE Sql sERVER

Data Blocks, Extents, and Segments Structure Oracle SQL Server 2008 Smallest unit of logical storage Block Page Block size Variable 8 KB fixed Storage allocation Performed in multiple blocks; are ‘extents’ Performed in multiple pages; are ‘extents’ Extent size 64 KB fixed Segment Any logical structure that is allocated storage No equivalent structure

Storage Allocation Fundamental difference in storage allocation between Oracle and SQL Server

Managing Extents and Pages In Oracle, each extent is dedicated to an allocated object. In SQL Server, the equivalent is a uniform extent. SQL Server uses mixed extents: pages are allocated to objects with less than 8 blocks of data Similar to the Oracle bitmap functionality used to manage free space and extent allocation, SQL Server uses the Global Allocation Map (GAM) and Shared Global Allocation Map (SGAM) Oracle keeps track of extents using extent allocation maps

Managing Extents and Pages (Continued) File Header Extent Extents in SQL Server Current Use of Extent GAM Bit Setting SGAM Bit Setting Free, not being used 1 Uniform extent, or full mixed extent Mixed extent with free pages GAMs and SGAMs

Tablespaces and Data files Oracle and SQL Server store data in data files The largest logical storage structure in Oracle is a tablespace The largest logical storage structure in SQL Server is a filegroup Tablespaces/filegroups are used to group application objects Tablespaces/filegroups optimize administration of data files

SQL Server Data Files Three file types supported by SQL Server: Primary Data Files Secondary Data Files Log Data Files

Mapping of Tablespaces and Filegroups System Tablespace SysAux Tablespace Temporary Tablespace BigFile Tablespace User Data Tablespace User Index Tablespace Undo Tablespace Redo Log Files Data file Log file Data file Master DB Resource DB TempDB Model DB MSDB User DB Data FG Index FG Log File(s) Data file Log file Data file Tablespace Group Log file Data file Data file Log file Data file Data file Log file Data file Data file Data file User Database Data file Data file Data file Data file Redo Log Log file Oracle Database Instance SQL Server Instance

Demonstration 1: Viewing an Instance’s System Databases In this demonstration you will see how to: Connect to an instance Review system databases Review application or user databases

Logging Model Oracle uses online redo logs to record changes made to the database by transactions and undo segments to capture the ‘before image’ of data SQL Server implements both of these functions using transaction logs. Each transaction record contains the undo and redo image of the transaction.

Data Dictionary In Oracle the data dictionary is stored under the SYS schema in the SYSTEM tablespace In SQL Server the data dictionary consists of: Catalog View—the best way to access system metadata Backward Compatibility Views—All system tables from previous releases are provided as backward compatibility views Dynamic Management Views—to view the current state of the SQL Server system. Provide real-time snapshots of internal memory structures indicating the server state. INFORMATION_SCHEMA views—SQL-99 method to view system metadata SQL Server’s Resource database contains the metadata for system stored procedures

Demonstration 2: View the Data Dictionary In this demonstration you will learn how to: View the dictionary with object explorer View the data dictionary with catalog views View the data dictionary within a database View the data dictionary via system stored procedures

Review Defined schema and identified core schema objects Examined the storage architecture and its physical (datafiles, logfiles, and so on) and logical structures (blocks, extents, segments, and tablespaces) Defined the hierarchy in the logical structures Compared Oracle and SQL Server in terms of schema vs. databases, and tablespaces vs. filegroups Examined the structures used in the implementation of the logging model (redo logs and rollback segments in Oracle vs. transaction logs in SQL Server) Brief look at the location and composition of the data dictionary/system catalog