Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 90767 invoked from network); 2 Sep 2004 22:11:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 22:11:58 -0000 Received: (qmail 12289 invoked by uid 500); 2 Sep 2004 22:11:58 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 12272 invoked by uid 500); 2 Sep 2004 22:11:57 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Derby Discussion" Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 12250 invoked by uid 99); 2 Sep 2004 22:11:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [66.163.170.81] (HELO smtp811.mail.sc5.yahoo.com) (66.163.170.81) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 02 Sep 2004 15:11:57 -0700 Received: from unknown (HELO debrunners.com) (ddebrunner@sbcglobal.net@67.123.164.213 with plain) by smtp811.mail.sc5.yahoo.com with SMTP; 2 Sep 2004 22:11:55 -0000 Message-ID: <41379AB1.7010706@debrunners.com> Date: Thu, 02 Sep 2004 15:12:01 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: db2db data migration tool experience X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I tried using db2db, an open source JDBC data migration tool with Derby. http://db2db.sourceforge.net/ (note the name stands for 'db to db', nothing to do with IBM's DB2) db2db claims it can migrate tables from one database to another using JDBC and allow configurable conversion of datatypes, e.g. BOOLEAN in source table to SMALLINT in the target table. For Cloudscape and/or Derby you must have the embedded JDBC drivers on the classpath when starting up db2db and set the drivers up as 'Load from Classpath'. I succeeded in getting both Cloudscape 5.1 and Derby embedded connections setup at the same time and could do some simple database browsing and execution of queries. One issue with the tool is that it seems if you add schema objects such as tables or schemas after it has loaded the initial information, they are not reflected in any subsequent database browsing. You must restart to see the new items. For the table transfer I tried Cloudscape 5.1 to Derby and I hit several issues: - - schema names do not seem to be carried forward automatically, i.e. if the source tables are in schema X then there seems to be no way to automatically create schema X in the target database. Even when I created schema X, transferred tables seemed to be put in the current schema of the target connection. - - Forign keys seemed to cause problems, possibly due to the ordering requirements, I just disabled their transfer in the preferences of db2db. - - While I did get tables and their primary keys created in the target database from the source database, there never seemed any attempt to copy data over. This was from a quick attempt, the tool actually looks good, but I just can't get it to do a simple trandfer. If anyone else looks at db2db could they post their view? Another other JDBC data migration tools out there? Dan. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBN5qwIv0S4qsbfuQRAu5wAKDkrKVPghbLv0WQVf4o/69uBlRU9ACfejyx Jdup151a0eB28/dfWKubwOo= =wbyF -----END PGP SIGNATURE-----