Database:: Prepared By-Pankaj Mishra (Microsoft Certified System Engineer)
Database:: Prepared By-Pankaj Mishra (Microsoft Certified System Engineer)
Function of DBMS:
1. Defining database schema: it must give facility for defining the database structure also
specifies access rights to authorized users.
2. Manipulation of the database: The dbms must have functions like insertion of record into
database updation of data, deletion of data, retrieval of data
3. Sharing of database: The DBMS must share data items for multiple users by maintaining
consistency of data.
4. Protection of database: It must protect the database against unauthorized users.
5. Database recovery: If for any reason the system fails DBMS must facilitate data base
recovery.
Sharing of data:
A database allows the sharing of data under its control by any number of application programs or
users.
Data Integrity:
Data integrity means that the data contained in the database is both accurate and
consistent. Therefore data values being entered for storage could be checked to ensure that they
fall with in a specified range and are of the correct format.
Data Security:
Disadvantage of DBMS:
1. DBMS software and hardware (networking installation) cost is high
2. The processing overhead by the dbms for implementation of security, integrity and
sharing of the data.
3. centralized database control
4. Setup of the database system requires more knowledge, money, skills, and time.
5. The complexity of the database may result in poor performance.
Logical data are the data for the table created by user in primary memory. Physical data refers to
the data stored in the secondary memory.
A schema is a logical data base description and is drawn as a chart of the types of data that are
used . It gives the names of the entities and attributes and specify the relationships between
them.
A subschema is derived schema derived from existing schema as per the user
requirement. There may be more then one subschema create for a single conceptual schema.
Database users :
Naive users :
Users who need not be aware of the presence of the database system or any other system
supporting their usage are considered naïve users . A user of an automatic teller machine falls on
this category.
Database Administration :
A person who has central control over the system is called database administrator . The function
of DBA are :
1. creation and modification of conceptual Schema definition
2. Implementation of storage structure and access method.
3. schema and physical organization modifications .
4. granting of authorization for data access.
5. Integrity constraints specification.
6. Execute immediate recovery procedure in case of failures
7. ensure physical security to database
Database language :
Database manager:
responsible of database manager to control the problems occurs for concurrent transactions.
query processor:
The query processor used to interpret to online user’s query and convert it into an efficient series
of operations in a form capable of being sent to the data manager for execution. The query
processor uses the data dictionary to find the details of data file and using this information it
create query plan/access plan to execute the query.
Data Dictionary:
Data dictionary is the table which contains the information about database objects. It contains
information like
1. external, conceptual and internal database description
2. description of entities , attributes as well as meaning of data elements
3. synonyms, authorization and security codes
4. database authorization
The data stored in the data dictionary is called meta data.