Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Relational Functions, 22 of 38
Allocates storage to hold descriptors or LOB locators.
sword OCIDescriptorAlloc ( CONST dvoid *parenth, dvoid **descpp, ub4 type, size_t xtramem_sz, dvoid **usrmempp);
An environment handle.
Returns a descriptor or LOB locator of desired type.
Specifies the type of descriptor or LOB locator to be allocated:
BLOB
or CLOB
) of C type OCILobLocatorROWID
descriptor of C type OCIRowid.ANSI
DATE
descriptor of C type OCIDateTimeTIMESTAMP
descriptor of C type OCIDateTimeTIMESTAMP
WITH
TIME
ZONE
descriptor of C type OCIDateTimeTIMESTAMP
WITH
LOCAL
TIME
ZONE
descriptor of C type OCIDateTimeINTERVAL
YEAR
TO
MONTH
descriptor of C type OCIIntervalINTERVAL
DAY
TO
SECOND
descriptor of C type OCIIntervalSpecifies an amount of user memory to be allocated for use by the application for the lifetime of the descriptor.
Returns a pointer to the user memory of size xtramem_sz
allocated by the call for the user for the lifetime of the descriptor.
Returns a pointer to an allocated and initialized descriptor, corresponding to the type specified in type
. A non-null descriptor or LOB locator is returned on success. No diagnostics are available on error.
This call returns OCI_SUCCESS if successful, or OCI_INVALID_HANDLE if an out-of-memory error occurs.
See Also:
For more information about the |
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|