Superhero Universe
  • Entertainment
    DC FanDome Returning in October

    DC FanDome Returning in October

    Michael B. Jordan on ‘Without Remorse’ and Superman Rumors: “I’m Just Watching on This One”

    Michael B. Jordan on ‘Without Remorse’ and Superman Rumors: “I’m Just Watching on This One”

    ‘Tomorrow War’ Teaser: Chris Pratt Fights for the Future

    ‘Tomorrow War’ Teaser: Chris Pratt Fights for the Future

    ‘Pretty Guardian Sailor Moon Eternal the Movie’ Coming to Netflix

    ‘Pretty Guardian Sailor Moon Eternal the Movie’ Coming to Netflix

    Marvel’s ‘Ironheart’ Enlists Chinaka Hodge as Head Writer for Disney+ Series

    Marvel’s ‘Ironheart’ Enlists Chinaka Hodge as Head Writer for Disney+ Series

    Heavy Metal Magazine, Range Media Team to Produce Film, TV Based in Sci-Fi, Fantasy Space

    Heavy Metal Magazine, Range Media Team to Produce Film, TV Based in Sci-Fi, Fantasy Space

    DC Super Hero Girls and Teen Titans Go! Team Up for First-Ever Crossover Special (Exclusive)

    DC Super Hero Girls and Teen Titans Go! Team Up for First-Ever Crossover Special (Exclusive)

  • Games
    Baldur’s Gate: Dark Alliance Sees Life On PC For The First Time

    Baldur’s Gate: Dark Alliance Sees Life On PC For The First Time

    2022 Video Game Release Schedule

    2022 Video Game Release Schedule

    Scorn Breaks Its Silence With October 2022 Launch Window

    Scorn Breaks Its Silence With October 2022 Launch Window

    Sniper Elite 5 Brings X-Ray Brutality Back To WWII

    Sniper Elite 5 Brings X-Ray Brutality Back To WWII

    UPDATE: Raven Software Lays Off Members Of Its QA Team

    UPDATE: Raven Software Lays Off Members Of Its QA Team

    UPDATE: Fortnite Chapter 2 Has Reached The End, Watch The Event Full Here

    UPDATE: Fortnite Chapter 2 Has Reached The End, Watch The Event Full Here

    Halo Infinite Multiplayer: Here’s What’s You Can Unlock This Week

    Halo Infinite Multiplayer: Here’s What’s You Can Unlock This Week

  • Science

    Six and a Half Months in Orbit: Junk Food and Sublime Moments

    Six and a Half Months in Orbit: Junk Food and Sublime Moments

    NASA Snags Its First Asteroid Sample

    NASA Snags Its First Asteroid Sample

    The Bold Plan to See Continents and Oceans on Another Earth

    The Bold Plan to See Continents and Oceans on Another Earth

    Here’s How Scientists Mapped the Perseverance Rover’s Landing Site

    Here’s How Scientists Mapped the Perseverance Rover’s Landing Site

    People. Passion. Planets.

    People. Passion. Planets.

  • Tech

    A User-Focused Guide to Digital Library Use

    Nikon D500 Digital Camera Features

    Navigating the Global Circuit: Exploring Off-Shore PCB Manufacturing

    The Human Element: How Construction Estimators Can Thrive in the Age of Automation

    Migrate Oracle to MySQL

    3 Application Development Trends to Be Aware of in 2025

    How the Google Nest Wi-Fi Point and Router is Your Best Friend for 2025

  • Travel
    • Paris
    • Spain
    • New York
    • Singapore
    • Tokyo
  • Videos
  • Reviews
    Trap feels like a Shyamalan movie through and through — for better and worse

    Trap feels like a Shyamalan movie through and through — for better and worse

    The House of the Dragon season 2 finale is Westeros at its best and worst

    The House of the Dragon season 2 finale is Westeros at its best and worst

    The Rebel Moon director’s cut proves it’s franchise-worthy

    The Rebel Moon director’s cut proves it’s franchise-worthy

    Duck Detective: The Secret Salami takes the hard-boiled detective trope and makes it quack

    Duck Detective: The Secret Salami takes the hard-boiled detective trope and makes it quack

    We pushed this ChatGPT game to the limits, but playing it the right way is more fun

    We pushed this ChatGPT game to the limits, but playing it the right way is more fun

    Deadpool & Wolverine makes the MCU the villain — and not in a good way

    Deadpool & Wolverine makes the MCU the villain — and not in a good way

    Flock shows us a gentler (and smarter) approach to creature collecting

    Flock shows us a gentler (and smarter) approach to creature collecting

