This documentation relates to an earlier version of Bamboo.
View

Unknown macro: {spacejump}

or visit the current documentation home.

These instructions will help you connect Bamboo to an Oracle 11g database. Oracle 10g is no longer a supported database for use with Bamboo and the 11.2.x drivers from Oracle do not support 9i.

Bamboo provides two ways to connect to an Oracle database — via JDBC or via a datasource. JDBC is generally simpler and is the recommended method.

重要

For JDBC or JNDI connections, please ensure that the user connecting to the database will have total permissions over it. This includes DBMS_LOB package and other resources available.

(info) Please note, the JDBC driver for Oracle 11g (Oracle 11.2.0.1.0) is bundled with Bamboo. You do not have to download and install the driver.

Configuring Oracle

  1. Ensure that you have a database instance available for Bamboo (either create a new one or use an existing one).
  2. Within that database instance, create a user which Bamboo will connect as (e.g. bamboo-user). (tick) Remember this database user name, as it will be used to configure Bamboo's connection to this database.
    (info) When you create a user in Oracle, Oracle will create a 'schema' automatically.

    create user bamboo-user identified by password;
    
  3. ユーザーが次の権限を持つことを確認します :

    grant connect, resource, create table to bamboo-user;
    

Connecting via JBDC

To connect Bamboo to a Oracle database, via JDBC:

  1. Run the Setup Wizard and choose the 'Custom Installation' method.
  2. At the 'Choose a Database Configuration' step, choose 'External Database' and select 'Oracle 11g' from the list.
  3. The 'Select Database Connection' screen will appear. Select 'Direct JDBC connection'.
  4. The 'Setup JDBC Connection' screen will appear as shown in the screenshot below.
    • 'Driver Class Name' — Type the following: oracle.jdbc.driver.OracleDriver
    • 'Database URL' — Type the URL where Bamboo will access your database, e.g. jdbc:oracle:thin:@localhost:1521:SID. For syntax, please see the Oracle documentation.
    • 'Username' — Type the username that Bamboo will use to access your database.
    • 'Password' — Type the password that Bamboo will use to access your database.
  5. Select the 'Overwrite existing data' checkbox if you wish Bamboo to overwrite any tables that already exist in the database.
  6. Click 'Continue' to finish specifying your connection settings.

Screenshot 1: 'Setup JDBC Connection (Oracle)'

Connecting via a datasource

To connect Bamboo to a Oracle database, via a datasource:

  1. Configure a datasource in your application server (consult your application server documentation for details). For the syntax of the JDBC URL to use, please see the Oracle documentation.
  2. Run the Setup Wizard and choose the 'Custom Installation' method.
  3. At the 'Choose a Database Configuration' step, choose 'External Database' and select 'Oracle 11g' from the list.
  4. The 'Select Database Connection' screen will appear. Select 'Connect via a datasource (configured in the application server)'.
  5. The 'Setup Datasource Connection' screen will appear as shown in the screenshot below. In the 'JNDI name' field, type the JNDI name of your datasource, as configured in your application server.
    (warning) If java:comp/env/jdbc/DataSourceName doesn't work, try jdbc/DataSourceName (and vice versa).
  6. Select the 'Overwrite existing data' checkbox if you wish Bamboo to overwrite any tables that already exist in the database.
  7. Click 'Continue' to finish specifying your connection settings.

Screenshot 2: 'Setup Datasource Connection'

  • ラベルなし

5 Comments

  1. Anonymous

    what size do i need for std. installation?

    1. Anonymous

      File a support ticket.  We did, and they looked at us like deers in the headlights.

      The more tickets we get in to Atlassian, the more they're likely to start improving this stuff.

  2. Anonymous

    Seems that the Oracle jdbc drivers are not included if you use the WAR installation method.

  3. Anonymous

    Is there any way to create the database using DDL scripts?  I'm at a loss for how to create a large set of build server farm databases without going through this painful process every single time (of course, I could build one and do an export, and reimport for every additional database I want to build, but that strikes me as ghetto).

    1. Anonymous

      Unfortunately, there's not.  We faced the same challenge, and raised the issue with support for those EXACT same concerns.  The best thing they could do, they said, was to file it as an enhancement request.

      What we've ended up doing is what you suggested - creating the database on a test instance, exporting out the DDL as the "gold master", and reimporting it in every future buildout we needed.  Frankly, this is one of the great short-sighted visions of this product.  Large-scale, enterprise installations.