DB2CI sample program
This appendix provides a sample DB2CI program.
Example D-1 shows a simplified program that uses Oracle Call Interface (OCI) functions to read data from the ORG table in the DB2 SAMPLE database. It illustrates some of the common OCI calls. This example uses utility functions that are defined in utilci.c, and utilci.h that are part of the DB2CI samples provided with DB2 10.
Example: D-1 DB2CI table read example
#include <stdio.h> ...
Get Oracle to DB2 Conversion Guide: Compatibility Made Easy now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.