Module 2: Database Architecture

Similar documents
SQL DATABASE PROGRAMMING (PL/SQL AND T-SQL)

SQL Server to Oracle A Database Migration Roadmap

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Oracle Architecture, Concepts & Facilities

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Oracle Database 10g: New Features for Administrators

Oracle Database Security and Audit

Oracle 11g DBA Training Course Content

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

RARITAN VALLEY COMMUNITY COLLEGE COMPUTER SCIENCE (CS) DEPARTMENT. CISY-294, Oracle: Database Administration Fundamentals Part I

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Restore Scenarios What to keep in mind. Pedro A. Lopes PFE

Oracle and Sybase, Concepts and Contrasts

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Implementing a Microsoft SQL Server 2008 Database

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Microsoft SQL Server 2005 for the Oracle Professional

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

UC BERKELEY EXTENSION

Course 6232A: Implementing a Microsoft SQL Server 2008 Database

Oracle Database 11g: Administration Workshop I

ORACLE DATABASE 11G: COMPLETE

Oracle 11g Database Administration

Oracle Architecture. Overview

Real-time Data Replication

Implementing a Microsoft SQL Server 2005 Database

SQL Server Technical Article. Applies

Feature. Database Backup and Recovery Best Practices

Oracle Database 11g: SQL Tuning Workshop

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

ORACLE CORE DBA ONLINE TRAINING

Top 10 Performance Tips for OBI-EE

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database Cross Platform Migration Lucy Feng, DBAK

Database System Architecture & System Catalog Instructor: Mourad Benchikh Text Books: Elmasri & Navathe Chap. 17 Silberschatz & Korth Chap.

Oracle Database: SQL and PL/SQL Fundamentals NEW

Microsoft SQL Database Administrator Certification

Introduction to SQL Tuning. 1. Introduction to SQL Tuning SkillBuilders, Inc. SKILLBUILDERS

ArcSDE Configuration and Tuning Guide for Oracle. ArcGIS 8.3

Dbvisit Replicate. Dbvisit Replicate Overview

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

SQL Server Training Course Content

Configuring and Integrating Oracle

Module 15: Monitoring

Oracle Data Integrator: Administration and Development

Course 55144: SQL Server 2014 Performance Tuning and Optimization

Oracle Database 12c: Administration Workshop NEW

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

SSIS Scaling and Performance

Oracle EXAM - 1Z Oracle Database 11g Release 2: SQL Tuning. Buy Full Product.

Avaya Operational Analyst Release 6.1 Maintenance and Troubleshooting

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Data Management in the Cloud

Oracle Database Creation for Perceptive Process Design & Enterprise

Solution for Staging Area in Near Real-Time DWH Efficient in Refresh and Easy to Operate. Technical White Paper

Database Recovery For Newbies

SnapManager 3.0 for Oracle Best Practices

Performance Tuning and Optimizing SQL Databases 2016

Oracle DBA Course Contents

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

"Charting the Course... MOC AC SQL Server 2014 Performance Tuning and Optimization. Course Summary

Ultimate Guide to Oracle Storage

READPAST & Furious: Transactions, Locking and Isolation

Oracle to SQL Server 2005 Migration

Database Extension 1.5 ez Publish Extension Manual

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Oracle Database 10g: Backup and Recovery 1-2

Course 55144B: SQL Server 2014 Performance Tuning and Optimization

SQL Server Performance Tuning and Optimization

Oracle Database 12c Recovery Manager New Features

Oracle Backup and Recover 101. Osborne Press ISBN

SAP HANA - Main Memory Technology: A Challenge for Development of Business Applications. Jürgen Primsch, SAP AG July 2011

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

Oracle Database 11g: Administration I

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

OLTP Meets Bigdata, Challenges, Options, and Future Saibabu Devabhaktuni

Dedicated Real-time Reporting Instances for Oracle Applications using Oracle GoldenGate

Module 14: Scalability and High Availability

Cross Platform Transportable Tablespaces Migration in Oracle 11g

Mind Q Systems Private Limited

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

Expert Oracle. Database Architecture. Techniques and Solutions. 10gr, and 11g Programming. Oracle Database 9/, Second Edition.

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

Transcription:

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) Table Oracle Table SQL Server Index View Synonym Sequence Procedure Function Package Queue in Streams Advanced Queuing Object Type XML DB Index View Synonym Sequence Stored Procedure Function N/A Service Broker Queue Type XML Schema Collection & data type

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

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

Storage Allocation 6 x = 1 EXTENT 1 + 16K = 2 SEGMENT (Table/Index) 8 x = 64K EXTENT 64K + 64K = 12 HEAP/INDEX 8 x = 16K EXTENT 8 x = 64K EXTENT Oracle SQL Server 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 s 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 GAMs and SGAMs Current Use of Extent GAM Bit Setting SGAM Bit Setting Free, not being used 1 0 Uniform extent, or full mixed extent 0 0 Mixed extent with free pages 0 1

Tablespaces and Datafiles Oracle and SQL Server store data in datafiles 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 datafiles

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

Demonstration: Working with Filegroups and Data Structures Demonstration: Working with Filegroups and Data Structures

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

Demonstration: Viewing an Instance s System Databases Demonstration: Viewing an Instance s System 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: View the Data Dictionary Demonstration: View the Data Dictionary

Review Defined schema and identified core schema objects Examined the storage architecture and its physical (datafiles, logfiles, and so on) and logical structures (s, 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