To use an Oracle database for your CollabNet TeamForge data, set up the Oracle database and
tell the installer how to handle it.
- Install Oracle according to the instructions provided.
-
Under "Application settings" in the site-options.conf
file, create (or reuse) a HOST_<hostname> token to
specify the machine where the database service will run.
For example:
-
HOST_databox.supervillain.org=database
-
Under "Database tokens," configure the site to use the database
application.
- If you are using a PostgreSQL database, keep the value of the
DATABASE_TYPE variable at the default value,
postgresql.
- If you are using an Oracle database:
- Set the value of the DATABASE_TYPE variable to
oracle.
- Set the value of the DATABASE_PORT variable to
1521.
-
Set values for the other key database variables. (Replace the terms in angle
brackets with any string you want.)
-
DATABASE_NAME=<database_name>
-
DATABASE_USERNAME=<database_user>
-
DATABASE_PASSWORD=<database_password>
Note: The database password must not contain any special characters. Only
alphanumerics will work.
-
Make sure your database uses UTF8 or AL32UTF8 encoding.
This is needed to support users in Asian languages.
For information about
discovering and changing the database encoding, see this Oracle knowledge base
article.
-
Connect to your Oracle database.
-
SQL> connect
<adminusername>@<db_name>/<adminpassword>
as sysdba
-
Create the database user and password you will use to connect from CollabNet
TeamForge to Oracle.
SQL> create user <sf user> identified by
<sf passwd> default tablespace <your
tablespace> temporary tablespace <temporary
tablespace>;
User created.
-
Grant permissions to the user that you just created.
-
SQL> grant unlimited tablespace to <sf
user>;
-
SQL> grant create snapshot to <sf
user>;
-
SQL> grant create cluster to <sf
user>;
-
SQL> grant create database link to <sf
user>;
-
SQL> grant create procedure to <sf
user>;
-
SQL> grant create sequence to <sf
user>;
-
SQL> grant create synonym to <sf
user>;
-
SQL> grant create trigger to <sf
user>;
-
SQL> grant create type to <sf
user>;
-
SQL> grant create view to <sf
user>;
-
SQL> grant query rewrite to <sf
user>;
-
SQL> grant alter session to <sf
user>;
-
SQL> grant create table to <sf
user>;
-
SQL> grant create session to <sf
user>;
-
SQL> exit
Note: The CollabNet
TeamForge installer
creates the tables and default values for you.