Database migration Oracle-->MySQL

Database MigrationOracle–>MySQL

  1. Navicat Premium establishes connections to the existing MySQL database host (note that it is only the host) and the Oracle database, and tests the connection successfully;
  2. Navicat Premium connects to the existing MySQL database host, creates a new database, pays attention to the character encoding and sorting rules, and selects utf8mb4 and utf8mb4_general_ci respectively; (to avoid failure when the imported content contains Chinese);
  3. Navicat Premium, open the Oracle database connection in the database connection list, so that the current connection is an Oracle database, click the menu "Tools" ==> "Data Transfer", the source is the current Oracle database connection (usually no need to set), set the target The type is connection, and the value is the name of the newly created database. In the next step, select the table to be migrated, start, OK!
  4. Note 1: Oracle is case-sensitive, but MySQL is case-insensitive by default, and there will be problems: For example, if there are two records in an Oracle table with different primary key case, the migration of the table will be incomplete, and the MySQL initialization must be completed before , for case-sensitive settings;
  5. Note 2: There is a certain mapping relationship between the data types of Oracle and MySQL, but they are different. Some data types such as BLOB may have size mismatches and the import fails.

Guess you like

Origin blog.csdn.net/langshuibaren/article/details/118860218