DBMS NOTES
UNIT 2
Database System Architecture
Three-level architecture or ANSI/SPARC architecture are other names for the three-schema design.
A specific database system's structure is described using this approach.
The physical database and user apps are kept apart using the three schema architecture.
There are three levels in the three schema architecture. The database is divided into three sections by it.
In this context, database design refers to the DBMS schema. Let's use the employee table as an example, for instance. The following characteristics are present in the employee table. EMP_ID, EMP_ADDRESS, EMP_NAME, and EMP_CONTACT are these characteristics. These represent the employee table's schema.
Three extra categories are applied to schemas. These three are listed in order.
VIEW schema.
The database's logical perspective is specified in the schema. It offers some information about the database and the locations of the necessary data.
2. Logical schema: The database is logically designed in the logical schema. The programmer and data administrator carry out their duties at this level. Additionally, certain data is organised and saved at this level. However, for the suggested security, the internal implementation data are concealed in the physical layer.
3. View schema: The database is created at the view level using view schema. The way users interact with the database system is described in this schema.
For instance, we used the attribute of the schema as an example in the example above. Each table in this example has two rows, or two records. The employee table has some instances in the database's schema above because the table has some instances of all the data.
What is Data Independence in DBMS?
Logical Data Independence: Logical data independence refers to the ability to change the conceptual schema without having to change the external schemas or application programs. It allows modifications to the database structure without affecting the way users access the data.
Physical Data Independence: Physical data independence refers to the ability to change the internal schema without affecting the conceptual or external schemas. It allows modifications to the physical storage structures and access methods without impacting the logical structure of the database.
Classification of Database Management System:
Centralized DBMS: In a centralized DBMS architecture, all data is stored and managed in a single location. Users access the database through a single interface, and all data processing tasks are performed centrally.
Client-Server Architecture: In a client-server architecture, the database is stored on a server, and clients communicate with the server to access and manipulate the data. This architecture allows for distributed processing and scalability, as multiple clients can access the database simultaneously.
The display, application, and data management layers comprise the three divisions of the application logic in a three-tier architecture. Compared to a 2-tier architecture, this one offers greater flexibility and scalability.
+------------------------------------+
| Application |
| Layer |
+------------------------------------+
| Presentation | <----- Client Machine
| Layer |
+------------------------------------+
| Business Logic | <----- Application Server
| Layer |
+------------------------------------+
| Data Management | <----- Database Server
| Layer |
+------------------------------------+
what are Data Models? Explain each Records- based Data Models, Object-based Data
Models, Physical Data Models and Conceptual Modeling.
Conceptual Data Model
Elements of the ER Model:
Real-world objects are referred to as entities. It could be a class, name, location, or item. In an ER Diagram, these are shown by a rectangle.
Attributes: An entity's description is referred to as an attribute. In an ER Diagram, these are represented by an ellipse. For a student, it could be their age, roll number, or marks.
Relationship: Relationships are what establish the connections between various entities. Relationships are represented by rhombuses and diamonds.
OBJECT BASED DATA MODEL
In object-based data models, the representation of data is the main concern. The data is separated into a number of entities, each with certain distinguishing features. Furthermore, there exist certain links between these data elements.
Accordingly, the entities in object-based data models are based on real-world models and how the data is really used. The way the data is visualised and integrated is more important than the actual content of the data.
A few instances of object-oriented data models include
Entity Relationship Data Model
Real-world circumstances are represented as entities in the ER model. In the ER diagram, these entities' characteristics represent their properties, and relationships represent the links between them.
In data designing, an ER model is typically seen as a top-down method.
Model of Object-Oriented Data
Object-Oriented Data Model
Here's an illustration of an object-oriented data model:
In this paradigm, there are two objects: PERSON and EMPLOYEE.
Name, address, phone number, and age are properties of PERSON.
The attributes Employee ID, Employee Type, and Department ID are present in EMPLOYEE.
Hierarchical Data Model: A group of records serves as the model data's representation in a hierarchical data type. Links in this indicate the relationships between the data. A tree data structure is employed in this concept.
IBM created it in the 1960s to handle massive volumes of data for intricate manufacturing operations. An inverted "tree" represents the fundamental logical structure of a hierarchical data model.
Take social media platforms like Facebook, Instagram, and so forth.
A certain DBMS (like Couchbase, for example)
The method(s) used to store data (RAM, disc, hybrid, etc. To combine the speed of RAM with the durability of disc, Couchbase comes with an integrated cache.
Methods for allowing divisions, shards, replications, etc. Partitioning and sharding for Couchbase are automatic processes. A drop-down box for replication allows you to choose the desired number of replicas.
DBAs and/or developers usually construct the physical data model.As part of the physical data model, there should be:
A certain DBMS (like Couchbase, for example)
The method(s) used to store data (RAM, disc, hybrid, etc. To combine the speed of RAM with the durability of disc, Couchbase comes with an integrated cache.
No comments:
Post a Comment