../E10646-15.epub /> ../E10646-15.mobi />
This chapter presents the cartridge functions. For code examples, see the demonstration programs included with your Oracle Database installation. For additional information, see Appendix B.
This chapter contains these topics:
This chapter first describes the OCI external procedure functions. These functions enable users of external procedures to raise errors, allocate some memory, and get OCI context information. For more information about using these functions in external procedures, see the Oracle Database Advanced Application Developer's Guide.
Then the cartridge services functions are described. For more information about using these functions, see Oracle Database Data Cartridge Developer's Guide.
See the "Conventions for OCI Functions" for the conventions used in describing each function. The entries for each function may also contain the following information:
Success and error return codes are defined for certain external procedure interface functions. If a particular interface function returns
OCIEXTPROC_ERROR, then applications must use these macros to check for return values.
OCIEXTPROC_SUCCESS - External Procedure Success Return Code
OCIEXTPROC_ERROR - External Procedure Failure Return Code
The C callable interface to PL/SQL external procedures requires the
with_context parameter to be passed. The type of this structure is
OCIExtProcContext, which is opaque to the user.
The user can declare the
with_context parameter in the application as follows: