Professional Documents
Culture Documents
DBMS
DBMS
Data abstraction
done thru conceptual
representation of data
ex done using
1- SPECIFYING DATA TYPE
2- UNIQUENESS of data item values
Enforcing integrity Constrains
Done by:Database designers by
identifying integrity constraints
in database design phase
The effects of an accomplished transaction are permanently recorded in the database and must not get lost or
Durability vanished due to subsequent failure. So this becomes the responsibility of the recovery sub-system to ensure
durability.
A transaction must alter the database from one steady-state to another steady state. This is
the responsibility of both the DBMS and the application developers to make certain
Consistency
consistency. The DBMS can ensure consistency by putting into effect all the constraints that
Advantages procedure of managing simultaneous transactions مع التاكد من have been mainly on the database schema such as integrity and enterprise constraints.
Concurrency Control
their ACID properties
The 'all or nothing' property. A transaction is an indivisible entity that is either performed in its entirety or will not get
Atomicity
performed at all. This is the responsibility or duty of the recovery subsystem of the DBMS to ensure atomicity.
Transactions that are executing independently of one another is the primary concept followed by isolation. In other
Sharing of data and multiuser words, the frictional effects of incomplete transactions should not be visible or come into notice to other transactions
Isolation
going on simultaneously. It is the responsibility of the concurrency control sub-system to ensure adapting the
isolation.
done by DBA
Representing complex
Done using ERD
relationships among data
DBMS is expensive
Disadvantages
Maybe incompatible with any other We can solve this problem by using a third party tool that can
available DBMS facilitate the transfer process
AssociativeEntity.png
Relationship Symbol
Relationship
Within entity-relationship
diagrams, relationships are used to
document the interaction between symbol
two entities. Relationships are
ERD relationship symbols usually verbs such as assign,
associate, or track and provide
(Database) useful information that could not
Conceptual schema schema that contains all types and زى الريندر بتاع ديزاين المبانى be discerned with just the entity
relation between data types.
Weak relationship
Weak Relationship Symbol
Attribute
Attribute Symbol
Multivalued attribute
Derived attribute
Derived Attribute Symbol
Relationship Symbol
Database is a single point of failure
IT professional who works on creating, maintaining, querying, and tuning the database of the organization.
They are also responsible for maintaining data security and integrity. This role requires the professionals to
have good knowledge and experience in the particular RDBMS that the company uses. Based on the
requirements of the company
They design schemas, build data structures, table indexes, and relationships. They are mainly
Data Architect There are a lot of approaches when
responsible for building a structure the meets the business requirements in a specific area.
it comes to developing data
Data-modeling techniques
DBMS SCENE WORKERS models, but two common methods
They merge data from numerous data sources and store them in a data warehouse. Data Warehouse DBA are
DBMS Languages
Revoke, Grant. Data Control Language (DCL) png.ؤؤؤؤ
Data modeling هو المخططات اللى بنعملها ديزاين زى شغل الكاد دة
These visual representations are called data models.
You can think of data modeling as a blueprint of a house. At any point, there might be
electricians, carpenters, and plumbers using that blueprint. Each one of these builders
data model ايه هو ال
has a different relationship to the blueprint, but they all need it to understand the
overall structure of the house. Data models are similar; different users might have
different data needs, but the data model gives them an understanding of the structure
as a whole.
UML Entity Relationship
download.png
NOTATIONS
NOTATIONS
Crow Foot
7a3da7a2bd14f08e334ca1bfc5669c44.png
Chen
Mappings Is the process of transferring the requests and result between the levels
Implementaion (transfer
Step 3 Database Adminstrator populate the initial data
to tables and DB objects)
maintain DB Performance
is the process of taking all of your data from disparate sources throughout
Consolidation your organization, cleaning it up, and combining it in a single location,
such as a cloud data warehouse or lakehouse environment.
XML has found wide application. Today, various programs and devices use it to handle, structure, store, transmit,
and display data. For example, it's widely used in B2B data exchanges. XML is also the standard for Office file
formats, including Microsoft Office and Google Docs files.
XML(Extended Markup language )
The key difference between HTML and XML is that HTML displays data and describes the
structure of a webpage, whereas XML stores and transfers data.
Entity relationship diagram (ERD) shows the relationships of entity sets stored in a database. https://www.mindmeister.com/map/2302481583
GLOSSARY A transaction is an action or series of actions that are being performed by a single user or application program, which reads or updates the contents
of the database.
transactions
A transaction can be defined as a logical unit of work on the database. This may be an entire program, a piece of a program, or a single command
(like the SQL commands such as INSERT or UPDATE), and it may engage in any number of operations on the database. In the database context, the
execution of an application program can be thought of as one or more transactions with non-database processing taking place in between.
Transactions that are executing independently of one another is the primary concept followed by isolation. In other
words, the frictional effects of incomplete transactions should not be visible or come into notice to other transactions
Isolation
going on simultaneously. It is the responsibility of the concurrency control sub-system to ensure adapting the
isolation.
The 'all or nothing' property. A transaction is an indivisible entity that is either performed in its entirety or will not get
Atomicity
performed at all. This is the responsibility or duty of the recovery subsystem of the DBMS to ensure atomicity.
A transaction must alter the database from one steady-state to another steady state. This is
the responsibility of both the DBMS and the application developers to make certain
Consistency
consistency. The DBMS can ensure consistency by putting into effect all the constraints that
have been mainly on the database schema such as integrity and enterprise constraints.
The effects of an accomplished transaction are permanently recorded in the database and must not get lost or vanished due
Durability
to subsequent failure. So this becomes the responsibility of the recovery sub-system to ensure durability.
modules for implementing the catalog, query language processing, interface processing, accessing and buffering data,
Modules, controlling concurrency, and handling data recovery and security. The DBMS must interface with other system software
such as the operating system and compilers for various programming languages.
Link:
https://www.youtube.com/watch?v=YcYF-kxE0Sw&list=PLBlnK6fEyqRi_CUQ-FXxgzKQ1dwr_ZJWZ&index=4
1.1. Efficiency
1.2. accessibility
1.2.4.1. program data independence is done as the structure of data file is is stored in the metadata
1.3.1.1. ex done using 1- SPECIFYING DATA TYPE 2- UNIQUENESS of data item values
1.3.1.2. Done by:Database designers by identifying integrity constraints in database design phase
1.3.2.1.1. Durability
1.3.2.1.1.1. The effects of an accomplished transaction are permanently recorded in the database and must not get lost or vanished due to subsequent failure. So this becomes the responsibility of the recovery sub-system to ensure durability.
1.3.2.1.2. Consistency
1.3.2.1.2.1. A transaction must alter the database from one steady-state to another steady state. This is the responsibility of both the DBMS and the application developers to make certain consistency. The DBMS can ensure consistency by putting into effect all the constraints that have been mainly on the database schema such as integrity and enterprise constraints.
1.3.2.1.3. Atomicity
1.3.2.1.3.1. The 'all or nothing' property. A transaction is an indivisible entity that is either performed in its entirety or will not get performed at all. This is the responsibility or duty of the recovery subsystem of the DBMS to ensure atomicity.
1.3.2.1.4. Isolation
1.3.2.1.4.1. Transactions that are executing independently of one another is the primary concept followed by isolation. In other words, the frictional effects of incomplete transactions should not be visible or come into notice to other transactions going on simultaneously. It is the responsibility of the concurrency control sub-system to ensure adapting the isolation.
1.3.3.1. Each user can see a view كل قسم ليه اكسيس على جزء معين من الداتابيز
1.3.4.2. IS Done using views and all data is stored in only one place
1.3.6.1. ex.: query language for casual users programing for application menu driven for stand-alone users
1.4. sustainability
Link:
https://www.brainkart.com/article/Advantages-of-Using-the-DBMS-Approach_11394/
2. Disadvantages
Link:
https://maharatech.gov.eg/mod/hvp/view.php?id=7135
2.3.1. We can solve this problem by using a third party tool that can facilitate the transfer process
https://www.bmc.com/blogs/dbms-database-management-systems/
Link:
https://maharatech.gov.eg/mod/hvp/view.php?id=7135
3.2.1.1. Ex: table name, column name, data type, constrains, DB objects structure
4.1.1.1. Represent a set of final data which accessed only by specific type of users
4.1.2.1. (Database) schema that contains all types and relation between data
4.1.2.1.1.1.1.1. These shapes are independent from other entities, and are often called parent entities, since they will often have weak entities that depend on them. They will also have a primary key, distinguishing each occurrence of the entity.
4.1.2.1.1.1.2.1. Weak entities depend on some other entity type. They don't have primary keys, and have no meaning in the diagram without their parent entity.
4.1.2.1.1.1.3.1. Associative entity Associative entities relate the instances of several entity types. They also contain attributes specific to the relationship between those entity instances.
4.1.2.1.1.1.3.2. AssociativeEntity.png
4.1.2.1.1.2.1. Within entity-relationship diagrams, relationships are used to document the interaction between two entities. Relationships are usually verbs such as assign, associate, or track and provide useful information that could not be discerned with just the entity types.
4.1.2.1.1.2.1.1.2. symbol
4.1.2.1.1.2.1.2.2. Weak Relationships are connections between a weak entity and its owner.
4.1.2.1.1.3.1. Attribute
4.1.2.1.1.3.2.1. Multivalued attributes are those that are can take on more than one value.
4.1.2.1.1.3.3.2. Derived attributes are attributes whose value can be calculated from related attribute values.
4.1.2.1.1.3.4. Relationship
4.1.3.1. Explain the allocation of the data on the disk (the data at the end is a group of files stored on my hard disk so the physical path of each file and what is physical location on the hard disk and what is allocated space)
4.1.3.1.1.1. Fields
4.1.3.1.1.1.1. Field.png
4.1.3.1.1.2. Keys
4.1.3.1.1.2.1. Keys.png
4.2.1.1. which contains a full design of database schema including entities and relationships EX. (ERD)
4.2.2.1. Which explain how my data stored in hard disk and which access path which facilitated the searching a process The physical model represent by ( Physical schema )
4.3.1. There are a lot of approaches when it comes to developing data models, but two common methods are
4.3.1.3. image-75.jpg
4.3.1.3.1. ؤؤؤؤ.png
4.4. NOTATIONS
Link:
https://www.lucidchart.com/pages/ER-diagram-symbols-and-meaning
4.4.1.1. download.png
4.4.2.1. NOTATIONS
Link:
https://www.lucidchart.com/pages/ER-diagram-symbols-and-meaning
4.4.2.1.1. 1 : 1 - one to one relationship 1 : 0..1 - one to zero or one relationship 1 : N - one to many relationship 1 : 1..N - one to one and more relationship 1 : 0..N - one to zero and more relationship N : N - one to many relationship 1..N : 1..N - one or more to one or more relationship 0..N : 0..N - zero or more to zero or more relationship You can create various combinations of cardinality. The cardi
4.4.2.2. 7a3da7a2bd14f08e334ca1bfc5669c44.png
4.4.3. Chen
5. DB Archericture
May 24, 2022 11:09
https://online.visual-paradigm.com/knowledge/visual-modeling/conceptual-vs-logical-vs-physical-data-model
5.2.1. Contains all the tables, all relations between the data
5.3. Physical Schema
6. Mappings
Link:
https://maharatech.gov.eg/mod/hvp/view.php?id=7138&forceview=1
6.1. Is the process of transferring the requests and result between the levels
7. Cycle of creating DB
Link:
https://maharatech.gov.eg/mod/hvp/view.php?id=7136
https://maharatech.gov.eg/mod/hvp/view.php?id=7136
7.1.1.1.3. Users will use the database and how many users we have
7.3. Step 3
Link:
https://www.dnsstuff.com/how-to-increase-database-performance
7.4. Step 4
8. GLOSSARY
8.1. Graphical user interface (GUI)
8.3.1. provides active rules that automatically INITIATE ACTIONS when certain EVENTS AND CONDITIONS OCCUR
8.4.1. procedure of managing simultaneous transactions ensuring their atomicity, isolation, consistency, and serializability
8.5. Consolidation
8.5.1. is the process of taking all of your data from disparate sources throughout your organization, cleaning it up, and combining it in a single location, such as a cloud data warehouse or lakehouse environment.
8.6. Indexing
8.6.1. A way to optimize the performance of a database by minimizing the number of disk accesses required when a query is processed.
8.7.1. XML has found wide application. Today, various programs and devices use it to handle, structure, store, transmit, and display data. For example, it's widely used in B2B data exchanges. XML is also the standard for Office file formats, including Microsoft Office and Google Docs files.
8.7.2. The key difference between HTML and XML is that HTML displays data and describes the structure of a webpage, whereas XML stores and transfers data.
8.8.1.1. https://www.mindmeister.com/map/2302481583
8.9.1. s a form of client-server architecture. Specifically, it is a networked computer system with most resources installed locally, rather than distributed over a network.
8.10. transactions
8.10.1. A transaction is an action or series of actions that are being performed by a single user or application program, which reads or updates the contents of the database. A transaction can be defined as a logical unit of work on the database. This may be an entire program, a piece of a program, or a single command (like the SQL commands such as INSERT or UPDATE), and it may engage in any number of operations on the database. In the database context, the
execution of an application program can be thought of as one or more transactions with non-database processing taking place in between.
8.11. Isolation
8.11.1. Transactions that are executing independently of one another is the primary concept followed by isolation. In other words, the frictional effects of incomplete transactions should not be visible or come into notice to other transactions going on simultaneously. It is the responsibility of the concurrency control sub-system to ensure adapting the isolation.
8.12. Atomicity
8.12.1. The 'all or nothing' property. A transaction is an indivisible entity that is either performed in its entirety or will not get performed at all. This is the responsibility or duty of the recovery subsystem of the DBMS to ensure atomicity.
8.13. Consistency
8.13.1. A transaction must alter the database from one steady-state to another steady state. This is the responsibility of both the DBMS and the application developers to make certain consistency. The DBMS can ensure consistency by putting into effect all the constraints that have been mainly on the database schema such as integrity and enterprise constraints.
8.14. Durability
8.14.1. The effects of an accomplished transaction are permanently recorded in the database and must not get lost or vanished due to subsequent failure. So this becomes the responsibility of the recovery sub-system to ensure durability.
8.15. Modules,
8.15.1. modules for implementing the catalog, query language processing, interface processing, accessing and buffering data, controlling concurrency, and handling data recovery and security. The DBMS must interface with other system software such as the operating system and compilers for various programming languages.
8.16. Data Abstraction in dbms refers to the process of hiding irrelevant details from the user.
Link:
https://intellipaat.com/community/42929/what-is-database-administrator-in-dbms
11.1.1.1. IT professional who works on creating, maintaining, querying, and tuning the database of the organization. They are also responsible for maintaining data security and integrity. This role requires the professionals to have good knowledge and experience in the particular RDBMS that the company uses. Based on the requirements of the company
11.1.1.2.1.1. They maintain and run the databases and servers of the organization. They are mainly concerned with the security patches, replication, and backup of data.
11.1.1.2.2.1. They work on developing SQL queries and stored procedures to meet the requirements of the business. They specialize in database development.
11.1.1.2.3.1. They design schemas, build data structures, table indexes, and relationships. They are mainly responsible for building a structure the meets the business requirements in a specific area.
11.1.1.2.4.1. They merge data from numerous data sources and store them in a data warehouse.
https://www.youtube.com/watch?v=yLc0Yp5QZlU&list=PL37D52B7714788190
11.2.1.1. design and implement the DBMS modules and interfaces as a software package.
11.2.2.1. design and implement tools like add ons in revit or lisbs in cad
11.2.3.1. (system administration personnel) are responsible for the actual running and maintenance of the hardware and software environment for the database system.
12.1.1. Partial
12.1.1.1. Some fragments of the database may be replicated whereas others may not.
12.1.2. Full
13.1.1. components : dummy terminals and central database and application server processing : depends on one main server application layer: depends on one main server
13.1.1.1. disadvantage
13.1.1.1.2. The processing depends on one server so it has SINGLE POINT OF FAILURE for database and application
13.2.1. Setup : dummy terminals and central database and application server processing : depends on one main server application layer : SETUP AND INSTALLATION FOR THE APPLICATION called THICK CLIENT
13.2.1.1. Disadvantage
13.2.1.2. Advantage
13.3.1. Setup : Central database and central application server processing : depends on one main server application layer : SETUP AND INSTALLATION FOR THE APPLICATION called THIN CLIENT
13.3.1.1. Disadvantage
13.3.1.2. Advantage
13.3.2. Types :
13.3.2.1. N- tier
13.3.2.2. 3-Tier
13.3.2.2.1. 1st Tier : database server 2nd Tier: application server 3rd Tier : Thin client