Client Configuration

# You can load this in a module

if ($DB eq $oracle) {

$ENV{ORACLE_HOME} = '/<-path-to-oracle>';

$ENV{ORACLE_SID} = ’ORCL';

$ENV{TWO_TASK} = ’ORCL';

$connect_str ="dbi:$oracle:";

} elsif ($DB eq $mysql) {

my $database = “dbname";

my $server = “hostname";

my $port = “port";

$connect_str ="DBI:$mysql:$database:$server:$port";

} else {

foo;

}

Previous slide Next slide Back to first slide View graphic version