db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak" <tom...@gmail.com>
Subject Re: Error when running databaseToDdl task to dump data to xml file on oracle10 database
Date Fri, 16 Mar 2007 01:32:35 GMT
On 3/12/07, Pentti Kavanagh <pentti.kavanagh@talgentra.com> wrote:

> I am using the ddlutils ant task 'databaseToDdl' to dump some data to an
> xml file.
>
> The task fails with this error:-
>
> org.apache.ddlutils.model.ModelException: There are multiple column with
> the name V2_ACCOUNT_NO in the table ACCOUNT_DETAILS
>
> Here is my ant script:-
>
>      <target name="data-dump" description="Dumps the database data">
>                 <taskdef name="databaseToDdl"
>
> classname="org.apache.ddlutils.task.DatabaseToDdlTask">
>                         <classpath refid="runtime-classpath" />
>                 </taskdef>
>                 <databaseToDdl modelName="PerfModel" verbosity="debug"
>                         databaseType="oracle10" schemapattern="TEST34">
>                         <database
> url="jdbc:oracle:thin:@devperfdb3:1521:perf"
>
> driverClassName="oracle.jdbc.driver.OracleDriver"
>                                 username="TEST34" password="password"/>
>                         <writeDataToFile outputFile="perf-data.xml"/>
>                 </databaseToDdl>
>         </target>
>
> I can successfully run the writeSchemaToFile element on the same
> database schema.
>
> Obviously my the table ACCOUNT_DETAILS only has one V2_ACCOUNT_NO
> column.
>
> Any ideas why I am getting this problem?

That is odd. Could you turn on debug logging to see whether there is
something interesting in there ?

Tom

Mime
View raw message