Oracle® BPEL Process Manager Installation Guide
10g Release 2 (10.1.2) for Solaris Operating Environment (SPARC), Linux x86, and Microsoft Windows Part No. B25760-05 |
|
![]() Previous |
![]() Next |
This appendix describes how to use a Microsoft SQL Server database as the dehydration store with Oracle BPEL Process Manager.
This appendix contains the following topics:
Step 1: Install and Configure the Microsoft SQL Server Database
Step 3: Create the Oracle BPEL Process Manager Tables in the Microsoft SQL Server Database
Step 5: Configure Microsoft SQL Server as the Dehydration Store
Note: This appendix describes installing and configuring Oracle BPEL Process Manager on Windows. If installing Oracle BPEL Process Manager on a UNIX operating system, substitute the appropriate directory paths throughout this appendix. |
Table A-1 describes the supported Microsoft SQL Server database, JDBC driver, and application server to use with Oracle BPEL Process Manager. For details about Oracle BPEL Process Manager memory, disk space, swap space, and monitor requirements, see Table 1-2.
Go to the host on which to install Microsoft SQL Server (for this example, the host is named myDB_Host
). Substitute your own host name as necessary.
Install and configure your Microsoft SQL Server database with the following details:
Element Type | Element Example Name |
---|---|
Database name | orabpeldb (recommended name to use)
|
Database login user name | orabpel (recommended name to use)
|
Database login password | orabpel_pword
|
These element names are used throughout this chapter. If you use different names, substitute those names as necessary.
Use the username and password created in Step 2 to test your connection to the Microsoft SQL Server database.
If you have difficulty connecting, contact your Microsoft SQL Server database administrator.
Follow the instructions in Chapter 2, "Oracle BPEL Process Manager Installation" to install the 10.1.2.0.2 installation type appropriate to your environment:
Oracle BPEL Process Manager for Developers
Oracle BPEL Process Manager for OracleAS Middle Tier
If installing Oracle BPEL Process Manager for OracleAS Middle Tier, select Non-Oracle Database on the Choose the Dehydration Database type screen during Oracle Universal Installer installation.
This enables you to skip additional installation screens and complete the installation process (such as the Specify Dehydration Store Database Information screen).
Download OracleMetaLink patch number 5099565 from the following location:
http://metalink.oracle.com
This patch includes the following Oracle BPEL Process Manager table scripts:
server_sqlserver.ddl
domain_sqlserver.ddl
workflow_sqlserver.sql
sensor_sqlserver.sql
Copy these files to a directory on a host on which the isql
SQL utility is installed (for example c:\temp
):
The isql
SQL utility is required for running these scripts.
Use isql
to create the Oracle BPEL Server database tables:
c:\temp>isql -U orabpel –P orabpel_pword –S myDB_Host -d orabpeldb -i server_sqlserver.ddl c:\temp>isql -U orabpel –P orabpel_pword –S myDB_Host -d orabpeldb -i domain_sqlserver.ddl
where:
orabpel
is the user name specified in "Step 1: Install and Configure the Microsoft SQL Server Database"
orabpel_pword
is the password specified in "Step 1: Install and Configure the Microsoft SQL Server Database"
myDB_Host
is the name of the host on which the Microsoft SQL Server database is installed
orabpeldb
is the database name specified in "Step 1: Install and Configure the Microsoft SQL Server Database"
Create the Oracle BPEL Process Manager workflow database tables:
c:\temp>isql -U orabpel –P orabpel_pword –S myDB_Host -d orabpeldb -i workflow_sqlserver.sql
Create the Oracle BPEL Process Manager sensor database tables:
c:\temp>isql -U orabpel –P orabpel_pword –S myDB_Host -d orabpeldb -i sensor_sqlserver.sql
Download the DirectData JDBC driver from the following URL:
http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html
Review the Oracle Technology Network Developer License Terms and accept all conditions of use.
The Oracle Application Server 10g page appears.
Go to the Version 10.1.2.0.2 header.
Click DirectData JDBC Drivers to download the driver.
Create a directory on the Oracle BPEL Process Manager host in which to place the JDBC driver. For this example, the following directory name is used:
C:\dataDirectOc4jJDBCDriver
Add the JDBC driver JAR files into the application.xml
file for your installation type:
For Oracle BPEL Process Manager for Developers
Oracle_Home
\integration\orabpel\system\appserver\oc4j\j2ee\home\config\application.xml
For Oracle BPEL Process Manager for OracleAS Middle Tier
Oracle_Home
\j2ee\OC4J_BPEL\config\application.xml
... <!-- ORABPEL --> ... <library path="C:\dataDirectOc4jJDBCDriver\lib\YMbase.jar"/> <library path="C:\dataDirectOc4jJDBCDriver\lib\YMsqlserver.jar"/> <library path="C:\dataDirectOc4jJDBCDriver\lib\YMutil.jar"/> ...
Open the data-sources_sqlserver.xml
file included in the OracleMetaLink patch that you downloaded in "Step 3: Create the Oracle BPEL Process Manager Tables in the Microsoft SQL Server Database".
The information in this file enables you to configure the following settings:
The JDBC driver
The host name and port on which the Microsoft SQL Server database was installed in "Step 1: Install and Configure the Microsoft SQL Server Database".
The user name and password settings created in "Step 1: Install and Configure the Microsoft SQL Server Database".
Open the data-sources.xml
file located in the following directory for your installation type:
For Oracle BPEL Process Manager for Developers
Oracle_Home
\integration\orabpel\system\appserver\oc4j\j2ee\home\config\data-sources.xml
For Oracle BPEL Process Manager for OracleAS Middle Tier
Oracle_Home
\j2ee\OC4J_BPEL\config\data-sources.xml
Copy and paste the following sections of the data-sources_sqlserver.xml
file into the data-sources.xml
file.
Change the host name, port, password, and user name (only if you changed it from orabpel
) to the correct values for your environment in the following sections.
<?xml version="1.0" standalone='yes'?> <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd"> <data-sources> <!-- An example/default DataSource that uses Oracle JDBC-driver to create the connections. This tag creates all the needed kinds of data-sources, transactional, pooled and EJB-aware sources. The source generally used in application code is the "EJB" one - it provides transactional safety and connection pooling. Oracle thin driver could be used as well, like below. url="jdbc:oracle:thin:@host:port:sid" --> <!-- Use this datasource to connect to Microsoft SQL Server --> <data-source class="com.evermind.sql.DriverManagerDataSource" name="BPELServerDataSource" location="jdbc/BPELServerDataSourceWorkflow" xa-location="BPELServerDataSource" ejb-location="jdbc/BPELServerDataSource" connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver" max-connections="50" min-connections="10" connection-retry-interval="30" max-connect-attempts="10" url="jdbc:oracle:sqlserver:// [DB_HOST]:[PORT];SelectMethod=cursor;User=orabpel;Password=orabpel_pword"/> <data-source class="com.evermind.sql.DriverManagerDataSource" name="BPELSamplesDataSource" location="jdbc/BPELSamplesDataSource" xa-location="BPELSamplesDataSource" ejb-location="jdbc/BPELSamplesDataSource" connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver" max-connections="50" min-connections="10" connection-retry-interval="30" max-connect-attempts="10" url="jdbc:oracle:sqlserver: //[DB_HOST]:[PORT];SelectMethod=cursor;User=orabpel;Password=orabpel_pword"/> <data-source class="com.evermind.sql.DriverManagerDataSource" name="AdminConsoleDateSource" location="jdbc/AdminConsoleDateSource" xa-location="AdminConsoleDateSource" ejb-location="jdbc/AdminConsoleDateSource" connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver" max-connections="80" min-connections="2" connection-retry-interval="30" max-connect-attempts="10" url="jdbc:oracle:sqlserver: //[DB_HOST]:[PORT];SelectMethod=cursor;User=orabpel;Password=orabpel_pword"/>
Comment out the Oracle Database Lite section of data-sources.xml
:
<!-- Use these datasources to connect to Oracle Lite --> <!-- <data-source class="com.evermind.sql.DriverManagerDataSource". . . . . . . . . <data-source class="com.evermind.sql.DriverManagerDataSource". . .. . .<data-source class="com.evermind.sql.DriverManagerDataSource". . .. . . url="jdbc:polite4@127.0.0.1:100:orabpel"/> -->
Save your changes in the data-sources.xml
file.
If you installed Oracle BPEL Process Manager on Windows, remove or comment out the following Oracle Database Lite lines in these files:
In Oracle_Home
\integration\orabpel\bin\startorabpel.bat
:
@rem start /d "Oracle_Home\integration\orabpel\bin" /min /realtime start_olite.bat
In Oracle_Home
\integration\orabpel\bin\shutdowntorabpel.bat
:
@rem start /min /d "Oracle_Home\integration\orabpel\bin\kill_olite.bat"
Microsoft SQL Server database configuration is now complete.