By Hassan Shareef, Database Administrator — 16 years of experience
In this guide, we'll show step by step how to transfer data from Oracle to MySQL using the MySQL Workbench tool. MySQL Workbench is a free tool for managing MySQL databases through a graphical interface, and it comes with a Migration Wizard for importing and exporting data. Let's get started.
iodbc or unixODBC utilities.
Oracle_DSN), Host/IP (Oracle server address), Port (1521 default), Service Name/SID, and Username/Password.
Oracle_DSN) and Oracle credentials.

Fetch Source Schema: select the Oracle schema(s) to migrate — for this guide we'll use the sample HR demo schema. MySQL Workbench auto-converts Oracle objects to MySQL syntax, though adjustments may be needed:
NUMBER to MySQL INT or DECIMAL, VARCHAR2 to VARCHAR, etc. See also: Data Type Mapping Between Oracle and MySQL`order`).Manual Adjustments: modify indexes, triggers, or constraints as needed, and handle unsupported features like Oracle-specific functions.
-- Oracle
SELECT COUNT(*) FROM employees;
-- MySQL
SELECT COUNT(*) FROM employees;
SET FOREIGN_KEY_CHECKS = 0;
-- Run migration
SET FOREIGN_KEY_CHECKS = 1;
VARCHAR(255) for Oracle VARCHAR2(50)).