Use this task to create an Oracle database for Business Process
Choreographer.
Steps for this task
- Install the Oracle server on the computer that hosts the database.
Be sure that you are using the 32-bit Oracle libraries that are located in
the lib32 subdirectory.
- On Linux® and UNIX® systems, make sure that the environment
variables ORACLE_BASE and ORACLE_HOME are set for the root
user.
- Check the class path to be sure that your JDBC driver is using
the ojdbc14.jar file.
- On Linux and UNIX systems, create soft links to the
following Oracle libraries in the /usr/lib directory:
- For Oracle 10g: Link to: libclnt.so.10.1.
- For Oracle 9i: Link to: libwtc9.so, libclntsh.so.9.0,
and libocijdbc9.so.
- Create an Oracle database using the Database Configuration Assistant,
for example with the name BPEDB. There is no script
to quickly create a default Oracle database for Business Process Choreographer.
Make sure that you select the JServer option for the database. The database
must be created to have a Unicode code page.
- Start the Oracle listener by entering the command:
lsnrctl start
- On the server that hosts your application server, change to the directory where the
configuration scripts for Business Process Choreographer are located:
- If your database is on a different server from your application
server:
- Copy the following Oracle configuration DDL scripts from the
Business Process Choreographer subdirectory on the server that is hosting the application server
to an appropriate directory on the server that is hosting your database:
clearSchemaOracle.ddl
createSchemaOracle.ddl
createTablespaceOracle.ddl
dropSchemaOracle.ddl
dropTablespaceOracle.ddl
- On your database server, change to the directory where you
copied the DDL scripts.
- Edit the table space creation script according to the instructions
at the top of the file createTablespaceOracle.ddl.
- Make sure that you are using a user ID that has at least the following
rights for the datbase: CONNECT, RESOURCE, CREATE TABLESPACE, DROP TABLESPACE
and CREATE TABLE.
- If you do not want to create the schema in the default instance,
set the ORACLE_SID environment variable.
- To create the table spaces, run the createTablespaceOracle.ddl script,
as described in the script header. For test purposes, you can use
the same location for all table spaces and pass the path as a command-line
argument to the script, for example, on a Windows system, using user ID bpeuser,
password bpepwd, database name BPEDB, and table space path d:\mydb\ts,
enter:
sqlplus bpeuser/bpepwd@BPEDB @createTablespaceOracle.ddl d:\mydb\ts
If
you want to drop the table spaces, you can use the dropTablespaceOracle.ddl script.
- To create the schema, run the createSchemaOracle.ddl script. For example, on Windows systems, enter:
sqlplus bpeuser/bpepwd@BPEDB @createSchemaOracle.ddl
Result
The Oracle database for Business Process Choreographer exists.
What to do next
Continue configuring
in the parent topic at
step
2.