I have an Oracle database express container running on my local computer. I am getting an error message when I run the migration command from my build.gradle file. The error says no database found to handle url. My build.gradle file is shown below.
Comments
4 comments
-
Hi @pdrake1
Thank you for reaching out on the Redgate forums and sorry to hear about your build error.
The "No Database found to handle..." error is commonly associated with required dependencies not being included in the Gradle task.
The provided file looks OK at first review, you have the flyway-database-oracle dependency declared which would be required for the connection.
Two immediate concerns are if the dependencies are loading in as expected & if there is any kind of network concern blocking access to the dB/port when this is running
* Are you able to enable any full/verbose logging on your pipeline to verify the dependencies do all load in as expected. Can you review to see if there is any further errors being generated.
* Are you also able to navigate to the localhost:3000/XEPDB1 database outside this pipeline? To confirm that it exists, is accessible, and the user is able to log into it
-
Ok first off thank you so much for replying, second I know for a fact that the port/connection isn't being blocked because I am able to access the database through the database tools integrated in intellij. So the next step is to figure out which dependencies are not being loaded correctly and I would like some input as to how best to go about doing that.
-
Ok I finally figured it out. It was the fact that I did not have a buildscript section. Thank you
-
Thank you for the update and very glad to hear you found a resolution with the missing buildscript section.
Add comment
Please sign in to leave a comment.