Oracle Services for Microsoft Transaction Server Developer's Guide Release 9.2 for Windows Part Number A95496-01 |
|
This chapter describes how to use the sample Microsoft component object model (COM) application demo that is integrated with Microsoft Transaction Server.
This chapter contains these topics:
Note: The Microsoft application demo is not included with Microsoft Transaction Server on Windows 2000. |
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 Table 4-1 to determine if OCI and the Microsoft application demo are integrated, and what you can do if they have not been integrated.
If Microsoft Transaction Server... | Then... |
---|---|
Is already installed when you install Oracle Services for Microsoft Transaction Server (MTS) |
Oracle Universal Installer automatically backs up and substitutes several Visual C++ files of the banking demo with files that integrate the |
Is not installed when you install Oracle Services for Microsoft Transaction Server |
Perform the following procedures:
|
The Microsoft application demo is installed in the ORACLE_BASE\ORACLE_HOME
\oramts\samples\account.vc
directory 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 user scott
schema in the default Oracle database server created during installation. See "Ensuring the Database Includes the Proper Microsoft Application Demo Tables" for more information.
If the default database server is not being used or the database server does not include the user scott
, create the tables required to run the sample banking Microsoft application demo in the relevant user's schema.
To ensure the database server includes the proper tables:
If You Create the Database Server Through These Methods... | Then... |
---|---|
|
The database server includes the proper tables. Go to "Running the Microsoft Application Demo". |
The database server does not include the proper tables. Perform steps 1 through 6 in this section before proceeding to "Running the Microsoft Application Demo". |
If the database server does not include the proper tables, you must create them manually.
To manually create the proper tables:
C:\> sqlplus /NOLOG
SQL> CONNECT username
/password@net_service_name
where net_service_name
is the net service name that connects to the database server. If you connect to the database server with a username other than scott
, you must change the username and password in oramisc.h
and rebuild vcacct.dll
.
mtsdemousr
:SQL> CREATE USER mtsdemousr IDENTIFIED BY mtsdemousr;
This creates the user mtsdemousr
, which runs the Microsoft sample application.
mtsdemousr
:SQL> GRANT CONNECT, RESOURCE TO mtsdemousr;
mtsdemousr
:SQL> CONNECT mtsdemousr/mtsdemousr@net_service_name
SQL> @\ORACLE_BASE\ORACLE_HOME
\oramts\samples\sql\omtssamp.sql
This creates the account
and receipt
tables in the schema of user mtsdemousr
.
This section describes how to run the Microsoft application demo.
To run the Microsoft application demo:
ROOTDRIVE
:\program files\mts\samples\packages
. You can also verify installation through the Control Panel: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.
account.dsp
in the ORACLE_BASE\ORACLE_HOME
\oramts\samples\account.vc
directory using Microsoft Developer Studio.vcacct.dll
.vcacct.dll
installed under ROOTDRIVE
:\program files\mts\samples\packages
.vcacct.dll
with the one you built in step 3.This starts the Sample Visual Basic bank application and runs vbbank.exe
to test the component.
C:\> sqlplus /NOLOG
scott
and password tiger
(unless you changed it):SQL> CONNECT scott/tiger
SQL> SELECT * FROM account; SQL> SELECT * FROM receipt;
You can use Oracle Open Database Connectivity (ODBC) Driver release 9.2 with the Microsoft sample application. See "Using the Oracle ODBC Driver" for instructions on integrating the Oracle ODBC Driver with the sample application.
You can use Oracle Provider for OLE DB release 9.2 with the Microsoft sample application. See the Oracle Provider for OLE DB Developer's Guide for information about using Oracle Provider for OLE DB with Microsoft Transaction Server.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|