No Result
View All Result
Superhero Universe
  • Entertainment
    DC FanDome Returning in October

    DC FanDome Returning in October

    Michael B. Jordan on ‘Without Remorse’ and Superman Rumors: “I’m Just Watching on This One”

    Michael B. Jordan on ‘Without Remorse’ and Superman Rumors: “I’m Just Watching on This One”

    ‘Tomorrow War’ Teaser: Chris Pratt Fights for the Future

    ‘Tomorrow War’ Teaser: Chris Pratt Fights for the Future

    ‘Pretty Guardian Sailor Moon Eternal the Movie’ Coming to Netflix

    ‘Pretty Guardian Sailor Moon Eternal the Movie’ Coming to Netflix

    Marvel’s ‘Ironheart’ Enlists Chinaka Hodge as Head Writer for Disney+ Series

    Marvel’s ‘Ironheart’ Enlists Chinaka Hodge as Head Writer for Disney+ Series

    Heavy Metal Magazine, Range Media Team to Produce Film, TV Based in Sci-Fi, Fantasy Space

    Heavy Metal Magazine, Range Media Team to Produce Film, TV Based in Sci-Fi, Fantasy Space

    DC Super Hero Girls and Teen Titans Go! Team Up for First-Ever Crossover Special (Exclusive)

    DC Super Hero Girls and Teen Titans Go! Team Up for First-Ever Crossover Special (Exclusive)

  • Games
    Baldur’s Gate: Dark Alliance Sees Life On PC For The First Time

    Baldur’s Gate: Dark Alliance Sees Life On PC For The First Time

    2022 Video Game Release Schedule

    2022 Video Game Release Schedule

    Scorn Breaks Its Silence With October 2022 Launch Window

    Scorn Breaks Its Silence With October 2022 Launch Window

    Sniper Elite 5 Brings X-Ray Brutality Back To WWII

    Sniper Elite 5 Brings X-Ray Brutality Back To WWII

    UPDATE: Raven Software Lays Off Members Of Its QA Team

    UPDATE: Raven Software Lays Off Members Of Its QA Team

    UPDATE: Fortnite Chapter 2 Has Reached The End, Watch The Event Full Here

    UPDATE: Fortnite Chapter 2 Has Reached The End, Watch The Event Full Here

    Halo Infinite Multiplayer: Here’s What’s You Can Unlock This Week

    Halo Infinite Multiplayer: Here’s What’s You Can Unlock This Week

  • Science

    Six and a Half Months in Orbit: Junk Food and Sublime Moments

    Six and a Half Months in Orbit: Junk Food and Sublime Moments

    NASA Snags Its First Asteroid Sample

    NASA Snags Its First Asteroid Sample

    The Bold Plan to See Continents and Oceans on Another Earth

    The Bold Plan to See Continents and Oceans on Another Earth

    Here’s How Scientists Mapped the Perseverance Rover’s Landing Site

    Here’s How Scientists Mapped the Perseverance Rover’s Landing Site

    People. Passion. Planets.

    People. Passion. Planets.

  • Tech

    A User-Focused Guide to Digital Library Use

    Nikon D500 Digital Camera Features

    Navigating the Global Circuit: Exploring Off-Shore PCB Manufacturing

    The Human Element: How Construction Estimators Can Thrive in the Age of Automation

    Migrate Oracle to MySQL

    3 Application Development Trends to Be Aware of in 2025

    How the Google Nest Wi-Fi Point and Router is Your Best Friend for 2025

  • Travel
    • Paris
    • Spain
    • New York
    • Singapore
    • Tokyo
  • Videos
  • Reviews
    Trap feels like a Shyamalan movie through and through — for better and worse

    Trap feels like a Shyamalan movie through and through — for better and worse

    The House of the Dragon season 2 finale is Westeros at its best and worst

    The House of the Dragon season 2 finale is Westeros at its best and worst

    The Rebel Moon director’s cut proves it’s franchise-worthy

    The Rebel Moon director’s cut proves it’s franchise-worthy

    Duck Detective: The Secret Salami takes the hard-boiled detective trope and makes it quack

    Duck Detective: The Secret Salami takes the hard-boiled detective trope and makes it quack

    We pushed this ChatGPT game to the limits, but playing it the right way is more fun

    We pushed this ChatGPT game to the limits, but playing it the right way is more fun

    Deadpool & Wolverine makes the MCU the villain — and not in a good way

    Deadpool & Wolverine makes the MCU the villain — and not in a good way

    Flock shows us a gentler (and smarter) approach to creature collecting

    Flock shows us a gentler (and smarter) approach to creature collecting

