Subject: | ORA-03124: two-task internal error (DBD ERROR: OCIStmtExecute) |
Hi there,
I have encountered the error ORA-03124: two-task internal error (DBD
ERROR: OCIStmtExecute) when executing the below code using DBD::Oracle
version 1.27. The query worked at the very first time, and failed on
second time and onwards. Oracle server is 11.2g and client is also 11.2g.
OS info: Linux 2.6.18-194.11.3.el5 # x86_64 x86_64 x86_64 GNU/Linux
Perl info: v5.8.8 built for x86_64-linux-thread-multi
use DBI;
use Data::Dumper;
$dbh = DBI->connect_cached(
"DBI:Oracle:sid=mydbsid;host=mydbhost;port=1521;SERVER=POOLED",
"crm", "crm");
$sth = $dbh->prepare("SELECT * FROM django_content_type WHERE id=?");
if ($sth->execute(1)) {
$res = $sth->fetchall_arrayref;
warn Dumper($res);
}
Note, that when SERVER=POOLED is removed it does work fine.
Any idea as what went wrong or how to tweak to get it working?
cheers,
Peter