Linux 使用perl将oracle与LDAP连接起来
我想通过perl与LDAP连接oracle db,但我遇到了以下问题: 没有这样的数据库(dbase123456)!在/home/cy/scripts/test/lib/DBD/LDAP.pm第401行,第253行。 DBI连接('DBAS123456','cy',…)失败:没有这样的数据库(DBAS123456)!at./test.pl第28行 无法在./test.pl第29行、第253行对未定义的值调用方法“prepare” perl scripst是:Linux 使用perl将oracle与LDAP连接起来,linux,perl,ldap,Linux,Perl,Ldap,我想通过perl与LDAP连接oracle db,但我遇到了以下问题: 没有这样的数据库(dbase123456)!在/home/cy/scripts/test/lib/DBD/LDAP.pm第401行,第253行。 DBI连接('DBAS123456','cy',…)失败:没有这样的数据库(DBAS123456)!at./test.pl第28行 无法在./test.pl第29行、第253行对未定义的值调用方法“prepare” perl scripst是: my $query = GetQue
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();
请有人帮我检查根本原因,非常感谢。猜测一下,您还没有创建配置文件
dbase123456.ldb
查看您确定使用了正确的数据库名称吗?因为它显然给数据库找不到错误。