| Programmer's Guide to the Oracle7 Server Call Interface | Library |
Product |
Contents |
Index |
However, third-generation programming languages such as C/C++, COBOL, and FORTRAN are procedural. The execution of most statements depends on preceding or following statements and on control structures, such as loops or conditional branches. The procedural nature of these languages makes them more complex than SQL, but it also makes them very flexible and powerful.
The OCI allows you to develop applications that take advantage of the non-procedural capabilities of SQL and the procedural capabilities of a third-generation language. You can also take advantage of PL/SQL, Oracle7's procedural extensions to SQL, in your OCI application. Thus, the applications you develop can be more powerful and flexible than applications written in SQL alone.
Note: On some platforms, it may be necessary to include other libraries, in addition to the OCI library, to properly link your OCI programs. Check your Oracle system-specific documentation for further information about extra libraries which may be required.
The OCI supports all SQL data definition, data manipulation, query, and transaction control facilities that are available through the Oracle7 Server.
Additionally, the OCI allows you to process PL/SQL statements.
Figure 1 - 1. The OCI Development Process
Meant for different application areas and reflecting different design philosophies, these languages offer a broad range of programming solutions.
Note: The PL/I OCI is available only on a limited number of platforms, and is not documented in this guide. Also, because of basic differences in the Ada OCI implementation, it is documented separately in the Programmer's Guide to the Oracle Call Interface for Ada. In the remainder of this guide, references to the OCI routines do not comprise the PL/I and Ada OCIs. Consult your Oracle system-specific documentation for more information.
SELECT course_name, instructor
FROM courses
WHERE quarter = 'SPRING'
AND dept = :deptno
contains the following parts:
These terms and operations are described in detail
.
(for C), Chapter 5 (for COBOL) and Chapter 6 (for FORTRAN).
OPINIT
This is the new OCI process initialization call. It is described in the section "Thread Safety"
.
OBINDPS, ODEFINPS
These are new calls for binding and defining variables. They are discussed in the sections "Piecewise Insert, Update and Fetch" and "Arrays of Structures"
.
OGETPI, OSETPI
These calls are used for piecewise database operations. They are covered in detail in the section "Piecewise Insert, Update and Fetch"
.
| Obsolete OCI Routine | Replacement in Oracle7 |
| OBIND | OBNDRN or OBNDRV |
| OBINDN | OBNDRN or OBNDRV |
| ODFINN | ODEFIN |
| ODSRBN | ODESCR |
| OLOGON | OLOG |
| OSQL | OPARSE |
These older routines are described in Appendix D, E, or F of this Guide. Oracle will not support these calls in future versions of the OCI. They are as follows:
| Older OCI Routine | Recommended for New Oracle7 Programs |
| ODSC | ODESCR |
| OERMSG | OERHMS |
| OLON | OLOG |
| ORLON | OLOG |
| ONAME | ODESCR |
| OSQL3 | OPARSE |
|
Prev Next |
Copyright © 1996 Oracle Corporation. All Rights Reserved. |
Library |
Product |
Contents |
Index |