Database solutions Database environment Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms: 3.21 C,

Slides:



Advertisements
Similar presentations
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Advertisements

CIT 613: Relational Database Development using SQL Introduction to SQL.
Chapter 2 Database Environment.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Lecture Two Database Environment Based on Chapter Two of this book:
Chapter 1 Introduction to Databases
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Chapter 2 CIS Sungchul Hong
Database System Concepts and Architecture
CODD’s 12 RULES OF RELATIONAL DATABASE
Module 3: The Relational Model.  Overview Terminology Relational Data Structure Mathematical Relations Database Relations Relational Keys Relational.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Database Systems DBMS Environment Data Abstraction.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Module 2: Database Environment
Database Environment Session 2 Course Name: Database System Year : 2013.
D R. E.F.C ODD ’ S R ULES FOR RDBMS Dr. E.F.Codd is an IBM researcher who first developed the relational data model in 1970.Dr. Codd published a list.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 1 Introduction to Databases Transparencies.
CIT 613: Relational Database Development using SQL Introduction to SQL DeSiaMorePowered by DeSiaMore 1.
Chapter 2 Database Environment.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
CS-508 Databases and Data Mining By Dr. Noman Hasany.
What is Database Administration ?
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
CS4222 Principles of Database System
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Introduction to Databases
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Database Management.
Director – Engineering
Chapter 2 Database Environment.
Relational Database Management System
Functions of a Database Management System
RDBMS CHAPTER - 2.
Chapter 4 Relational Databases
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Databases
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2: Database System Concepts and Architecture
Introduction to Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Data Base System Lecture 2: Introduction to Database
Database Environment Transparencies
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2014.
Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Relational data model. Codd's Rule E.F Codd was a Computer Scientist who invented Relational model for Database management. Based on relational model,
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Database solutions Database environment Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms: 3.21 C, 15 C

Data independence – general concept Database schema is the overall description of a database. The schema is specified during the database design process and is not expected to change frequently. Logical data independence refers to the immunity of conceptual schemas to changes in the logical schema. Physical data independence refers to the immunity of logical schemas to changes in the physical schema. Data independence means that upper level of database schema are unaffected by changes to lower level. Conceptual database design  Conceptual schema Logical database design  Logical schema Physical database design Physical schema X X

Data sublanguage The definition of a relational system requires that a single language – sometimes called a comprehensive data sublanguage be able to handle all communications with the database. In the world of relational database management system (RDBMS) that language is SQL – Structured Query Language. This is non-procedural language – the language allows user specify what should be done rather than how it is to be done. SQL has been standardized by the International Standards Organization (ISO). SQL commands classification: DDL – Data Definition Language DML – Data Manipulation Language DAL – Data Administration Language

Data dictionary Data dictionary (also known as system catalog) is a repository of information describing the data in the database. The amount of information and the way the information is used vary with the DBMS. Typically, the system catalog stores: metadata: names, types, and sizes of data items, names of relationships, integrity constrains on the data, names of authorised users who have access to the data.

List of functions for a DBMS Data storage, retrieval, and update services A user-accessible catalog Transaction support (all the updates corresponding to a given transaction are made or none of them are made) Concurrency control services (a database is updated correctly when multiple users are updating the database at the same time) Backup and recovery services (recovering the database in the event that the database is damaged in any way) Authorization (security) services (only authorized users can access the database or certain parts of the database) Replication support (managing copies of the same database at multiple locations) Integrity services (both data in the database and changes to the database follow certain constraints rules) Services to promote data independence (supporting the independence of programs from the actual structure of the database) Utility services (assistance in the general maintenance of the database)

Rules for a RDBMS Essential rules: Rule 0 – Foundational rule Rule 12 – Nonsubversion rule Structural rules: Rule 1 – Information representation Rule 6 – View updating Integrity rules: Rule 3 – Systematic treatment of null values Rule 10 – Integrity independence Data manipulation rules: Rule 2– Guaranteed access Rule 4 – Dynamic on-line catalog based on the relational model Rule 5 – Comprehensive data sublanguage Rule 7 – High-level insert, update, delete Data independence rules: Rule 8– Physical data independence Rule 9 – Logical data independence Rule 11 – Distribution independence

Essential rules Rule 0 – Foundational rule For any system that is to be a relational database management system (DBMS), that system must be able to manage databases entirely through its relational capabilities. Rule 1 – Nonsubverstion rule If a realtional system has a low-level (single-record-at-a-time) language, that level cannot be used to bypass (overthrow) the integiry rules or constrains expressed in the higher-level relational (multiple-records-at-a-time).

Structural rules Rule 1 – Information representation All information in a relational database is represented explicitly at a logical level and in exactly one way – by values in tables. Rule 6 – View updating All views that are theoretically updatable are also updatable by the system. A view is the dynamic result of one or more relational operations acting on the base relation (table) to produce another relation – a virtual one. A virtual relation does not exist in the database but it is produced upon request by a particular user. A view has a name and is created using the SELECT command of SQL language.

Integrity rules Rule 3 – Systematic treatment of null values Null values (distinct form the empty chracter string and form the zero value) are supported for representing missing information and inapplicable information in a systematic way, independent of a data type. Rule 10 – Integrity independence Integrity constraints specific to a particular relational database muse be definable in a relational data sublanguage and storable in the catalog, not in the application programs.

Data manipulation rules Rule 2 – Guaranteed access Each and every datum (atomic value) is a relational database is guaranteed to be a logically accessible by restoring to a combination of table name, primary key value and column name. Rule 4 – Dynamic on-line catalog based on the relational model The database description is represented at the logical level in the same way as ordinary data, so authorized users can apply the same relational language to its integration as they apply to the regular data. Rule 5 – Comprehensive data sublanguage There must be at least on language the statements of which can express all of the following items: (1) data definition, (2) view definition, (3) data manipulation, (4) integrity constraints, (5) authorization, (6) transaction boundaries. Rule 6 – High-level insert, update, delete The capability of handling a base relation or a virtual relation (view) as a single operand applies not only to the retrieval of data but also to the insertion, update, and deletion of data.

Data independence rules Rule 8 – Physical data independence Application programs and terminal activities remain logically unimpaired whenever any changes are made in either storage representations or access methods. Rule 9 – Logical data independence Application programs and terminal activates remain logically unimpaired when information-preserving changes of any kind that theoretically permit unimpaired are made to the base table. Rule 11 – Distribution independence The data manipulation sublanguage of a RDBMS must enable application programs and inquires remain logically the same whether and whenever data are physically centralized or distributed.