Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Slow query when using parameters
Hello
I've got a performance problem with a query. The query is in a procedure in a package (although this seems to make no difference).
The parameters for the query are passed as arguments to the procedure.
With the parameters passed as arguments the query takes 1 minute 40 seconds to run. However if I 'hardcode' the paramter values the query only takes 11 seconds to run.
I've tried putting the parameters passed to the stored procedure into local variables and then use the local variables in the query but this doesn't change anything.
Can anybody explain this difference ?
Many thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Mar 31 2000 - 00:00:00 CST
![]() |
![]() |