Академический Документы
Профессиональный Документы
Культура Документы
Database
A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose.
4/28/2012
Rajesh....
DBMS
It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose software that provides the users with the processes of defining, constructing and manipulating the database for various applications. What is a Database system? The database and DBMS software together is called as Database system.
4/28/2012
Rajesh....
Functions of a DBMS
Data storage, retrieval, update A user-accessible catalog Transaction support Concurrency control Recovery services Authorisation services Support for data communication Integrity services
4/28/2012
Data independence
Rajesh....
FILE MANAGER
request for stored page returned stored page
DISK MANAGER
disk I/O operation retrieved data
Database
Rajesh.... 7
The description of a database for a particular universe of discourse which follows the rules layered down by the data model supported by the target DBMS
Database Instance (extension)
Advantages of DBMS
Sharing of data Enforcement of security Enforcement of development and maintenance standards Reduction of redundancy Avoidance of inconsistency across files Maintenance of integrity Data independence
4/28/2012
Rajesh....
Disadvantages of DBMS
size complexity cost Additional hardware costs Higher impact of failure Recovery more difficult
4/28/2012 Rajesh.... 10
Classification of DBMS
1. Classical DBMS
Hierarchical Network Relational
2.
Distributed
4/28/2012
Rajesh....
12
Database Models
Collection of logical constructs used to represent data structure and relationships within the database
Conceptual models: logical nature of data representation Implementation models: emphasis on how the data are represented in the database
4/28/2012 Rajesh.... 13
Figure 1.8
4/28/2012
Rajesh....
15
Advantages Conceptual simplicity Database security and integrity Data independence Efficiency Disadvantages Complex implementation Difficult to manage and lack of standards Lacks structural independence Applications programming and use complexity Implementation limitations
4/28/2012 Rajesh....
16
4/28/2012
Rajesh....
Figure 1.10
17
4/28/2012
Rajesh....
18
4/28/2012
Rajesh....
19
Figure 1.11
4/28/2012
Rajesh....
20
Advantages
4/28/2012
Rajesh....
21
4/28/2012
Rajesh....
22
Objects or abstractions of real-world entities are stored Attributes describe properties Collection of similar objects is a class Methods represent real world actions of classes Classes are organized in a class hierarchy Inheritance is ability of object to inherit attributes and methods of classes above it
4/28/2012
Rajesh....
23
Institute Programme
Courses
Student
Figure 1: A simple Hierarchy
A hierarchical database therefore consists of a collection of records that are connected with each other through links. Each record is a collection of fields (attributes), each of which contains one data value. A link is an association between precisely two records.
4/28/2012 Rajesh.... 25
26
THE NETWORK MODELThe network data model was formalised in the late 1960s by the Database Task Group of the Conference on Data System Language (DBTG/ CODASYL). Their first report, which has been, revised a number of times, contained detailed specifications for the network data model (a model conforming to these specifications is also known as the DBTG data model). The specifications contained in the report and its subsequent revisions have been subjected to much debate and criticism. Many of the current database applications have been built on commercial DBMS systems using the DBTG model.
4/28/2012
Rajesh....
27
The relational model is conceptually simple and more importantly based on mathematical theory of relation. It also frees the users from details of storage structure and access methods. The relational model like all other models consists of three basic components A set of domains and a set of relations Operation on relations Integrity rules CONCEPTS OF A RELATIONAL MODEL The relational model was propounded by E.F. Codd of the IBM in 1972. The basic concept in the relational model is that of a relation. A relation can be viewed as a table, which has the following properties:
4/28/2012 Rajesh.... 28
Property 1: it is column homogeneous. In other words, in any given column of a table, all items are of the same kind. Property 2: each item is a simple number or a character string. That is, a table must be in 1NF. (First Normal Form) which will be introduced in the second unit. Property 3: all rows of a table are distinct. Property 4: the ordering of rows within a table is immaterial. Property 5: the columns of a table are assigned distinct names and the ordering of these columns is immaterial.Example of a valid relation S# P# SCITY 10 1 BANGALORE 10 2 BANGALORE 11 1 BANGALORE 11 2 BANGALORE
4/28/2012
Rajesh....
29
THE RELATIONAL COMPLETENESS The notion of relational completeness was propounded by Codd in 1972 as a basis for evaluating the power of different query languages. A language is relationally complete if the basic relational algebra operations can be performed. The basic relational algebra operations are Union Difference Gross product Selection
4/28/2012
Rajesh....
30
Object-based models It is a collection of real world objects called entities and their relationships.It defines the database as a collection of objects and contains both data members/values and operation that are allowed on the data.The interrelationships and constraints are implemented through objects.
4/28/2012 Rajesh.... 31
4/28/2012
Rajesh....
32