Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 20139 invoked from network); 31 Aug 2004 20:32:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Aug 2004 20:32:34 -0000 Received: (qmail 84949 invoked by uid 500); 31 Aug 2004 20:32:34 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 84868 invoked by uid 500); 31 Aug 2004 20:32:31 -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 84818 invoked by uid 99); 31 Aug 2004 20:32:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [204.146.167.214] (HELO Boron.MeepZor.Com) (204.146.167.214) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 Aug 2004 13:32:27 -0700 Received: from [9.72.134.179] (dmz-firewall [206.199.198.4]) by Boron.MeepZor.Com (8.11.6/8.11.6) with ESMTP id i7VKWRG31050 for ; Tue, 31 Aug 2004 16:32:27 -0400 Message-ID: <4134DFB0.2060708@Source-Zone.org> Date: Tue, 31 Aug 2004 13:29:36 -0700 From: Suresh Thalamati Reply-To: tsuresh@Source-Zone.org User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-user@db.apache.org Subject: RE:Derby, DB2, & Syntax (Jeff Ramsdale) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Date: Fri, 27 Aug 2004 13:45:19 -0700 (PDT) > From: Jeff Ramsdale > Subject: Derby, DB2, & Syntax > Content-Type: text/plain; charset=us-ascii > Hi all, > > I've got an application that uses a DB2 database I'd > like to swap out with Derby for testing purposes. I > understand from > http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0408cline/ > that Cloudscape was made to be (mostly?) syntax > compatible with DB2 and wanted to verify that's the > case with Derby. > > My DB2 test database is populated by a set of SQL > scripts as well as a set of IXF files. Previously I > tried converting the scripts to HSQLDB's SQL syntax > and using that tool for testing, but the syntax was > different enough to cause trouble. In addition I > couldn't find a way to read the DB2 IXF files in > without writing a custom import tool. > > So, I'm checking out Derby hoping it'll fit the bill > where HSQLDB didn't. Several questions, then... > 1) Is there a tool for loading data into Derby from > IXF files? > Data from files in IXF format can not be exported into Derby. Derby currently supports loading from Delimited file format (DEL). If you can export data from DB2 using DB2 export utility in DEL format, you will be able to load into derby using import system procedures. Following link has some information about Derby import/export system procedures: http://incubator.apache.org/derby/manuals/tools/tools89.html#HDRSII-IMPORT-12925 -suresh