Convert from mysql db to oracle

hi all,
i want to convert data from mysql database to oracle database.
what kind of mechanism i want to use?
if any mechanism like DTS in SQLserver is there to covert?

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

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 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 **

  • How to load a huge data file (export from mysql) to an oracle table?

    I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
    How can i load these data to an oracle table in java way?
    I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
    If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
    Is there anyone can give me a solution with high performance? It's urgent and Thanks!

    hsy541 wrote:
    I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
    How can i load these data to an oracle table in java way?
    Why must it be a Java way? The point is just to move the data.
    I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
    Why not just import the .csv file into Oracle? I'm sure there's a script or utility that will do it.
    If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
    You want to turn off transactions? I'm not an Oracle expert, but I'd be shocked if there was something you could do in MySQL that didn't have an analog in Oracle. Find a better resource, like somebody that actually knows Oracle. Who set up that database for you? Consult with them.
    Is there anyone can give me a solution with high performance? It's urgent and Thanks!Urgent to you....
    %

  • SELECT from MySQL, INSERT into Oracle

    Hallo,
    I am new to Java.
    My task is to collect data from about 30 tables inside MySQL database and then insert it to similar tables in Oracle.
    Script should copy data one a day, during the night.
    Number of rows in each table is about 30,000.
    MySQL version 5.1
    Oracle version 11.1.7
    Both of them are installed on really fast servers.
    The way i would do it is:
    1. connect to MySQL
    2. connect to Oracle
    3. select data from MySQL table and insert it to Oracle table.
    repeat this step for each table
    More precise about SELECT and INSERT:
    handle_one = "SELECT a, b, c FROM mysql_table1";
    while(handle_one is true)
    INSERT a, b, c INTO oracle_table1;
    4. close MySQL connection
    5. close Oracle connection
    Is it best way?
    Best Regards
    slk

    slkLinuxUser wrote:
    Script should copy data one a day, during the night.
    Number of rows in each table is about 30,000.There are variations on the above depending on what the above two statements mean.

  • 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,
    Harry

    Hi,
    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

  • Unable to convert from "UTF-8" during oracle upgrade

    Hi,
    I'm trying to upgrade from 9.2.0.1 to 9.2.0.6, while running the runInstaller, am getting the following error:
    ERROR: Unable to convert from "UTF-8" to "ISO-8859-1" for NLS!
    SuSE-7, redhat-2.1AS, redhat-2.1, UnitedLinux-1.0, redhat-3 or SuSE-8
    can anyone tell me how to fix this problem?
    thanks,
    GK

    Hi Vinod,
    I have already checked that and found the package is available in my system.
    <i># pkginfo - SUNWuiu8
    system      SUNWuiu8 Iconv modules for UTF-8 Locale</i>
    Regards,
    Chintan Sheth

  • 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.

  • Convert from SQL server to Oracle?

    How do I do this query in Oracle?
    In SQL Server, it looks like this.
    select
    SELECT top 1 t1.mpm
    FROM TblMtk T1
    where t1.wc = '34819'
    and t1.ValidFrom <= '2012-09-12'
    order by t1.ValidFrom desc
    ) R1
    SELECT top 1 t2.mpm
    FROM TblMtk T2
    where t2.wc = '34819'
    order by t2.ValidFrom desc) R2

    A follow-up question ...
    If the table tblmtk for example, there are three rows like this:
    WC        MPM        Valid_from
    34819     1          2010-06-01
    34819     2.5        2011-01-01
    34819     1.5        2012-01-01If the value is outside of the validity period (valid_from) shall it take the last valid_from value. How?
    select max(MPM) keep(dense_rank first order by case when valid_from  <= '2007-05-10' then valid_from else null end desc nulls last) r1
      from tblmtk
    where wc = '34819'I want the result to look like this:
    R1= 1.5
    But now I get R = 2.5

  • Errors in Converting from MS SQL 7 & Oracle

    If someone has some information how can we get an easy solution for Oracle Migration.
    Thanks
    null

    Hi Jeevan,
    Please mail [email protected] with details of your issues. We will work to resolve them as quickly as possible.
    The Workbench should work for you. Please remember you have a beta version of the SQL Server 7.0 software and we have fixed a lot of issues in the production version.
    The production version 1.2.5.0.0 will be available from this site shortly and also from the 8.1.6 release 2 for Windows NT CD.
    Regards
    John

  • Converting from Actuate Reports to Oracle BI Publisher fails

    Hi,
    I'm trying to convert a Actuate report to BIP. The below mentioned error is being displayed.
    "2009/09/29 21:09:312 Begin conversion of Report name 'STARSRPT', Path 'D:\BIP\STARSRPT.bas'.
    java.lang.NullPointerException
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processExpressionInternal(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processExpressionInternal(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processExpression(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processParameter(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processArgumentList(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processVariableNode(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processVariable(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processExpressionInternal(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processExpression(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processAssignmentStatement(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processStatement(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processMethodDefinition(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processClassDefinition(Unknown Source)
         at oracle.reports.actuatereports.vb.VisualBasicTreeWalker.processProgram(Unknown Source)
         at oracle.reports.actuatereports.ActuateReportsToXMLP.run(Unknown Source)
         at oracle.reports.ApplicationRunner.runApplication(Unknown Source)
         at oracle.reports.ApplicationRunner.runActuateReportsConverter(Unknown Source)
         at oracle.reports.ApplicationRunner.main(Unknown Source)
    Any thoughts???
    Thanks,
    Kumar

    I'm able to convert other reports except for one. Sorry for the delayed response. I have raised an SR 3-1016713021 regarding the same in the support web.
    Regards,
    Kumar Madhav

  • Migrating from MySql to Oracle

    Hi,
    I have installed latest version of SQL Developer with new Extensions (added mysql-connector-java-3.1.14-bin.jar under third-party database extension tab) , also installed latest updates from Help Menu. I have created a database in Mysql and now migrating it to Oracle, while I click on Capture MySQL / Quick MySql migrate... i get error "Error ocurred during capture: ORA-01400: cannot insert NULL into ("ASHISH"."MD_PROJECTS"."ID") ".
    Thanks,
    Ashish Sohane.
    OracleDirect.

    I am having the same problem. I have deleted and recreated the repository many times. I'm getting:
    "SQL Error on Script Execution. Try deleting repository before Creating Repository."
    then
    "The Repository installtaion has failed. Please check the user you are registering and make sure that objects of the same name do not already exist"
    I have closed the connection and reopened, closed SQL Developer and reopened. When I expand Tables, there are NO md_ tables. So it seems the repository deletion is working. But when I try to recreate it, oracle somehow thinks the repository I deleted is still there.... even tho it doesn't show it in the ui.
    Although this thread began w/ someone converting from MySQL i think that is probably irrelevant. We are getting the same errors with the oracle repository. I am converting from MSAccess2003 using SqlDeveloper 1.2.1. I have successfully created the XML and SQL exports from MSAccess using SqlDeveloper\Migration\MicrosoftAccess Exporter\2003

  • Keys lost in converting from sybase to oracle

    I am trying to convert from sybase 12 to oracle 10 using the migration workbench.
    The oracle data base created does not have the primary keys that were in the sybase data base. I used the tool to create migration scripts, Create.sql and Drop.sql. These scripts create the tables but do not have primary keys in them.
    Another question is I have user types from the sybase database. Is it possible to change them in the tool? Right now it looks like I can only change the basic database types as in smallInt.

    Hi <Please Supply Your Name>,
    What version of SQL Developer are you using?
    "Create.sql" and "Drop.sql" sound like old OMWB names, Just want to double check.
    Thanks
    Dermot.

  • Conversion of Mysql query in oracle acceptable query format

    Hi
    I have successfully converted my MySql database in oracle. Now the problem is how to execute already written hundreds of Mysql query on the oracle. There are many syntax variation in Mysql query format which is not acceptable for oracle.
    For Example
    Select case_id as 'this is alias' from cases
    The above query can run on Mysql database but have problem while executing Oracle, because single quotes should be replaced with double quotes before executing it on oracle. There are also many other syntax conflicts.
    I have tried to resolve the problem through SwisSQLAPI but problem still exist as SwisSQLAPI is not dealing with all syntax conflict. In my case (select if (expresion, true,false)) must be replace with decode (expression, value,true,false) function of oracle and this conversion is not supported by SwisSQLAPI.
    Please help me in resolving this problem
    Thanks

    The problem with trying to port from one language (mysql SQL) to another (oracle SQL) is that there's generally no hard rules for a computer to follow, that it will get it 100% correct.
    Look at babelfish when you translate a foreign language to English. The end result is readable (usually), but it's rarely completely correct.
    The problem is when you feed something into Oracle SQL, it needs to be 100% correct.
    All you can really do here is rewrite these queries. It shouldn't actually take as long as you think, because 50% of queries will generally need very minor changes you can do in a minute, and 25% won't need any changes at all.

  • MOS Document:  Convert from Oracle to MySQL

    An Oracle tech just pointed out this note:
    Oracle VM Manager 3.2.1 database Migration from Oracle RDBMS to or from MySQL (Doc ID 1522460.1)
    Good stuff!
    Rob

    I will describe two ways here.
    1) By toad
    Toad outputs the result in a grid. You can save it as csv file and then can import in access database.
    2) By sql* plus spooling
    SQL> set heading off
    SQL> spool dept.txt
    SQL> select 'Dept Number,Dept Name,Location' from dual
    2 union all
    3 select deptno||','||dname||','||loc from dept;
    SQL> spool off
    Now you got dept.txt as csv file. Import this file in access database.

Maybe you are looking for

  • Time machine backup from external hdd to time capsule

    Is it possible to transfer an time machine backup from an external hdd to a time capsule? I have changed the original 2tb time capsule hdd to a 3tb hdd because of loud sounds from the 2tb hdd. Now i want to transfer the backup from the (now external)

  • Cyrillic fonts fo FCP

    I've bought my iMac and FCE in Russia and Cyrillic fonts were pre-installed in my computer. In few days I will have to edit on Mac Book Pro that my client brings from UK. He told me that the computer has no Cyrillic fonts. But we will need to make Ru

  • JavaScript for TAB in WAD

    I have the following code to switch from one web Item to another, but I have more than one webItem that I want to be displayed at the same time, but I couldn't make both displayed at the same time, could someone please tell me if that is possible. ht

  • Azure Worker Role reboots when adding instance of Web Role

    I have a Windows Azure cloud service with a Web Role and a Worker Role. I I have built a website that allows me to perform various management functions against the cloud service (stop/start, reboot instance, add instance, remove instance). All functi

  • Changing tab names on tabbed pane

    Hi all, just wondered if anybody knows how i can change the text that appears on my tabs in a jtabbedpane. So far I only have tab1, tab2 etc and I cant seem to find how to change this. Thanks alot