Last modified by Eleni Cojocariu on 2026/11/25 14:48

Show last authors
1 To configure XWiki to store its data in an Oracle database running in a virtual machine, once you have [[installed and configured a servlet container>>doc:documentation.xs.admin.installation.servlet-container.WebHome]] with the [[XWiki WAR>>doc:documentation.xs.admin.installation.methods.install-xwiki-war.WebHome]] deployed:
2
3 1. Install [[VirtualBox>>https://www.virtualbox.org/]] on the host machine.
4 1. Create a virtual machine and install a [[supported Oracle Database version>>dev:Community.SupportStrategy.DatabaseSupportStrategy]] in it.
5 1. Set the virtual machine's network adapter to "Bridged Adapter".
6 1. Start the virtual machine and note the IP address it takes on your network.
7 1. Create the ##xwiki## user, grant its privileges and give it a tablespace quota inside the virtual machine, as described in [[Configure Oracle Manually>>doc:documentation.xs.admin.installation.database.configure-oracle-manually.WebHome]].
8 1. Copy the Oracle JDBC driver JAR into the ##WEB-INF/lib## directory of the XWiki web application on the host machine, and activate the "##Oracle configuration##" section of its ##WEB-INF/hibernate.cfg.xml## file, as described in the same page.
9 1. Set the connection properties to the virtual machine's IP address and to the Oracle service name.(((
10 {{code language="xml"}}
11 <property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.0.49:1521/XEPDB1</property>
12 <property name="hibernate.connection.username">xwiki</property>
13 <property name="hibernate.connection.password">xwiki</property>
14 {{/code}}
15 )))
16 1. Start XWiki.
17 1. Open your wiki in a browser. XWiki connects to the database in the virtual machine, creates its tables on first start, and serves the wiki without a database error.

Get Connected