Skip to content

Upgrade to Oracle Free #1665

@gvenzl

Description

@gvenzl

Hi all (and @schauder),

This is a follow-on ticket from the discussions in #1528.

This Wednesday, Atomic Jar introduced a new Oracle Free module, which means that these lines:

DockerImageName dockerImageName = DockerImageName.parse("gvenzl/oracle-free:23-slim")
.asCompatibleSubstituteFor("gvenzl/oracle-xe");
OracleContainer container = new OracleContainer(dockerImageName)
.withDatabaseName("freepdb2")
.withReuse(true);

can now be further simplified to:

var oracle = new OracleContainer("gvenzl/oracle-free:23-slim");

The following dependency is required:

<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>oracle-free</artifactId>
    <version>1.19.2</version>
    <scope>test</scope>
</dependency>

Looking at the current code in OracleDataSourceConfiguration, I think the line withDatabase('freepdb2') can also be removed. I think we added that because the default database names between oracle-xe and oracle-free TC modules are incompatible.
Removing that line means no new database XEPDB2 will be created at container startup which will further improve overall startup time.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions