Connect to the database as a DBA.

1-12 Oracle Fusion Middleware Installation Guide for Oracle Enterprise Repository

1.6.4.3 Create a Database

To create the required database before installing Oracle Enterprise Repository, perform the following steps:

1. Open the DB2 Command Editor.

2. Run db2 -tv to start the DB2 shell command prompt with semicolon command

termination.

3. Create a database named OER that includes bufferpools and tablespaces.

a. Name the bufferpools as: OER32kDataBP, OER32kIndxBP, OER32kBlobBP,

and OER32kTempBP. b. Create three large tablespaces named: OERDataTS, OERIndxTS, and OERLobTS with at least 300M of available space.

c. Create one temporary tablespace named: OERTempTS with at least 100M of

available space. Example 1–1 Example Database Create Script CREATE DATABASE OER USING CODESET UTF-8 TERRITORY US; -- Connect to the OER database -- Replace user and password with the user who would own the OER schema. CONNECT TO OER USER user USING password; -- Create the OER 32K Buffer Pools CREATE BUFFERPOOL OER32KDATAbp SIZE 1000 PAGESIZE 32K; CREATE BUFFERPOOL OER32KINDXbp SIZE 1000 PAGESIZE 32K; CREATE BUFFERPOOL OER32KBLOBbp SIZE 1000 PAGESIZE 32K; CREATE BUFFERPOOL OER32KTEMPbp SIZE 1000 PAGESIZE 32K; CONNECT RESET; -- Same user and password replacements as before are required. CONNECT TO OER USER user USING password; CREATE LARGE TABLESPACE oerdatats PAGESIZE 32 K MANAGED BY DATABASE USINGfile optIBMDB2dataoerdatats.dat 300M extentsize 512k BUFFERPOOL OER32KDATAbp; CREATE LARGE TABLESPACE oerindxts PAGESIZE 32 K MANAGED BY DATABASE USINGfile optIBMDB2dataoerindxts.dat 300M extentsize 512k BUFFERPOOL OER32KINDXbp; CREATE LARGE TABLESPACE oerlobts PAGESIZE 32 K MANAGED BY DATABASE USINGfile optIBMDB2dataoerlobts.dat 300M extentsize 512k BUFFERPOOL OER32kBLOBbp; -- Create the OER Temp Tablespace CREATE TEMPORARY TABLESPACE oertempts PAGESIZE 32 K MANAGED BY DATABASE USINGfile optIBMDB2dataoertempts.dat 128M BUFFERPOOL OER32KTEMPbp;

1.6.4.4 Tune the Database

To configure the tuning parameters, perform the following steps in the Configuration Advisor Wizard:

1. In the DB2 Control Center, click Tools, Wizards, and then select Configuration

Advisor . The Configuration Advisor Wizard - Introduction page is displayed.

2. Select the new Oracle Enterprise Repository database, and click Next. The

Configuration Advisor Wizard - Server page is displayed. Note: The tablespace names OERDataTS, OERIndxTS, and OERLobTS are necessary for the Oracle Enterprise Repository installation process.