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

隐身守侯 提交于 2019-12-01 19:47:55

问题


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?


回答1:


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

  • Embedded DB2
  • Embedded Oracle

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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/4226746/is-there-embedded-db-with-pl-sql-support-and-java-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!