Create Oracle databases manually 

Create Oracle databases with SQL scripts instead of using the IBM Connections database wizard.


Before starting

Follow this procedure if you do not want to use the database wizard to create your databases.

The SQL scripts are located in a compressed file called connections.sql.zip|tar, located in the Lotus_Connections_install/LotusConnections/connections.sql directory of the IBM Connections set-up directory or installation media. Extract this file before proceeding. When extracted, the SQL scripts are located in the LotusConnections/connections.sql/<application_subdirectory> directory of the IBM Connections set-up directory or installation media, where <application_subdirectory> is the directory that contains the SQL scripts for each application.

If the database server and IBM Connections are installed on different systems, copy the SQL scripts to the system that hosts the database server.

Note:

You must specify the Unicode AL32UTF8 character set.


About this task

This task describes how to use SQL scripts to create Oracle databases for IBM Connections applications. Complete this task only if you do not want to use the database wizard.

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

To manually create the application database tables...


Procedure

  1. Log in with the same user ID that you used to install the Oracle database system.

  2. Create an Oracle user ID with system database administrator privileges that you can use to manage the database tables. Alternatively, use an existing ID that has administrative privileges, such as SYS.

  3. Set the ORACLE_SID.

      If you created multiple databases, specify the database on which to install the tables by providing the SID for that database.

  4. Run SQL Plus by entering the following command:

      sqlplus /NOLOG

  5. Log in as an administrator with the sysdba role by entering the following command:

      connect as sysdba

      Note: If not logged in as sysdba, the statistics gathering job for the Bookmarks database is not created or correctly scheduled. As a result, database performance is impacted.

  6. Enter the Oracle user ID and password.

  7. For each application, change to that application's SQL scripts directory and enter the following command to create the application's database tables:

      @<application_subdirectory>/createDb.sql <password>

      Notes:

      • Repeat this step for each IBM Connections application that you plan to install.

      • Begin the command with the @ symbol.

      • The createDB script creates a dedicated user ID for the JDBC connector for an application database. Later, when you run the IBM Connections installation wizard, provide the user ID that you specify in this step. You can specify one of the following default user IDs:

          Notes:

          • Each of these default user IDs has a narrower set of privileges than an administrative user ID.

          • You can change the passwords for these database users later in Oracle Enterprise Manager Console. If you change the passwords there, also change them in the J2C authentication alias settings in the WAS Integrated Solutions Console.

  8. (Home page only.) Run the following command:

      @<application_subdirectory>/initData.sql

  9. Optional: (Dogear only.) Run the following command:

      @<application_subdirectory>/createHistogramStatsJob.sql

      Note:

      • This script creates a job to collect histogram statistics.

      • You must run this command while logged in with the SYS ID.

  10. Run the following command to grant access privileges for each application:

      @<application_subdirectory>/appGrants.sql

  11. Close the SQL Plus window.


Parent topic

Create databases with SQL scripts


   

 

});

+

Search Tips   |   Advanced Search