oracle - Perl DBI Connect Error ORA-21561: OID generation failed
问题描述
I am running a Perl Script and I am seeing this error message.
#!/usr/bin/perl
use DBI;
my $host = 'server';
my $user = 'user';
my $pwd = $ENV{'Login'};
my $driver = "Oracle";
$dsnslam = "DBI:$driver:host=$host;service_name=vps;port=1525";
$dbhslam = DBI->connect($dsnslam, "$user", "$pwd") || die "connect failed: ";
DBI connect('host=server;service_name=abc;port=1525','user',...) failed: ORA-21561: OID generation failed (DBD ERROR: OCISessionBegin)
I can do Tnsping and sqlplus without any issues.
I am running the script from Windows and the remote database is Oracle 19c on RHEL.I also added an entry on the Windows etc hosts file and that did not help either.
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost WindowsServer.domain WindowsServer
Any Help will be greatly appreciated.
解决方案
推荐阅读
- java - 通过单个连接进行的 JDBC 选择查询是否比包含这些查询的 proc 效率低?
- amazon-web-services - 如何将乐山服务器连接到云(AWS)
- java - 如何将屏幕摆动键盘上的输入文本设置为系统插入符号?
- pyspark - Spark Dataframe 分组和分区,具有一定数量的分区。
- azure - 如何在 Azure 端点上使用 botframework 在您自己的机器人设计中工作?
- hive - 无法对事务表执行更新
- c# - 将所有绘制的对象保存到位图中
- android - 如何使用分页库android使用空视图和分页?
- android - 如何使用动画缩放视图以适应 Android 中的内容大小
- javascript - 如何为 raddropdownlist 设置值