Migrate MySQL database to Oracle 11g with SQL Developer 3 - mysql

I try to migrate a sample database from mysql to Oracle 11g using SQL developer. I go through some online tutorial and follow each steps but I don't know why there is no data show up in the target database.
Here is what I did:
Connect to MySQL(connection name "MySQL") using SQL Developer with JConnector, log on as root.
Create a empty schema for "Repository" during migration named "TEMPBUFFER"
Create a target schema for holding the data in Oracle, named "DEVELOPER"
Follow migration wizard:
Migration Repository = TEMPBUFFER
Third party database for migration = MySQL
Target schema in Oracle = DEVELOPER
Only one database called "classmodels" is chosen to be immigrated from MySQL
So here are my questions:
On top of everything, why there is no table/data show up on DEVELOPER schema, how to fix it?
What is a Migration Repository and why we need it? It seems hold a few tables with config information, so is it very common we should use the target schema as Migration Repository?
Thanks in advance.

i know this is old but the last step is to do copy to oracle when right click the tables on the source scheme
step 27 in this tut
http://taliphakanozturken.wordpress.com/tag/db-migration-using-sql-developer/

Related

How to load data from MySql to MS SQL Server database?

I have similar schema in both MySQL and MSSQL Server databases. How can I migrate just the data from MySql to an empty (no data) MSSqlServer database? MSSqlServer DB is empty with just the schema. I could not configure the MySql DB as a linked server (through ODBC) since I don't have DB Admin rights on MSSqlServer. I just have previleges to add data. I explored Sql Server Migration Assistant for MySQL, but I just want to migrate data without touching the schema at the target.
I also noticed that there is a SqlBulkCopy class which helps to programatically migrate data in .NET.
But I need to write code for each table (there are more than 100 tables and 20 GB of data).
What is the most elegant way to do it?
SSMA might be the easiest. Since you don't wanna use that, you can try using mysqldump. You can use it to essentially dump a MySQL db to SQL Server.
Link to the SSMA blog, they update these tools regularly, so check for a later version. SQL Server Migration Assistant (SSMA) Team's Blog

Can't copy schema data in /mySql Workbench 6.0

I've just installed MySql Workbench 6.0.09 on recommendation. The main reason was to copy my Wordpress database which is stored in MySql.
I'm using the import/export function with a single file, however it doesn't seem to populate the new schema whether I create it before hand or let the process create it.
I've read somewhere that this cross schema copy doesn't work in older versions, but I'm unsure whether this is still the case, i'm doing something wrong, or there is a permissions issue. It seems unlikely that I'm doing something wrong as there is literally a few clicks to deal with.
Anyone advise?
From the discussion above I conclude this question is about creating a duplicate of an existing database using MySQL Workbench. There are several possible approaches for this scenario:
Createa a dump of your source server using the Data Export feature in MySQL Workbench:
. Then restore that dump on the target machine (via Data Import/Restore).
Do a quick an easy shot by using Schema Transfer Wizard. See menu -> Database -> Schema Transfer Wizard...
Start a normal MySQL to MySQL migration using the Migration Wizard under the same menu item. This would also allow to migrate to different MySQL versions.
I didn't find an answer to this however, I did work out a solution.
1) I took a backup of the existing database.
2) I edited the script produced by the backup. I edited the database name on 2 lines at the top of the script then ran it.

Migrating MS SQL to MySQL using MySQL Workbench causes a permission error

