Creates a pool of
OraDatabase objects. Only one pool can be created for each
CreateDatabasePool (long initialSize, long maxSize, long timeoutValue, BSTR database_name, BSTR connect_string, long options)
The arguments for the method are:
||The initial size of the pool.|
||The maximum size to which the pool can grow.|
||The Oracle network specifier used when connecting the data control to a database.|
||The user name and password to be used when connecting to an Oracle database.|
||A bit flag word used to set the optional modes of the database. If
OpenDatabase method of the
OraSession object is used to establish a connection to an Oracle database. This method returns a reference to the
OraDatabase object which is then used for executing SQL statements and PL/SQL blocks. The connection pool in OO4O is a pool of
OraDatabase objects. The pool is created by invoking the
CreateDatabasePool method of the
Exceptions are raised by this call if:
A pool already exists.
An error occurs in creating a connection to Oracle Database.
Invalid values for arguments are passed (that is,
LastServerErr property of the
OraSession object contains the code for the specific cause of the exception resulting from an Oracle Database error.
One possible connection error that could be returned is:
ORA-28001 "the password has expired"
The user can change the password using the