This guide covers how to prepare for and run a migration from Amazon RDS for MySQL or Aurora MySQL to OceanBase Cloud. It covers compatibility assessment, application and performance testing, data migration and validation, and production cutover and failback.
Background information
OceanBase Migration Service (OMS) moves data between OceanBase Database and sources that use the same or a different database engine. OMS supports schema migration, online migration of existing data, and real-time synchronization of changes. In this guide, the source is a MySQL database on AWS and the target is a MySQL-compatible tenant in OceanBase Cloud.
The steps are largely the same for RDS for MySQL and Aurora MySQL. The main differences are the source endpoint (an instance endpoint or a cluster endpoint) and where you configure binary logging.
Migration overview
Validate the migration before moving production traffic. Each phase builds on the results of the previous one.

The workflow uses OceanBase Migration Assessment (OMA) and OMS to move from the source database on AWS to the OceanBase target in two phases:
Pre-cutover validation: Run the OMA compatibility assessment, traffic replay tests, and operational checks in both the development environment and the production environment before it serves live traffic. Check that database objects and SQL are compatible and that performance meets your requirements.
Production cutover: Use OMS full migration and incremental synchronization to keep data consistent. After validating the data, stop writes to the source, start reverse synchronization, and switch the application to OceanBase during the maintenance window. Confirm that the application works as expected on OceanBase.
Throughout the migration, track object and SQL compatibility, performance, operational readiness, and the results of cutover and failback drills. In the production environment, clear test data, rerun the migration with OMS, switch databases, and run real-time reverse synchronization as needed to support cutover and failback.
Prerequisites
You have the Project Owner, Project Admin, or Data Services Admin role and can create migration tasks. For more information, see Organization and project permissions.
You have created the target OceanBase cluster and tenant. For more information, see Create an instance and Create a tenant.
You have created the source RDS for MySQL instance or Aurora MySQL cluster and obtained its connection details. For more information, see Create an Amazon RDS DB instance or Create and connect to an Aurora MySQL DB cluster.
You have created dedicated database users for the migration on both the source and target and granted them the required privileges. For more information, see User privileges for data migration.
Configure network connectivity
Before assessment and migration, establish a network connection from OceanBase Cloud to the source MySQL database on AWS so that OMS can access it. This guide uses a private connection over AWS PrivateLink. For the full procedure, see Configure an AWS endpoint.
Find the private IP address of the source. From within the VPC, run
nslookupagainst the instance endpoint for RDS for MySQL or the cluster endpoint for Aurora MySQL. The Aurora cluster endpoint points to the current writer. After an Aurora failover, resolve the endpoint again and update the target group because the registered IP address does not update automatically.Create a target group. Register the private IP address as a TCP target.
Create a Network Load Balancer (NLB). Set its scheme to Internal and enable Cross-zone load balancing. We recommend leaving the NLB without an associated security group.
Create an endpoint service and grant access. Associate the endpoint service with the NLB and copy the service name for use when you add a data source. On the page for creating a data source or migration task in OceanBase Cloud, select Endpoint as the connection type. Add the account shown on the page to the endpoint service's allowed principals. If you enabled acceptance for the endpoint service, accept the endpoint connection request in the AWS console when you first test the connection.
Notice
For Aurora MySQL, use the cluster endpoint so that OMS reads existing data and incremental logs from the writer instance. The reader endpoint routes connections to read replicas. An Aurora failover can change the writer and its private IP address. Resolve the cluster endpoint again, update the registered IP address in the NLB target group, and retest the data source connection. For more information, see Cluster endpoints for Amazon Aurora.
Prepare the source and target databases
Configure binary logging on the source
If the migration task includes incremental synchronization, enable binary logging and configure the retention period on the source before adding the data source.
RDS for MySQL: Set binlog_format=ROW in a custom DB parameter group. For more information, see Configure binary logging for RDS for MySQL.
Aurora MySQL: Set binlog_format=ROW in a custom DB cluster parameter group. For more information, see Set up binary log replication for Aurora MySQL.
Depending on the database version and current configuration, enabling binary logging may require a restart of the instance or cluster. Assess the application impact in advance and make the change during a maintenance window.
If you run both full migration and incremental synchronization, retain the source binary logs for at least 7 days. If full migration is expected to take longer, check the retention limit for your engine and version before starting. Extend retention where supported. RDS for MySQL DB instances support up to 7 days. For more information, see the binary log configuration guides for Aurora MySQL and RDS for MySQL.
Note
Check the retention periods for the source binary logs and the OMS internal incremental logs separately:
- Source binary logs: OMS reads changes from these logs and uses them to fetch changes again after a failure. Configure retention as described above and check that it covers the time needed to recover from a failure.
- OMS internal incremental logs: OMS generates these logs from the source binary logs and replays them after full migration. The default retention period is 7 days. It must cover the full migration and any time needed for task pauses or recovery. If full migration is expected to take more than 7 days, or if you plan to pause the task for an extended period, check retention in advance. The OceanBase team can assess and adjust it if needed.
Before you pause or resume a task, check that the required logs are still available. If expired or missing logs leave a gap in the change history, the data owner must assess whether to rerun the migration before relying on the resumed task for data consistency.
Configure the target OceanBase tenant
Before creating a migration task, consider tuning the target tenant based on the packet sizes, query times, and transaction durations of your workload. The following values are tuning examples. Test them in a test environment before applying them to the production migration environment. For more information, see Manage tenant parameters.
Parameter |
Recommended value |
Description |
|---|---|---|
max_allowed_packet |
67108864 |
Maximum network packet size, in bytes. This value is 64 MiB. For OMS, we recommend at least 8 MB. |
ob_query_timeout |
1000000000 |
Query timeout, in microseconds. This value is 1,000 seconds. |
ob_trx_timeout |
1000000000 |
Transaction timeout, in microseconds. This value is 1,000 seconds. |
You can also connect to the target tenant with an account that has the required privileges and run these statements:
SET GLOBAL max_allowed_packet = 67108864;
SET GLOBAL ob_query_timeout = 1000000000;
SET GLOBAL ob_trx_timeout = 1000000000;
After changing the global system variables, open a new database connection and check the effective values.
You can also tune the following tenant-level configuration items for your workload. Run ALTER SYSTEM SET in the target tenant to change them. These changes take effect immediately.
open_cursors limits the number of cursors that a session can keep open and the number of PreparedStatement handles it can use. The default is 50 and the valid range is [0, 65535]. For applications that use many prepared statements, consider a higher value, such as 500, and verify it in application tests:
ALTER SYSTEM SET open_cursors = 500;
compaction_low_thread_score controls the number of worker threads for low-priority compaction of major SSTables. The default is 0, which uses the internal default of 6. The valid range is [0, 100]. Change this parameter with ALTER SYSTEM SET, as shown for open_cursors. On smaller clusters, such as an 8-core cluster, six compaction threads can consume a large share of available CPU. Consider reducing the value based on the cluster size. Confirm the value with the OceanBase team and test it before applying it.
For workloads where major compaction takes too long, such as those with many partitions or columnstore tables, increase the number of compaction threads. For more information, see Troubleshoot slow compaction in OceanBase Database V4.x (Chinese).
Add the data sources
In the OceanBase Cloud console, add a data source for each database. Select OceanBase MySQL Compatible for the target and MySQL for the source. Use the instance type to distinguish RDS for MySQL from Aurora MySQL. For more information, see Create a data source.
Use the following settings for the source data source:
Parameter |
RDS for MySQL |
Aurora MySQL |
|---|---|---|
| Instance Type | RDS MySQL | Aurora MySQL |
| Connection Type | Endpoint | Endpoint |
| Connection Information | Name of the endpoint service you created earlier | Name of the endpoint service you created earlier. Use the cluster endpoint hostname in the private IP lookup step. |
| Port | NLB listener port | NLB listener port |
Assess compatibility
Before the assessment, we recommend that the operations, development, and application teams identify issues such as slow SQL queries, high latency, and concurrency bottlenecks. Collect the relevant SQL statements, table schemas, and application connection settings for table design and application testing.
In the OceanBase Cloud console, create an online assessment task. Use the existing source and target data sources, choose Object Assessment or Profile Assessment, define the assessment scope, and start the task. For more information, see Perform online assessment.
Have the development and operations leads use the assessment results and the issues you identified to determine which SQL statements, indexes, and partitioned table schemas need changes. Contact OceanBase Technical Support for help designing the changes if needed.
Validate the application, performance, and operations
Before migrating production data, test the application on OceanBase and confirm that performance and stability meet your requirements. Complete the SQL and schema changes identified during compatibility assessment, then run application regression tests that cover the original performance bottlenecks.
Run the following operational checks. Record application latency, error rates, throughput, and resource usage before, during, and after each operation.
Monitoring and alerts: Configure resource, performance, and fault alerts for clusters and tenants. Check alert severity, recipients, and notification channels. For both forward and reverse migration tasks, configure alerts for task failures and incremental synchronization lag. For more information, see Alert management and Configure alert monitoring.
Backup and restore: Check that data and log backup coverage is continuous and that the recoverable time range includes the intended recovery point. Run a restore drill. Tenant restore creates a new tenant, and physical database or table restore requires a temporary auxiliary tenant. Reserve resources accordingly. The target cluster version must be at least as recent as the version that produced the backup. For more information, see Backup strategy and Initiate a restore.
Scaling: Test how changing instance or tenant resources affects connections, application latency, and throughput. Check that the reduced capacity can handle your workload. After scaling down, billing switches immediately to the smaller configuration. Consider setting a resource usage limit to reduce the impact on stability. In-place scale-out is quick but can affect stability. Schedule it during off-peak hours or a maintenance window. You can perform this operation once every 6 hours. For more information, see Modify tenant specifications and Change a pay-as-you-go instance configuration.
Version upgrades and major compaction: Check the supported upgrade path from the current version and identify changes to default behavior. For major version upgrades or version pairs that lack a direct upgrade path, consider migrating with OMS and switching to the new instance. For more information, see Initiate a major compaction and Update the major compaction schedule.
Cutover and failback drills: Practice stopping writes, letting incremental synchronization catch up, running final validation, changing application connections, starting reverse synchronization, and restoring from backup. Record the downtime and the conditions that determine how to proceed if a step fails. See Production cutover and failback.
Validate with traffic replay (optional)
To further test SQL compatibility, latency, and peak load, replay source traffic in a dedicated OceanBase test tenant before the production migration. Collect audit logs in advance that cover representative business cycles, including off-peak and peak periods. Run application regression tests and data validation separately.
Note
The OceanBase team currently configures and runs traffic replay, provides an analysis report, and recommends changes based on the results.
To assess latency and peak-load performance, use an OceanBase test cluster with the same specifications as the production cluster. Differences in capacity make the replay results unsuitable for predicting production latency and throughput.
Prepare audit logs
Decide which activity to capture, how long to retain the logs, who can access them, and how to handle sensitive data. If the application routes reads to read replicas, collect logs from those instances as well.
Configure source auditing. For Aurora MySQL, set
server_audit_loggingto1in a custom DB cluster parameter group, setserver_audit_eventsto record onlyQUERY_DMLevents, and setserver_audit_logs_uploadto1. For more information, see Use Advanced Auditing with Aurora MySQL. For RDS for MySQL DB instances, configure auditing in a custom DB option group. See MariaDB Audit Plugin support for MySQL.Check that the parameter or option group is associated with the source and that the audit settings are active. Associating a parameter group for the first time may require an instance restart. Schedule a maintenance window in advance.
On the instance or cluster configuration page, under Log exports, select Audit log to publish the logs to Amazon CloudWatch Logs. Download the audit logs for each instance. Check the time range, database users, SQL statements, and instances covered.
Run the replay and tune the workload
Prepare data for the test tenant as described in Data migration and Data validation. Verify that the database and table mappings and validation results are as expected. Do not connect the replay tool to a tenant serving production traffic.
Choose a synchronization strategy based on whether the replay writes data:
Replay typeSynchronization strategy and checksRead-only replay You can keep forward incremental synchronization running to keep the test data current. The replay account should have read privileges, including permission to query views. Read/write replay Pause the forward migration task for the test tenant before starting the replay. Keep all other application writes disabled in that tenant. The replay account should have the required read and write privileges, including DDL and view privileges. Do not use the data from this replay for cutover. For more information, see Start, stop, and resume a data migration task. A task that has been paused for more than 12 hours might not resume.
Set the replay objects, type, speed, and sampling scope. Start with a representative sample at a low load and monitor SQL errors, slow queries, application latency, CPU, and I/O before broadening the scope. The typical replay speed for collected audit logs is 1× to 5×. At 5×, five days of traffic takes about one day to replay, at five times the source transaction rate (TPS). See Create an SQL file replay task and enable SQL audit on the target as required.
Use the results to tune SQL statements, indexes, or partitioned table schemas, then replay traffic to validate the changes. Start with a short replay and look for slow SQL, then extend the replay to cover several days or weeks. Review the analysis, apply changes, and repeat the replay. Apply all changes to the test environment and run application regression tests.
Prepare for production migration after replay
Use the replay tenant only for testing. Stop replay and save the results. Then run schema migration and full migration to the production target tenant, let incremental synchronization catch up, and validate the data.
After a read/write replay, rerun the migration to a new production tenant or to a target that you have confirmed can be reinitialized. Resuming the previous forward incremental task is insufficient.
Finish optimizing the target table schemas before full migration begins. Avoid rebuilding the tables after full migration.
Data migration
Start data migration after you complete the compatibility assessment, required application changes, testing, and any traffic replay. In production, full migration and data validation scan data at the source. Plan the execution window and rate limits in advance to minimize impact on the source workload. For the full procedure, see Migrate data from MySQL to a MySQL-compatible OceanBase tenant.
How full migration and incremental synchronization work together
When you select both full migration and incremental synchronization, OMS uses the following sequence to apply changes made during full migration:
- Before full migration starts, OMS starts reading the source binary logs and recording the changes in its internal incremental logs.
- OMS migrates existing data from the source tables to OceanBase. The source can continue to serve writes while OMS records changes in its internal logs.
- After full migration finishes, OMS replays the log from T0, the point before full migration began. OMS applies the accumulated changes until it catches up with the source, then continues streaming changes.

