10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A<br />

OCCI Demonstration Programs<br />

<strong>Oracle</strong> provides code examples illustrating the use of OCCI calls. These programs<br />

are provided for demonstration purposes, and are not guaranteed to run on all<br />

platforms.<br />

The demonstration programs (demos) are available with your <strong>Oracle</strong> installation.<br />

The location, names, and availability of the programs may vary on different<br />

platforms. On a UNIX workstation, the programs are installed in the ORACLE_<br />

HOME/rdbms/demo directory.<br />

The $ORACLE_HOME/rdbms/demo directory contains not only demos but the file<br />

named demo_rdbms.mk that must be used as a template for building your own<br />

OCCI applications or external procedures. Building a new demo_rdbms.mk file<br />

consists of customizing the demo_rdbms.mk file by adding your own macros to the<br />

link line. However, <strong>Oracle</strong> requires that you keep the macros provided in the demo_<br />

rdbms.mk file, as it will result in simplified maintenance of your own demo_<br />

rdbms.mk files.<br />

When a specific header or SQL file is required by the application, these files are also<br />

included. Review the information in the comments at the beginning of the<br />

demonstration programs for setups and hints on running the programs.<br />

Prior to running any of these demos, the SQL file occidemo.sql must be run<br />

using the user name and password SCOTT and TIGER respectively.<br />

Table A–1 lists the important demonstration programs and the OCCI features that<br />

they illustrate.<br />

Table A–1 OCCI Demonstration Programs<br />

Program Name Features Illustrated<br />

occiblob.cpp Demonstrates how to read and write BLOBs<br />

OCCI Demonstration Programs A-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!