下面的是我从oci文档中摘录的,希望对你有用。只是要楼主慢慢看了。
sword OCIInitialize ( ub4           mode,
                      CONST dvoid   *ctxp, 
                      CONST dvoid   *(*malocfp) 
                                    (/* dvoid *ctxp,
                                        size_t size _*/),
                      CONST dvoid   *(*ralocfp)
                                    (/*_ dvoid *ctxp,
                                       dvoid *memptr,
                                       size_t newsize _*/),
                      CONST void    (*mfreefp)
                                    (/*_ dvoid *ctxp,
                                       dvoid *memptr _*/));Parameters
1、mode (IN) 
Specifies initialization of the mode. The valid modes are: OCI_DEFAULT - default mode. OCI_THREADED - threaded environment. In this mode, internal data structures not exposed to the user are protected from concurrent accesses by multiple threads. OCI_OBJECT - will use object features. OCI_SHARED - will utilize shared data structures. OCI_EVENTS - will utilize publish-subscribe notifications. 2、ctxp (IN) 
User defined context for the memory call back routines. 3、malocfp (IN) 
User-defined memory allocation function. If mode is OCI_THREADED, this memory allocation routine must be thread safe. 4、ctxp (IN/OUT) 
Context pointer for the user-defined memory allocation function. 5、size (IN) 
Size of memory to be allocated by the user-defined memory allocation function 6、ralocfp (IN) 
User-defined memory re-allocation function. If mode is OCI_THREADED, this memory allocation routine must be thread safe. 7、ctxp (IN/OUT) 
Context pointer for the user-defined memory reallocation function. 8、memptr (IN/OUT) 
Pointer to memory block 9、newsize (IN) 
New size of memory to be allocated 10、mfreefp (IN) 
User-defined memory free function. If mode is OCI_THREADED, this memory free routine must be thread safe. 11、ctxp (IN/OUT) 
Context pointer for the user-defined memory free function. 12、memptr (IN/OUT) 
Pointer to memory to be freed