Oracle® Call Interface Programmer's Guide, 10g Release 2 (10.2) Part Number B14250-02 |
|
|
PDF · Mobi · ePub |
This section describes the XML DB functions.
Function/Page | Purpose |
---|---|
Free an XML context. |
|
Initialize an XML context for XML data from the database. |
Free any allocations made by the call to OCIXmlDbInitXmlCtx()
.
void OCIXmlDbFreeXmlCtx ( xmlct *xctx );
The XML context to terminate.
None.
To initialize an XML context for XML data from the database.
xmlctx *OCIXmlDbInitXmlCtx ( OCIEnv *envhp, OCISvcCtx *svchp, OCIError *errhp, ocixmldbparam *params, ub4 num_params );
The OCI environment handle.
The OCI service handle.
The OCI error handle.
The optional possible values in this array are pointers to:
The OCI duration. Default value is OCI_DURATION_SESSION
.
An error handler which is a user-registered callback of prototype:
void (*err_handler) (sword errcode, (CONST OraText *) errmsg);
The two parameters of err_handler
are:
A numerical error value.
The error message text.
Number of parameters to be read from params.
If the value of num_params
exceeds the size of array params
, unexpected behavior results.
See Also:
"OCI Support for XML" for a usage example.Returns either:
A pointer to structure xmlctx
, with error handler and callbacks populated with appropriate values. This is later used for all OCI calls.
NULL, if no database connection is available.