Oracle Call Interface Getting Started Release 8.0.4 for Windows NT and Windows 95 A55975-01 |
|
This chapter provides introductory information to help you get started with the Oracle Call Interface for Windows NT/95.
Specific topics discussed are:
The Oracle Call Interface (OCI) is an application programming interface (API) that allows applications written in C to interact with one or more Oracle Servers. The OCI gives your programs the capability to perform the full range of database operations that are possible with Oracle8 Server, including SQL statement processing and object manipulation.
Additional Information: See the Oracle Call Interface Programmer's Guide for detailed information about using OCI, including function descriptions. |
The Oracle Call Interface for Windows NT/95 package includes:
When you install the Oracle Call Interface for Windows NT/95, Oracle Installer creates an Oracle home directory on the hard drive of your computer. The default Oracle home directory is \ORANT for Windows NT and \ORAWIN95 for Windows 95.
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 directories that are relevant to OCI:
Oracle 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, run a batch file (MAKE.BAT) at the MS-DOS command prompt. For example, to build the CDEMO1.C sample, enter the following command:
MAKE CDEMO1
After you finish using these sample programs, you can delete them if you choose.
A sample OCI application specific to Windows NT/95 is included. CDEMOMT.C demonstrates OCI multithreading on the Windows NT platform. It requires the EMP table from the default database. This program spawns two simultaneous threads that attempt to insert different employee names with the same ID numbers. Automatic mutexing is demonstrated.
Additional Information: For more information on multithreading, see the Oracle Call Interface Programmer's Guide. |