Confluence 5.6 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
このページでは、Confluence のための Oracle データソース接続の設定方法について説明します。
bin/shutdown.sh or bin/shutdown.bat to bring Tomcat down while you are making these changes.<CONFLUENCE_HOME>/confluence.cfg.xml file and your <CONFLUENCE_INSTALLATION>/conf/server.xml file, so that you can easily revert if you have a problem.lib folder of your Tomcat installation: <TOMCAT-INSTALLATION>/lib.conf/server.xml file in your Tomcat installation. If you are running your own Tomcat instance, edit the XML file where you declared the Confluence Context descriptor.Find the Context element in the Host element:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
<Context path="" docBase="../confluence" debug="0" reloadable="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname="" />
</Context>
</Host>
Insert the DataSource Resource element into the Context element, directly after the opening <Context.../> line, before Manager, as shown here:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
<Context path="" docBase="../confluence" debug="0" reloadable="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Resource
name="jdbc/confluence"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@hostname:port:sid"
username="<username>"
password="<password>"
connectionProperties="SetBigStringTryClob=true"
maxActive="25"
maxIdle="5"
maxWait="10000"
/>
<Manager pathname="" />
</Context>
</Host>
username and password to match your Oracle login.Change the url to match the URL for your Oracle database. See how to find your Oracle URL. For example:
jdbc:oracle:thin:@example.atlassian.com:1521:confluencedb
maxActive and maxIdle values. These define the number of database connections that will be allowed at one time, and the number that will be kept open even when there is no database activity.次のデータソースを使用するように Confluence を設定します。
<CONFLUENCE_INSTALLATION>/confluence/WEB-INF/web.xml.Insert the following element just before </web-app> near the end of the file:
<resource-ref> <description>Connection Pool</description> <res-ref-name>jdbc/confluence</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
Run bin/startup.sh or bin/startup.bat to start Tomcat with the new settings.