Docsity

Database system concepts and architecture, Summaries of Database Management Systems (DBMS)

Partial preview of the text

Download Database system concepts and architecture and more Summaries Database Management Systems (DBMS) in PDF only on Docsity!

1

DATABASE DESIGN

Unit: 2

2

Instances and Schemas

Activities with database at a particular moment is an instances. The overall design of the database is called database schemas.

4

Principles of Database Design

 (^) Integrity : Observing principles such as non-redundancy and the use of constraints, primary and foreign keys, data validation, and referential integrity ensures that the information stored in the database maintains its integrity and consistency.  (^) Performance : Normalization principles optimize data access and eliminate redundancy. In turn, indexing principles contribute to speeding up result times.  (^) Scalability : A database must be able to grow without compromising its performance and the integrity of its data. The same design principles that contribute to integrity and performance also make scalability possible.  (^) Security : Database design principles aimed at controlling access to information – as well as encrypting and protecting sensitive data – make information security possible.  (^) Maintainability : Using naming conventions and maintaining up-to-date documentation ensures that databases are easy to use, update, and modify.

5

7

The Three-Schema Architecture

The goal of this architecture is to separate the user

applications and the physical database.

Tool with which the user can visualize the schema

levels. These three schemas are only descriptions of

data;

The processes of transforming requests that results

between various levels are called mapping.

In this architecture, schemas can be defined at the

following three levels:

Internal Level:

Conceptual Level:

External Level:

8

The 3-Schema Architecture : Internal

Level

 Closest to the physical storage structure of the database.  It indicates how the data to be stored and describes the data structures and access to be used by the database.  The internal view is expressed by the internal schema.  The lowest level of data abstraction  Actual representation of the entire database. Like the actual storage of the data on the disk in the form of records.  The internal view tells us what data is stored in the database and how.  It never deals with the physical devices. Instead, internal schema views a physical device as a collection of physical pages

10 The 3-Schema Architecture : External Level  Where only the concerned portions of the database to a user or application program are included.  Described by means of an external schema.  The external schema consists of the definition of logical and relationship in external view.  An external level is only related to the data which is viewed by specific end users.  The external schema describes the segment of the database which is needed for a certain user group and hides the remaining details from the database from the specific user group

11

Data Independence

 It is difficult to modify a set of metadata once it is stored in the database. when we change data at one layer, it must not affect the data at another level. This data is independent but mapped to each other.  Data independence occurs because when the schema is changed at some level, the schema at the next higher level remains unchanged. We can define two types of data independence:

13

Actors of Database and DBMS

 System Analyst and Application Programmer  Database Administrator End users

14

System Analyst and Application

Programmer

 Determines the requirements of end users,  Develops specifications for canned transactions that meet requirements. Application programmers implement these specifications as programs.

16

Qualities of Database Administrator

 (^) Knowledge of database installation and integration.  (^) Knowledge of database troubleshooting database and database applications.  (^) Knowledge of database administration, database monitoring and database maintenance.  (^) Knowledge of different RDBMS and SQL.  (^) Good communication and interpersonal skills to work well with team or project member.  (^) Knowledge of advance database installation and integrations.  (^) Knowledge of database configuration, security, installation and tuning.  (^) Knowledge of Computer network  (^) Knowledge of operating systems.

17

Duties and Responsibilities of DBA

 (^) Analyses and creates installation procedures for complex database installations,  (^) backups and recovery, database refreshes, data fixes, etc.  (^) Monitors development, test, and production database  (^) Maintains the integrity and availability of the database environment.  (^) Consolidating database servers, implementing security enhancements, and decommissioning old databases.  (^) Provides expertise on the necessary tools for reporting on all database metrics and analyzing metrics to improve database environments.  (^) Actively participates in a project team to identify the technical requirements and specifications for any new database for development and installation.

19

Functional Dependencies

 FD's are constraints on well-formed relations and represent a formalism on the infrastructure of relation.A

functional dependency (FD) on a relation schema R is a

constraint X → Y, where X and Y are subsets of attributes

of R.  X is a determinant,X determines Y, Y is functionally dependent on X, X → Y , X →Y is trivial if Y ⊆ X  For example: Suppose we have a student table with attributes: Stu_Id, Stu_Name, Stu_Age. Here Stu_Id attribute uniquely identifies the Stu_Name attribute of student table because if we know the student id we can tell the student name associated with it. This is known as functional dependency and can be written as Stu_Id- >Stu_Name or in words we can say Stu_Name is functionally dependent on Stu_Id.

20

Entity, Attribute and Relationship

 An entity can be a real-world object. In a school database, students, teachers, classes, and courses offered can be considered as entities.  Entity could be an physical object like a house, bag etc as well as conceptual existence like job, course etc.  Properties of each entity are called attributes. All attributes have values. For example, a student entity may have name, class, and age as attributes.  The association among entities is called a relationship. For example, an employee works_at a department, and a student enrolls in a course. Here, Works_at and Enrolls are called relationships.