![](/img/trans.png)
[英]Cannot Connect to Linux Oracle Databse with Perl Script after connecting with PuTTY
[英]use perl to connect oracle with LDAP
我想通过perl用LDAP连接oracle db,但是出现以下问题:
没有这样的数据库(dbase123456)! 在/home/cy/scripts/test/lib/DBD/LDAP.pm行401,行253。DBI connect('dbase123456','cy',...)失败:没有这样的数据库(dbase123456)! 在./test.pl第28行,无法在./test.pl第29行,第253行中的未定义值上调用方法“准备”。
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.