Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
41
Добавлен:
16.04.2013
Размер:
4.96 Mб
Скачать

Doing Callbacks with External C Procedures

OCIObjectPinTable

OCIObjectArrayPin

OCICacheFlush,

OCICacheFlushRefresh,

OCICacheRefresh

OCICacheUnpin

OCICacheFree

OCICacheUnmark

OCICacheGetObjects

OCICacheRegister

Polling-mode OCI procedures such as OCIGetPieceInfo

The following OCI procedures:

OCIEnvInit

OCIInitialize

OCIPasswordChange

OCIServerAttach

OCIServerDetach

OCISessionBegin

OCISessionEnd

OCISvcCtxToLda

OCITransCommit

OCITransDetach

OCITransRollback

OCITransStart

Also, with OCI procedure OCIHandleAlloc, the following handle types are not supported:

OCI_HTYPE_SERVER

OCI_HTYPE_SESSION

OCI_HTYPE_SVCCTX

OCI_HTYPE_TRANS

Debugging External Procedures

Usually, when an external procedure fails, its prototype is faulty. In other words, the prototype does not match the one generated internally by PL/SQL. This can happen if you specify an incompatible C datatype. For example, to pass an OUT parameter of type REAL, you must specify float *. Specifying float, double *, or any other C datatype will result in a mismatch.

In such cases, you might get:

8-50 Oracle Database Application Developer's Guide - Fundamentals

Соседние файлы в папке Oracle 10g