function
Library: Database access (OMDB legacy)
Include: omdb.xin |
Returns: A |
define external dbDatabase function dbOpenOCI10g value string database-name user value string user-name optional initial { "" } password value string password optional initial { "" }
Argument definitions
Use dbOpenOCI10g
to create a connection to an Oracle database using an Oracle 10g client
installation. The function returns an instance of type dbDatabase
.
You must have an Oracle 10g (or higher) client installed on your machine, with SQL*NET configured to locate your Oracle server.
database-name must:
OMDB501
is thrown.
user-name and password are optional with default values of an empty string. Check what access requirements are needed for the specified database.
You must have declared a shelf of type dbDatabase
to reuse a database connection in other OMDB functions.
This function will throw external exception OMDB501
if there are any OCI errors. The exception
will include any error numbers and descriptive text generated by the OCI. Consult your Oracle documentation
for further details on the error condition.
Create a connection to an Oracle database named DatabaseDemo
via OCI using username charley
and password chaplin
. This connection can be reused in other OMDB functions.
include "omdb.xin" process local dbDatabase d set d to dbOpenOCI10g "DatabaseDemo" user "charley" password "chaplin"