Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: procedure call with multiple children
Oops, forgot to put the list in copy when answering these, here there are:
Yes I can confirm that those are actual real bind variables. The code is JAVA. I have the java code right here:
private static final String PROCEDURE_CALL =3D "call package.procedure(?)";
private void java_function(long parameter1) {
Connection conn =3D null;
CallableStatement call =3D null;
try {
conn=3D DataBaseLink.getDBL().getPooledConnection();
call =3D conn.prepareCall(PROCEDURE_CALL);
call.setLong(1,parameter1);
call.execute();
}
catch (SQLException e) {
logger.error("....");
}
...
A grab from the connection pool and a prepare on each execute. Using bind variables however.
At this point we're inclining that this is a bug with Oracle not sharing this cursor. Still the question remains, how can a cursor of a "call" to a procedure be not-shared due to stats ... or optimizer settings that we did not change. Or so we think.
This is 9.2.0.6 in RAC environment, with only 1 node running.
On 4/27/05, Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk> wrote:
> ----- Original Message -----
> From: "Christo Kutrovsky" <kutrovsky.oracle_at_gmail.com>
> To: "oracle-l" <oracle-l_at_freelists.org>
> Sent: Wednesday, April 27, 2005 5:35 PM
> Subject: procedure call with multiple children
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
--=20
Christo Kutrovsky
Database/System Administrator
The Pythian Group
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Apr 27 2005 - 15:14:24 CDT
![]() |
![]() |