Library: OCI
Include: omoci.xin
|
Returns: Numeric
Returns OCI_SUCCESS if the function completes without error.
|
Declaration define external counter function OCI_olog
( value OCI_Handle_type lda,
value OCI_HostData_type hda,
value stream uid,
value counter uidl,
value stream pswd,
value counter pswdl,
value stream conn,
value counter connl,
value counter mode
)
Purpose
This function establishes a connection between an OCI program and an Oracle database.
Input arguments:
- lda -- Login data area descriptor.
- hda -- The host data area.
- uid -- The username, an optional password, and an optional host machine identifier. (Example: name/password@service_name)
- uidl -- The length of the contents of uid, or OCI_NTS.
- pswd -- The password, if not passed as part of uid.
- pswdl -- The length of the contents of pswd, or OCI_NTS.
- conn -- The SQL*Net V2 connect descriptor, if not passed as part of uid.
- connl -- The length of the contents of conn or OCI_NTS.
- mode -- The connection mode. The following values are allowed:
- OCI_LM_DEF -- Default login.
- OCI_LM_NBL -- Non-blocking login.
Example:
set RetCode to OCI_olog
( ConnectionHandle,
HostData,
"my_account",
OCI_NTS,
"my_password",
OCI_NTS,
"my_server",
OCI_NTS,
OCI_LM_DEF
)
Generated: April 21, 1999 at 2:01:13 pm
If you have any comments about this section of the documentation, send email to [email protected]
Copyright © OmniMark Technologies Corporation, 1988-1999.