> For the complete documentation index, see [llms.txt](https://www.pranaypourkar.co.in/the-programmers-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pranaypourkar.co.in/the-programmers-guide/containers-and-orchestration/containerisation/container-images/popular-container-images/databases.md).

# Databases

## About

Containers for widely-used relational and NoSQL databases like PostgreSQL, MySQL, MongoDB, and Oracle. These images are essential for persistent data storage, transactional systems, and prototyping backend services during development and testing.

## **Oracle XE 18.4.0**

A lightweight, community-maintained container image for Oracle Database Express Edition (XE). Ideal for development and testing where full Oracle compatibility is required but the full Enterprise DB is too heavy. Official Oracle images are not published on Docker Hub, but this image (`gvenzl/oracle-xe`) is widely adopted, actively maintained, and supports multiple Oracle versions.

**Docker Pull Command:**

```bash
docker pull gvenzl/oracle-xe:18.4.0
```

**Basic Usage:**

```bash
docker run -d \
  -e ORACLE_PASSWORD=MyPassword123 \
  -p 1521:1521 \
  gvenzl/oracle-xe:18.4.0
```

**Notes:**

* Default user: `system`, password: value of `ORACLE_PASSWORD`
* Compatible with Testcontainers via `org.testcontainers:oracle-xe`
* Port `1521` is exposed for SQL\*Net connection
* For extended configuration, environment variables such as `APP_USER`, `APP_USER_PASSWORD` are supported

## **Oracle XE 18.4.0 (Slim Image)**

The slim variant of the `gvenzl/oracle-xe` image is a **reduced-size** Oracle XE container image that removes optional tools and reduces the overall disk footprint. This makes it ideal for CI pipelines, ephemeral development environments, and containerized workloads where space efficiency matters.

**Docker Pull Command:**

```bash
docker pull gvenzl/oracle-xe:18.4.0-slim
```

**Differences from Full Image:**

| Feature                     | Full Image      | Slim Variant |
| --------------------------- | --------------- | ------------ |
| Includes SQL\*Plus, APEX    | Yes             | (removed)    |
| File size                   | \~5 GB          | \~2.5 GB     |
| JDBC Connectivity           | Yes             | Yes          |
| Suitable for Testcontainers | Yes             | Yes          |
| Startup time                | Slightly slower | Faster       |

**Basic Usage:**

```bash
docker run -d \
  -e ORACLE_PASSWORD=MyPassword123 \
  -p 1521:1521 \
  gvenzl/oracle-xe:18.4.0-slim
```

**Notes:**

* Same environment variable support as the full image (`ORACLE_PASSWORD`, `APP_USER`, etc.)
* Useful when you only need basic Oracle functionality without full admin tools
* Ideal for running in low-resource CI environments


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.pranaypourkar.co.in/the-programmers-guide/containers-and-orchestration/containerisation/container-images/popular-container-images/databases.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
