in reply to How to connect Oracle DB in Linux Env.
From your post I see missing either the SID or SERVICE and port elements on the connect parameters.
my $dbh = DBI->connect('dbi:Oracle:host=localhost;sid=ORCL;port=1521', + 'scott', 'tiger', { RaiseError => 1, AutoCommit => 0 }); my $dbh = DBI->connect('dbi:Oracle:host=localhost;service=my.service.n +ame.com;port=1521','scott', 'tiger', { RaiseError => 1, AutoCommit => + 0 });
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to connect Oracle DB in Linux Env.
by pawank86 (Novice) on Sep 09, 2011 at 20:12 UTC | |
by Generoso (Prior) on Sep 11, 2011 at 04:46 UTC |
In Section
Seekers of Perl Wisdom