RE: Question on DBI connection to Oracle
From: Ron Reidy (Ron.Reidy_at_arraybiopharma.com)
Date: 01/09/05
- Previous message: Jeff Urlwin: "RE: Perl 5.6 to 5.8 caveats for DBI"
- Maybe in reply to: Qing Zhou: "Question on DBI connection to Oracle"
- Next in thread: Michael A Chase tech: "Re: Question on DBI connection to Oracle"
- Reply: Michael A Chase tech: "Re: Question on DBI connection to Oracle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 9 Jan 2005 10:00:59 -0700 To: "Zhou, Qing" <Qing_Zhou@intuit.com>, <dbi-users@perl.org>
The error message says it all. You need to set (at a miniumu) ORACLE_HOME and ORACLE_SID.
Read all the README* files in the DBD::Oracle distribution.
-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.
-----Original Message-----
From: Zhou, Qing [mailto:Qing_Zhou@intuit.com]
Sent: Saturday, January 08, 2005 5:46 PM
To: 'dbi-users@perl.org'
Subject: Question on DBI connection to Oracle
Hello,
First of all, thank you for taking the time to help me. I am a beginner to
DBI, and I am very frustrated with not being able to connect to Oracle from
my Sun Solaris box. I installed DBI and DBD modules, and tried to run the
following test script:
#!/usr/bin/perl
use CGI;
use DBI;
my $dbname = 'skidev01';
my $dbaddress = 'oraskidev01.bosptc.intuit.com';
my $username = 'dev2';
my $pass = 'XXXXX;
my $db = "DBI:Oracle:$dbname:$dbaddress";
my $dbh = DBI->connect($db, $username, $pass) || die "Database connection
failed: $DBI:errstr" ;
$dbh->disconnect();
The following error occurred:
$ perl test.pl
ORACLE_HOME environment variable not set!
DBI connect('skidev01:oraskidev01.bosptc.intuit.com','dev2',...) failed:
Error while trying to retrieve text for error ORA-06401 (DBD ERROR:
OCIServerAttach) at test.pl line 13
Database connection failed: :errstr at test.pl line 13.
I don't have Oracle server or client installed on the box. Is that the cause
of the problem?
Thanks a lot!
Qing
This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.
- Previous message: Jeff Urlwin: "RE: Perl 5.6 to 5.8 caveats for DBI"
- Maybe in reply to: Qing Zhou: "Question on DBI connection to Oracle"
- Next in thread: Michael A Chase tech: "Re: Question on DBI connection to Oracle"
- Reply: Michael A Chase tech: "Re: Question on DBI connection to Oracle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|