Is there embedded DB with PL/SQL support and Java API?
Asked Answered
V

3

5

I'm looking for embedded db with Java API for testing purposes. Also i need pl/sql support because we use oracle in production and migrations are written in pl/sql.

I want to test my DAO objects and i need to create db in memory in process of unit test using migration scripts.

Now we use HSQLDB but it does't support pl/sql.

Can you recommend anything?

Vowel answered 19/11, 2010 at 15:58 Comment(0)
U
7

According to the wikipedia page about PL/SQL, the databases supporting PL/SQL are Oracle and DB2:

If these don't suit you, there's nothing else. PL/SQL is a creation of Oracle, so it's not expected to be widely spread.

Underwaist answered 19/11, 2010 at 16:19 Comment(3)
In-memory doesn't mean embedded. I mean i need to have dedicated instance of db somewhere. But i want to create an instance in runtime.Vowel
Thanks. will take a look. first look: db2 has only c++ api. oracle's site is full of unuseful information. still search for docs about solution.Vowel
I found Berkley DB. But it supports plsql only with 3rd-party modules (also has only c++ api). I think i want impossible.Vowel
C
1

You could try installing Oracle XE on your local developer workstation and Continuous Integration server. Then connect with the SYS as SYSDBA or SYSTEM user to create your schema(s) before executing your unit tests.

Clove answered 19/11, 2010 at 20:53 Comment(0)
S
1

We use Firebird's pl/sql extensively. It has an embedded server you can access through JDBC.

Stile answered 5/8, 2013 at 19:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.