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.

Remarque : This method is for Perl only. It is not available for VBScript.

Syntaxe

Perl

$database->SetConnectOptions(newValue); 
Identificateur
Description
base_de_données
Objet base de données.
nouvelleValeur
A String that specifies the connect options for the database.
Valeur renvoyée
Aucune.

Exemple

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"; 

Feedback