Newbie question - New to Benerator

technical benerator q&a

Newbie question - New to Benerator

Postby beneratorrocks » Wed Jul 13, 2011 4:56 pm

Hi Volker,

I just started trying out Benerator - so this might be a basic question. I am trying to set up a Benerator.xml for a simple table schema/data copy from a DB2 table to MySQL table. My DB2 database has multiple schemas. So I specified database source like so

Code: Select all
 <database id="src"
        url="jdbc:db2://<Server>:<Port>/<Database>"
        driver="com.ibm.db2.jcc.DB2Driver"   
      schema="ab,cd,de"
      catalog="<Database>"
        user="<user name>"
      password="<password>"/>


The source DB2 table is ab.tbl where ab is the database schema and tbl is the database table name. How do I specify this in my iterate statement ?

I tried the below iterate statement but I get the error "generate failed: java.lang.RuntimeException: org.databene.commons.ObjectNotFoundException: Table null"

Code: Select all
<iterate type="state" source="src" encoding="utf-8" consumer="tgt" onError="debug" />
beneratorrocks
 
Posts: 1
Joined: Wed Jul 13, 2011 4:43 pm

Re: Newbie question - New to Benerator

Postby Volker Bergmann » Tue Jul 26, 2011 3:14 pm

Hi,

currently benerator is designed to access only one single schema with one <database> in order to avoid name collisions.

The simplest solution for your case would be to use three different <database> instances, one for each schema.

Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm


Return to Benerator Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron