Docsity

Database Design and Architecture, Cheat Sheet of Introduction to Database Management Systems

Toggle sidebar
bg1
Database Design
Database Design defines how data is stored, organized, and accessed. It is the process of
creating a structured framework for storing, retrieving, and managing data efficiently. It is also
the process of gathering data requirements for an organization or a business process, and
transforming those requirements into a set of specifications that can be used to create a
database.
Steps in Database Design
1. Identify data entities (like students, employees, and products).
2. Define relationships between entities.
3. Create ER (Entity-Relationship) diagrams.
4. Normalize tables to reduce redundancy.
5. Define primary and foreign keys.
6. Implement design in a DBMS (Oracle, MySQL).
7. Test and optimize for performance.
Objectives of Database Design
• Redundancy — data occupies space, causes waste; minimize it and control
inaccuracies to keep data correct.
• Ensure data integrity, consistency, and accuracy.
• Improve data retrieval speed.
• Maintain data security.
• Optimize performance — data accessed, searched, and updated quickly and efficiently.
• Data independency.
• Recovery from failure.
• Privacy and security.
• More information at low cost.
pf2

Partial preview of the text

Download Database Design and Architecture and more Cheat Sheet Introduction to Database Management Systems in PDF only on Docsity!

Database Design

Database Design defines how data is stored, organized, and accessed. It is the process of creating a structured framework for storing, retrieving, and managing data efficiently. It is also the process of gathering data requirements for an organization or a business process, and transforming those requirements into a set of specifications that can be used to create a database.

Steps in Database Design

  1. Identify data entities (like students, employees, and products).
  2. Define relationships between entities.
  3. Create ER (Entity-Relationship) diagrams.
  4. Normalize tables to reduce redundancy.
  5. Define primary and foreign keys.
  6. Implement design in a DBMS (Oracle, MySQL).
  7. Test and optimize for performance.

Objectives of Database Design

  • Redundancy — data occupies space, causes waste; minimize it and control inaccuracies to keep data correct.
  • Ensure data integrity, consistency, and accuracy.
  • Improve data retrieval speed.
  • Maintain data security.
  • Optimize performance — data accessed, searched, and updated quickly and efficiently.
  • Data independency.
  • Recovery from failure.
  • Privacy and security.
  • More information at low cost.

DBMS Architecture

The DBMS design depends upon its architecture. The basic client/server architecture is used to deal with a large number of PCs, web servers, database servers and other components connected via networks. The client/server architecture consists of many PCs and a workstation connected via the network. DBMS architecture depends upon how users are connected to the database to get their requests done. Database architecture can be seen as single-tier or multi-tier. Logically, it is of two main types: 2-tier architecture and 3-tier architecture.

1-Tier Architecture

  • The database is directly available to the user — the user can directly sit on the DBMS and use it.
  • Any changes done here will directly be made on the database itself. It does not provide a handy tool for end users.
  • Used for development of local applications, where programmers can directly communicate with the database for quick response.

2-Tier Architecture

  • Same as basic client-server. Applications on the client end can directly communicate with the database at the server side. APIs like ODBC and JDBC are used for this interaction.
  • User interfaces and application programs run on the client side.
  • The server side provides functionalities like query processing and transaction management.
  • To communicate with the DBMS, the client-side application establishes a connection with the server side.

3-Tier Architecture

  • Contains another layer between the client and server. The client cannot directly communicate with the server.
  • The application on the client-end interacts with an application server, which further communicates with the database system.
  • The end user has no idea about the existence of the database beyond the application server. The database also has no idea about any other user beyond the application.
  • Used in case of large web applications.