Derby Database ODBC Connection

本小妞迷上赌 提交于 2019-11-28 11:18:39

问题


I have a Derby Database in Netbeans with connection string

jdbc:derby://localhost:1527/MyDatabase

Can this be used with ODBC? If so, how could I transform this or configure my Derby Database to be compliant with ODBC

The end goal is to get the Derby Database migrated to MySQL. Using the migrating wizard in MySQL Workbench appears to be the easiest way. However I do need ODBC connectivity.


回答1:


Do you want to use ODBC because MySQL Workbench uses it to migrate database?

I migrated some databases between various engines and my favorite technology is to convert DDL schema (CREATE TABLE, CREATE VIEW etc) using specialized Python program. Then I use JDBC with getObject()/setObject() methods to copy data. You can see such copy database Jython program (Jython is a Python language that works using JVM and can use JDBC drivers) in my response to Blob's migration data from Informix to Postgres .

BTW Quick search shows that IBM have ODBC driver to Derby (they bought Informix that earlier bought Cloudscape): http://www.ibm.com/developerworks/data/library/techarticle/dm-0409cline2/




回答2:


Use OpenDBCopy, which is an opensource database utility to migrate data from and to any database via JDBC connection.

You can copy table structures as well as data from any supported database.



来源:https://stackoverflow.com/questions/13637844/derby-database-odbc-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!