Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 59539 invoked from network); 5 Aug 2004 05:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Aug 2004 05:49:28 -0000 Received: (qmail 72560 invoked by uid 500); 5 Aug 2004 05:49:25 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 72449 invoked by uid 500); 5 Aug 2004 05:49:24 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 72434 invoked by uid 99); 5 Aug 2004 05:49:24 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [203.124.131.226] (HELO mailp.ascindia.com) (203.124.131.226) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 04 Aug 2004 22:49:20 -0700 Received: from pc203 (pc203 [192.168.26.109]) by mailp.ascindia.com (8.9.3+Sun/8.9.3) with SMTP id LAA26288 for ; Thu, 5 Aug 2004 11:17:33 -0400 (EDT) Message-ID: <004401c47ab1$195ef4b0$6d1aa8c0@ascindia.com> From: "Megha Audichya" To: "Apache Torque Users List" References: <1091647151.2424b240saravkrish@uky.edu> Subject: Re: Generating XML from JDBC connection Date: Thu, 5 Aug 2004 11:27:32 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0041_01C47ADF.32BC8D90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0041_01C47ADF.32BC8D90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi All I encountered the same problem too.=20 JDBC target requires various parameters to be passed out of which schema = is the one that was the root cause of my problem. TorqueJDBCTransformTask class internally looks for the table list based = on the DataBaseMetaData. The class calls tableNames =3D dbMeta.getTables(null, dbSchema, "%", types); Here dbschema (passed as a parameter) is the schemaPattern=20 schemaPattern - a schema name pattern; must match the schema name as it = is stored in the database; "" retrieves those without a schema; null = means that the schema name should not be used to narrow the search If schema is not passed as a parameter in the jdbc target thereby = passing schemapattern as null solves the problem. Dont pass schema in the target and your problem should be solved. Thanks Megha Audichya ----- Original Message -----=20 From: "Saravana Krishnan Kannan" To: Sent: Thursday, August 05, 2004 12:49 AM Subject: Re: Generating XML from JDBC connection > Thats the way it works. It's limited in what it converts to xml = schema. You will have to add a lot of additional properties/entities = manually. >=20 > -Sarav >=20 >=20 > -----Original Message----- > From: Derek Anderson > To: torque-user@db.apache.org > Date: Wed, 04 Aug 2004 08:51:06 -0500 > Subject: Generating XML from JDBC connection >=20 > Hey everyone, >=20 > I'm trying to generate a schema off our existing oracle database using = the=20 > torque generator. The jdbc build target is completing successfully, = yet the=20 > schema file is woefully incomplete. Does anyone have a suggestion? >=20 > Here is the ant output: >=20 > C:\home\projects\EMS.torque\torque-gen-3.1>ant -f build-torque.xml = jdbc > Buildfile: build-torque.xml >=20 > jdbc: > [echo] +-----------------------------------------------+ > [echo] | | > [echo] | Generating XML from JDBC connection ! | > [echo] | | > [echo] +-----------------------------------------------+ > [torque-jdbc-transform] Torque - JDBCToXMLSchema starting > [torque-jdbc-transform] Your DB settings are: > [torque-jdbc-transform] driver : oracle.jdbc.driver.OracleDriver > [torque-jdbc-transform] URL : = jdbc:oracle:thin:@192.server.ip.1:1601:EMS920 > [torque-jdbc-transform] user : ems > [torque-jdbc-transform] schema : EMS920 > [torque-jdbc-transform] DB driver sucessfuly instantiated > [torque-jdbc-transform] DB connection established > [torque-jdbc-transform] Getting table list... > [torque-jdbc-transform] Building column/table map... > [torque-jdbc-transform] ./schema/schema.xml > [torque-jdbc-transform] Torque - JDBCToXMLSchema finished >=20 > BUILD SUCCESSFUL > Total time: 2 seconds >=20 >=20 > And the resulting schema.xml: >=20 > C:\home\projects\EMS.torque\torque-gen-3.1>cat schema\schema.xml > > > > >=20 >=20 > Thanks, > --=20 > -- ----------------------------------------------- -- > ~ ____ ___ ___ Derek C. Anderson ~ > ~ | _ | _ \| __| Computer Scientist / Tech Lead ~ > ~ | | || __/|| Computer Sciences Corporation ~ > ~ | |_|| \ ||_-- http://kered.org/professional ~ > ~ (_)___|_|_\|___/ derek@kered.org ~ > -- ----------------------------------------------- -- >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org >=20 >=20 > ------=_NextPart_000_0041_01C47ADF.32BC8D90--