Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl & Oracle, module questions

Status
Not open for further replies.

uuperl

Programmer
Feb 20, 2006
33
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top