Preparing Oracle Database for Installation
This page describes how to use codebeamer 8.0 or higher with an Oracle 19.3c database.
Prerequisites
To use this document, familiarity is need with Oracle databases and with database administration.
For the installation/migration, Oracle DBA permissions are needed. Backup all data! Before doing anything, backup the existing database. Also ensure that nobody uses the database during migration, as this may result in data loss.
Prepare new Oracle Schema
- codebeamer requires UTF8 (AL32UTF8) encoding. Verify the encoding of the database by executing the following query as 'sys'user:
SQL> SELECT value$ FROM sys.props$ WHERE name = 'NLS_CHARACTERSET';
VALUE$
-----------------------------------------------
AL32UTF8
- Carefully plan and design the database tablespace allocation schema. Decide which tablespace to use for codebeamer.
For extensive documentation, see: http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/tspaces.htm#636
In this guide, the USERS tablespace is used.
- Create the cbroot database user. This must be executed by a sys user.
- Run sqlplus and connect as "sys as sysdba" to execute following script (use desired tablespace instead of USERS):
- Set up full-text indexing. This is a mandatory prerequisite of a successful database preparation. Run the below SQL scripts before starting codebeamer:
GRANT EXECUTE ON DBMS_LOB TO <database user>;
GRANT EXECUTE ON CTXSYS.CTX_DDL TO <database user>;
For details, see Database Specific Configurations
- It must be ensured that codebeamer is not running.
- Edit the configuration file: <cb-installation-dir>/config/configuration.properties
database.driver=oracle.jdbc.driver.OracleDriver
database.connectionURL=jdbc:oracle:thin:@//localhost:1521/ORCLCDB
database.username=user
database.password=pass
database.passwordStorageType=PLAIN
- Start codebeamer.
The database tables are created automatically upon the first start of codebeamer. This startup takes significantly longer than subsequent startups.
Upgrading an Existing codebeamer Oracle Database to a Newer codebeamer Version
Only the new codebeamer installation is to be configured to access the existing Oracle database (see above). All necessary database upgrades are automatically executed when the new codebeamer instance is started for the first time.
To migrate a codebeamer schema from one Oracle instance to another, export the schema from the old instance and import at the new instance. Then (re-)configure codebeamer to access the new instance.
Backup all data!
Before doing anything, backup the existing database. Also ensure that nobody uses the database during migration, as this may result in loss of data.
When upgrading an existing database, make sure the old codebeamer installation is shut down.
After the upgrade, it is not simple to go back to the old codebeamer version because that will most probably not run with the upgraded database. The only safe way to revert the upgrade is to restore the old database from a backup.
When upgrading to version 10.0.x and above, make sure to execute the following command necessary for the data migration procedure, otherwise the upgrading procedure will fail.
GRANT EXECUTE ON SYS.DBMS_CRYPTO TO {codeBeamer Database User}