Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Template::Plugin::DBI, Oracle and cursors

by hakkr (Chaplain)
on Aug 30, 2005 at 14:24 UTC ( #487770=note: print w/replies, xml ) Need Help??


in reply to Re^2: Template::Plugin::DBI, Oracle and cursors
in thread Template::Plugin::DBI, Oracle and cursors

Every time you do a query Oracle internally uses a cursor to retrieve your data.

If you open lots of statement handles you will get a cursor for each one. It looks like you are doing the query inside a loop so it is opening a new cursor each time around for each query.

Generally to avoid this you should just prepare your query once outside the loop and close your statement handles after use. If you don't close your statement handle you will end up with a lot of open cursors hanging around

Of course if you have sys access you can also just raise the open cursor limit if you have the memory;).
  • Comment on Re^3: Template::Plugin::DBI, Oracle and cursors

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://487770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-09-22 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (190 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!