You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version and edition of Flyway are you using?
5.0.5
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Judging by the source code - yes
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Oracle 12c
Which operating system are you using?
Windows 7
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Set up variable TNS_ADMIN to location of my tnsnames.ora file
Run flyway migrate with JDBC URL set tu use TNS name of my DB connection
Creates an instance of appropriate sublcass of class org.flywaydb.core.internal.database.Database (in this case org.flywaydb.core.internal.database.oracle.OracleDatabase).
However, when using TNS, the database connection cannot be opened (step 1) when System property "oracle.net.tns_admin" is not set - and that property is set based on TNS_ADMIN environment variable in step 3.
from constructor of class org.flywaydb.core.internal.database.oracle.OracleDatabase to the beginning of method org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(Configuration, boolean)
The text was updated successfully, but these errors were encountered:
Which version and edition of Flyway are you using?
5.0.5
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Judging by the source code - yes
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Oracle 12c
Which operating system are you using?
Windows 7
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
What did you expect to see?
Message about successfully completed migration
What did you see instead?
ERROR: Unable to obtain connection from database
What do you suspect happened?
Method org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(Configuration, boolean):
However, when using TNS, the database connection cannot be opened (step 1) when System property "oracle.net.tns_admin" is not set - and that property is set based on TNS_ADMIN environment variable in step 3.
What solution do you propose?
I would propose moving this code:
from constructor of class org.flywaydb.core.internal.database.oracle.OracleDatabase to the beginning of method org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(Configuration, boolean)
The text was updated successfully, but these errors were encountered: