Documentation for JIRA 4.1. Documentation for other versions of JIRA is available too.
These instructions will help you connect JIRA to an Oracle 10g or 11g database. Oracle 9i is no longer a supported database for use with JIRA and the 11.2.x drivers from Oracle do not support 9i.
On this page:
Please note that a number of the Oracle server versions cannot be used with JIRA or are inherently unstable. The known issues with Oracle servers are as follows:
If you are already using JIRA, create an export of your data as an XML backup. You will then be able to transfer data from your old database to your new database, as described in Switching databases.
SELECT value$ FROM sys.props$ WHERE name = 'NLS_CHARACTERSET'
jirauser
).Skip this step if you are using JIRA Standalone, as JIRA Standalone includes the driver.
ojdbc5.jar
for JDK 1.5, ojdbc6.jar
for JDK 1.6) to the lib/
directory.Please note that a number of the Oracle driver versions cannot be used with JIRA or are inherently unstable. The known issues with Oracle drivers are as follows:
The JIRA Configuration Tool is a GUI tool only available if you are using JIRA Standalone distribution. If you are running a WAR-EAR distribution of JIRA, or have a text-only connection to the JIRA server, you will need to configure the files manually.
config.bat
in the bin
subdirectory of the JIRA Installation Directory.config.sh
in the bin
subdirectory of the JIRA Installation Directory.The Configuration Tool will display your current configuration settings if any are already set.
Please Note: You may need to set the JAVA_HOME
environment variable to run the JIRA Configuration Tool. See Installing Java for details.
Congratulations — you have finished!
Skip this step if you used the JIRA Configuration Tool (see above).
In an editor, open conf/server.xml
(JIRA Standalone) or conf/Catalina/localhost/jira.xml
(regular Tomcat). Locate the section:
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" username="sa" password="" driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:${catalina.home}/database/jiradb" minEvictableIdleTimeMillis="4000" timeBetweenEvictionRunsMillis="5000" maxActive="20" />
(Note: if you can't find a section like this at all, you've probably got the wrong file. Search for mentions of 'jira' in the files under conf/
).
Replace this section with the following:
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" username="<username>" password="<password>" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@<hostname>:<port number>:<SID>" connectionProperties="SetBigStringTryClob=true" maxActive="20"/>
Customise the username, password, database server hostname, port number and SID (Oracle 'System Identifier').
If you were previously using hsqldb make sure you have removed have the minEvictableIdleTimeMillis
and timeBetweenEvictionRunsMillis
attributes. They will slow JIRA down if present.
If you are deploying JIRA on another application server, you will need to build a JIRA Webapp from the WAR/EAR distribution. Refer primarily to the application server setup guides for details of configuring your application server.
atlassian-jira/WEB-INF/classes/entityengine.xml
(if you are using JIRA Standalone) or edit-webapp/WEB-INF/classes/entityengine.xml
(JIRA WAR/EAR), and make the following changes:
field-type-name
attribute to oracle10g
. If you forget to do this and start JIRA, it may create database tables incorrectly. See this page if this happens to you.schema-name="PUBLIC"
attribute.You should now have an application server configured to connect to a database, and JIRA configured to use the correct database type. If you are using JIRA Standalone, start it up and watch the logs for any errors. If you are using the JIRA WAR/EAR distribution, rebuild and redeploy the webapp in your application server.
Have experiences to share with Oracle and JIRA? We welcome your thoughts. Please see the user-contributed Oracle notes.