This documentation applies to Confluence 2.1.x or older. If you have Confluence 2.2.x or newer, please refer to Database Setup for Oracle}

Please note, we strongly recommend you install Confluence on a schema in a brand new database on your Oracle server. If this cannot be accommodated, be aware that Confluence may not install or operate properly. For more details on this limitation please see the issue filed here.

This installation assumes you are using the standalone version of Confluence and Oracle 9i. We have not tested against older versions of Oracle, but have been told that it should work against Oracle 8i provided you use the latest 9i drivers.

Note that some users have found that 9.0.1.0 does not work, while 9.0.2.6 does.

If you are using 10g you should use the 10.1.0.4.0 drivers – the 10.1.0.3.0 drivers don't work when using a Tomcat 5.5 datasource, as the connection returned is a T4CConnection instead of the OracleConnection which Spring is expecting.

1. Adding a datasource to Tomcat

Versions before 5.5
Versions 5.5 and later

In Tomcat 5.5 the configuration format has changed. The data source resource should be defined like this:

<Resource
name="jdbc/Confluence"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@<hostname>:<port>:<sid>"
username="<username>"
password="<password>"
connectionProperties="SetBigStringTryClob=true"
maxActive="25"
maxIdle="5"
maxWait="10000"
/>

2. Configure the Confluence to be aware of this datasource

3. Confluence setup wizard