Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Relational Functions, 9 of 38
This function is used to create a simple logon session.
sword OCILogon ( OCIEnv *envhp, OCIError *errhp, OCISvcCtx **svchp, CONST OraText *username, ub4 uname_len, CONST OraText *password, ub4 passwd_len, CONST OraText *dbname, ub4 dbname_len );
The OCI environment handle.
An error handle you can pass to OCIErrorGet()
for diagnostic information in the event of an error.
The service context pointer.
The username. Must be in UTF-16 encoding in OCI_UTF16 environment mode.
The length of username
, in number of bytes, regardless of the encoding.
The user's password. Must be in UTF-16 encoding in OCI_UTF16 environment mode.
The length of password
, in number of bytes, regardless of the encoding.
The name of the database to connect to. Must be in UTF-16 encoding in OCI_UTF16 environment mode.
The length of dbname
, in number of bytes, regardless of the encoding.
This function is used to create a simple logon session for an application.
Note: Users requiring more complex sessions, such as TP monitor applications, should refer to the section "Application Initialization, Connection, and Session Creation". |
This call allocates the service context handles that are passed to it. This call also implicitly allocates server and user session handles associated with the session. These handles can be retrieved by calling OCIAttrGet()
on the service context handle.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|