Initializing help system before first use

OCIlogon

OCIlogon


Purpose
Connect to a database.
Synopsis
procedure OCIlogon(s:string|text)
procedure OCIlogon(u:string|text, p:string|text, db:string|text)
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 mosel command: restricted mode), the restriction NoDB disables this routine.
Related topics
Module