Presentation is loading. Please wait.

Presentation is loading. Please wait.

© InfoGem Introduction to Database l Database system is a computer based record keeping system. l It is a system whose overall purpose is to record and.

Similar presentations


Presentation on theme: "© InfoGem Introduction to Database l Database system is a computer based record keeping system. l It is a system whose overall purpose is to record and."— Presentation transcript:

1 © InfoGem Introduction to Database l Database system is a computer based record keeping system. l It is a system whose overall purpose is to record and maintain information. The information concerned can be anything that is deemed important to the organization. l In another words, database is collection of stored operational data which can be used and shared by different applications and users of any enterprise. This enterprise could be scientific, commercail, educational, etc.

2 © InfoGem Why Database l Database system provides the enterprise with centralized control of its operational data, which is one of its most valuable assets. l This is totally oposite of the situation that is happening in many organizations today, where typically each application has its own private files and a lot of times its own private tapes and disk packs too. This makes the operational data widely dispered and difficult to control.

3 © InfoGem Advantage of centralized database l Redundancy can be reduced l Inconsistency can be avoided l Data can be shared l Standards can be enfored l Security restrictions can be applied l Integrity can be maintained l Conflicting requirements can be balanced

4 © InfoGem Data independence l Data indepencence is an objective in database development l Most present day applications are data dependent. This is the way in which the data is organized in secondary storage and is accessed. Both are dictated by the requirements of the application. This is undesirable because: »Different applications will need defferent view of the same data. »Data Base Adminstrator (DBA) must have the freedom to change the storage structure or access strategy or both in response to changing requirements without the necessity of modifying existing application.

5 © InfoGem Data independence l Data independence could be defined as that, applications concerned with data, not depend on storage structure or access strategy of data. l With data independence database is able to grow without affecting existing applications (another major reason).

6 © InfoGem ANSI database system architecture External Level... Conceptual Level Cmmunity user view External Level (Individual user view) Internal Level (phisical storage view

7 © InfoGem ANSI database system architecture External Level... Conceptual Level Cmmunity user view External Level (Individual user view) Internal Level (phisical storage view A1 A2 A3 An mapping External/conceptualmapping conceptual/internal Database Management System (DBMS) Data Dictionary Conceptual Schema External Schema External Schema Internal schema DBA

8 © InfoGem Database architecture-terms l Schema: defines a database and sub-schema defines a portion of the database. l Schema and mapping built and maintained by the database adminstrator. l Conceptual schema is known as data model l Internal level is concerned with the in which the data is actually stored. l Users are: »application programmers »ad hoc users »external users

9 © InfoGem Database architecture-terms l Each user communicates with the database via a language referred as data sub-language (DSL), which is the subset of the language concerned with the retrieval and storage of information in the database. l Mapping defines the correspondence between data models and external/internal schema. l DBMS is the software that handles all access to the database and also is responsible for applying the authorization checks and validation procedures. l DBMS is a bridge between users and data.

10 © InfoGem Data Base Adminstrator l DBA is responsible for supervising the overall DBS. l DBA’s responsibilities: »Deceiding the information content of the DBS »Decide about the storage structure and access strategy »Interface between users and DBS: –Insure the availability of data for users –Assist users for their inquiries –In cooperation with users set up the external schema »Define authorization check and validation procedures. »Define the strategy for back up and recovry process. »monitoring the performance and respond to changing requirements.

11 © InfoGem Data Dictionary l Data dictionary is the most important tool for DBA. l Data dictionary is a database on its own right. l It defines all data and their relationship, “ data anot data” or information about meta data.

12 © InfoGem Disadvantage of Database Systems l Database is more vulnerble to destruction thru: »machine malfunction »personal error »Deliberate human tampring l Cost: the cost of required hardware, DB development, and DB maintenance is high. l Complexity: Due to its complexity, the user should understand it well enough to use it effecienty and effectively.

13 © InfoGem Database models l Almost all of the database systems developed over the past two decades are relational. l Almost all of the database research is also based on relational related ideas. l Relational database is a system in which: »the data is perseived by the user as tables »the operators at user’s disposal are operators which generate a new table from old l We can categorize systems by the data structures and operators they present to the users.

14 © InfoGem Database Models - Product - Vendor l The four major data model categories are: »Relational DB2 IBMSQL/DS Ingress Relational Technology Oracle Oracle corp. Access Microsoft »Network DMS100 Unysis IDMS Cullinet »Heirarchical IMS IBM System 2000 Intel »Object oriented Postgress Relational Technology Starburst IBM Gemstone Orion

15 © InfoGem Relational Database l Relational database is a collection of tables l Formally a table is called a relation l Database is a structure that can hold information about tables, rows, and columns

16 © InfoGem Relational Database Relational Relational Traditional Model DBMS File System Relation Table File Tuple Row Record Attribute Column Field Primary Key (PK) Primary Key (PK) Search Key Relationship (FK) Relationship (FK) Not Used

17 © InfoGem Relational Database l Primary Key (PK): An attribute which can uniquely identify each record (tuple) of a relation (table). l Foreign Key (FK): An attribute which is a regular attribute in one table but a primary key in another table.

18 © InfoGem Example of a Relational Database SalesNO Name Rate City Dept# 10 James 10 Dallas A211 12 Black 15 Denver F654 48 Black 8 WashDC A211 Sale Primary Key (PK) Relation Name Tuple (record) Attribute

19 © InfoGem SalesNO Name Rate City Dept# 10 James 10 Dallas A211 12 Black 15 Denver F654 48 Black 8 WashDC A211 Sale CustID Name Balance City SaleNo 132 Black 2000.00Dallas 10 135 Tom 129.89 Denver 12 198 Tom (132.90)Dallas 10 Customer SalesNO is PK in Sales table Example of a Relational Database

20 © InfoGem SalesNO Name Rate City Dept# 10 James 10 Dallas A211 12 Black 15 Denver F654 48 Black 8 WashDC A211 Sale CustID Name Balance City SaleNo 132 Black 2000.00Dallas 10 135 Tom 129.89 Denver 12 198 Tom (132.90)Dallas 10 Customer SalesNO is PK in Sales table and FK in Customer table Example of a Relational Database

21 © InfoGem OrderLine ONO Oline# Part# Qty Part# 102 1 12.00 10 EX454 102 2 129.89 1 DE012 199 1 32.90 3 DC810 ONO DATECustIDSalesNO 102 11/2/94 132 10 199 2/15/95 135 12 92 10/4/94 102 53 Order CustID Name Balance City SaleNo 132 Black 2000.00 Dallas 10 135 Tom 129.89 Denver 12 198 Tom (132.90) Dallas 10 Customer SalesNO Name Rate City Dept# 10 James 10 Dallas A211 12 Black 15 Denver F654 48 Black 8 WashDC A211 Sale Example: Order Entry Database


Download ppt "© InfoGem Introduction to Database l Database system is a computer based record keeping system. l It is a system whose overall purpose is to record and."

Similar presentations


Ads by Google