No Result
View All Result
Superhero Universe
No Result
View All Result

Migrate Oracle to MySQL

by
19 January, 2025
in Tech
3.7k 156
0
1.6k
SHARES
12.6k
VIEWS
Share on FacebookShare on TwitterPin it
1200x627 Get More Done, Together
ADVERTISEMENT
Migrate Oracle to MySQL

Oracle DBMS is a well-known player on the market of high load corporate warehouses. This is not surprising that it comes with quite restricted licenses and high-priced total cost of ownership (TCO). Long term trend of reducing corporate expenses for IT infrastructure forces many companies to migrate their databases to more affordable platforms.

MySQL is another advanced database management system that often considered as alternative for Oracle due to similar capabilities of both systems (also, the same seller and support provider). Oracle provides such valuable features as multi-level compression, wide range of backup options and storage customization. Having all these features, MySQL extends capabilities by tight web integration, easy start for development and administration, huge community of developers and administrator working at more affordable rates than Oracle specialists. This allows to consider MySQL as ideal choice for projects demanding high data integrity, reliability and efficiency.

Despite of the approach being used to migrate from Oracle to MySQL, there are following stages that must be implemented:

  • Oracle schemas and table definitions are exported into ‘CREATE SCHEMA’ and ‘CREATE TABLE’ statements, providing safe type mapping and proper conversion of the related attributes
  • Those SQL-statements are converted according to the target syntax and imported into MySQL database
  • Oracle data is exported into CSV files (one file per table), binary and non-standard data must be dumped into hexadecimal representation
  • The output CSV files are post-processed to comply with MySQL format (when it is necessary) and imported into the target database
  • Oracle views, stored procedures, functions and triggers are extracted in forma of SQL statements and source code.
  • Those SQL statements and source code are transformed to comply with MySQL syntax paying attention to system built-in functions and then load to target server. Since MySQL does not provide capabilities similar to Oracle packages, global variables inside packages must be migrated into data of the special service table.

Table Definitions

Below we explore all steps required to migrate Oracle to MySQL in details. Oracle lists all tables available for the current user through the following SELECT-query to system table ‘user_tables’:

SQL> select table_name from user_tables;

Definition of the specified table is extracted as follows below. First two statements are used to set screen buffer large enough to fit the entire table definition. If it is not enough for particular table, increase th volume:

SQL> set long 2000

SQL> set pagesize 0

SQL> select DBMS_METADATA.GET_DDL('TABLE',
[,’SCHEMA’]) from DUAL

Placeholder

has to be replaced by actual value. Also, you can specify schema after table name to prevent duplicated tables from different schemas.

The output SQL-statement must be transformed before importing into MySQL database as follows:

  • all statements specific for Oracle must be wiped off from table’s DDL (for instance, the pattern “USING INDEX PCTFREE…”)
  • Oracle system functions or expressions used as default values for some columns are converted into MySQL equivalents

Data

The statements below are used to export data from Oracle table ‘mytable’ into comma separated values (CSV) file ‘output.csv’. Of course, you have to replace those names with actual values:

SQL> set heading off

SQL> spool output.csv

SQL> select column1 || ',' || column2 || ... from mytable;

SQL> set colsep ','

SQL> select * from mytable;

SQL> spool off;

MySQL provides these statements to import CSV file into a table with specifying the delimiter symbol:

LOAD DATA LOCAL INFILE 'output.csv'

INTO TABLE mytable

FIELDS TERMINATED BY ',' ENCLOSED BY '"'

LINES TERMINATED BY 'rn';

Once the data is migrated from Oracle to MySQL, it is time to convert indexes and constraints. It is reasonable to be done after the data to catch all possible conflicts with indexes and constraints setting more priority to data integrity.

Indexes

Oracle can extract all indexes for table ‘mytable’ from the dedicated system table ‘all_indexes’ through this statement:

