OCIlogon


Purpose
Connect to a database.
Synopsis
procedure OCIlogon(s:string)
procedure OCIlogon(u:string,p:string,db:string)
Arguments
Logon string as "user/password@db"
User name
Password
db 
Database name (may be "" for the default database)
Example
The following connects to the database `test' as the user `yves' with the password `DaSH':
OCIlogon("yves/DaSH@test") 
Open a connection to the default database the user 'scott' with the password 'tiger'
OCIlogon("scott","tiger","")
Further information
1. This procedure establishes a connection to the database db as user n/p. It is possible to open several connections but the connection established last becomes active. Each connection is assigned an identification number which can be obtained by getting the value of the parameter OCIconnection after this procedure has been executed. This parameter can also be used to change the active connection.
2. When Mosel is running in restricted mode (see Section Command line interpreter: restricted mode), the restriction NoDB disables this routine.
Related topics
OCIlogoff.
Module
mmoci


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.