Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Cartridge Functions, 5 of 43
Gets the OCI environment, service context, and error handles.
sword OCIExtProcGetEnv ( OCIExtProcContext *with_context, OCIEnv envh, OCISvcCtx svch, OCIError errh ); Parameters
The with_context pointer that is passed to the C External Procedure. See "With_Context Type".
The OCI Environment handle.
The OCI Service handle.
The OCI Error handle.
The primary purpose of this function is to allow OCI callbacks to use the database in the same transaction. The OCI handles obtained by this function should be used in OCI callbacks to the database. If these handles are obtained through standard OCI calls, then these handles use a new connection to the database and cannot be used for callbacks in the same transaction. In one external procedure you can use either callbacks or a new connection, but not both.
This function returns OCI_SUCCESS if the call was successful; otherwise, it returns OCI_ERROR.
OCIEnvCreate()
, OCIAttrGet()
, OCIHandleAlloc()
Function/Page | Purpose |
---|---|
Starts a user duration. |
|
Terminates a user duration. |
|
Allocates memory of a given size from a given duration. |
|
Resizes a memory chunk. |
|
Frees a memory chunk. |
See Also:
For more information about using these functions, see Oracle9i Data Cartridge Developer's Guide |
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|