Md. Ariful Islam Khandaker Assistant Professor, IICT. KUET

Slides:



Advertisements
Similar presentations
Introduction Bayu Adhi Tama, ST., MTI.
Advertisements

©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Ver 1,12/09/2012Kode :CCS 111,Sistem Basis DataFASILKOM Chapter 1: Introduction PENDAHULUAN Bambang Irawan S.KOM;M.Kom.
Adapted from: ©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Fly-over Introduction Purpose of Database Systems View of Data Data.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
BD05/06 Chapter 1: Introduction  Purpose of database systems  Data abstraction levels  Data models  SQL :Data Definition Language and Data Manipulation.
CS157A Lecture 2 DB Mangement Systems Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Database Management System (DBMS)
Ch1: File Systems and Databases Hachim Haddouti
Data Definition Language (DDL) Specification notation for defining the database schema –E.g. create table account ( account-number char(10), balance integer)
DATABASE SYSTEM CONCEPTS
On Database Systems.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Database Management Systems Purpose of Database Systems View of Data.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Database Management Systems (DBMS)
Introduction to DBMS Purpose of Database Systems View of Data
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Temple University – CIS Dept. CIS616– Principles of Database Systems V. Megalooikonomou Introduction (based on notes by Silberchatz,Korth, and Sudarshan)
©Silberschatz, Korth and Sudarshan1.1 Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation.
ICOM 5016 – Introduction to Database Systems
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Lecture 6: Introduction to Database Management Systems Lecturer: Prof. Kazimierz Subieta.
1 Introduction to databases concepts CCIS – IS department Level 4.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Introduction to Databases
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts COMP319: Introduction Course Structure Course Assessment Review: DBMS Structure Review: Terminology.
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET, Gazipur.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
C HAPTER 1: I NTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction Management.
Chapter 1: Introduction
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Lecture on Database Management System
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
RELATIONAL DATABASE MANAGEMENT SYSTEM - I Subject code : BCA-12 and PGDCA 1.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CHAPTER 1: INTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Storage Management Database.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Database Systems
Fundamentals of Database Design
Chapter 1: Introduction
Chapter 1: Introduction
Unit 1: INTRODUCTION Database system, Characteristics Database Users
Database Management:.
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Database Systems
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Introduction
Database and Database Management System (DBMS)
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 1: Introduction
Presentation transcript:

Md. Ariful Islam Khandaker Assistant Professor, IICT. KUET Database System DICT:501 Md. Ariful Islam Khandaker Assistant Professor, IICT. KUET 3/31/2017

Outline Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction Management Storage Management Database Administrator Database Users Overall System Structure 3/31/2017

Database Definition What is Database? A database is basically just a computerized record-keeping system where data are stored in organized way. The database itself can be regarded as a kind of electronic filing cabinet; i.e., it is like a repository or a container for a collection of computerized data files. 3/31/2017

Difference between Data and Information “Data” refer to what is actually stored in the database. It is unprocessed value. “Information” refers to the meaning of that data as understood by some user. It is processed data. Example- Simply 50 is data i,e value but if “the mark is 50”- is information. But in language, the terms “data” and “information” are treated as synonymous. 3/31/2017

Database(Back End) 3/31/2017

Database Access through forms 3/31/2017

Fetching Data from Database 3/31/2017

Components of Database System A database system involves four major components: Data - Integrated form, Shared form. 2. Hardware – Processor, Primary & Secondary Storage. 3. Software – Operating Systems, DBMS. 4. Users – Basically two types – Administrator, Normal User 3/31/2017

Operations on Database file Adding new, empty files to the database; Inserting data into existing files; Retrieving data from existing files; Changing data in existing files; Deleting data from existing files; Removing existing files from the database. 3/31/2017

Database System Applications Banking: For customer information, accounts, and loans, and banking transactions. Airlines: For reservations and schedule information. Universities: For student information, course registrations, and grades. Credit card transactions: For purchases on credit cards and generation of monthly statements. Telecommunication: For keeping records of calls made, generating monthly bills, maintaining balances on prepaid calling cards, and storing information about the communication networks. Finance: For storing information about holdings, sales, and purchases of financial instruments such as stocks and bonds. Sales: For customer, product and purchase information. Manufacturing: For management of supply chain and for tracking production of items in factories, inventories of items in warehouses/stores, and orders for items. Human resources: For information about employees, salaries, payroll taxes and benefits, and for generation of paychecks 3/31/2017

DBMS What is DBMS? A database-management system (DBMS) is a piece of software that is a collection of interrelated data and a set of programs to access those data. The collection of data, usually referred to as the database, contains information relevant to an enterprise. The primary goal of a DBMS is- to provide a way to store and retrieve database information that is both convenient and efficient 3/31/2017

Advantages of DBMS Data isolation: The DBMS can provide an abstract view of the data to isolate data from misuse. Efficient data access: A DBMS utilizes a variety of sophisticated techniques to store and retrieve data efficiently. Data integrity and Consistency: Integrity means condition to data. Provide some checks and key constraints not to data miss use. Consistency means before transaction and after transaction database will remain consistence. 3/31/2017

Advantages of DBMS… Data administration: When several users share the data, centralizing the administration of data can offer significant improvements. Concurrent access and crash recovery: A DBMS schedules concurrent accesses to the data in such a manner that users can think of the data as being accessed by only one user at a time. Further, the DBMS protects users from the effects of system failures. Data Security: DBMS provides a robust security from the malicious destruction using authorization and authentic techniques. 3/31/2017

