MIgration from MYSQL database to Oracle database
HI,
Can you pls let me know how can we do this using Oracle SQL Developer.
In Mysql database we are having one table which is not normalized and corresponding to it we have created normalized tables in oracle database.
so scenario is like this
EMP table in MYSQL database ----------- need to migrate to----> Employee table
Dept table.
These tables are having some extra columns also which are not there in EMP table in MYSQL database.
SO we want to fill some default values for the new columns while doing the migration.
Can you pls let me know if this is achievable through SQL Developer and how?
Sorry, you'd have to do this in 2 steps:
1. Migrate the tables as they are.
2. Insert the rows from the migrated tables into the new ones.
Have fun,
K.
Similar Messages
-
Problems while migrating from mySql DB to oracle DB
Hi All,
I'm using sql developer tool to migrate from MySql DB to oracle DB. I followed the below steps.
1) I've created oracle and mysql connections successfully.
2) I've captured Mysql data and I'm able to see the captured model in ' Captured Models ' window. After that right clicked on the captured model and selected ' Set Data Mapping'. Selected ' apply ' button without changing anything. After that I've right clicked on the captured model and selected ' Convert to Oracle Model ' . It has shown the converting process. After some time it has shown conversion completed successfully.
But converted model is not visible in ' Converted Models ' window.
Can anyone kindly assist on how to migrate from MySql Db to Oracle DB?
Thanks,
Saty.Hi,
We did mysql to oracle migration some time back and played with workbench tool and many other softwares available.
However our experience was not so good with these tools, each tool had its own limitation and was not able to migrate 100% data. Even the speed of migration was too slow which would have violated our production SLAs.
So after spending a month with these tools we finally decided to create our own scripts for data migration. We used tools like TOAD and SQL Yok to create the DDL for the tables and other DB objects.
For the data migration we downloaded the mysql data in flat files and used sql loader to upload the same data in oracle. Even if this was a time consuming activity but this resulted in 100% data migration with no record getting failed and the time taken for this activity was around 6 Hrs in comparison to time of 24-28 Hrs that the workbench tool took.
Amar -
Migration from SQL Server to Oracle database
I have got 2 questions:
1. We are planning to convert our OLTP sql server databases to oracle databases. I tried using SQL Developer to migrate a small sql server database to oracle database(size 5Gb). It was fine. when I tried to migrate another database(size 90G), it is taking too long. The problem with sql developer is I cannot choose and pick tables. out of 250 tables, I need to migrate abt 80 tables(size will be abt 50G). can anybody share their experiences, if any, in converting medium size sql server databases to oracle databases? any others options??
2. I am planning to convert sql server ddl to oracle ddl. I am testing bcp out and use sql loader to import the data. Right now, I am manually creating oracle tables from sql server tables. I am using http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12069/apa.htm#BABCIIDI to convert the code. Are there any other better ways to convert sql server DDL to Oracle DDL?
Thanks in advanceDDLs should be converted manually. Oracle is not SQL-Server.
If you for example have the partitioning option, you should consider using partitioning and local indexes where possible. Not all tables need to be hash tables. Do you defer segment creation or not? What is the type of tablespace? Do you set percentages for free and used to manage when the data block is on the free list and how much is reserved in the data block for updating rows in that block?
There are numerous considerations to make in terms of the physical database design.
Using BCP and SQL*Loader sound good. SQL*Loader is fast and scalable - am using it to load up to 3.6 million rows every 60 seconds. Direct and parallel loads provide the best performance in this regard (assuming that the underlying table structure and usage supports this approach). -
Migration from Mysql 5 to Oracle fails- java.lang.OutOfMemoryError
Hello Folks,
I m trying to migrate my DB from mysql 5 to Oracle 10g .
I m meeting with some issues.
1) My table data are missing.
2) My foreign key indexing is missed.
Any idea why so?
This is a portion of Error log:
** Started : Wed Dec 20 13:06:56 GMT+05:30 2006
** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Repository Connection URL: jdbc:oracle:thin:@192.168.0.2:1521:tpss10g
** The following plugins are installed:
** MySQL 3.22/3.23 Plugin, Production Release 10.1.0.4.1
** MySQL 4.X Plugin, Production Release 10.1.0.4.1
** MySQL 5.X Plugin, Beta Release for 10.1.0.4.0
** Active Plugin : MySQL5
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.order_rejection_notice_ibfk_1; Referenced schema not found.
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.trading_partner_2_sm_link_ibfk_2; Referenced schema not found.
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12173
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12173
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12173
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11823
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11823
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11823
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12152
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12152
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12152
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11572
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11572
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11572
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11693
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11693
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11693
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **Hello Folks,
I m trying to migrate my DB from mysql 5 to Oracle 10g .
I m meeting with some issues.
1) My table data are missing.
2) My foreign key indexing is missed.
Any idea why so?
This is a portion of Error log:
** Started : Wed Dec 20 13:06:56 GMT+05:30 2006
** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Repository Connection URL: jdbc:oracle:thin:@192.168.0.2:1521:tpss10g
** The following plugins are installed:
** MySQL 3.22/3.23 Plugin, Production Release 10.1.0.4.1
** MySQL 4.X Plugin, Production Release 10.1.0.4.1
** MySQL 5.X Plugin, Beta Release for 10.1.0.4.0
** Active Plugin : MySQL5
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.order_rejection_notice_ibfk_1; Referenced schema not found.
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.trading_partner_2_sm_link_ibfk_2; Referenced schema not found.
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12173
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12173
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12173
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11823
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11823
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11823
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12152
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12152
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12152
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11572
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11572
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11572
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11693
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11693
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11693
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION ** -
Migration from MySQL 5 to Oracle 10g
Hi All,
I'm currently trying to migrate a MySQL database to Oracle and have encountered a few issues, it appears to work fine for most of the tables, with a few errors occurring in the logs for other tables, but they look to be related to connection issues that I am encountering. Both the MySQL and Oracle Database are installed locally on my machine. Below is the exception. Any ideas why the migration would be working perfectly and then encountering the below problems?
Any help would be greatly appreciated. Thanks in advance. Also, should anyone need any further information regarding my system setup etc. don't hesitate to ask.
java.sql.SQLException MESSAGE: Communication link failure: java.io.EOFException, underlying cause: null ** BEGIN NESTED EXCEPTION ** java.io.EOFException STACKTRACE: java.io.EOFException at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1395) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1571) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1930) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1907) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:998) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:305) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326) at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225) at com.mysql.jdbc.Connection.execSQL(Connection.java:2278) at com.mysql.jdbc.Connection.execSQL(Connection.java:2225) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** STACKTRACE: java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null ** BEGIN NESTED EXCEPTION ** java.io.EOFException STACKTRACE: java.io.EOFException at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1395) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1571) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1930) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1907) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:998) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:305) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326) at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225) at com.mysql.jdbc.Connection.execSQL(Connection.java:2278) at com.mysql.jdbc.Connection.execSQL(Connection.java:2225) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION **
Kindest regards,
HarryHi,
Unfortunately now I am receiving a slightly different error, relating to the connection being closed due to a seemingly bad response from the MySQL server, where it expected a larger value than received. I have updated the Third Party JDBC drivers to the latest available.
The connection appears to drop and stop the data migration process, and it appears that this has stopped sooner than my previous attempt. Any help/advice would be greatly welcomed. I'll continue to investigate this on the web, but would assume this is the best possible resource for resolving these kind of problems.
Below is the stack trace received in the migration logs:
It is a particularly large one (sorry)
Failed to move data: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException MESSAGE: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. STACKTRACE: java.io.EOFException: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2464) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 88935 ms ago. STACKTRACE: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException MESSAGE: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. STACKTRACE: java.io.EOFException: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2464) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 88935 ms ago. at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2622) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION **
Failed to get source row count. Proceeding with unknown (No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException MESSAGE: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. STACKTRACE: java.io.EOFException: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2464) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 88935 ms ago. STACKTRACE: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException MESSAGE: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. STACKTRACE: java.io.EOFException: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2464) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 88935 ms ago. at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2622) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** )
== 2nd Stack Trace received further down in the logs before the process bombs out altogether from the lack of response from the MySQL database ==
Failed to move data: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException MESSAGE: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. STACKTRACE: java.io.EOFException: Can not read response from server. Expected to read 23,493 bytes, read 9,268 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2464) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1360) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2369) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:451) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2076) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787) at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) at oracle.dbtools.migration.datamove.online.DataMoveDrone.doDataMove(DataMoveDrone.java:359) at oracle.dbtools.migration.datamove.online.DataMoveDrone.run(DataMoveDrone.java:230) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Last packet sent to the server was 88935 ms ago.
Thanking you in advance.
Kindest regards,
Harry -
Out of memory error in migrating from mysql to oracle
Hi,
I'm trying migrate from mysql to oracle9i. The hardware and software requirements are matching or even much higher than mentioned in the documentation. I have installed OMWB is properly(hope so). When I try to migrate the desired database from mysql to oracle, the repository, the Oracle model are created successfully. But while migrating data, say for around 35000 rows insertion everything works pretty fine. But after sometime, the migration stops and no error or anything appears in the screen.And in the Errorlog I get "OutOfMemoryError".
I tried to migrate single table also. But I still get this problem after sometime. The tables may contain from 10 - 130000 rows...
I even tried to change the %JRE..% memory value to 64M or 128M in the omwb.bat file and the O/s is Microsoft Windows XP, RAM 256MB.
Any help is much appreciated.
Thanks in advance.Hi Viji,
did the message in the error.log provide any extra information? For example, was the OutOfMemory error prefixed with a string
like "cannot create new native thread" ? My suggestion to workaround the problem would have been to increase the JVM heap size to 128
but this appears to have been unsuccessful for you. Can you send a mail to the Migration Workbench support services
([email protected]) explaining the problem, and attach the full error.log file please ? (please also copy me on the mail).
In the meantime, you can workaround this by migrating the schema only (there is a switch on step 3 of the migration wizard asking:
"Do you want to migrate the table data to Oracle?" - just select the "No" option). When the schema has migrated, you can then use the
offline data loading facility to migrate the data. This uses data extraction scripts and SDQL*Loader to migrate the data to the target
Oracle database.You can learn more about the offline data loading facility from the plugins referenceguide (from the Help menu in
the Migration Workbench).
I hope this helps,
Tom. -
DB Migration from MYSQL to ORACLE Using Offline Capture
Hi
Am doing a database migration from MySQL to Oracle using SQL Developer (version 2.1.1.64). So far, I've successfully captured the MySQL database and converted it to the Oracle Model. However, when generating offline scripts to create the converted model schema into Oracle DDL scripts it managed to generate SQL to create: 1) User 2) Sequences 3) Tables 4) Triggers and 5) constraints.
It has created the SQL to add the primary key constraints and index constraints. Although it did the foreign key constraints in the SQL, the foreign key constraints seems to have missed the cascading options for the foreign key constraint. I.e. theres no reference of whether the foreign key constraint will restrict on delete or cascade etc.
We have a foreign keys in the MySql database that have different cascading options and these have not being ported over into the migration SQL. Therefore, all the foreign keys generated in the SQL by default are cascade to restrict on delete.
Does 'Generate Oracle DDL' not take into account a foreign key's on delete cascading option?
Any help or information would be greatly appreciated.
ThanksHello,
that reminded me for the following thread:
Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem
That is a similar issue, isn't it?
I opened a bug for that, and it will be fixed in SQL Developer 3.1 (not in any 3.0 Early Adopter version). If you hit the same issue, there is no other way then using the workaround as used in the mentioned thread.
Regards
Wolfgang -
Convert data from b-tree database to oracle database
hi
i need to convert signture file from b-tree database
to oracle 8i database
and i know nothing about b-tree database.
thanksHi Mohamed,
This forum is for the Migration Workbench only. This tool is used for migrations from the following list of database servers to Oracle:
DB2\400 V3R5 and V4R5
DB2 UDB 6 and 7
Informix 7 and 9
MS Access 95 97 and 2000
MS SQL Server 6.5, 7 and 2000
Sybase 11 and 12
MySQL
You may need to post your question on another Discussion Forum to obtain a solution to your query. -
Whether using Oracle after migrating from MySQL be easy or not?
Though oracle is tough secured one, I don't know exactly the complexity of using Oracle database. Using MySQL 4.1.22 in my website https://www.puntercalls.com/ . Though the site is based on providing share market tips, it deals with a huge amount of stock market data and in much more real time basis hand-to-hand with NSE and BSE info which means a tough security is the utmost demand of the time.
My question is whether using Oracle after migrating from MySQL be easy or not. You can check my site at https://www.puntercalls.com/ for different real time data updation parts.
Kind suggestions are greatly appreciated in advance!
Edited by: 968684 on Oct 31, 2012 7:04 AMHi,
As you are really asking about how to setup and use securioty features in an Oracle database it woul db ebetter to raise the question in this forum -
Forum: Database Security - General
Database Security - General
They will have more knowledge about Oracle security features and which it would be best for you to use.
Regards,
Mike -
Insert and update tables from SQL server to oracle database tables
Hi,
I am having problem while update data from sql server to oracle database tables.
I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
Thanks in advance.Hi,
What about using Oracle SQL Developer for migration
http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
HTH -
Exporting data from SQL Server database to Oracle database
Hello All,
We need to replicate a table's data of SQL Server database to Oracle database.
Can this task be accomplished using Import/Export wizard or Linked servers?
Can help me regarding which Oracle data access components should i download to do this?
I am using SQL Server 2012.
And i have Oracle 11g release 2 client installed in my system.
Thanks in Advance.
Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.Yes you can definitely transfer data from SQL server to Oracle Have a look at below links
Export SQL server data to Oracle Using SSIS
Use OLEDB data provider to transfer data from SQL server to Oracle
Using Import Export Wizard
Similar thread
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
Upload data from Access Database to Oracle Database In oracle 8i
hi everybody
i am trying upload data from Access database to Oracle Database
i have TT(F1,F2,F3) table in Access Databsse
and emp(ename,ecode,sal) in oracle Database
db_ac is my datasource name
when i connect to Access Database thru this command this show following error
SQL> connect a/a@odbc:db_ac;
ORA-00022: invalid session id; access denied
ORA-00022: invalid session id; access denied
ORA-00022: invalid session id; access denied
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
Server not available or version too low for this feature
ORA-00022: invalid session id; access denied
Connected.
when i am trying copy data as this command it show error and data not copied.
SQL> COPY FROM A/A@ODBC:DB_AC TO test/test@ora INSERT EMP USING SELECT F1,F2,F3 FROM TT;
Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 80. (long is 80)
ORA-00022: invalid session id; access denied
ERROR:
OCA-00022: general OCA error
can help me .
with thanxHi there,<br>
<br>
Please kindly use instead the Database Forum at:-<br>
General Database Discussions<br>
<br>
... to place your question as this is for the Oracle Portal product Export / Import functionality.<br>
<br>
<br>
Kind regards,<br>
Pedro. -
Shifting data from PostgreSQL database to Oracle database
hello folks,
as i want to have an environment of many database servers of PostgreSQL databases on linux redhat 8.0 and one main database server of Oracle 8.1.7.0.0 on linux redhat 8.0;so that transections may go on PostgreSQL databases and Oracle database server would be used as a central repository to facilitate our data warehousing needs,I want to know how to shift data from PostgreSQL database to an Oracle database at the end of the day.What to do? From where can i get its documentation.
Any suggestion would be highly appreciated.
Regards.
Muhammad Umar Liaquat.Since you're going to want to move the data regularly, I'd suggest looking into the Oracle Transparent Gateways (Heterogenous Services). This should let you create database links in Oracle that connect to each of the PostgreSQL databases. Then, you just have to write the appropriate select/insert statements.
Justin -
Extract data from XML file to Oracle database
Dear All
Please let me know, how to extract data from XML file to Oracle database which includes texts & images.
Thanking You
Regards Lakmal MarasingheI would do it from the database, but then again, I am a database / PL/SQL guy.
IMHO the database will deliver you with more options. I don't know about "speed" between the two. -
How to conncet mysql database and oracle database 11g2 on linux 5.4
Hi,
Can anyone help me to connect mysql server database to Oracle
database on Linux OS?
I have done all things, but I am getting a problem in installing dg4odbc
driver on Oracle database. In a simple word, I don't know how to create
listener between mysql database and Oracle database.
If anyone knows that please help me in configuring dg4odbc for Oracle. OS
-Linux 5.4 and refer any doc or link.
oracle 11g2 11.2.0.1
i follow the metalink id - 466228.1 ( but cant successed).
Thanks and regards,
pritesh ranjanhi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
details of the initdg4odbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = mysql_odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
set LD_LIBRARY_PATH=/usr/lib
# Environment variables required for the non-Oracle system
#set HOME=/home/oracle
~
~
~
"initdg4odbc.ora" 20L, 437C
details of the listener.ora file
DG4ODBC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4odbc))
(HS=OK)
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = ORCL)
ADR_BASE_DG4ODBC = /u01/app/oracle
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
ADR_BASE_ORCL = /u01/app/oracle
"listener.ora" [readonly] 37L, 779C 35,0-1 85%
details of tnsname.ora file
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
DG4ODBC =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=DG4ODBC))
(HS=OK)
MYSQL =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=MYSQL))
(HS=OK)
when i m going to start the listener it could not be started..
details of the mysql server database
[root@pritesh11gprim ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql> show databases;
| Database |
| information_schema |
| demo |
| mysql |
| performance_schema |
| pritesh |
| test |
6 rows in set (0.01 sec)
if any where i m wrong then plz suggest me......
thanks & regards
pritesh ranjan -
Any method to Import the data from Ingres Database to Oracle Database
Hi,
Is there any method to import the datas from Ingres Database to Oracle Database,
Thanks in Advance.Check out this link.
HTH...
Maybe you are looking for
-
Calendar+iCloud to Outlook 2007 - not supported calendar message . ics
Consider this Two new macs 1. MacA set up with iCLoud to sync Calendars 2. MacB set up not to use iCloud Test on MacA (my Wifes) used for her work, across iPhone, iMac, MBP Send invite from Calendar on the Mac to my work address [email protected] an
-
Hi Experts I want to pre populate child form fields from user Definition. But I am not able to do so. I have read so many posts in forum that it is not possible. I can't use access policy. I need, whenever user raise a request for resource then few f
-
When I open up my photos, I no longer have the tabs at the top where I used to be able to select to view photos, videos, or all. How can I get them back?
-
Delete doesnt show up when i right click a song
When I right click on a song to delete it, the delete option doesn't show up. Any ideas?
-
End User of mine is wanting to open multiple docs in Word 2010.....first initial glance I thought it was a PICNIC issue. But when addressing it she has it set up to NOT "Show all windows in the taskbar" that option is unchecked so that way she can cl