DATABASE ARCHITECTURE:-
The structure that brings all the components of a database together is known as the de Database architecture.
For example: Consider the case of the architecture of a school building. The archi cludes the various classrooms, offices, lihe he architccture INTRODUCTION 1 of the building is not just the visual style. It inclu corridors, gymnasiums, doors, windows. roof. and a large number of other such. these components are brought and placed together, the structure theat This is the low Various components of the database system together form the architecture of the database .
The architecture is further composed of the rules, procedures, and functions la and the items in the Chable your database to work and fulfill the business requirements. DBMS, we can define the architecture of a database under three different levels:
- The External level
- The Conceptual level
- The Internal level
The external level is at the highest level of database architecture. This is targeted for tha end users. In this view, only the restricted portion of the database is available to end users Decause an end user does not need to know everything about the structure of the entire database, rather than the amount of details he/she needs to work with. We may not want the end user to become confused with incredible amount of details by allowing him/her to have look at the entire database, or we may also not allow this for the purpose of security, where sensitive information must remain hidden from unwanted persons.
At this level, the database administrator (DBA) creates custom made mind tables, keeping in the specific kind of need for each user. These tables are also known as virtual tables or views, because they have no separate physical existence. Creating separate views of the database for the different users helps in ensuring the database different security, because when users have access only to the data that is needed and the access is chances of a limited, the security breakdown are minimized .
(ii) The Conceptual level:-
The conceptual level deals with the structure of the entire database. At this level, we are not interested with the raw data items anymore; we are interested with the structure of the database. This means we want to know the information about the attributes of each table, theST common attributes in different tables that help them to be combined, what kind of data can be t into these attributes, and so on. Conceptual or Logical schema is very useful for database. database administrators whose responsibility is to maintain the entire database. DBMS This database.
The level does not contain any storage level details i.e. it is independent of both software and hardware. The software independence means that the level is not dependent on the DBMS used to implement the database. The hardware independence means that the level specified does not depend on the hardware used in the database. Thus changes in either hardware of software will not affect the database design at the conceptual level.
(iii) The Internal level:-
This is the lowest level of database architecture. It deals with the deseription of how raw data items (like 1, ABC, D20 etc.) are stored in the physical storage devices (Hard Dise. CD DVD. Tape Drive etc.). It also describes the data type of these data items. the memory size of the items in the storage media, the location (physical address) of the items in the storage device and so on. This level is useful for database application developers and database es ponenms all of Nay, the ase. ata and ns tha administrator.
Sometimes, internal level is also referred as physical level. But there is a slight difference between them. Actually, physical level is one that is managed by the operating system under the direction of DBMS, while the internal level is managed by DBMS.
- STRUCTURE OF DBMS:-
- DDL Compiler Data Description Languag compiler processes schema definitions Specified in the DDL. It includes metadata information such as the name of the files, data Cms, storage details of each file, mapping information and constraints etc.
- DML Compiler and Query optimizer The DML commands such as insert, update, delete, retrieve from the application program are sent to the DML compiler for comni into object code for database access. The object code is then optimized in the best INTRODUC execute a query by the query optimizer and then send to the data manager.
- Data Manager - The Data Manager is the central software component of the DBMSexterna also knows as Database Control System. The main functions of Data Manager are ) Controls DBMS information access that is stored on disk. (ii) Enforces constraints to maintain consistency and integrity of the data. enable descri (iii) Synchronizes the simultaneous operations performed by the concurrent users. (iv) Controls the backup and recovery operations. data DBM (v) Convert operations in user's queries coming from the application programs or 1. 1 combination of DML Compiler and Query optimizer which is known as Query Processor from user's logical view to physical file system.
- Data Dictionary -Data Dictionary is a It contains repository of description of data in the database. exist information required for managing database and its various operations.
- Data Files -It contains the data portion of the database.
- Compiled DML -The DML complier converts the high level queries into low level fle access commands known as compiled DML.
- End Users -End users are preliminary computer based users. The function of ena U are only to operate the computer and feed or type the collected information (data) in mcu driven application program and to execute it according to the analyst' requirement. 1n el users are also called Data Entry operators.
- SCHEMA AND SUBSCHEMA :-
- TYPES OF SCHEMA :-
- Sub-schemas provide different views of the data to the user and the programmer, who do not need to know all the data contained in the entire database.
- Sub-schemas enhance security factors and prohibit data compromise.
- Sub-schemas give support to the DBA while assuring data integrity .
- DBA (DATABASE ADMINISTRATOR:-
- DBA is responsible for the design, implementation, maintenance and repair of an organization's database. endence, whie words, it allow ams or users
- DBA decides the information contents of the database. He decides the suitable database file structure for arrangement of data.
- DBA compiles the whole data in a particular order and sequence.
- DBA decides where data can be stored i.e. take decision about the storage structure. DBA decides which access strategy and technique should be used for accessing the data. eptual schema pendence. Fo ema should b write existing
- DBA also takes backup of the data on a backup storage device so that if data can be lost then it can be again recovered and compiled.
- DBA interacts regularly with technical, applications and operational staff to ensure database integrity and security. ernal schem r example,i be possib Creating new user-id, password etc, and also creating the access permissions that each user can or can not enjoy. Controlling and monitoring user access to the database.
- DBA is responsible to create user roles, which are collection of the permissions (like read, write etc.) granted and restricted fora class of users.
- DBA defines the integrity constraints (like PRIMARY KEY, UNIQUE, NOT NULL etc.) for the database to ensure that the data entered conform to some rules.
- DBA creates a security mechanism to prevent unauthorized access, accidental or intentional handling of data that can cause security threats.