Using Microsoft Transaction Server with Oracle8 Release 8.1.6 for Windows NT Part Number A73029-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:
|
Note: The directory path examples in this guide follow Optimal Flexible Architecture (OFA) guidelines (for example, ORACLE_BASE\ORACLE_HOME\ORAMTS\TRACE). If you specified non-OFA compliant directories during installation or installed a release 8.0.6 database, your directory paths will differ. See the following documentation for additional information:
|
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 net service name 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 Oracle8 database created during installation. See the following section "Ensuring the Oracle8 Database Includes the Proper Tables" to ensure that your Oracle8 database includes this schema.
If the default Oracle8 database is not being used or your Oracle8 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 Oracle8 database includes the proper tables:
If You Create Your Oracle8 Database Through These Methods... | Then... |
---|---|
|
Your Oracle8 database includes the proper tables. Go to section "Running the Microsoft Application Demo" to run the sample demo. |
|
Your Oracle8 database does not include the proper tables. Perform steps 1 through 6 in this section before proceeding to section "Running the Microsoft Application Demo" to run the sample demo. |
If your Oracle8 database does not include the proper tables, you must create them manually.
To manually create the proper tables:
C:\> SQLPLUS
ENTER USER-NAME: SYSTEM/PASSWORD@NET_SERVICE_NAME
where PASSWORD is MANAGER after Oracle8 database installation, unless you changed it, and NET_SERVICE_NAME is the net service name that connects to the Oracle8 database.
SQL> CREATE USER MTSDEMOUSR IDENTIFIED BY MTSDEMOUSR;
This creates the user MTSDEMOUSR, which is used to run the Microsoft sample application.
SQL> GRANT CONNECT, RESOURCE TO MTSDEMOUSR;
SQL> CONNECT MTSDEMOUSR/MTSDEMOUSR@NET_SERVICE_NAME
SQL> @\ORACLE_BASE\ORACLE_HOME\ORAMTS\SAMPLES\ACCOUNT.VC\OMTSSAMP.SQL
This creates the ACCOUNT and RECEIPT tables in the schema of user MTSDEMOUSR.
To run the Microsoft application demo:
The Add/Remove Programs Properties dialog box appears.
The setup takes several seconds to initialize. When complete, the Microsoft Windows NT 4.0 Option Pack Setup dialog box appears.
Installation takes several seconds.
This starts the Sample Visual Basic Bank application and runs VBBANK.EXE to test the component.
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.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|