DBD::Oracle problems
- From: christopher.l.hood@xxxxxxxxxxx (Christopher L Hood)
- Date: Tue, 31 May 2005 14:14:01 -0500
All,
I am getting the following error while trying to use DBD::Oracle:
DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD
ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at
../oracleTest.pl line 69.
I have tested the connection manually with sqlplus, and all is good there.
I have also run some select statements with the DBD::Oracle driver that
DID work. So all is good there.
HOWEVER what is wrong with this describe statement and why do I get the
error above???
my $sth = $dbh->prepare(qq{describe ALL_USERS});
$sth->execute;
A WORKING snippet is:
my $sth = $dbh->prepare(qq{select count(USERNAME) from ALL_USERS});
and happens to return 635 as the result as expected.
So I believe that I understand how to use the driver but there is
obviously something about the describe that is different.
Thanks
Chris Hood
- Follow-Ups:
- Re: DBD::Oracle problems
- From: Philip M. Gollucci
- Re: DBD::Oracle problems
- Prev by Date: RE: A question about Win32:OLE
- Next by Date: RE: :Oracle problems
- Previous by thread: $p{"Bryan"}{"age"} = 31
- Next by thread: Re: DBD::Oracle problems
- Index(es):
Relevant Pages
|