All,
I try to use perl to connect to Oracle database, I know that need DBI or DBD::Oracle module. If the server that I am working on does not allow to install these. Can I use as following?
----------------------------------
#!/usr/bin/perl
#use DBI;
require 'DBI.pm';
require 'Oracle.pm';
$dbh = DBI->connect("dbi:Oracle:host=$host;sid=$sid", "$user", "$password") ||
die "Can't connect to database: $DBI::errstr";
Thanks for any suggestions!
I try to use perl to connect to Oracle database, I know that need DBI or DBD::Oracle module. If the server that I am working on does not allow to install these. Can I use as following?
----------------------------------
#!/usr/bin/perl
#use DBI;
require 'DBI.pm';
require 'Oracle.pm';
$dbh = DBI->connect("dbi:Oracle:host=$host;sid=$sid", "$user", "$password") ||
die "Can't connect to database: $DBI::errstr";
Thanks for any suggestions!