Database System Environment: D Mukherjee Assistant Professor - IT Area
Database System Environment: D Mukherjee Assistant Professor - IT Area
Data Models, Schemas, and Instances DBMS Architecture and Data Independence Database Languages and Interfaces The Database System Environment Classification of Database Management Systems
Data Model: A set of concepts to describe the structure of a database, and certain constraints that the database should obey. Provide data abstraction
Data Model Operations: Operations for specifying database retrievals and updates by referring to the concepts of the data model. generic operation: insert, delete, modify, retrieve user-defined operations
- Physical (low-level, internal) data models: Provide concepts that describe details of how data is stored in the computer. record formats record ordering access paths - Implementation (record-oriented) data models: Provide concepts that fall between the above two, balancing user views with some computer storage details.
DBMS/DB System Conepts/Lecture2/22
relational
network hierarchical
4
The database schema changes very infrequently. The database state changes every time the database is updated. Schema is also called intension, whereas state is called extension.
DBMS/DB System Conepts/Lecture2/22
schema construct
UNIVERSITY Database
define empty state load initial state update state update valid state satisfy database schema
10
Data Independence
Logical Data Independence: The capacity to change the conceptual schema without having to change the external schemas and their application programs. Physical Data Independence: The capacity to change the internal schema without having to change the conceptual schema. When a schema at a lower level is changed, only the mappings between this schema and higher-lever schemas need to be changed in a DBMS that fully supports data independence. The higher-level schemas themselves are unchanged. Hence, the application programs need not be changed since they refer to the external schemas.
11
database designers to specify the conceptual schema of the database. In many DBMSs, the DDL is also used to define internal and external schemas (views). In some DBMSs, separate storage definition language (SDL) and view definition language (VDL) are used to define internal and external schemas. Data Manipulation Language (DML): Used to specify database retrievals and updates (insertion, deletions and modifications) DML commands (data sublanguage) can be embedded in a general purpose programming language (host language) Alternatively, standalone DML commands can be applied directly (query language) provide appropriate languages and interfaces for each category of users.
12
DBMS Interfaces - Stand-alone query language interfaces. (casual end user) - Programmer interfaces for embedding DML in programming languages: (programmer) -Pre-compiler Approach -Procedure (Subroutine) Call Approach - User-friendly interfaces: -Menu-based Interfaces for Browsing. -Forms-based Interfaces. -Graphical User Interfaces. -Combination of the above
DBMS/DB System Conepts/Lecture2/22 14
DBMS Interfaces
-Interfaces for Parametric Users (using function keys) - Interfaces for the DBA: -Creating accounts, granting authorizations -Setting system parameters -Changing schemas or access path
15
16
17
Classification of Database Management Systems Based on the data model used: Data models -Traditional: Relational, Network, Hierarchical - Emerging: Object-oriented, Semantic, Entity- Relationship, other. Other classifications: Number of users : Single-user (typically used with personal computers) vs. multi-user (most DBMSs) Number of sites: Centralized (uses a single computer) vs. distributed (uses multiple computers). Homogeneous vs. Heterogeneous Cost of DBMS software. $10,000~100,000 $100~3,000 Purpose general purpose special purpose e.g. airline reservations, telephone directory, on-line transaction processing system
DBMS/DB System Conepts/Lecture2/22 19
A Network Schema
20
Prepare a report on applications of Databases with specifications of their use in any industry of your choice. You may share your experiences derived during the course of your SIP. Deadline for Submission: 7th day from date till 4:30 pm. Please dont jump deadline.
21
22