Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
This chapter begins to describe the Oracle OCI relational functions for C. It includes information about calling OCI functions in your application, along with detailed descriptions of each function call.
See Also:
For code examples, see the demonstration programs included with your Oracle installation. For additional information, refer to Appendix B, "OCI Demonstration Programs". |
This chapter contains the following sections:
This chapter describes the OCI relational function calls. This chapter and the next, cover the functions in the basic OCI.
See Also:
For information about return codes and error handling, refer to the section "Error Handling" |
For each function, the following information is listed:
A brief description of the action performed by the function.
The function declaration.
A description of each of the function's parameters. This includes the parameter's mode. The mode of a parameter has three possible values, as described below.
More detailed information about the function (if available). This may include restrictions on the use of the function, or other information that might be useful when using the function in an application.
A complete or partial code example demonstrating the use of the function call being described. Not all function descriptions include an example.
A list of related function calls.
Unlike earlier versions of the OCI, in and after release 8, you cannot pass -1 for the string length parameter of a null-terminated string.When you pass string lengths as parameters, do not include the null terminator byte in the length. The OCI does not expect strings to be null-terminated.
Buffer lengths that are OCI parameters are in bytes, except:
amount
parameters in some LOB calls are in characters,For a table showing the number of server round-trips required for individual OCI LOB functions, refer to Appendix C, "OCI Function Server Round-trips".
This section describes the OCI connect, authorize, and initialize functions.
Function | Purpose |
---|---|
Initializes the connection pool. |
|
Destroys the connection pool. |
|
Creates and initializes an OCI environment. |
|
Creates and initializes an environment for OCI functions to work under. Allows you to set character set id and national character set id at environment creation time. |
|
Initialize an environment handle |
|
Initialize OCI process environment |
|
Simplified single-session logon |
|
This function is used to create a logon session in various modes. |
|
Attach to a server; initialize server context handle |
|
|
Detach from a server; uninitialize server context handle |
Authenticate a user |
|
Terminate a user session |
|
Get a session from a session pool. |
|
Initializes a session pool. |
|
Destroys a session pool. |
|
Releases a session. |
|
Detaches from a shared memory subsystem. |
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|