Module 1 - Database Concepts and Architecture
Module 1 - Database Concepts and Architecture
Module 1
Database Concepts and
Architecture
History and motivation for database systems –characteristics of database approach – Actors on
the scene – Workers behind the scene – Advantages of using DBMS approach, Data Models,
Schemas, and Instances, Three Schema Architecture and Data Independence, The Database
System Environment, Centralized and Client/Server Architectures for DBMSs, Classification of
TEXT BOOKS
R. Elmasri & S. B. Navathe, Fundamentals of Database Systems, Addison Wesley, 7th Edition, 2015
Raghu Ramakrishnan,Database Management Systems,Mcgraw-Hill,4th edition,2015
REFERENCES
A. Silberschatz, H. F. Korth & S. Sudershan, Database System Concepts, McGraw Hill, 6th Edition 2010
Thomas Connolly, Carolyn Begg,‖ Database Systems : A Practical Approach to Design, Implementation and
Management‖,6th Edition,2012
Pramod J. Sadalage and Marin Fowler, NoSQL Distilled: A brief guide to merging world of Polyglot
persistence, Addison Wesley, 2012.
Shashank Tiwari ,―Professional NoSql‖,Wiley ,2011
Topics to be Covered
It is a collection of
interrelated data
Example:
Department
Courses
Grades
It is controlled by Database
Management System
www.oracle.com
Dr. M. Premalatha, VIT Chennai
Properties of database
www.oracle.com
Database System
www.oracle.com
DBMS Functionalities
www.oracle.com
Dr. M. Premalatha, VIT Chennai
Characteristics of Database Approach
1. Self-describing nature of a
database system
A catalog stores the description of
a particular DB (Data structures /
types / constraints) : Meta-data
Allows DBMS to work with
different DB applications
Characteristics of Database Approach
3. Data Abstraction
Catalog View
Fundamentals Database Systems, Elmasri, Navathe, 7 th Edition, Pearson Publication
Database Users
Actors on the Screen
Use & Control the DB
Design, Develop and Maintain DB Applications
Responsible to define
the content,
the structure,
the constraints and
functions or transactions
Use the data for queries, reports and some of them update the
database content.
Categorized in to:
Casual: access database (when needed)
Sophisticated
Business analysts, scientists, engineers
Stand-alone
Personal Databases (Tax / Address Book)
File processing system
A file system is a process that
manages how and where data on a
storage disk, typically a hard disk
drive (HDD), is stored, accessed
and managed.
Components of requirements
Structure of DB
Planning of DB
Helps us to put real world
requirements to a design
Types:
Object based(data at user and Application level),
Physical based(how data stored in memory, each tables are built and
related),
Record based(data at user and Application level)
Three types:
Hierarchical(parent-child relationship drawback :duplication)
Relational(developed for long storage of data, large scale
application,uses of relation of set theory. information stored
in tables-attributes and tuples)
Network data model(drawback of hierarchical model is
overcome)
Database State:
The actual data stored in a database at a
particular moment in time. This includes
the collection of all the data in the
database.
Also called database instance (or
occurrence or snapshot).
The term instance is also applied to
individual database components, e.g. record
instance, table instance, entity instance.
Database Schema vs State
Database State:
Refers to the content of a database at a
moment in time.
Initial Database State:
Refers to the database state when it is
initially loaded into the system.
Valid State:
A state that satisfies the structure and
constraints of the database.
Database Schema vs State
Distinction
The database schema changes very
infrequently.
The database state changes every time
the database is updated.
Not explicitly used in commercial DBMS products, but has been useful in
explaining database system organization
Three-Schema Architecture
Defines DBMS schemas at three levels:
Internal schema at the internal level to describe physical
storage structures and access paths (e.g indexes).
Typically uses a physical data model.
Conceptual schema at the conceptual level to describe the
structure and constraints for the whole database for a
community of users.
Uses a conceptual or an implementation data model.
External schemas at the external level to describe the various
user views.
Usually uses the same data model as the conceptual schema.
The conceptual level supports each external view, in that any data available to a user must be contained in, or
derivable from, the conceptual level. However, this level must not contain any storage dependent details. For
instance, the description of an entity should contain only data types of attributes (for example, integer, real,
character) and their length (such as the maximum number of digits or characters), but not any strange
considerations, such as the number of bytes occupied. Conceptual level is also known as the, logical level.
The internal level is concerned with such things as:
• Storage space allocation for data and indexes;
• Record descriptions for storage (with stored sizes for data items);
• Record placement;
• Data compression and data encryption techniques.
There will be only one conceptual view, consisting of the abstract representation
of the database in it’s entirely. Similarly there will be only one internal or physical
view, representing the total database, as it is physically stored.
The 3-Tier architecture contains another layer between the client and
server.
In this architecture, client can’t directly communicate with the server.
The application on the client-end interacts with an application server
which further communicates with the database system.
End user has no idea about the existence of the database beyond the
application server and the database also has no idea about any other
user beyond the application.
The 3-Tier architecture is used in case of large web application.
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. Information repository
Active data dictionary is accessed by DBMS software and users/DBA.
Passive data dictionary is accessed by users/DBA only.
Slide 2-
87
Slide 2-
88
SELECT * FROM USER_TABLES; -- this query will not list any owner column as it itself is the owner of tables
SELECT * FROM ALL_TABLES;
SELECT * FROM DBA_TABLES;
Slide 2-
91
Classification of DBMS
W ha t Are th e S tep s i n D ata bas e D e s ig n?