File systems vs. a DBMS File System DBMS 1. Operating system accesses data directly and it manages itself. 1. Operating system can not access data directly when computer switch on. 2. It is Flat file which means it can be opened anywhere. 2. It is not Flat file. Database Management System program needs to open data. 3. Operating systems provide only a password mechanism for security. This is not sufficient flexible to enforce security policies. 3. DBMS provides security system for accessing data. That is why, improper user cannot access data randomly. 4. If the size of the file large (above 500GB), RAM size must be large. 4. RAM size does not depend on data, because DBMS always selective type. That is required data are stored in RAM. 5. Concurrent access and crash recovery can not possible. Operating system does not responsible for this. 5. A DBMS schedules concurrent accesses to the data in such a manner that users can think of the data as being accessed by only on user at a time. Further, the DBMS protects users from the effects of system failures. 3/31/2017

View of Data Abstraction: Data Abstraction means hiding basic data or meta data from all kind of users using views. 3/31/2017

Levels of Abstraction Physical level: describes how a record (e.g., customer) is stored. Logical level: describes data stored in database, and the relationships among the data. type customer = record name : string; street : string; city : integer; end; View level: application programs hide details of data types. Views can also hide information (e.g., salary) for security purposes. 3/31/2017

Instances and Schemas Similar to types and variables in programming languages Schema – the logical structure of the database Analogous to type information of a variable in a program Physical schema: database design at the physical level Logical schema: database design at the logical level Instance – the actual content of the database at a particular point in time Analogous to the value of a variable 3/31/2017

Data Models Model means structure. A collection of tools for describing data data relationships data semantics data constraints Types of Data Models Entity-Relationship model Relational model Other models: Object-oriented model Object relational data models Older models: network model and hierarchical model 3/31/2017

Hierarchical database model A hierarchical database model is a data model in which the data is organized into a tree-like structure. The structure allows representing information using parent/child relationships: each parent can have many children, but each child has only one parent (also known as a 1-to-many relationship). All attributes of a specific record are listed under an entity type. In a database an entity type is the equivalent of a table. Each individual record is represented as a row, and each attribute as a column. 3/31/2017

Network model The network model is a database model conceived as a flexible way of representing objects and their relationships. Its distinguishing feature is that the schema, viewed as a graph in which object types are nodes and relationship types are arcs, is not restricted to being a hierarchy or lattice. The network model's original inventor was Charles Bachman, and it was developed into a standard specification published in 1969 by the CODASYL Consortium. 3/31/2017

Entity-relationship model In software engineering, an entity-relationship model (ER model for short) is an abstract and conceptual representation of data. Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams or ER diagrams. This article refers to the techniques proposed in Peter Chen's 1976 paper. 3/31/2017

Entity-relationship model… E-R model of real world Entities (objects) Example.-customers, accounts, bank branch Relationships between entities Example- Account A-101 is held by customer Johnson Relationship set depositor associates customers with accounts Widely used for database design Database design in E-R model usually converted to design in the relational model (coming up next) which is used for storage and processing 3/31/2017

Relational Model Relational Model is a tabular representation of ERD Model. In this model all tables are related with some relations. Example of tabular data in the relational model 3/31/2017

A Sample Relational Database 3/31/2017

A Sample Relational Database (Cont.) 3/31/2017

Database Language Language is a way of communication. Database Language means a way to communicate with Database and users. Two types of Database Languages- Data Definition Language( DDL ), Data Manipulation Language ( DML). 3/31/2017

Data Definition Language (DDL) Specification notation for defining the database schema Example- create table account ( account-number char(10), balance integer) DDL compiler generates a set of tables stored in a data dictionary Data dictionary contains metadata (i.e., data about data) Database schema Data storage and definition language language in which the storage structure and access methods used by the database system are specified Usually an extension of the data definition language 3/31/2017

Data Manipulation Language (DML) Language for accessing and manipulating the data organized by the appropriate data model DML also known as query language Two classes of languages Procedural – user specifies what data is required and how to get those data Nonprocedural – user specifies what data is required without specifying how to get those data SQL is the most widely used query language 3/31/2017

SQL SQL: widely used non-procedural language E.g. find the name of the customer with customer-id 192-83-7465 select customer.customer-name from customer where customer.customer-id = ‘192-83-7465’ E.g. find the balances of all accounts held by the customer with customer-id 192-83-7465 select account.balance from depositor, account where depositor.customer-id = ‘192-83-7465’ and depositor.account-number = account.account-number Application programs generally access databases through one of Language extensions to allow embedded SQL Application program interface (e.g. ODBC/JDBC) which allow SQL queries to be sent to a database 3/31/2017

Database Users Users are differentiated by the way they expect to interact with the system Application programmers – interact with system through DML calls Sophisticated users – form requests in a database query language Specialized users – write specialized database applications that do not fit into the traditional data processing framework Naïve users – invoke one of the permanent application programs that have been written previously E.g. people accessing database over the web, bank tellers, clerical staff 3/31/2017

Transaction Management A transaction is a collection of operations that performs a single logical function in a database application Transaction-management component ensures that the database remains in a consistent (correct) state despite system failures (e.g., power failures and operating system crashes) and transaction failures. Concurrency-control manager controls the interaction among the concurrent transactions, to ensure the consistency of the database 3/31/2017

Storage Management Storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system. The storage manager is responsible to the following tasks: interaction with the file manager efficient storing, retrieving and updating of data 3/31/2017

Database Administrator Coordinates all the activities of the database system; the database administrator has a good understanding of the enterprise’s information resources and needs Database administrator's duties include: Schema definition Storage structure and access method definition Schema and physical organization modification Granting user authority to access the database Specifying integrity constraints Acting as liaison with users Monitoring performance and responding to changes in requirements 3/31/2017

Overall System Structure 3/31/2017

Application Architectures Two-tier architecture: E.g. client programs using ODBC/JDBC to communicate with a database Three-tier architecture: E.g. web-based applications, and applications built using “middleware” 3/31/2017

Thanks to All 3/31/2017