Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Schema Integration in DBMS
Next article icon

Schema Integration in DBMS

Last Updated : 08 May, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

Definition: Schema integration is used to merge two or more database schemas into a single schema that can store data from both the original databases. For large databases with many expected users and applications, the integration approach of designing individual schema and then merging them can be used. Because the individual views can be kept relatively small and simple. Schema Integration is divided into the following subtask. 

1. Identifying correspondences and conflicts among the schema: 
As the schemas are designed individually it is necessary to specify constructs in the schemas that represent the same real-world concept. We must identify these correspondences before proceeding with the integration. During this process, several types of conflicts may occur such as: 
 

  1. Naming conflict - 
    Naming conflicts are of two types synonyms and homonyms. A synonym occurs when two schemas use different names to describe the same concept, for example, an entity type CUSTOMER in one schema may describe an entity type CLIENT in another schema. A homonym occurs when two schemas use the same name to describe different concepts. For example, an entity type Classes may represent TRAIN classes in one schema and AEROPLANE classes in another schema. 
     
  2. Type conflicts - 
    A similar concept may be represented in two schemas by different modeling constructs. For example, DEPARTMENT may be an entity type in one schema and an attribute in another. 
     
  3. Domain conflicts - 
    A single attribute may have different domains in different schemas. For example, we may declare Ssn as an integer in one schema and a character string in another. A conflict of the unit of measure could occur if one schema represented weight in pounds and the other used kgs. 
     
  4. Conflicts among constraints - 
    Two schemas may impose different constraints, for example, the KEY of an entity type may be different in each schema. 
     


2. Modifying views to conform to one another: 
Some schemas are modified so that they conform to other schemas more closely. Some of the conflicts that may occur during the first steps are resolved in this step. 

3. Merging of Views and Restructuring: 
The global schemas are created by merging the individual schemas. Corresponding concepts are represented only once in the global schema and mapping between the views and the global schemas are specified. This is the hardest step to achieve in real-world databases which involve hundreds of entities and relations. It involves a considerable amount of human intervention and negotiation to resolve conflicts and to settle on the most reasonable and acceptable solution for a global schema. Restructuring As a final optional step the global schemas may be analyzed and restructured to remove any redundancies or unnecessary complexity.

Schema integration is the process of combining multiple database schemas into a single schema, which can be used to support data integration, data sharing, and other data management tasks. Schema integration is necessary when working with multiple databases or when integrating data from multiple sources, such as in data warehousing, data integration, and business intelligence applications.

The process of schema integration involves several steps:

  1. Identify the source schemas: The first step in schema integration is to identify the schemas of the databases or data sources that need to be integrated.
  2. Analyze the source schemas: Once the source schemas have been identified, they should be analyzed to identify common attributes and data structures that can be used to integrate the data.
  3. Define the target schema: The target schema is the schema that will be used to represent the integrated data. The target schema should be designed to support the requirements of the application or task for which the data will be used.
  4. Map the source schemas to the target schema: The next step in schema integration is to map the attributes and data structures from the source schemas to the target schema. This involves identifying the common attributes and creating mappings between the source and target schema.
  5. Merge the schemas: Once the source schemas have been mapped to the target schema, the schemas can be merged to create a single schema that represents the integrated data.
  6. Resolve conflicts: Inevitably, conflicts will arise during the schema integration process, such as data type conflicts, naming conflicts, or conflicts in data models. These conflicts must be resolved to ensure the integrity of the integrated data.
  7. Test the integrated schema: The final step in schema integration is to test the integrated schema to ensure that it meets the requirements of the application or task for which the data will be used.

Advantages:

Provides a unified view of data: Schema integration enables the creation of a single database that can be accessed by different users, departments or applications. This makes it easier for users to access and work with data from different sources.
Reduces data redundancy: By combining multiple databases into a single integrated schema, data redundancy can be reduced, leading to more efficient use of storage space and improved data consistency.
Increases productivity: An integrated schema simplifies data management and enables users to work more efficiently. This can lead to increased productivity and reduced costs.
Enables better data analysis: An integrated schema provides a more comprehensive view of data, making it easier to analyze and identify patterns and relationships between different data sources.
 

Disadvantages:

Complexity: Integrating multiple database schemas into a single schema can be a complex and time-consuming process. It requires a detailed understanding of each database schema and the relationships between them.
Data inconsistencies: Combining multiple database schemas can result in data inconsistencies if the schemas are not properly integrated. This can lead to errors and incorrect results when querying the integrated database.
Performance issues: The performance of the integrated database may be negatively impacted if the integration is not properly optimized. This can result in slower query response times and reduced system performance.
Security concerns: Integrating multiple databases into a single schema can increase the risk of security breaches, as it can be more difficult to control access to data from different sources. Proper security measures must be put in place to prevent unauthorized access to sensitive data.


Next Article
Schema Integration in DBMS

A

Akashkumar17
Improve
Article Tags :
  • DBMS

Similar Reads

    What is Integration Databases in NoSQL?
    In NoSQL databases, integration databases refer to databases that combine different types of NoSQL databases and/or traditional relational databases to provide a comprehensive and flexible data storage solution. This can help organizations to overcome some of the limitations of using a single type o
    5 min read
    What is Schema Versioning in DBMS?
    Schema Versioning in a database management system (DBMS) is the regulation and management of changes to the database schemas. New pants that are developed need to be updated based on the new data requirements that are exhibited by the new application. This prevents unstructured shifting of attribute
    6 min read
    Relational Query Language in DBMS
    SQL has its own querying methods to interact with the database. But how do these queries work in the database? These queries work similarly to Relational Algebra that we study in mathematics. In the database, we have tables participating in relational Algebra. Relational Database systems are expecte
    4 min read
    Data Isolation in DBMS
    In today's era effectively managing volumes of data is crucial, for businesses and organizations. Database Management Systems (DBMS) play a role in this aspect by providing tools to store, retrieve, and manipulate data. However when multiple users are. Their transactions interact with the data simul
    5 min read
    Semantic Heterogeneity in DBMS
    Semantic Heterogeneity basically occurs when schema or data set for same domain is developed by independent parties which leads to differences in meaning, interpretation and intended use of the same or related data. Semantic Heterogeneity among components database system basically creates the bigges
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences