cynosure has asked for the wisdom of the Perl Monks concerning the following question:
Thanksuse CGI; use strict; use DBI; use CGI::Carp qw(fatalsToBrowser); # gives detailed errors my $hostname= "sample.oracle.com"; my $sid="MYSID"; my $port = "1521"; my $username = "user"; my $password = 'pass'; my $dbh; $dbh = DBI->connect("dbi:Oracle:host=$hostname;sid=$sid", $username, $ +password) or die "connect failed: ". DBI->errstr() unless $dbh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl remote oracle database connection
by Tobin Cataldo (Monk) on May 24, 2006 at 22:33 UTC | |
|
Re: perl remote oracle database connection
by jZed (Prior) on May 24, 2006 at 22:26 UTC | |
|
Re: perl remote oracle database connection
by srdst13 (Pilgrim) on May 25, 2006 at 02:18 UTC | |
by cynosure (Initiate) on May 25, 2006 at 20:25 UTC | |
by Tobin Cataldo (Monk) on May 25, 2006 at 22:18 UTC | |
by srdst13 (Pilgrim) on May 26, 2006 at 01:43 UTC | |
|
Re: perl remote oracle database connection
by derby (Abbot) on May 24, 2006 at 22:38 UTC |