Module_1
Introduction to Database Concepts
Ms. Khushbu Tikhe
Assistant Professor
Department of Electronics and Computer Science
SLRTCE, Mira Road
What is Database
Database Management System
Database Management System
DBMS allows users the following tasks:
Characteristics of DBMS
Advantages of DBMS
Disadvantages of DBMS
Different Feature/Characteristics of databases
A database can be linked to:
Characteristics and Benefits of a Database
Different types of Database Users
1. Database Administrator (DBA) :
Different types of Database Users
2. Naive / Parametric End Users :
Parametric End Users are the unsophisticated who don’t have any DBMS knowledge but they frequently use the data base applications in their daily life to get the desired results.
For examples, Railway’s ticket booking users are naive users. Clerks in any bank is a naive user because they don’t have any DBMS knowledge but they still use the database and perform their given task.
3. System Analyst :
System Analyst is a user who analyzes the requirements of parametric end users. They check whether all the requirements of end users are satisfied.
Different types of Database Users
4. Sophisticated Users :
Sophisticated users can be engineers, scientists, business analyst, who are familiar with the database.
They can develop their own data base applications according to their requirement.
They don’t write the program code but they interact the data base by writing SQL queries directly through the query processor.
5. Application Program :
Application Program are the back end programmers who writes the code for the application programs.
They are the computer professionals. These programs could be written in Programming languages such as Visual Basic, Developer, C, FORTRAN, COBOL etc.
What is File System?
NTFS(New Technology File System),
EXT(Extended File System).
DBMS(Database Management System) :
Oracle, MySQL
Difference between File System and DBMS
File system
1. File system is a software that manages ad organizes the files in a storage medium within a computer.
2. Redundant data can be present in a file system.
3. It doesn’t provide backup and recovery of data if it is lost.
4. There is no efficient query processing in file system.
5. There is less data consistency in file system.
DBMS
1.DBMS is a software for managing the database.
2. In DBMS there is no redundant data.
3. It provides backup and recovery of data even if it is lost.
4. Efficient query processing is there in DBMS.
5. There is more data consistency because of the process of normalization.
Difference between File System and DBMS :
File system
6. It is less complex as compared to DBMS
7. File systems provide less security in comparison to DBMS.
8. It is less expensive than DBMS.
DBMS
6. It has more complexity in handling as compared to file system.
7. DBMS has more security mechanisms as compared to file system.
8. It has a comparatively higher cost than a file system.
Data independence
e.g.; Adding or deleting attributes of a table should not affect the user’s view of the table.
But this type of independence is difficult to achieve as compared to physical data independence because the changes in conceptual schema are reflected in the user’s view.
Roles of a Database administrator's (DBA)
Responsibilities of a Database administrator's (DBA)
1. Software installation and Maintenance
2. Data Extraction, Transformation, and Loading
3. Specialised Data Handling
Today’s databases can be massive and may contain unstructured data types such as images, documents, or sound and video files. Managing a very large database (VLDB) may require higher-level skills and additional monitoring and tuning to maintain efficiency.
4. Database Backup and Recovery
5. Security
A DBA needs to know potential weaknesses of the database software and the company’s overall system and work to minimise risks. No system is one hundred per cent immune to attacks, but implementing best practices can minimise risks.
6. Authentication
Setting up employee access is an important aspect of database security. DBAs control who has access and what type of access they are allowed. For instance, a user may have permission to see only certain pieces of information, or they may be denied the ability to make changes to the system.
7. Capacity Planning
The DBA needs to know how large the database currently is and how fast it is growing in order to make predictions about future needs. Storage refers to how much room the database takes up in server and backup space. Capacity refers to usage level.
If the company is growing quickly and adding many new users, the DBA will have to create the capacity to handle the extra workload.
8. Performance Monitoring
Monitoring databases for performance issues is part of the on-going system maintenance a DBA performs. If some part of the system is slowing down processing, the DBA may need to make configuration changes to the software or add additional hardware capacity.
9. Database Tuning
Performance monitoring shows where the database should be weaked to operate as efficiently as possible. The physical configuration, the way the database is indexed, and how queries are handled can all have a dramatic effect on database performance.
With effective monitoring, it is possible to proactively tune a system based on application and usage instead of waiting until a problem develops.
10. Troubleshooting
DBAs are on call for troubleshooting in case of any problems. Whether they need to quickly restore lost data or correct an issue to minimise damage, a DBA needs to quickly understand and respond to problems when they occur.
Skill Required for A DBA
DBMS Architecture
Components of a database system
Query processor: The query processor is important because it helps the database system simplify and facilitate access to data.
Storage manager: storage manager is important because databases typically require a large amount of storage space.
Query Processor components
Data Definition Language (DDL) is a stands for commands that define the different structures in a database. EX-CREAT, DROP, RENAME
which translates DML statements in a query language into low-level instructions that the query evaluation engine understands.
A query can usually be translated into any of a number of alternative evaluation plans that all give the same result.
The DML compiler also performs query optimization, that is, it picks the lowest cost evaluation plan from among the alternatives.
Storage Manager
Storage manager components
The buffer manager is a critical part of the database system, since it enables the database to handle data sizes that are much larger than the size of main memory.
Data structures implementation by storage manager
The storage manager implements several data structures as part of the physical system implementations:
Data files: These are files in the physical memory used to store the database itself
Data Dictionary: Data dictionary stores the metadata (data about data) that provides the information about the definitions of the data items and their relationships, authorizations, and usage statistics.
In addition, any changes made to the physical structure of the database are automatically recorded in the data dictionary
Indices: Indices are used to provide faster access to data items stored in the physical storage
Transaction Manager
Exercises
1. What is a database management system (DBMS)?
2. What are the properties of a DBMS?
3. Provide three examples of a real-world database (e.g., the library contains a database of books).
4. Discuss Different types of Database Users
5. Explain the Feature of DBMS.
6. what is Difference between File System and DBMS?
7. Define Data Indepandence and Exlain it types.
8. Write Shorte Note on : a. DBA
b. Roles of DBA
c. Responsibilities of DBA
d. Skill Required for DBA
9. Describe overall achitecture of DBMS with Diagram.
Reference