Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCTION The ancient file processing system Disadvantages of file processing system Concept of database Main Characteristics of the Database Approach Database Users Advantages of database management systems Database applications
Example: Savings Bank 1.Details of customers 2.Accounts details 3.Transaction made by customers 4.Transactions inside the bank 5.Updating of any details 6.Generation of monthly reports. etc 7.
Disadvantages of file processing system Data redundancy and inconsistency Difficulty in accessing data Data isolation Integrity problems Atomicity of updates Concurrent access by multiple users Security problems
Data
Data is a representation of facts, concepts, or instructions in a formalized manner suitable for communication, interpretation, or processing by humans or by automatic means.
Database
It is a well-organized collection of data that are related in a meaningful way which can be accessed in different logical orders but are stored only once.
It is well organized It is related It is accessible in different orders without great difficulty. It is stored only once.
Database (continued)
The data in the database is persistent, integrated, structured and shared. Integrated data:- Redundancy can be eliminated. Shared data:- Data can be shared by different users for different applications simultaneously. Persistent data:- If some process enters the data into the database then it can be subsequently removed from the database only by some explicit request to remove. Then this data is said to be persistent.
sCollection of interrelated data sSet of programs to access the data sManage large bodies of information sDBMS contains information about a particular enterprise sDBMS provides an environment that is both convenient and
efficient to use.
sAdvantages can be categorized into three Providing maintenance of data Providing access to data Maintaining security of data
DBMS consists of
A collection of interrelated and persistent data. This part of DBMS is usually referred to as the database (DB). A set of application program used to access, update and manage that data. This portion forms the data management system (MS).
The goal of DBMS is to provide an environment that is both convenient and efficient to use in
Data are of two types in database 1.The collection of information needed by the organization 2.metadata, which is the information about the database Data Dictionary or Catalog Information about the users, privileges and the internal structure of the database. Privileges mean the permissions of each user to access the database
Database Users
Users may be divided into
Those who actually use and control the database content, and those who design, develop and maintain database applications (called Actors on the Scene), and Those who design and develop the DBMS software and related tools, and the computer systems operators (called Workers Behind the Scene).
Database Users
Actors on the scene
Database administrators:
Responsible for authorizing access to the database, for coordinating and monitoring its use, acquiring software and hardware resources, controlling its use and monitoring efficiency of operations.
Database Designers:
Responsible to define the content, the structure, the constraints, and functions or transactions against the database. They must communicate with the end-users and understand their needs.
Categories of End-users
Actors on the scene (continued)
End-users: They use the data for queries, reports and some of them update the database content. End-users can be categorized into:
Casual: access database occasionally when needed Nave or Parametric: they make up a large section of the enduser population.
They use previously well-defined functions in the form of canned transactions against the database. Examples are bank-tellers or reservation clerks who do this activity for an entire shift of operations.
Stand-alone:
Mostly maintain personal databases using ready-to-use packaged applications. An example is a tax program user that creates its own internal database. Another example is a user that maintains an address book
Restricting unauthorized access to data. Providing persistent storage for program Objects Providing Storage Structures (e.g. indexes) for efficient Query Processing
Database Applications:
5Banking: all transactions 5Airlines: reservations, schedules 5Universities: registration, grades 5Sales: customers, products, purchases 5Manufacturing: production, inventory, orders, supply
chain
TERMINOLGY Entity: things that exists and distinguishable; example; chair, person, qualification Attributes : entities have properties called attributes, which associate a value from a domain of values for that attribute with each entity in entity set. Key: an attribute or set of attributes whose values uniquely identify each entity in an entity set is called key for that entity set. Relationship: a relationship among entity sets is simply an ordered list of entity sets.
TERMINOLGY Data abstraction Physical level :how the data is actually stored Logical level :what data are stored in the database and what relationship exists among those data View level : users are shown only required information.
View of Data
5Physical schema: database design at the physical level 5Logical schema: database design at the logical level 5Subschema: several subschema are there for view level
Data independence
The ability to modify a schema definition in one level without affecting a schema definition in the next higher level is called data independence.
Physical data independence: is the ability to modify the physical schema without causing application programs to be rewritten. Logical data independence: is the ability to modify the logical schema without causing application to be rewritten.
Database languages
Data definition language : Specification notation for defining the database schema. A database schema is specified by a set of definitions expressed by a special language called data definition language. (DDL). DDL compiler generates a set of tables stored in a data dictionary. Data Manipulation Language: A data manipulation language (DML) is a language that enables users to access or manipulate data as organized by the appropriate model. There are two types Procedural DML: require a user to specify what data are needed and how to get those data. Non-procedural DML: require a user to specify what are needed without specifying how to get those data.