Do you need a small container to test Oracle connectivity with Java drivers?
TL;DR package Java drivers and class in a container, run it with environment variables
Here we go:
1 Java class only and the possibility to run every query you like.
Want to use a different database?
Code is already prepared for it, just use different drivers in pom.xml :-) (and maybe rename the env variables)