Docsity

Database concepts and database system architecture, Lecture notes of Relational Database Management Systems (RDBMS)

Toggle sidebar
bg1
2
Database
Management
System
CO
Number
Title Level
CO1 To perceive the significance and
implementation of a commercial
relational database system (Oracle)
by writing SQL using the system.
Remember
CO2 To understand the relational database
theory, and be able to write
relational algebra expressions for
queries
Understand
CO3 To identify the basic issues of
transaction processing and
concurrency"control and find out its
solutions.
Analysis and
application
CourseOutcome Will be covered in
this lecture
Department of Computer Science and Engineering (CSE)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Database concepts and database system architecture and more Lecture notes Relational Database Management Systems (RDBMS) in PDF only on Docsity!

2

Database

Management

System

CO Number Title Level CO1 To^ perceive^ the^ significance^ and implementation of a commercial relational database system (Oracle) by writing SQL using the system. Remember CO2 To^ understand^ the^ relational^ database theory, and be able to write relational algebra expressions for queries Understand CO3 (^) To identify the basic issues of transaction processing and concurrency control and find out its solutions. Analysis and application Course Outcome (^) Will be covered in this lecture

Contents of the Syllabus 3 UNIT-I [10h] Overview of Databases : Database concepts, DBMS, Data Base System Architecture (Three Level ANSI-SPARC Architecture), Advantages and Disadvantages of DBMS, Data Independence, DBA and Responsibilities of DBA, Relational Data Structure, Keys, Relations, Attributes, Schema and Instances, Referential integrity, Entity integrity. Data Models: Relational Model, Network Model, Hierarchical Model, ER Model: Design, issues, Mapping constraints, ER diagram, Comparison of Models. Relational Algebra & Relational Calculus: Introduction, Syntax, Semantics, Additional operators, Grouping and Ungrouping, Relational comparisons, Tuple Calculus, Domain Calculus, Calculus Vs Algebra, Computational capabilities. UNIT-II [10h] Functional dependencies and Normalization: Functional dependencies, Decomposition, Full Functional Dependency (FFD), Transitive Dependency (TD), Join Dependency (JD), Multi-valued Dependency (MVD), Normal Forms (1NF, 2NF, 3NF, BCNF), De-normalization. Database Security: Introduction, Threats, Counter Measures. Control Structures : Introduction to conditional control, Iterative control and sequential control statements, Cursors, Views.

OBJECTIVE

S

At the completion of this Chapter , students should be able to do the following:

  • (^) Understand the role of a database management system in an organization.
  • (^) Understand basic database concepts, including the structure and operation of the relational data model.

File system vs. Database

system

File System-

  • (^) Data storage traditionally used individual, unrelated files, sometimes called flat files.
  • (^) In the past, each application program in an organization used its own file.
  • (^) In a university, for example, each department might have its own set of files: the record office kept a file about the student information and their grades, the scheduling office kept the name of the professors and the courses they were teaching, the payroll department kept its own file about the whole staff and so on.
  • (^) Today, however, all of these flat files can be combined in a single entity; the database for the whole university

Database Management System (DBMS)

  • (^) The related information when placed is an organized form makes a database.
  • (^) The organization of data/information is necessary because unorganized information has no meaning.
  • (^) Collection of interrelated data
  • (^) Set of programs to access the data
  • (^) DBMS contains information about a particular enterprise
  • (^) DBMS provides an environment that is both convenient and efficient to use.
  • (^) Database Applications:
    • (^) Banking: all transactions
    • (^) Airlines: reservations, schedules
    • (^) Universities: registration, grades
    • (^) Sales: customers, products, purchases
    • (^) Manufacturing: production, inventory, orders, supply chain
    • (^) Human resources: employee records, salaries, tax deductions
  • (^) Databases touch all aspects of our lives

Purpose of Database System

  • (^) In the early days, database applications were built on top of file systems
  • (^) Drawbacks of using file systems to store data:
    • (^) Data redundancy and inconsistency
      • (^) Multiple file formats, duplication of information in different files
    • (^) Difficulty in accessing data
      • (^) Need to write a new program to carry out each new task
    • (^) Data isolation — multiple files and formats
    • (^) Integrity problems
      • (^) Integrity constraints provide a way of ensuring that changes made to the database by authorized users do not result in a loss of data consistency.
      • (^) Hard to add new constraints or change existing ones

Disadvantages of Traditional File system

  • (^) Data Redundancy Since each application has its own data file, the same data may have to be recorded and stored in many files For example- Personal file and payroll file, both contain data on employee name, designation etc. The result is unnecessary duplicate or redundant data items. This redundancy requires additional or higher storage space, costs extra time and money, and requires additional efforts to keep all files upto-date.
  • (^) Data Inconsistency Data redundancy leads to data inconsistency especially when data is to be updated. Data inconsistency occurs due to the same data items that appear in more than one file do not get updated simultaneously in each and every file.
  • (^) Lack of Data Integration
  • (^) Data Dependence
  • (^) Limited Data Sharing
  • (^) Poor Data Control
  • (^) Problem of Security
  • (^) Data Manipulation Capability is Inadequate Disadvantages of Traditional File system

Advantages of

Databases

  • (^) Less redundancy
    • (^) In a flat-file system there is a lot of redundancy. For example, in the flat file system for a university, the names of professors and students are stored in more than one file.
  • (^) Inconsistency avoidance When the same data is duplicated and changes are made at one site, which is not propagated to the other site, it gives rise to inconsistency and the two entries regarding the same data will not agree.
    • (^) If the same piece of information is stored in more than one place, then any changes in the data need to occur in all places that data is stored.
  • (^) Efficiency
    • (^) A database is usually more efficient that a flat file system, because a piece of information is stored in fewer locations.
  • (^) Data integrity
  • (^) Integrity of data means that data in database is always accurate, such that incorrect information cannot be stored in database. - (^) In a database system it is easier to maintain data integrity, because a piece of data is stored in fewer locations.
  • (^) Confidentiality
    • (^) It is easier to maintain the confidentiality of the information if the storage of data is centralized in one location.

Advantages of

Databases

Disadvantages of

DBMS

  • (^) Complexity
  • (^) Size
  • (^) Performance
  • (^) Higher impact of a failure
  • (^) Cost of DBMS
  • (^) Additional Hardware costs
  • (^) Cost of Conversion

University Institute of Use a DBMS when this is important

  • (^) persistent storage of data
  • (^) centralized control of data
  • (^) control of redundancy
  • (^) control of consistency and integrity
  • (^) multiple user support
  • (^) sharing of data
  • (^) data documentation
  • (^) data independence
  • (^) control of access and security

Do not use a DBMS

when

  • (^) the initial investment in hardware, software, and training is too high
  • the generality a DBMS provides is not needed
  • (^) the overhead for security, concurrency control, and recovery is too high
  • (^) data and applications are simple and stable
  • real-time requirements cannot be met by it
  • (^) multiple user access is not

BASIC DEFINITIONS

Database : A collection of related data.  Data : Known facts that can be recorded and have an implicit meaning.  Database Management System (DBMS) : A software package/ system to facilitate the creation and maintenance of a computerized database.  Database System : The DBMS software together with the data itself. Sometimes, the applications are also included.

Outcome

s

  • (^) Differentiate database systems from file systems by enumerating the features provided by database systems and describe each in both function and benefit.
  • (^) Define the terminology, features, classifications, and characteristics embodied in database systems.
  • (^) Master the basic concepts and appreciate the applications of database systems.