1-Introduction To Database
1-Introduction To Database
Prepared By :
Topics To Be Covered
Introduction about Database.
Characteristics of the database approach. Actors on the scene.
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. Ensuring data consistency and controlling access to the data is difficult (i.e. you cannot finely control multi-user access to the file)
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:
Entities such as students, faculty, courses, and classrooms.
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 itself. Sometimes, the applications are also included.
Database System
DBMS
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. In a database the name or labels of data are defined once, and use reportedly by queries, transaction and application.
End Users.
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). The DBA is responsible for authorizing access to the database, co-ordinating and monitoring its use, and acquiring software and hardware resources as needed.
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 designers to communicate with the end users to know their actual requirement and to create a database that meet their requirement.
End Users
End users are the people whose job require access to the database for querying, updating and generating reports; There are two 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: These users are constantly querying and updating the database, using standard type of query and updates
Examples:
Proprietary: MS Access, MS SQL Server, DB2, Oracle, Sybase Open source: MySql, PostgreSQL
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. Improved security.
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 Most difficult recovery
Overheads for providing the security, concurrency control, recovery, and integrity functions.
Problem arise when the database are not properly design.
Simple file system are use for simple, well defined database application that are not expected to change.
IT Inventory etc.
Summary
Introduction Basic definitions
Database Data
Mini world
DBMS Database systems
An example database Applications of database Advantages Of Database Functionalities of database systems Characteristics of database systems
End Of Lecture 1