Migrating Oracle database schemas for CR2

Run SQL scripts to update IBM® Connections 5.5 or 5.5 CR1 database schemas to CR2 in an existing IBM WebSphere® Application Server and Oracle database environment.

Before you begin

Before applying updates, back up your databases. For more information, see Backing up IBM Connections.

Ensure that you have installed and configured all supporting software for version 5.5.

About this task

This topic describes how to update IBM Connections 5.5 databases to CR1

Notes:
  • After you run each command, examine the output of the command for error messages. If you find errors, resolve them before continuing with the update process.
  • To improve readability, some commands and file paths in this topic are displayed on separate lines. Ignore these formatting conventions when you enter the commands.

To update databases manually, complete the following steps:

Procedure

  1. From the 5.5 package, copy the 55cr2-database-updates.zip file to a temporary directory on your database server.
  2. Extract the SQL scripts pertinent to your version and database platform, preserving the folder structure.
  3. Log in to the WebSphere Application Server Integrated Solutions Console on your Deployment Manager.
  4. Go to Applications > Application types > WebSphere enterprise Applications.
  5. Stop all IBM Connections applications.
  6. Ensure that the Oracle driver on your system has the same version number as your Oracle database server.
  7. Change to the folder where the SQL scripts were extracted for your version of Connections and the database product you are using.
    If you preserved the folder structure of the .zip file, the SQL scripts are organized by version number.
    • Scripts for updating 5.5 databases are in the 55cr1-database-updates\From-55 folder.
  8. Skip this step if you are updating databases from 5.5 CR1 to CR2.

    If you are updating databases from 5.5, navigate to the oracle folder from the 55cr2-database-updates\From-55 folder.

    1. For each application, enter the following command and then run the appropriate scripts:

      sqlplus /as sysdba

      Note: To capture the output of each command to a log file, run the following commands before starting this task:

      sql> spool on

      sql> spool output_file

      where output_file is the full path and name of the file where the output is captured.

      When you have completed this task, run the following command: sql> spool off

    2. Enter the following commands one at a time to update the Homepage, Activities, Files, Mobile, and Wikis databases to 5.5 CR2:
      
      @55-CR1-homepage-oracle.sql
      @55-CR2-activities-oracle.sql
      @55-CR2-files-oracle.sql
      @55-CR2-homepage-oracle.sql
      @55-CR2-mobile-oracle.sql
      @55-CR2-wikis-oracle.sql
      
  9. Skip this step and go to What to do next if you updated your databases from 5.0 in the previous step.

    If you are updating databases from 5.5 CR1, navigate to the oracle folder from the 55cr2-database-updates\From-55 CR1 folder.

    1. For each application, enter the following command and then run the appropriate scripts:

      sqlplus /as sysdba

      Note: To capture the output of each command to a log file, run the following commands before starting this task:

      sql> spool on

      sql> spool output_file

      where output_file is the full path and name of the file where the output is captured.

      When you have completed this task, run the following command: sql> spool off

    2. Use these scripts to update the Activities, Files, Homepage, Mobile, and Wikis databases to 5.5 CR2:
      
      @55-CR2-activities-oracle.sql
      @55-CR2-files-oracle.sql
      @55-CR2-homepage-oracle.sql
      @55-CR2-mobile-oracle.sql
      @55-CR2-wikis-oracle.sql
      

What to do next

Check that all the databases are working correctly.