O'Reilly logo

Oracle to DB2 Conversion Guide: Compatibility Made Easy by Olaf Mueller, Nick Ivanov, Yvonne Chan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required