DbMaintain / dbmaintain

DEPRECATED: DbMaintain enables automatic roll-out of updates to a relational database
https://dbmaintain.github.io
Apache License 2.0
17 stars 12 forks source link

Error When executing repeatable scripts in an AntTask. #19

Closed darkio14 closed 5 years ago

darkio14 commented 8 years ago

I have this error when execute the Ant Task: "UpdateDataBase".

this is my task . that call the "dbmaintain-anttasks.xml"

  <updateDatabase scriptLocations="scripts" autoCreateDbMaintainScriptsTable="true">
     <database driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.2.3:1521:CLS" userName="admin" password="admin123" schemaNames="PRUEBA" />

And I get this Error only in the repeatable scripts. Incremental works fine!

Error while executing script 20-repeatable/@PRUEBA/procedures/store_procedure.prc: Error executing script 20-repeatable/@PRUEBA/procedures/store_procedure.prc. No database initialized with the name PRUEBA

It's the same when i call the "dbmaintain-default.properties"

database.driverClassName=oracle.jdbc.driver.OracleDriver database.url=jdbc:oracle:thin:@192.168.2.2:1521:CLS database.userName=admin database.password=admin123 database.dialect=oracle database.schemaNames=PRUEBA