Fundamental of Database CH-2
Fundamental of Database CH-2
System(cosc2041)
Chapter Two
Database System Concepts and
Architecture
Chapter outline
Data Models and Their Categories
History of Data Models
Schemas, Instances, and States
Three-Schema Architecture
Data Independence
DBMS Languages and Interfaces
Database System Utilities and Tools
Centralized and Client-Server Architectures
Classification of DBMSs
Smith 17 1 CS
Brown 8 2 CS
• Program-data independence.
• Not explicitly used in commercial DBMS products, but has been useful in
explaining database system organization
• Mappings among schema levels are needed to transform requests and data.
• Programs refer to an external schema, and are mapped by the DBMS to the
internal schema for execution.
• Data extracted from the internal DBMS level is reformatted to match the
user’s external view (e.g. formatting the results of an SQL query for display
in a Web page).
DBMS Languages
• A data sublanguage consists of two parts:
• Data Definition Language(DDL)
• Data Manipulation Language(DML).
• The DDL is used to specify the database schema
By: Melishew Awoke(MSc) 14
• The DML is used to both read and update the database.
• These languages are called data sublanguages because they do not include
constructs for all computing needs such as conditional or iterative statements,
which are provided by the high-level programming languages.
• Many DBMSs have a facility for embedding the sublanguage in a high-level
programming language such as COBOL, Fortran, Pascal, Ada, ‘C’, C++, Java, or
Visual Basic.
High-Level or Non-procedural Languages: These include the
relational language SQL. May be used in a standalone way or may be embedded
in a programming language
Low Level or Procedural Languages: These must be embedded in a
programming language.
View definition language (VDL)- Specifies user views/mappings to
conceptual schema.
Storage definition language (SDL)- Specifies the internal schema
Other Tools
Data dictionary / repository:
Used to store schema descriptions and other information such as design
decisions, application program descriptions, user information, usage
standards, etc.
Active data dictionary is accessed by DBMS software and users/DBA.
JBuilder (Borland)