Professional Documents
Culture Documents
Definition:: Database
Definition:: Database
Definition : Database
A database management system is a computerized system that enables users to create and maintain a
database (defining, constructing, manipulating and sharing databases mong various users and applications).
Definition : Meta-data
The database definition or descriptive information is also stored by the DBMS in the form of a database
catalog or dictionary, it is called meta-data.
An application program accesses thedatabase by sending queries or requests for data to the DBMS.
A query typically causes somedata to be retrieved, a transaction may cause some data to be read and
somedata to be written into the database.
General-purpuse and special-purpose DBMS.
Database system: the database and DBMS software together.
2 An Example
To define this database, we specify the structure of the records by specifying the different types of stored
data elements and a data type (string, int, . . . ) each data element within a record. There are
relationships between the records.
1
3 Characteristic of the Database Approach
• Self-describing nature of a database system.
In database approach, a single repository maintains data that is defined once and then accessed by various
users repeatedly through queries, transactions.
2
A general-purpose DBMS must work equally well with any number of database apllications, and it must
refer the the catalog to know the structure of the files in a specific database (eg: the type and format of data
it will access).
2. The implementation (or method): is specified separately and can be changed without affecting the
interface.
Program-operation independence: Invoking functions to operate on data regardless how they do.
3
Data abstraction
Definition : Data abstraction
This characteristic that allows program-data independence and and program-operation independence.
A DBMS provides users with a conceptual representation of data that does not include the
details of how the data is stored or the operations are implemented. A data model is a type of
data abstraction that is used to provide this conceptual representation, which hides storage and
implementation details to make it easier for users to understand.
1. Objects .
2. Objects’ properties.
3. Objects’ interrelationships.
Definition : Transaction
A transaction is an executing program (process) that includes one or more database accesses (such as
reading or updating of database records).
Each transaction executes ok without inteference from other transactions. The DBMS must enforce
several transaction properties:
• The isolation property: each transaction appears to execute in isolation from others, even though
several transactions may be executing concurrently.
• The atomicity property: either all the database operations in a transaction are executed or none
are.
4
4.2 Database Designers
Database designers are responsible for identifying the data to be stored in the database and choosing struc-
tures to represent and store this data. Communicate with prospective database users to create a design meet
their requirements.
Interact with group of users and develop views meet their requirements.
• Native or parametric end users: (mostly end users) keep querying and updating the database,
use standard types of queries and updates − called canned transactions (carefully programmed and
tested).
• Sophisticated end users: engineers, scientists, business analyst, ... that are familiar with the
facilaties of DBMS to implement their own applications that meet their complex requirements.
• Standalone users: maintain personal database using visualizable software. Eg: the user of a financial
software pkg that stores personal financial data.
Application programmers implement these specifications as programs, then test, debug, document
and maintain these canned transactions.
• DBMS system designer and implementers: design and implement the DBMS modules and
interface as a software. The DMBS must interface with other system software (OS, programming
language).
• Tool developer: design and implement tools - software that facilitate database modeling and design,
database system design and improve performance.
• Operators and maintenance personnel (system administration personnel): responsible for the
actual running and maintenance of the hardware and software environment for the database system.
They make the database system available to end users but do not use its contents.
5
6 Advantage of us
6.1 Controlling Redundancy
The redundancy when storing the same data multiple times, duplication of effort, waste storage space.
To ensure consistency and save storage space, an item is stored in only one place in the database.
However, it’s necessary to use controlled redundancy to improve the performance of queries −
denormalization.
Programming languages have complex data structures (structs or classin C++ or Java), which values of
variables are discarded once the programs terminate. Unless we store the complex object in a permanent
files - which is said to be persistent, then can be saved and reused.
• Indexes: auxillary files base on tree, hash data structures to speed up.
Query processing and optimization: DBA do the physical database design and tuning (which indexes
to choose).
– Apps for mobile users, forms and command code for parametric users.
6
– Query Language for casual users, Programming Language Interfaces for application users.
Both forms-style and menu-driven interfaces are graphical user interfaces (GUIs).
Deductive database system are db systems that provide capabilities for defining deduction rules for
inferencing new information from the stored db facts.
For example, determine when a student is on probation. These can be specified declaratively as rules. It
the rules change, it should change the declared deduction rules rather than recode.
Triggers
In today’s relational database, it’s possible to associate triggers with tables. A triggers is a form of a rule
activated by updates to the table, then performing additional operations to other tables, sending message
and so on.
Provide active rules that can automatically initiate actions when certain events and conditions occur.
■ Flexibility. As requirements change, the structure of the database changes. Modern DBMSs allow
certain types of evolutionary changes to the structure without affecting the stored data and existing
application programs.
■ Availability of Up-to-Date Information. Make the database available for all users. 1 user updates,
others know.
■ Economies of Scale. Enable the organization to invest in more powerful processor, storage devices...
rather than having each department purchase its own (lower performance) equipment.