An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:

Slides:



Advertisements
Similar presentations
Data Definition and Integrity Constraints
Advertisements

MSc IT UFCE8K-15-M Data Management Prakash Chatterjee Room 2Q18
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Accounting System Design
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 28 Database Systems I The Relational Data Model.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
Database Integrity, Security and Recovery Database integrity Database integrity Database security Database security Database recovery Database recovery.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
Chapter 11 Data Management Layer Design
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Transforming Data Models into Database Designs
Database Constraints. Database constraints are restrictions on the contents of the database or on database operations Database constraints provide a way.
Chapter 7 Constraints and Triggers Spring 2011 Instructor: Hassan Khosravi.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Database Management System Lecture 2 Introduction to Database management.
Chapter 4: Organizing and Manipulating the Data in Databases
Database Lecture # 1 By Ubaid Ullah.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
The Relational Model These slides are based on the slides of your text book.
1 Intro to Info Tech Database Management Systems Copyright 2003 by Janson Industries This presentation can be viewed on line at:
Chapters 17 & 18 Physical Database Design Methodology.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
Relational Database Management Systems. A set of programs to manage one or more databases Provides means for: Accessing the data Inserting, updating and.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
SQL Server 7.0 Maintaining Referential Integrity.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Database Administration: The Complete Guide to Practices and Procedures Chapter 13 Data Integrity.
8 8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
Oracle 11g: SQL Chapter 4 Constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
The Relational Model Content based on Chapter 3 Database Management Systems, (Third Edition), by Raghu Ramakrishnan and Johannes Gehrke. McGraw Hill, 2003.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Visual Programing SQL Overview Section 1.
1 CS 430 Database Theory Winter 2005 Lecture 4: Relational Model.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Session 1 Module 1: Introduction to Data Integrity
CS34311 The Relational Model. cs34312 Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still used IBM’s.
Chapter 3: Relational Databases
Lecture 03 Constraints. Example Schema CONSTRAINTS.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
SQL Basics Review Reviewing what we’ve learned so far…….
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Getting started with Accurately Storing Data
Normalization Referential Integrity
The Relational Model Relational Data Model
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date: 27/07/2005

Overview 1. Project Objectives 7. Work Done so far 2. Approach to Study 8. Questions 5. Timeline 4. SQL Language Standards 3. Data Integrity 6. Possible Extensions

Project Objectives To produce a report detailing weaknesses and strengths in SQL Server and Oracle database systems, To make recommendations about the optimal use of these products for different types of users.

Approach to Study Design Implementation Analysis A blend of a Research and Experimental nature Integrity tests will be carried out using SQL scripts and broken into: Research will be carried out on the SQL Standards

Types of Data Integrity Database structure integrity and Semantic data integrity

Database structure integrity: Keeping track of database objects and ensuring that each object is created, formatted and maintained properly. Each DBMS uses its own internal format and structure to support the databases, table spaces, tables, and indexes under its control.

Database structure integrity (cont) Many DBMSs use pointers to store large objects. System and application errors at times can cause faults within these internal structures. And they become corrupted. DBAs need to identify and correct such faults before insurmountable problems occur.

Semantic data integrity Refers to the meaning of data and relationships that need to be maintained between different types of data. The DBMS provides options, controls and procedures to define and assure the semantic integrity of the data stored within its databases.

Semantic data integrity (cont) These are DBMS features and processes that a DBA can use to ensure data Integrity. This is further categorised into four types:

Semantic data integrity (cont) Entity integrity PRIMARY KEY and UNIQUE The SQL-92 standard requires that all values in a primary key be unique and that the column should not allow null values.

Semantic data integrity (cont) Domain integrity It is all about the permissible entries that a field can have. Enforced by restricting the type (through data types), the format (through CHECK constraints and rules), or the range of possible values (through FOREIGN KEY constraints, CHECK constraints, DEFAULT definitions, NOT NULL definitions, and rules)

Semantic data integrity (cont) Referential Integrity About Building and maintaining logical relationships between tables RI guarantees that an acceptable value is always in the foreign key column. The ANSI SQL-92 standard defines four possible referential actions that apply to deletes from or updates to the referenced table. NO ACTION, CASCADE, SET DEFAULT, and SET NULL

Semantic data integrity (cont) User Defined integrity This refers the to specific business rules not covered by the types of integrity. In both DBMSs this is usually implemented by making use of triggers and procedures.

Transaction management and concurrency control To ensure data integrity the database should not violate the ACID properties. Concurrently reading and or writing records in a database without compromising the consistency of the data. Locking methods

SQL Language Standards Due to the rapid increase in the number of vendors in the market, SQL dialects proliferated. (ISO/IEC JTC 1/SC 32/WG 3) as well as an American committee (ANSI TC NCITS H2) Which released standards for SQL in 1986, 1989, 1992, 1999, and 2003.

Conformance to Standards Most major database vendors support the SQL-92 standard. Oracle (PL/SQL) and Microsoft (T-SQL) use extended forms of SQL which adds declared variables, error and exception handling etc. INT …  T-SQL WHEN exception-name1 THEN PL/SQL-statements; …  PL/SQL

Timeline Reading Literature and tutorialsFirst term Knowing Oracle and Ms SQL Server First and second term Literature SurveyEnd of second term Search for a DatabaseEnd of second Term Investigating them for integrity problems Second and third term Investigating them for conformity to SQL:2003Third term Prepare project PosterEnd of third term What (if anything) can be done to fix the problemsFourth term Final write upFourth term

Possible extensions Developing software which will test DBMSs for integrity. Evaluating the recoverability, backup, maintainability, security and so on. Evaluating the latest versions: SQL Server 2005 (Yukon) and Oracle 10g Performing similar tests with Open Source databases

Work Done so far Literature review Getting to know SQL Server Creating and manipulating databases Using T-SQL Getting to know Oracle Creating and manipulating databases Using PL/SQL

Work Done so far (cont) Carried out experiments to test for: Entity integrity Referential Integrity

Questions