I have been working on this all day and now I'm stuck, so hopefully someone out there can help me :)
The challenge.
Migrate data from MS SQL to MySQL.
The MS SQL I received as a bak file, which I restored using SQL server management studio on a PC with Windows 7 Home edition.
I have created a source MySQL database on a webserver, running LAMP.
The solution (maybe)
I'm currently trying to convert the database, initially just one table for testing, using MySQL Workbench with the database->migrate wizard, but now I'm stuck at the Bulk Data Transfer. I would expect this step to create the table in my MySQL database and transfer the data, but that never happens.
For the source I choose Connection Method = ODBC (native)
No problems connecting to the source and destination databases
I choose to keep schema info as table prefix, so imported tables look like: database.dbo_table_name
Migration step succeeds (migrate selected objects & Generate SQL Create Statements)
The Create statements look like this if I don't edit them
CREATE TABLE IF NOT EXISTS 'restored_database_name'.'dbo_table_name' … I think the 'restored_database_name' part causes a permission error. It does if I type this in the SQL tab directly in phpMyAdmin. Therefore I change it to:
CREATE TABLE IF NOT EXISTS 'dbo_table_name' …
Also per default this is part of the SQL:
DROP SCHEMA IF EXISTS 'restored_database_name';
CREATE SCHEMA IF NOT EXISTS 'restored_database_name …
I think this also causes some permission issues, so I commented these out.
In the next step I uncheck the 'Create schema in target RDBMS' since I don't think I want this.
The problem:
Nothing interesting for the next steps, but then at the "Bulk data Transfer" I get this error:
ERROR: 'restored_database_name'. 'dbo_database_name': mysql_stmt_prepare: SELECT command denied to user 'mysql_user_name'#host' for table 'dbo_database_table_name.
Finished copying 0 rows.
I think the error is somehow related to permissions on the destination database. I wonder if it is possible to make sql file, not just with the create table commands, but also with INSERT commands so I could just take the sql and import it using command line or phpmyadmin.
I'm using Workbench 5.2 CE
Any help is appreciated
I've seen that you have made your way into the Workbench's Migration Wizard. Maybe you're just missing something so I suggest you to review this blog so you can verify your steps: How-To: Guide to Database Migration from Microsoft SQL Server using MySQL Workbench.
Unfortunately you can't use the Migration Wizard data copy command line utility to generate the SQL file with all the inserts, but I'm pretty sure you can get this from MS SQL Server Management Studio and it should pretty much work for MySQL without modifications (or with minor modifications).

Migration from SQL Server2008r2 to MySQL

we are converting MSSQL to MySQL using exp/imp wizard in MSSQL server 2008R2.
I have followed this link
http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/826cd1e8-cce3-4c08-839d-f6931ac75ef5
I have downloaded MySQL Connector/ODBC 3.51 and created DSN named "TestTAP"
And then i have used SQLServer --> TestDB --> Tasks --> Export Data, i have got Imp and Exp wizard
Please visit this link.....
http://www.flickr.com/photos/83606059#N04/show/
My ODBC driver is not appearing in the IMP and Exp wizard destination list
where am doing wrong?
Please help me folks
Regards
MySQL just added a migration tool to migrate into their Workbench tool. Details can be found here. I fail to see how it's going to migrate anything more than the most noddy database, but it might work.
The new Migration Wizard that comes with MySQl Workbench 5.2.41 will help you to migrate both the tables and their data. You can have an overview of its capabilities here:
How-To: Guide to Database Migration from Microsoft SQL Server using MySQL Workbench
Best thing to achive data migration is to use so ETL tools.This helps:
Fast data migration
Accurate data migration
Reusable jobs in future
Scheduling etc
For MySql I prefer using Talend Open Studio ETL tool which is open source and you can download it free.
Or you can also use SQL server SSIS.

Databases: Migrate data between MS Access DB and MYSQL

I have 2 databases, one is MS Access DB from an old website, and the other one is MYSQL from the new Joomla+VirtueMart based website.
I need to migrate existing products from MS Access to MYSQL.
I thought of putting both on server and writing SQL queries in MYSQL workbench, untill I have a good script for that, but I'm very new to SQL, so I'd rather avoid that.
I there a better way and more efficient for that?
You can always export to CSV and import that in MySQL.
you can use tools like Database Workbench
MySQL provides a free graphical tool called "MySQL Migration toolkit" which automates the migration of Access 2003 MDB files (schema + data) into MySQL.
More info at the following link:
http://www.mysql.com/why-mysql/white-papers/a-guide-for-migrating-from-microsoft-access-to-mysql/
(you need to register with Oracle to download the PDF guide).
Here's another link using the ODBC technology
https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-examples-tools-with-access-export.html