• No results found

1 Introduction to Database

N/A
N/A
Protected

Academic year: 2020

Share "1 Introduction to Database"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction to Database

Prepared By :

(2)

Topics To Be Covered

Introduction about Database.

Characteristics of the database approach. Actors on the scene.

Workers behind the scene. Introduction to DBMS.

Advantages of using a DBMS.

(3)

Structured And Unstructured data

– Flat file = unstructured data – Database = structured data

The Problem with Unstructured Data

High maintenance costs

Data Redundancy: the same data will be represented multiple times in the file.

Data dependence: if you change things about the file format then there will be expensive changes to programs that use it.

(4)

Database

Data = facts and figures

Information = processed data.

A database is a collection of data, typically describing the activities of one or more related organizations. For example, a university database might contain information about the following:

Entity:

A database contains one or more related tables.

Each table holds all of the information about an object, person or thing. Some examples of database tables might be:

- a customer table

- an appointments table - an exam sessions table - a teachers' names table - a concert venue table

(5)

Basic Definition

Database: A collection of related data.

Data: Known facts that can be recorded and have an implicit

meaning.

Mini-world: Some part of the real world about which data is

stored in a database. For example, student grades and transcripts at a university.

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

(6)

Database System

Application program

End-user

(7)

Example of a Database

(with a Conceptual Data Model)

Mini-world for the example

: Part of a UNIVERSITY

environment.

Some mini-world entities

:

STUDENTs COURSEs

SECTIONs (of COURSEs) (academic) DEPARTMENTs INSTRUCTORs

(8)

Example of a Database

(with a Conceptual Data Model)

Some mini-world relationships

:

SECTIONs are of specific COURSEs STUDENTs take SECTIONs

COURSEs have prerequisite COURSEs INSTRUCTORs teach SECTIONs

COURSEs are offered by DEPARTMENTs

STUDENTs major in DEPARTMENTs

Note

: The above could be expressed in the

(9)

Characteristics Of Database

In file system each applications is free to name data element

independently. Each user define and implements the file needed for a specific software application as a part of programming the

application.

In database a single repository of data is maintained that is defined once and than accessed by various users.

(10)

Typical DBMS Functionality

Define a database : in terms of data types, structures

and constraints

Construct or Load the Database on a secondary

storage medium

Manipulating the database : querying, generating

reports, insertions, deletions and modifications to its

content

Concurrent Processing and Sharing by a set of users

(11)

Typical DBMS Functionality

Other features:

Protection or Security measures to prevent

unauthorized access

“Active” processing to take internal actions on data

(12)

Actor on the scene

A person typically defines, constructs, and manipulates the database. In large organization, many people are responsible in the design, use and maintenance of a large database with hundreds of user.

We call these users as the actors on the scene.

Database Administrator. Database Designer.

(13)

Database Administrator

In any organization where many people use the same resources,

there is a need for a chief administrator to oversee and manage these resources.

In a database environment, the primary resource is the database itself, and the second resource is the DBMS and related software. Administrating these resources is the responsibility of the database administrator (DBA).

(14)

Database Designer

Database designer are responsible for

identifying the data to be stored in the data and for choosing appropriate structures to

represent and store this data.

These task should be done before the database actually implemented and populated with data. It is the responsibility of the database

(15)

End Users

End users are the people whose job require access to the database for querying, updating and generating reports;

There are four kinds of end users:

Casual User:

These kinds of user occasionally access the database, but they may need different information each time. They use database queries query language to specify their requests.

Naive and Parametric Users:

(16)

End Users (cont.)

Example of Naive and Parametric users are

Bank tellers check account balances and post withdrawals and deposits.

Reservation clerks for airlines, hotels, and cars rental companies check availability for a given request and make reservations.

Sophisticated End Users:

It include engineers, scientist, business analyst who are familiar with the DBMS in order to implement their applications.

Standalone Users:

(17)

