Oracle
Call Interface Getting Started
Release 8.1.5 for Windows NT A68802-01 |
|
This chapter provides introductory information to help you
get started with the Oracle Call Interface for Windows NT and Windows 95/98.
Specific topics discussed are:
The OCI gives your programs the capability to perform the
full range of database operations that are possible with an Oracle8 server,
including SQL statement processing and object manipulation.
The Oracle8 OCI includes many new functions and performance
enhancements that extend the capabilities of the OCI to handle objects
in an Oracle8 server. (To use object functionality, you must have Oracle8
Enterprise Edition and the Objects option).
For Windows NT and Windows 95/98, Oracle8 OCI includes support
for applications written with earlier releases ( 7.x/8.x) of OCI.
Oracle has now removed any version number from the library name OCI. LIB.
The Oracle Call Interface for Windows NT and Windows 95/98 package includes:
When you install Oracle Call Interface for Windows NT and
Windows 95/98, the Oracle Universal Installer creates an Oracle home directory
on the hard drive of your computer. The default Oracle home directory is
C:\ORACLE\ORA81, where C:\ORACLE is your top-level
ORACLE_BASE directory, and ORA81 is your first Oracle
home directory.
The OCI files are located in the Oracle home directory, as
are the library files needed to link and run OCI applications and link
with other Oracle for Windows NT products, such as Oracle Forms.
The Oracle home directory contains the following sub-directories
that are relevant to OCI:
Oracle Universal Installer copies a set of sample programs
and their corresponding project files into the \SAMPLES subdirectory. Oracle
recommends that you build and run these sample programs to verify that
OCI has been successfully installed and to familiarize yourself with the
steps involved in developing OCI applications.
To build a sample program, run a batch file (MAKE.BAT) at the MS-DOS command prompt. For example, to build the CDEMO1.C sample, enter the following command from the SAMPLES directory:
MAKE CDEMO1
CDEMOMT.C is the only sample OCI application specific to
Windows NT and Windows 95/98. The program demonstrates OCI multithreading
(the thread safety feature of Oracle8 is also included on the Windows NT
and Windows 95/98 platforms). It requires the EMP table from the default
database.
This sample program spawns two simultaneous threads that
attempt to insert different employee names with the same ID numbers. Thread
synchronization is demonstrated.
For more information, see the following document included in your generic documentation set:
For information on... | See... |
---|---|
|
![]() Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|