Hi all,

I wrote a program to connect to Oracle database with the following
statement:

my $dbh = DBI->connect("DBI:Oracle:MyOraDb","scott","tiger") or die
"Error: $DBI::errstr";

but i'm ended up with the following error message:

DBI->connect(MyOraDb) failed: ORA-12154: TNS: could not resolve service
name (DBD: login failed) at dbidemo.pl line 10
Error: ORA-12154: TNS: could not resolve service name (DBD: login failed)

provided DBI & DBD were installed using ppm tool. 

Any help would be appreciated.

Thanks
Rajasree

Reply via email to