Workers Behind the Scene

DBMS system designers and implementers:

These people design and implement the DBMS module and interfaces as a software packages.

A DBMS consist of complex components or modules for implementing the catalogue, processing query language, controlling concurrency and handling data recovery and security.

Tool Designer:

(18)

Workers behind the scene (cont.)

Operators and Maintenance Personal:

(19)

Database Management System-DBMS

Database Management System.

A database management system, or DBMS, is software designed to assist in

maintaining and utilizing large collections of data, and the need for such systems, as well as their use, is growing rapidly.

Database Management system – Management of data and Management of Users

Software package for defining and managing a database.

Examples:

Proprietary: MS Access, MS SQL Server, DB2, Oracle, Sybase

(20)
(21)

Implication Of Using The Database Approach

Potential for Enforcing Standards:

In large organization certain standards are made in order to facilitate communication and co-operation among various departments, projects, and users within the organization.

Standards can be defined for names and formats of data elements, display formats, report structures, terminology and so on.

Reduced Application Development Time:

Designing a database from scratch takes more time than a flat file system, however once the database is created, it is so easy to retrieve data from the database.

Flexibility:

It may be necessary to change the structure of the database with the inclusion of new entities. Nowadays DBMS allow certain types of evolutionary changes to the structure of the

(22)

Implication of the Database Approach(cont.)

Availability Of Up-to-Date Information:

DBMS make the update database available to all users. It is so important at some industries to retrieve the updated database.

The availability is essential for many transaction-processing applications, such as reservation systems or banking database.

Economies Of Scale:

The DBMS approach permits consolidation of data and applications.

(23)

Advantages of Database

Reduction of redundancy.

Avoid storing the data multiple times.

Restricting Unauthorized Access.

Avoidance of inconsistency.

Provide Storage Structure for efficient Query Processing

Share ability.

Provide Backup and Recovery.

(24)

Provide Multiuser interface.

• Representing Complex Relationship among Data.

• Enforcing Integrity Constraint.

Integrity constraint involves specifies a data type for each item.

Uniqueness in data- a course_name should have different course name.

Disdvantages of Database

Higher cost

Conversion cost

(25)

When Not To Use Database

In spite of advantages of using the database, there are some situation in which a DBMS may involve unnecessary overheads. Some of them are listed below:

High initial investment in hardware, software and training.

The generality that a DBMS provides for defining and processing the data. Overheads for providing the security, concurrency control, recovery, and integrity functions.

Problem arise when the database are not properly design.

(26)

Application Of Database Management System.

Hospital Management System.

Hotel Management System.

Flight Aviation Management

University Management System.

(27)

Summary

Introduction

Basic definitions

Database Data

Mini world DBMS

Database systems

An example database

Applications of database

Advantages Of Database

Functionalities of database systems

(28)

References

Related documents

The purpose of this research study was to use PRA as a tool to involve community members in improving the road safety status in the area of Blaauwbosch.. The outcomes of

The same point applies to the case of the state as well: Even if the lives of the individuals within a state are not threatened, they may nevertheless be permitted to use lethal

A basic valve symbol is e symbol is compo composed of sed of one or one or more more envelopes with lines inside the envelope to represent flow envelopes with

• Amends state constitution to permit Legislature to exempt from property taxation the construction, installation, removal, or modification of all or any part of

Became a sign in parental episode list and the creature called out of work needed from an apology, i have in.. Think it possibly live, even get a christian members of

S e'lleral ma1or encounters in F R1ENos LIK E THESE make use of Mass Combat checks to demonstrate the ebb and flow or the large-scale battles 1n which the PCs

Much insight into the dynamics can be derived from the structure in simulations with structure-based models (SBMs), guided by energy landscape theory. 1 – 6 Here, we study

We propose a novel image-based representation and en- coding algorithm which successfully answers the afore- mentioned problems: the Multiview Layered Depth Im- age (MVLDI), where