Oracle Call Interface Programmer's Guide Release 9.0.1 Part Number A89857-01 |
|
OCI Relational Functions, 17 of 39
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 OCILobLocator
ROWID
descriptor of C type OCIRowid.
ANSI
DATE
descriptor of C type OCIDateTime
TIMESTAMP
descriptor of C type OCIDateTime
TIMESTAMP
WITH
TIME
ZONE
descriptor of C type OCIDateTime
TIMESTAMP
WITH
LOCAL
TIME
ZONE
descriptor of C type OCIDateTime
INTERVAL
YEAR
TO
MONTH
descriptor of C type OCIInterval
INTERVAL
DAY
TO
SECOND
descriptor of C type OCIInterval
Specifies 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-2001, Oracle Corporation. All Rights Reserved. |
|