Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
<title>Oracle | Ebean ORM</title>
<meta name="layout" content="_layout2/base-docs.html"/>
<meta name="bread1" content="Database platforms" href="/docs/database"/>
<meta name="bread2" content="Oracle" href="/docs/database/oracle"/>
<#assign n0_docs="active">
<#assign n1_platforms="active">
<#assign n2_oracle="active">
To test using Oracle set the <em>platform</em> to <code>oracle</code> in
Refer to <a href="/docs/testing">docs / testing</a> if application-test.yaml doesn't exist yet.
<pre content="yml">
platform: oracle # h2, postgres, mysql, oracle, sqlserver
ddlMode: dropCreate # none | dropCreate | migrations
dbName: test
The above will use the following defaults:
The above will use the following defaults:
<table class="compact w100">
<h2 id="ebean-oracle">ebean-oracle dependency</h2>
We can use the <code>io.ebean:ebean-oracle</code> dependency rather than <code>io.ebean:ebean</code> if we want to only
bring in the Oracle database specific platform code. Depending on <code>io.ebean:ebean</code> will bring in all platforms.
<h2 id="types">Types</h2>
UUID is not a native Oracle type and can be mapped to either BINARY(16) or VARCHAR(36)..
<h2 id="history">History support</h2>
Oracle has native SQL2011 History support.
<h2 id="starting">Docker container</h2>
We can programmatically start a docker container version of Oracle.
The below uses <code>ebean-test-docker</code> dependency which already comes with <code>ebean-test</code>.
If we do not have a dependency on <code>ebean-test</code> then add <code>io.ebean:ebean-test-docker:5.0</code>
as a dependency.
<pre content="java">
package main;
import io.ebean.docker.commands.OracleContainer;
public class Main {
public static void main(String[] args) {
OracleContainer container = OracleContainer.newBuilder("latest")
<@next_edit "DB2" "/docs/database/db2" "/docs/database/oracle/index.html"/>