



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to Database Management Systems (DBMS), their role in Computer-based Information Systems (CIS), and the advantages of using DBMS over traditional file-processing systems. It discusses the disadvantages of file-processing systems, such as data redundancy, difficulty in accessing data, data isolation, integrity problems, and atomicity problems. The document also introduces the concept of data abstraction and the benefits of using a database approach, including data independence and the capacity to change schemas without affecting external systems.
Typology: Lecture notes
1 / 35
This page cannot be seen from the preview
Don't miss anything!




























DBMS: A tool for creating and managing large amounts of data efficiently and allowing it to persist over long periods of time, safely. (Garcia- Molina et. al., 2002 ) Databases today are essential to every business, in order to: o present data to customers o present data on the World-Wide-Web o support commercial processes Some important capabilities: o Persistent storage for large amounts of data o Programming interface for users and applications o Transaction management
To see why database management systems are necessary, let's consider typical file-processing system supported by a conventional operating system. Consider an application in SAVING BANK o Information of saving account and customer records are kept in permanent system files. o Application programs are written to manipulate files to perform following tasks
Disadvantages of using file-processing system ( 2 ) (Purpose of Database System)
โ Data may be required to satisfy constraints. โ E.g. no account balance below $25. 00. โ Again, difficult to enforce or to change constraints with the file- processing approach.
โ Data need to be restored to the consistent state if a failure occurs. โ E.g. a program to transfer $5 0 from account A to account B โ If a system failure occurs, it is possible that the $5 0 is removed from account A and is not credited to B, resulting into inconsistent state. โ It is essential that either both debit and credit occurs or none. โ Difficult to ensure atomicity in file-processing system.
Disadvantages of using file-processing system ( 3 ) (Purpose of Database System)
โ Want concurrency for faster response time. โ Need protection for concurrent updates. โ E.g. two customers withdrawing funds from the same account at the same time. Account has $50 0 in it, and they withdraw $10 0 and $50. The result could be $350, $40 0 or $45 0 if no protection.
โ Every user of the system should be able to access only the data they are permitted to see. โ E.g. payroll people only handle employee records, and cannot see customer accounts; tellers only โ access account data and cannot see payroll data. โ Difficult to enforce this with application programs.Security problem These difficulties have prompted the development of database system.
10 ViewofData o Data Abstraction o Instances and Schemas o Data Independence The major purpose of a database system is o to provide users with an abstract view of the system o i.e. the system hides certain details of how data is stored and maintained
11
13
Note: Refer Date, C. J. An introduction to Database Systems
14
Following code defines a new record type, customer with four fields. //In Pascel Programming type customer=record customer-id:string; customer-name:string; customer-street:string; customer-city:string; end; At physical level, //In C++ Programming typedef struct customer{ string customer-id; string customer-name; string customer-street; string customer-city; } o Block of consecutive storage (Words or bytes) o The compiler hides the level of details from programmer. At logical level, o Records described by a type definition as above and o interrelationship of these records. o Programmers and Database adminsitrators. At View level, o Computer users see a set of applicaton programs that hides details of the data types.
16
103 Med c ne (^1233) SchemaDiagramofDatabase FACULTY FacultyNumber FacultyName Dean STUDENT Name StudentNumber FacultyNumber BeginDate COURSE CourseNumber CourseName CreditHours Instance(State) FACULTY FacultyNumber FacultyName Dean 101 Business 1231 102 Engineering 1232 STUDENT Name StudentNumber (^) FacultyNiumi ber BeginDate Smith 112321 101 01 - 09 - 2009 John 823431 102 01 - 09 - 2009
17
(ANSI/SPARC Architecture)
o Describes severals schemas at view level. o Describes the part of the database, that a particular user group is interested in.
o Describes the database design at logical level. o Describes the structure of the whole database for a community of users o Data Definition Language (DDL)
o Describes the database design at the physical level. o Determines the physical storage structure of the database (e.g. formats of physical records, access path) o Storage Structure Language (SSL)
19
(ANSI/SPARC Architecture) The three schemas are only descriptions of data The only data that actually exists is at the physical level. In a DBMS based on the three-schema architecture, o each user group refers only to its own external schema. o Hence, the DBMS must transform a request specified on an external schema into a request against the conceptual schema, and then into a request on the internal schema for processing over the stored database. If the request is a database retrieval, the data extracted from the stored database must be reformatted to match the userโs external view. o The processes of transforming requests and results between levels are called mappings.
20
LogicalDataIndependence is the capacity to change the conceptual schema without having to change external schema or application program. PhysicalDataIndependence is the capacity to change the internal schema without having to change the conceptual schema (or external schema). *Modificaton at this level is usually to improve performance.