hi everyone,
according to Oracle-XE Module - Testcontainers for Java , i’m trying to create an Oracle Container in Quarkus using a valid docker image.
i tried with “store/oracle/database-instantclient:12.2.0.1” and “store/oracle/database-enterprise:12.2.0.1” but nothing.
Does a valid docker image for oracle-xe exist?
the error i get is :
SQL State : 66000
Error Code : 12505
Message : Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
So maybe with a recent docker image i can avoid this error
According to the docs you shared (Oracle-XE Module - Testcontainers for Java), this code should work for Oracle XE:
OracleContainer oracle = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart")
.withDatabaseName("testDB")
.withUsername("testUser")
.withPassword("testPassword")
Could you verify that?