Documentation for JIRA 5.2. Documentation for other versions of JIRA is available too. 
![]()
These instructions will help you connect JIRA to an Oracle 11g database.
注意:
他のサーバーへの JIRA の移行 を実行する場合は、XML backup としてデータをエクスポートしてください。その後、 Switching databases で説明されているように、元のデータベースから新しいデータベースへデータを移行できます。
On this page:
Within that database instance, create a user which JIRA will connect as (e.g. jiradbuser). Remember this database user name, as it will be used to configure JIRA's connection to this database in subsequent steps.
When you create a user in Oracle, Oracle will create a 'schema' automatically.
When you create a user, the tablespace for the table objects must be specified.
create user <user> identified by <user_pass> default tablespace <tablespace_name> quota unlimited on <tablespace_name>;
ユーザーが次の権限を持つことを確認します :
grant connect to <user>; grant create table to <user>; grant create sequence to <user>; grant create trigger to <user>;
Skip this step if you installed a 'Recommended' distribution of JIRA, which (unlike JIRA WAR) includes the Oracle JDBC driver.
ojdbc5.jar for JDK 1.5, ojdbc6.jar for JDK 1.6) to the lib/ directory.Oracle JDBC ドライバーのバージョンの多くは JIRA で使用できない、または、本質的に不安定なものです。Oracle ドライバーには次のような既知の問題があります :
Oracle データベースに接続するために JIRA サーバーを設定する方法は2つあります。
注意:
The JIRA Configuration Tool is not available with JIRA WAR distributions.
config.bat in the bin sub-directory of the JIRA Installation Directory.config.sh in the bin sub-directory of the JIRA Installation Directory.JAVA_HOME environment variable to run the JIRA Configuration Tool. See Installing Java for details.To connect JIRA to Oracle using the JIRA Configuration Tool:
dbconfig.xml file in your JIRA Home Directory.<connection-properties>SetBigStringTryClob=true</connection-properties> element to your dbconfig.xml file), these custom settings will be deleted upon clicking the 'Save' button and you will need to reinstate them manually.Congratulations — you have finished! Proceed to 'Next Steps' below.
Edit the dbconfig.xml file at the root of your JIRA Home Directory.
If this file does not exist, create the file, copy and paste the example XML code below into this file and edit the pasted XML as required.
注意:
Ensure that the <database-type/> element's content specifies your type of database, as shown below. If you forget to do this and you start JIRA, your database tables may be created incorrectly. Refer to our Incorrect database type specified documentation if this happens to you.
When editing your
dbconfig.xml file, escape any '&' characters by adding 'amp;' to the end of each one.
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>oracle10g</database-type>
<jdbc-datasource>
<url>jdbc:oracle:thin:@dbserver:1521:ORCL</url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<username>jiradbuser</username>
<password>password</password>
<pool-min-size>20</pool-min-size>
<pool-max-size>20</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<pool-max-idle>20</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
</jdbc-datasource>
</jira-database-config>
注意:
On a default Oracle server installation, your <url/> element's content might look similar to — jdbc:oracle:thin:@dbserver:1521:ORCL
<jdbc-datasource/> beginning with pool in the dbconfig.xml file above, see Tuning Database Connections.dbconfig.xml file (at the root of your JIRA Home Directory). 注意:
<connection-properties>SetBigStringTryClob=true</connection-properties> as a child of the </jdbc-datasource> element in your dbconfig.xml file. Adding this connection property may overcome these problems. Be aware that you will need to restart JIRA for this setting to take effect.ここまでで、Oracle データベースに接続するための JIRA の設定が完了したはずです。これで、起動できます!
JIRA and Oracle を参照してください。