Database Migration View and Replication Triggers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database migration often requires disabling access to both source and target systems, leading to downtime, which is not practical for production systems that require continuous uptime, resulting in lost productivity and revenue.

Innovation Solution

A staged migration approach where access requests are routed to both systems, with replication triggers ensuring data accuracy and correctness, allowing gradual transition of load from source to target, and using a replacement view to blend data from both systems for continuous access.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If access to source and target database systems is disabled during migration, then data access errors are avoided and migration accuracy is ensured, but system downtime increases and productivity is lost

Engineering Contradiction:
Improvemigration accuracyVSAvoidsystem availability
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the database migration process into distinct phases: initial data copy, trigger creation, incremental synchronization, and final cutover. This allows the migration to proceed in controlled stages while maintaining system availability, resolving the contradiction between ensuring migration accuracy and maintaining productivity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary actions by creating replication triggers and setting up the target database structure before actual data migration begins. This preparation ensures that when data is transferred, the target system is ready to receive and validate data, maintaining accuracy without requiring full system shutdown.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If access to source and target database systems is disabled during migration, then data integrity is maintained, but downtime occurs and revenue is lost

Engineering Contradiction:
Improvedata integrityVSAvoiddowntime
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent enables continuous data access during migration by implementing a replication mechanism where the target database can serve read requests while the source database continues to accept writes. This continuity of useful action maintains data integrity through replication triggers while eliminating downtime, resolving the contradiction between data integrity and time loss.

Inventive Principle:
Principle #20Continuity of useful action

Solution Approach 2:

The patent introduces a replication trigger mechanism as an intermediary between the source and target databases. This intermediary ensures data integrity by automatically replicating changes from source to target while allowing both systems to remain accessible, thus maintaining data integrity without causing downtime.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If staged migration with replication triggers is implemented, then continuous access is maintained and downtime is reduced, but system complexity increases

Engineering Contradiction:
Improvesystem availabilityVSAvoidmigration mechanism complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements self-service through automated replication triggers that automatically handle data synchronization between source and target databases. This automation reduces the need for manual intervention and complex migration orchestration, making the staged migration process more manageable despite the increased system architecture complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent manages complexity by controlling parameter changes during migration - specifically managing the transition of data access parameters from source-only to target-only through controlled stages. This parameter management approach allows continuous availability while keeping the migration mechanism complexity manageable through systematic control.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11042517B2Online migration of database systems
Publication Date: 2021.06.22 SAP SE
  • US11042517B2 patent drawing
  • US11042517B2 patent drawing
  • US11042517B2 patent drawing

AI summary

Disclosed herein are system, method, and computer program product embodiments for performing a database migration with reduced downtime. Embodiments provide for migrating a source database table at a source database system to a target database table at a target database system. The embodiments provide for configuring the source database system to log changes to the source database table to a log, wherein the log is configured to replay the changes to the target database table and creating a replacement view table at the target database system, wherein the replacement view table provides access to current data from the source database table and the target database table. This approach allows access to the current data as replication continues without the need to take down access to the database.