Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 61438 invoked from network); 21 Mar 2007 16:57:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2007 16:57:52 -0000 Received: (qmail 85105 invoked by uid 500); 21 Mar 2007 16:57:58 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 85079 invoked by uid 500); 21 Mar 2007 16:57:58 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 85068 invoked by uid 99); 21 Mar 2007 16:57:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 09:57:58 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 32.97.182.144 is neither permitted nor denied by domain of Stan.Bradbury@gmail.com) Received: from [32.97.182.144] (HELO e4.ny.us.ibm.com) (32.97.182.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 09:57:46 -0700 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l2LGvOEM023067 for ; Wed, 21 Mar 2007 12:57:24 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l2LGvOof225274 for ; Wed, 21 Mar 2007 12:57:24 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l2LGvO4w008202 for ; Wed, 21 Mar 2007 12:57:24 -0400 Received: from [127.0.0.1] (bradbury-lt1.usca.ibm.com [9.72.133.177]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l2LGvL3t007967 for ; Wed, 21 Mar 2007 12:57:23 -0400 Message-ID: <460163EE.9050403@gmail.com> Date: Wed, 21 Mar 2007 09:57:18 -0700 From: Stanley Bradbury User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Derby Discussion Subject: Re: How can I access BIRT classic model database using ij scripting tool. References: <9574722.post@talk.nabble.com> <460030DA.8030205@gmail.com> <9595041.post@talk.nabble.com> In-Reply-To: <9595041.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You need to specify the schema name or set your default schema to CLASSICMODELS - select * from claisicmodels.customers; should work Senthil Gugan wrote: > Hi Sunitha, > Thanks for your help. > Now i'm able to connect the classic model DB via ij, using the > statement, > ij> connect > 'jdbc:derby:jar:(/var/EclipseBirt/eclipse/plugins/org.eclipse.birt.report.data.oda.sampledb_2.1.1.v20070205-1728/db/BirtSample.jar)BirtSample'; > but couldn't able to access the tables in the database. Can you tell me how > to do it. > > here is what i did: > ij> connect > 'jdbc:derby:jar:(/var/EclipseBirt/eclipse/plugins/org.eclipse.birt.report.data.oda.sampledb_2.1.1.v20070205-1728/db/BirtSample.jar)BirtSample'; > ij> select * from customers; > this statement shows the error: ERROR 42X05: Table/View 'CUSTOMERS' does not > exist. > > Note: i'm able to execute the following statement. > ij> show tables; > TABLE_SCHEM |TABLE_NAME |REMARKS > ------------------------------------------------------------------------ > SYS |SYSALIASES | > SYS |SYSCHECKS | > SYS |SYSCOLUMNS | > SYS |SYSCONGLOMERATES | > SYS |SYSCONSTRAINTS | > SYS |SYSDEPENDS | > SYS |SYSFILES | > SYS |SYSFOREIGNKEYS | > SYS |SYSKEYS | > SYS |SYSSCHEMAS | > SYS |SYSSTATEMENTS | > SYS |SYSSTATISTICS | > SYS |SYSTABLES | > SYS |SYSTRIGGERS | > SYS |SYSVIEWS | > SYSIBM |SYSDUMMY1 | > CLASSICMODELS |CUSTOMERS | > CLASSICMODELS |EMPLOYEES | > CLASSICMODELS |OFFICES | > CLASSICMODELS |ORDERDETAILS | > CLASSICMODELS |ORDERS | > CLASSICMODELS |PAYMENTS | > CLASSICMODELS |PRODUCTLINES | > CLASSICMODELS |PRODUCTS | > > 24 rows selected > ij> > > Thanks, > Senthil. > > Sunitha Kambhampati wrote: > >> Senthil Gugan wrote: >> >> >>> Hi, >>> I am working on LINUX SuSe10.2 OS with the following version of >>> softwares, jdk1.5.0_11, eclipse3.2(BIRT2.1.2). >>> I have installed the Derby plugin in the Eclipse plugin >>> Directory. >>> Here my problem is I couldn't able to access the BIRT classic model >>> database using the ij scripting tool. >>> Can anybody tell me is it possible to access the BIRT classic model >>> database using the ij scripting tool?. >>> >>> >>> >> The BIRT Classic model database is in a jar file. I have the >> birt-database-2.2M2 downloaded on my machine and the database is inside >> BirtSample.jar under birt-database-2.2M2\ClassicModels\derby\bin >> >> More info in docs about how to access database in a jar is here: >> http://db.apache.org/derby/docs/dev/devguide/cdevdvlp24155.html >> >> To access this via ij , set classpath to include the jar. >> $ export CLASSPATH="BirtSample.jar;$CLASSPATH" >> $ java org.apache.derby.tools.ij >> ij version 10.2 >> ij> connect 'jdbc:derby:jar:(C:\work\scripts\BirtSample.jar)BirtSample'; >> ij> show tables; >> TABLE_SCHEM |TABLE_NAME |REMARKS >> ------------------------------------------------------------------------ >> SYS |SYSALIASES | >> SYS |SYSCHECKS | >> SYS |SYSCOLUMNS | >> SYS |SYSCONGLOMERATES | >> SYS |SYSCONSTRAINTS | >> SYS |SYSDEPENDS | >> SYS |SYSFILES | >> SYS |SYSFOREIGNKEYS | >> SYS |SYSKEYS | >> SYS |SYSSCHEMAS | >> SYS |SYSSTATEMENTS | >> SYS |SYSSTATISTICS | >> SYS |SYSTABLES | >> SYS |SYSTRIGGERS | >> SYS |SYSVIEWS | >> SYSIBM |SYSDUMMY1 | >> CLASSICMODELS |CUSTOMERS | >> CLASSICMODELS |EMPLOYEES | >> CLASSICMODELS |OFFICES | >> CLASSICMODELS |ORDERDETAILS | >> CLASSICMODELS |ORDERS | >> CLASSICMODELS |PAYMENTS | >> CLASSICMODELS |PRODUCTLINES | >> CLASSICMODELS |PRODUCTS | >> >> 24 rows selected >> ij> >> >> >>> I have no problem in accessing the Derby database using the ij >>> scripting tool. >>> >>> Thanks in advance, >>> Senthil. >>> >>> >>> >> >> > >