【发布时间】:2018-08-05 14:38:11
【问题描述】:
我想在 perl 的 TheSchwartz 模块(作业队列系统)中将数据库从 MySQL 切换到 Oracle。我怀疑以下代码是关键。
my $client = TheSchwartz->new(
databases => [{
dsn => 'dbi:mysql:TheSchwartz',
user => 'dbi',
pass => 'xxxxxxx',
}],
verbose => 1,
);
我更改了代码。
dsn => 'dbi:mysql:TheSchwartz',
到
dsn => 'dbi:Oracle:OraDB01',
然后我收到了消息。
#Disabling DB 9e410d44ac4b9ede28c9ef34f6c1e817 because unknown
TheSchwartz 没有告诉我有关 Oracle 错误的任何线索(例如密码错误或网络错误 ....)。
我的问题是
1. perl的TheSchwartz可以使用Oracle吗?
2. 调试时,如何在 TheSchwartz 中获取 ORA- 错误信息?
欢迎任何帮助。
问候,
【问题讨论】:
标签: perl perl-module