Hi
New to Perl. Am trying to connect to the Oracle db using the following
#!/usr/local/bin/perl
# Name: ConnDb.pl
use DBI;
my $dbh=DBI->connect('dbi:Oracle:MYDBNAME','myusername','mypasswd') or die ;
$dbh->disconnect;
When I run it on the command prompt
$ perl ConnDb.pl
I get
DBI->connect(MYDBNAME) failed: ERROR OCIEnvInit at ConnDb.pl line 5
Died at ConnDb.pl line 5.
Any ideas please.
New to Perl. Am trying to connect to the Oracle db using the following
#!/usr/local/bin/perl
# Name: ConnDb.pl
use DBI;
my $dbh=DBI->connect('dbi:Oracle:MYDBNAME','myusername','mypasswd') or die ;
$dbh->disconnect;
When I run it on the command prompt
$ perl ConnDb.pl
I get
DBI->connect(MYDBNAME) failed: ERROR OCIEnvInit at ConnDb.pl line 5
Died at ConnDb.pl line 5.
Any ideas please.