What is Oracle Database Free?
Sometimes the requirement is simply "Oracle": a vendor app certified against it, a team fluent in PL/SQL, an integration test suite that needs the real thing. Oracle Database Free is Oracle’s answer - the genuine database engine (the 26ai line), licensed under the Free Use Terms and Conditions, which explicitly allow internal production use, not just dev and test.
The catch is enforced by the software, not a sales call: 2 CPU cores, 2 GB of memory, 12 GB of user data, one instance per host. Within that envelope it is a full Oracle: PL/SQL, partitioning, JSON-relational duality, the works.
This template runs the gvenzl/oracle-free image (maintained by Oracle’s own database product manager, redistribution blessed by the FUTC): multi-arch, faster startup than the official build, and an app schema user bootstrapped in FREEPDB1 on first start. Internal-only, 20 GB volume, two passwords.
What you get
- Real Oracle Database (26ai line) - PL/SQL, JSON duality, partitioning
- FUTC license: production use is explicitly permitted, free
- Caps enforced in software: 2 cores, 2 GB RAM, 12 GB user data
- Multi-arch image with app user bootstrap (FREEPDB1)
- Faststart image variant available for quick cold starts
- Internal-only single node + 20 GB volume
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
oracle | Oracle Database Free (:1521, service FREEPDB1) | no (by design) |
Before you deploy
ORACLE_PASSWORDSYS / SYSTEM / PDBADMIN password
APP_USER_PASSWORDpassword for the bootstrapped app schema user in FREEPDB1
Sizing and billing
The database caps itself at 2 GB SGA+PGA; the third gigabyte covers listener, server processes, and OS overhead. First start initializes the database onto the volume and takes a few minutes - later starts are quick.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 19.53 GiB of volumes cost $0.15 per GiB a month ($2.93/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| AWS RDS for Oracle | SE2 (license incl.), db.t3.small | $57/mo | 2 vCPU / 2 GiB + 20 GiB storage, Single-AZ |
| OCI Base Database | Standard, ECPU | $172/mo | minimums: 4 ECPUs + 256 GB storage, license included |
| Oracle Autonomous DB | Serverless (always-on) | $493/mo | 2-ECPU minimum with auto-stop off; serverless pays off only with real idle time |
OCI also has an Always Free tier (the honest budget option) - but it lives on OCI. This template puts the same free engine next to your apps. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Is Oracle Database Free actually legal for production?
Yes - the Free Use Terms and Conditions permit "running the Programs for your own internal business operations" alongside dev, test, and demo use. No support contract, no fees, and the resource limits are enforced by the software itself rather than by audits.
What happens when I hit the 12 GB data limit?
The database raises ORA-12954 and stops accepting new data - it does not bill you, it just stops. If your data outgrows Free, that is the moment to discuss a real Oracle license (and a bigger plan), or to ask whether Postgres could take the workload.
Why the gvenzl image instead of Oracle’s official one?
It is maintained by Oracle’s database product management, the FUTC explicitly permits redistribution, and it is better operationally: amd64 + arm64, slimmer variants, faststart builds, and APP_USER bootstrap. The template works with the official container-registry.oracle.com/database/free image too - swap the image and use ORACLE_PWD.
How do applications connect?
From the same Lyngbak project: oracle:1521/FREEPDB1 - e.g. jdbc:oracle:thin:@//oracle:1521/FREEPDB1 with the app user, or sqlplus app/<password>@//oracle:1521/FREEPDB1. The instance is private with no ingress route.
How does this compare to Oracle’s cloud database pricing?
OCI’s always-on managed Oracle offerings meter ECPUs and storage by the hour. Oracle even has an Always Free tier on OCI - the honest comparison - but it ties you to OCI; this template puts the same free engine next to your apps on your platform.