I want to connect oracle db by perl with LDAP, but I got below issue:
No such database (dbase123456)! at /home/cy/scripts/test/lib/DBD/LDAP.pm line 401, line 253. DBI connect('dbase123456','cy',...) failed: No such database (dbase123456)! at ./test.pl line 28 Can't call method "prepare" on an undefined value at ./test.pl line 29, line 253.
The perl scripst are:
my $query = GetQuery();
my $dbh = DBI->connect("DBI:LDAP:dbase123456",'cy','cy');
my $sth = $dbh->prepare($query);
$sth->execute();
my $rows_ = $sth->fetchall_arrayref();
$sth->finish();
Please someone help me to check the root cause, thanks a lot.