Create Oracle databases manuallyCreate Oracle databases with SQL scripts instead of using the IBM Connections database wizard.
Before you beginFollow 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.
You must specify the Unicode AL32UTF8 character set.
About this taskThis 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...
- Log in with the same user ID that you used to install the Oracle database system.
- 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.
- 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.
- Run SQL Plus by entering the following command:
- 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.
- Enter the Oracle user ID and password.
- For each application, change to that application's SQL scripts directory and enter the following command to create the application's database tables:
- 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:
- Activities: OAUSER
- Blogs: BLOGSUSER
- Bookmarks: DOGEARUSER
- Communities: SNCOMMUSER
- Files: FILESUSER
- Forums: DFUSER
- Home page: HOMEPAGEUSER
- Profiles: PROFUSER
- Wikis: WIKISUSER
- 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.
- (Home page only.) Run the following command:
- Optional: (Dogear only.) Run the following command:
- This script creates a job to collect histogram statistics.
- You must run this command while logged in with the SYS ID.
- Run the following command to grant access privileges for each application:
- Close the SQL Plus window.
Parent topicCreate databases with SQL scripts