Using
Microsoft Transaction Server with Oracle8i
A68065-01 |
|
This chapter describes how to use the sample Microsoft component
object model (COM)-based application demo that is integrated with Microsoft
Transaction Server.
Specific topics discussed are:
You can use the Oracle Call Interface (OCI) with the sample
banking application demo that Microsoft provides with Microsoft Transaction
Server. In most cases, OCI is automatically integrated with the Microsoft
application demo. Review the table below to determine if OCI and the Microsoft
application demo are integrated in your environment, and what you can do
if they have not been integrated.
If... | Then... |
---|---|
Microsoft Transaction Server is already installed when you install Oracle Services for Microsoft Transaction Server |
Oracle Universal Installer automatically backs up and substitutes several Visual C++ files in the banking demo with files that integrate the OCI.DLL and ORAMTS.DLL files. This enables you to use OCI with the banking demo. |
Microsoft Transaction Server is not installed when you install Oracle Services for Microsoft Transaction Server
|
Perform the following procedures:
|
The Microsoft application demo is installed under ORACLE_BASE\ORACLE_HOME\ORAMTS\ SAMPLES\ACCOUNT.VC and is an OCI implementation of the Visual C++ Sample Bank package that ships with Microsoft Transaction Server. The demo component uses the user account SCOTT and password TIGER to connect to a database whose Net8 alias is MTSDEMO. You can change this information in the ORAMISC.H file. The demo also uses two tables:
These tables are part of the schema of user SCOTT in the
default Oracle8i database created during installation. See the following
section "Ensuring the Oracle8i Database Includes
the Proper Tables" to ensure that your Oracle8i database includes
this schema.
If the default Oracle8i database is not being used
or your Oracle8i database does not include the user SCOTT, the tables
required to run the sample banking Microsoft application demo can be created
in the relevant user's schema.
To ensure the Oracle8i database includes the proper tables:
If You Create Your Oracle8i Database Through These Methods... | Then... |
---|---|
|
Your Oracle8i database includes the proper tables. Go to section "Running the Microsoft Application Demo" to run the sample demo. |
|
Your Oracle8i database does not include the proper tables. Perform steps 2 through 7 in this section before proceeding to section "Running the Microsoft Application Demo" to run the sample demo. |
C:\> SQLPLUS
ENTER USER-NAME: SYSTEM/PASSWORD@NET_SERVICE_NAME
SQL> GRANT CONNECT, RESOURCE TO MTSDEMOUSR;
SQL> CONNECT MTSDEMOUSR/MTSDEMOUSR@NET_SERVICE_NAME
SQL> @\ORACLE_BASE\ORACLE_HOME\ORAMTS\SAMPLES\ACCOUNT.VC\OMTSSAMP.SQL
Note: The Oracle Service for MTS (with user MTSSYS) and the sample application components (with user MTSDEMOUSR) use separate user accounts to connect to the Oracle8i database. |
To run the Microsoft application demo:
C:\> SQLPLUS
ENTER USER-NAME: SCOTT/TIGER
SQL> SELECT * FROM ACCOUNT; SQL> SELECT * FROM RECEIPT;
You can use Oracle's ODBC release 8.1 driver with the Microsoft
sample application. See section "Using Oracle's
ODBC Driver" for instructions on integrating Oracle's ODBC with the
sample application.