Closed MisterCool closed 3 years ago
is oracle DB starting normally? you may set debug level and take a look on container startup for more info
Log start DB. Seems to be ok. I tried other docker images but error was the same
19:20:44.816 [Test worker] INFO o.t.utility.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
19:20:45.131 [Test worker] INFO o.t.utility.RegistryAuthLocator - Credential helper/store (docker-credential-desktop) does not have credentials for index.docker.io
19:20:47.133 [Test worker] INFO o.testcontainers.DockerClientFactory - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
19:20:47.134 [Test worker] INFO o.testcontainers.DockerClientFactory - Checking the system...
19:20:47.260 [Test worker] INFO o.testcontainers.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0
19:20:47.407 [Test worker] INFO o.testcontainers.DockerClientFactory - ✔︎ Docker environment should have more than 2GB free disk space
19:20:47.818 [Test worker] INFO c.p.t.o.EmbeddedOracleBootstrapConfiguration - Starting oracle server. Docker image: sath89/oracle-12c
19:20:47.889 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Creating container for image: sath89/oracle-12c:latest
19:20:48.001 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Starting container with ID: 48ae46903b2b9859f5b765d52cd89fe5366226f478623ba5cfaaa6aff660f55c
19:20:48.553 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Container sath89/oracle-12c:latest is starting: 48ae46903b2b9859f5b765d52cd89fe5366226f478623ba5cfaaa6aff660f55c
19:20:48.603 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Waiting for database connection to become available at jdbc:oracle:thin:system/oracle@localhost:55264:xe using query 'SELECT 1 FROM DUAL'
19:24:48.626 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Container is started (JDBC URL: jdbc:oracle:thin:system/oracle@localhost:55264:xe)
19:24:48.633 [Test worker] INFO 🐳 [sath89/oracle-12c:latest] - Container sath89/oracle-12c:latest started in PT4M0.792774S
19:24:48.634 [Test worker] ERROR c.p.t.o.EmbeddedOracleBootstrapConfiguration - sath89/oracle-12c:latest startup time is 240 seconds
19:24:48.635 [Test worker] INFO c.p.t.o.EmbeddedOracleBootstrapConfiguration - Started oracle server. Connection details: {embedded.oracle.port=55264, embedded.oracle.host=localhost, embedded.oracle.database=xe, embedded.oracle.user=system, embedded.oracle.password=oracle}, JDBC connection url: jdbc:oracle://localhost:55264/xe
try to join to DB in debug , check if the connection could be acquired outside your test to oracle DB, with some DB client
I tried to connect to DB throw DB client
so what is a resolution for ORA-12526?
run script alter system enable restricted session
I do
as a result, the initial error is repeated
interesting, but it's hard to determine whether it's container issue or DB settings itself, you may also try to exec inside docker container in debug, and talk to DB directly on container to understand that DB is healthy at least
Thank you @MisterCool. Closing this ticket. Please instead track issue progress in https://github.com/oracle/docker-images/issues/1620.
With oracle xe 11 its works normal. I tried to run with oracle12c(docker image sath89/oracle-12c) in container. But I have the next error. When I use IDE for connecting to database I have the same error(The Network Adapter could not establish the connection)