-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Oracle-xe with testcontainers - Could not obtain JDBC connection #7589
Unanswered
pinkis1010
asked this question in
Q&A
Replies: 1 comment · 1 reply
-
Hi, please upgrade to Testcontainers for Java latest version (1.19.0). Next time consider sharing a project that reproduces the issue. Some notes:
|
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
Thanks @eddumelendez for the reply. I changed conatiner(1.19.0) & image version("gvenzl/oracle-xe:21.3.0-faststart). Now Database is starting & exiting immediately. can see the logs like this - connection can be kept alive for 3 MINUTES How do i increase this time ? Could see multiple root cause but not sure which is the actual culprit. Will also try with DynamicPropertySource method
|
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a spring boot app and want to integrate testconatiner with oracle-xe for integration testing. I am using windows OS. I had to install the Docker Desktop to make the conatiner start but in the end its giving could not obtain JDBC connection.
I dont have any clue why it's happening. I am new to docker & containers
Any help would be much appreciated.
gradle-
OracleTestContainer.java
AbstarctTest.java
test class
application.yml
Environment Variables =
Logs
Beta Was this translation helpful? Give feedback.
All reactions