Dbms 1st Unit
Dbms 1st Unit
• In the early days, database applications were built on top of file systems. Drawbacks of using file
systems to store data:
• Data redundancy and inconsistency - duplication of information in different files.
• Uncontrolled duplication of data is undesirable for following reasons:
• Duplication costs time and money to enter data more than once.
• It takes additional storage space thus again increasing associated costs. It can be avoided by sharing data files.
• It may lead to data inconsistency.
• Integrity problems
• Integrity constraints (e.g. account balance > 0) become part of program code
• Hard to add new constraints or change existing ones.
DRAWBACKS OF FILE SYSTEMS (CONT.)
• Atomicity of updates
• Failures may leave database in an inconsistent state with partial updates carried out.
• E.g. transfer of funds from one account to another should either complete or not happen at all.
• Logical level/Conceptual level: The community view of the database. This level
describes what data is stored in the database and the relationships among the data.
• View level/ External Level: The users view of the database. This level describes that part
of the database that is relevant to each user.
• Each external schema is a combination of base tables and views, tailored to the needs of a
single user.
• It is managed by the data designer and the user.
ADVANTAGES OF DBMS
• Data consistency
• Sharing of data
• Improved security
• Enforcement of standards
• Increased productivity
• Coordinates all the activities of the database system; the database administrator has a
good understanding of the enterprise’s information resources and needs:
• Database administrator’s duties include:
• Schema definition
• Storage structure and access method definition
• Schema and physical organization modification
• Granting user authority to access the database
• Monitoring performance and responding to changes in requirements
DATABASE USERS
• Users are differentiated by the way they expect to interact with the system.
1. Application programmers: They are the developers who interact with the database by
means of DML queries. These DML queries are written in the application programs like C,
C++, JAVA, C# etc. These queries are converted into object code to communicate with the
database.
• For example, writing a Java program to generate the report of employees who are working
particular department will involve a query to fetch the data from database. It will include a
embedded SQL query in the JAVA Program
DATABASE USERS
2. Sophisticated users :They are database developers, who write SQL queries to select/insert/delete/update data.
They do not use any application or programs to request the database. They directly interact with the database by
means of query language like SQL.
• These users will be scientists, engineers, analysts who thoroughly study SQL and DBMS to apply the concepts
in their requirement. In short, we can say this category includes designers and developers of DBMS and SQL.
3. Specialized users: These are also sophisticated users, but they write special database application programs.
They are the developers who develop the complex programs to the requirement
OVERALL
SYSTEM
STRUCTURE