Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 使用perl将oracle与LDAP连接起来_Linux_Perl_Ldap - Fatal编程技术网

Linux 使用perl将oracle与LDAP连接起来

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

我想通过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 = 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


查看

您确定使用了正确的数据库名称吗?因为它显然给数据库找不到错误。