SetConnectOptions
Description
Sets the connect options for a database. This method is for setting Oracle connect options for the database.
This method does not check validity of the connect options; that is done when the settings are used to connect to a database.
Note: This method is for Perl only. It is not available for
VBScript.
Syntax
Perl
$database->SetConnectOptions
(newValue);
- Identifier
- Description
- database
- A Database object.
- newValue
- A String that specifies the connect options for the database.
- Return value
- None.
Example
Perl
# Get the database
# ...
# Set the connect options for the db
$DB->SetConnectOptions("CLIENT_VER=8.0;SERVER_VER=8.1;
HOST=MyOracleServerHost;SID=ORCL;LOB_TYPE=LONG");
# Then get the connect options
$CO = $DB->GetConnectOptions();
print $CO, "\n";