SQL> select * from all_indexes where table_name = ‘mytable’;

Remember that all database objects names are uppercased in Oracle by default. Definition of the specific index is extracted through the following statement:

SQL> set long 1000

SQL> set pagesize 0

SQL> select DBMS_METADATA.GET_DDL('INDEX','') from DUAL;

The output CREATE-statements are transformed to comply with MySQL syntax and then used to create all required indexes in the target database.

Oracle to MySQL Converter

The steps of database migration listed above may seem sophisticated and time-consuming. This is true, especially for large data warehouses incapsulating complicated business logic in views, stored procedures, functions and triggers. Manual migration is bound to human factor that is error prone and may cause data loss or damage. Running migration based on the dedicated commercial tools makes the overall process smooth and safe with just a few clicks of mouse button.

One of such tools is called Oracle-to-MySQL and it has been developed by Intelligent Converters, a software vendor focused in database migration and synchronization for more than 20 years. The tool supports most of database entries such as schemas, table definitions, data, constraints, indexes, foreign keys and views. Low-level algorithms of reading and writing data allow to reach high efficiency benchmarked as 20,000 rows per second on an average modern hardware platform.

Visit the official site of Intelligent Converters to learn more about their Oracle to MySQL database migration tool.

Previous Post

ERA Singapore: Leading the Way in Real Estate Excellence

Next Post

What Amount Should I Pay My Property Agent In Singapore?

Related Posts

Tech

A User-Focused Guide to Digital Library Use

6 April, 2025
Tech

Nikon D500 Digital Camera Features

23 March, 2025
Tech

Navigating the Global Circuit: Exploring Off-Shore PCB Manufacturing

2 March, 2025
Tech

The Human Element: How Construction Estimators Can Thrive in the Age of Automation

26 January, 2025
Tech

3 Application Development Trends to Be Aware of in 2025

12 January, 2025
Tech

How the Google Nest Wi-Fi Point and Router is Your Best Friend for 2025

12 January, 2025
Next Post
singapore property

What Amount Should I Pay My Property Agent In Singapore?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
‘Big Country’ Brings Western Noir to Comics

‘Big Country’ Brings Western Noir to Comics

25 November, 2019
The State of Planetary Defense

The State of Planetary Defense

28 October, 2019
How organisations can prevent external eavesdropping and influence through electromagnetic emissions

How organisations can prevent external eavesdropping and influence through electromagnetic emissions

28 October, 2019
The Bold Plan to See Continents and Oceans on Another Earth

The Bold Plan to See Continents and Oceans on Another Earth

28 May, 2020
The Most Chaotic Airports in the U.S.

The Most Chaotic Airports in the U.S.

0

0

0

0
The Most Chaotic Airports in the U.S.

The Most Chaotic Airports in the U.S.

1 May, 2025

A User-Focused Guide to Digital Library Use

6 April, 2025
The Best Frequent Flier Programs for 2025

The Best Frequent Flier Programs for 2025

3 April, 2025
Barcelona’s Tourist Tax: A Bold Move to Tackle Overtourism and Boost Local Revenue

Barcelona’s Tourist Tax: A Bold Move to Tackle Overtourism and Boost Local Revenue

27 March, 2025

Recommended

The Most Chaotic Airports in the U.S.

The Most Chaotic Airports in the U.S.

1 May, 2025

A User-Focused Guide to Digital Library Use

6 April, 2025
The Best Frequent Flier Programs for 2025

The Best Frequent Flier Programs for 2025

3 April, 2025
Barcelona’s Tourist Tax: A Bold Move to Tackle Overtourism and Boost Local Revenue

Barcelona’s Tourist Tax: A Bold Move to Tackle Overtourism and Boost Local Revenue

27 March, 2025

About Us

Get the latest news and reviews on games, science, technology, and entertainment

Categories

  • Entertainment
  • Games
  • New York
  • Paris
  • Reviews
  • Science
  • Singapore
  • Spain
  • Tech
  • Tokyo
  • Travel
  • Uncategorized
  • Video
No Result
View All Result
  • Entertainment
  • Games
  • Science
  • Tech
  • Travel
    • Paris
    • Spain
    • New York
    • Singapore
    • Tokyo
  • Videos
  • Reviews

© 2019 SuperheroUniverse.com

Login to your account below

Forgotten Password?

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In