Note
When full migration finishes, the target has the existing data. Check the task status and incremental synchronization progress. Wait for incremental synchronization to catch up and validate the data before switching production traffic.
Schema migration converts the source table schemas. Apply any index or partitioned table changes identified during compatibility assessment manually. For the few tables that typically need this treatment, run schema migration first. Pause any running migration task before changing the tables. Drop the affected target tables and recreate them with the optimized schemas before starting full migration.
Limitations and considerations
Avoid DDL that changes a database or table schema on the source during schema migration or full migration. These changes can interrupt the migration task.
Database, table, and column names must use ASCII characters and cannot contain
.,|,",',`,(,),=,;,/,&, or line breaks.If the target database contains triggers, the migration can fail. Triggers on the target database are unsupported during migration.
Synchronize the source and target database clocks so that the reported incremental synchronization lag is accurate.
For a task that combines full migration and incremental synchronization, retain the source binary logs for at least 7 days. The task can fail if OMS cannot read the required changes.
Clock skew between nodes or between a client and the server can also distort the reported lag.
If DDL synchronization is disabled and you change a unique index on the target, restart the migration task to avoid data inconsistencies.
Check that column types such as
DECIMAL,FLOAT, andDATETIMEretain the precision your application needs. A target column with lower precision than its source column can truncate values.Differences in collation between the source and target databases can cause inconsistent synchronization results or validation mismatches in tables with a
VARCHARprimary key.Case sensitivity: If the source database is case-sensitive, use the same settings in OceanBase Cloud and OMS to avoid data inconsistencies.
Large transactions: A transaction that writes many rows can take OMS longer to process, increasing synchronization lag. Avoid large transactions during migration where possible. Use batches of about 500 rows as a starting point.
Large column values: Megabyte-sized column values can increase lag or exhaust OMS memory even at a low update rate. Identify tables with these values and check how often they change before migrating.
Configure the migration task
Use the following settings when you create the migration task. For the full procedure, see Migrate data from MySQL to a MySQL-compatible OceanBase tenant.
Select the AWS MySQL source and OceanBase Cloud target data sources. Test the connections and proceed to the next step.
Select Schema Migration, Full Migration, and Incremental Synchronization. You can configure which DML and DDL operations to synchronize. For more information, see Configure DML and DDL synchronization.
Select the objects to migrate or use matching rules. For more information, see Configure and modify matching rules.
Configure migration options:
Full Migration: Configure read and write concurrency, each up to 512, and set rate limits. For production migrations, start with a low BPS limit, such as 10 MB/s. Monitor source CPU, I/O, and application latency before increasing the limit. You can defer index creation to shorten the full migration.
Incremental Synchronization: Configure write concurrency and rate limits. If you select incremental synchronization without full migration, set the incremental synchronization start timestamp. You can enable scheduled binlog advancement to avoid misleading lag readings when the source is idle.
After the precheck passes, purchase a data migration instance and start the task. The instance specification determines the maximum rows per second (RPS). For more information, see Data migration specifications and Data migration billing.
Monitor the task until schema migration and full migration finish. If the task includes incremental synchronization, keep it running and wait until it catches up with the source before validating the data.
Data validation
After full migration finishes and incremental synchronization catches up with the source, you can create a data validation task. Keep forward incremental synchronization running during validation so that OMS continues to apply new writes from the source. For more information, see Create a data validation task.
We recommend using Full Validation to compare row contents. Add Row Count Validation if needed. Matching row counts alone cannot establish that the row contents match. If you redesigned partitioned tables or consolidated databases or tables, we recommend using IN Mode for full validation together with row count validation. IN Mode cannot detect rows that exist only on the target, and it can reduce validation performance. Contact the OceanBase team for help with the configuration.
Notice
Validation scans a large volume of data and can affect source performance in production. Plan the validation window and set a source BPS limit in advance. Keep incremental synchronization running after validation while you prepare for production cutover.
If validation finds a few mismatches, check that incremental synchronization has caught up with the source and run validation again. If mismatches persist, check the migration configuration and application writes. Contact OceanBase Technical Support if you need help. For more information, see View details of a data validation task.
Production cutover and failback
The following procedure uses separate forward (AWS MySQL → OceanBase) and reverse (OceanBase → AWS MySQL) tasks. Reverse synchronization keeps the original AWS database current so that you can switch back if needed. Allow application writes to only one database at a time. Have the application, development, and operations teams review and rehearse the procedure together.
Cutover readiness checklist
Before the maintenance window, check the following:
Application readiness: Inventory all applications, SQL statements, batch jobs, upstream and downstream systems, and connection settings. Confirm that regression tests and end-to-end integration tests have passed. Resolve outstanding issues or record the decision to accept the risk.
Performance and capacity: Confirm that testing covered representative traffic, incremental synchronization, and peak capacity. Validate the SQL and schema changes in the final release.
Migration and validation: Confirm that full migration is complete and incremental synchronization has caught up. Validate all migration objects and resolve any mismatches. If you ran read/write replay, check that the target has been prepared again for the production migration.
Drills and responsibilities: Define the cutover waves, order of operations, maintenance window, and owners. Identify who decides whether to fail back. We recommend running at least two cutover drills, including one that covers the full failback and backup restore procedures.
Backup and restore: Check that automatic backups and retention policies are active on the AWS source, that the pre-cutover backup is available, and that you have rehearsed point-in-time recovery. Retain backups for the entire monitoring and failback window.
Logs for reverse synchronization: With the OceanBase team, verify that OMS can subscribe to incremental logs from OceanBase and that both OceanBase and the OMS internal incremental logs meet the retention needs of an incremental-only task. Both default to 7 days of retention. Have the OceanBase team make any required retention adjustments. Rehearse the reverse task with the intended versions, privileges, network settings, database and table mappings, and DDL synchronization settings. For more information, see Migrate data from a MySQL-compatible OceanBase tenant to MySQL.
Database objects and background jobs: Inventory triggers, stored procedures, foreign keys, scheduled events, and batch jobs on both databases. Save object definitions and agree on the order in which to handle and restore them. Apply the reviewed plan for removing triggers from the original AWS database before using it as the reverse synchronization target.
Switch production traffic
Perform these steps in order:
Confirm that the readiness criteria are met, forward incremental synchronization is healthy, and the AWS backup and OceanBase log retention settings are active.
Stop application writes to the original AWS database, including writes from batch jobs, scheduled events, and other write paths. Wait for in-flight write transactions to commit. Record when writes stopped and keep forward synchronization running so that the last committed transaction reaches OceanBase.
Confirm that the forward task has applied the last committed transaction from the AWS database, then run final data validation. You can run it without rate limits because the source has stopped serving writes. If validation fails, stop the cutover.
Notice
Synchronization lag under 1 second is insufficient evidence of data consistency. Clock skew, source inactivity, and large transactions can affect the reported lag. Check the last committed transaction, task status, actual synchronization progress, and final validation results.
Pause the forward task and confirm that it has stopped writing to OceanBase. Verify that application writes are stopped on both databases.
While both databases are consistent, the forward task is paused, and application writes to OceanBase are still stopped, record the consistency baseline time (T1) and the corresponding OceanBase incremental log position. Confirm that the AWS database can be restored to T1.
Start reverse synchronization from OceanBase to the original AWS database. Once the reverse task is ready, allow application writes to OceanBase. On the AWS database, allow writes only from the reverse task.
Update the application connection settings to use OceanBase and restore traffic in the planned waves. Monitor application latency, error rates, resource usage, and reverse synchronization status.
When reverse synchronization lag is under 1 second and the task has caught up with changes on OceanBase, run full validation again. If you redesigned partitioned tables, use IN Mode with row count validation. Confirm that the data matches on both databases.
Configure reverse synchronization
Create a separate migration task. Select OceanBase as the source data source and the original AWS MySQL database as the target data source. Recheck privileges and test both connections. For more information, see Migrate data from a MySQL-compatible OceanBase tenant to MySQL.
Select One-way Sync for the sync topology and select only Incremental Synchronization for the migration type. Map the databases and tables to their original counterparts.
Set the incremental synchronization start timestamp to the point that corresponds to the T1 baseline. After application writes begin, using the current time would skip earlier changes.
Configure DML and DDL synchronization to include the required inserts, updates, and deletes. Reverse synchronization can fail if the original AWS database cannot execute OceanBase-specific DDL, such as partitioned table syntax. Ask the OceanBase team to configure the task to synchronize only column additions, drops, and alterations on existing tables. To apply the configuration, create and start the reverse task, wait for it to enter incremental synchronization, then pause it. Resume the task after the OceanBase team applies the configuration.
Complete the precheck, purchase the migration instance, and start the task. Configure alerts for task failures and lag. Before the reverse task writes to the original AWS database, confirm that the forward task has stopped writing to avoid a synchronization loop.
If you consolidated sharded databases or tables during migration, create a separate reverse task for each original shard. Use row filters to route data back to the matching shard. For more information, see Use SQL conditions to filter data.
Decide when to fail back
Before cutover, agree on the thresholds and how long they must be exceeded, and identify who decides when to halt the cutover or fail back. Decision criteria include critical SQL errors, unacceptable application latency or error rates, confirmed data mismatches, and other serious failures. If a criterion is met, protect the data first, then determine whether you can safely fail back.
If OceanBase has received no new application writes and the original AWS database is still at the baseline, stop the cutover according to the drill plan. Check the AWS database, then restore the original application connection.
If OceanBase has received application writes, confirm that all changes have reached the original AWS database before you switch back.
For a standard failback:
- Stop all application writes to OceanBase and keep reverse synchronization running.
- Confirm that the reverse task has applied the last committed transaction. Run final validation once application writes have stopped on both databases.
- Pause all reverse tasks.
- Restore the required triggers, stored procedures, foreign keys, and other objects on the original AWS database.
- Reconnect the application to the original AWS database. Test representative operations, then restore traffic gradually.
- After the monitoring period ends and you have confirmed that failback is complete, clean up migration tasks and temporary resources you no longer need.
Restore from backup if failback is unavailable
If data corruption during reverse synchronization prevents a direct failback, consider using point-in-time recovery (PITR) for the original AWS database. Then synchronize all subsequent changes from OceanBase to the restored database. This option requires intact data in OceanBase and a continuous change history from the log position for T1 up to the point when writes stopped.
- Pause all reverse tasks and stop application writes to OceanBase. Preserve the database, logs, backups, and evidence of the failure.
- Verify that the recoverable time range of the AWS database includes T1 and restore to that point using AWS PITR. Aurora restores to a new DB cluster. For more information, see Restore an Aurora DB cluster to a specified time.
- Check the restored database's parameter groups, accounts, object definitions, and network configuration. Recheck the NLB target IP address, endpoint service, and permissions.
- Create a separate incremental synchronization task from OceanBase to the restored AWS database. Use the confirmed start point for the T1 baseline.
- After all reverse tasks catch up, run final data validation and pause the catch-up task. Follow the failback procedure to restore the required objects, then connect the application to the restored database.
Summary
Before migrating production data, complete application, performance, and operational testing. Replay traffic if you need to verify that OceanBase meets the workload requirements. Run schema migration and full migration, wait for incremental synchronization to catch up, then validate the data. Prepare the production target again if it was used for read/write replay. For cutover, stop source writes, verify the data, record the consistency baseline, prepare reverse synchronization, and switch the application connections. Once OceanBase serves production traffic, monitor reverse synchronization. Before failing back, stop application writes and validate the data again. Use standard failback or restore from backup only if the respective data, log, and backup prerequisites are met.