oracle11g - How to update cursor limit for ORA-01000: maximum open cursors exceed -


i have found max number of cursors per database 300 following query:

select max(a.value) highest_open_cur, p.value max_open_cur   v$sesstat a, v$statname b, v$parameter p   a.statistic# = b.statistic#    , b.name = 'opened cursors current'   , p.name= 'open_cursors'   group p.value; 

i tried update amount 1000 this:

  update v_$parameter   set value = 1000   name = 'open_cursors'; 

but seeing error:

sql error: ora-02030: can select fixed tables/views 02030. 00000 -  "can select fixed tables/views" *cause:    attempt being made perform operation other            retrieval fixed table/view. *action:   may select rows fixed tables/views. 

what proper way update open_cursor value? thanks.

assuming using spfile start database

alter system set open_cursors = 1000 scope=both; 

if using pfile instead, can change setting running instance

alter system set open_cursors = 1000  

you need edit parameter file specify new open_cursors setting. idea restart database shortly thereafter make sure parameter file change works expected (it's highly annoying discover months later next time reboot database parameter file change no 1 remembers wasn't done correctly).

i'm hoping need more 300 open cursors per session. large fraction of time, people adjusting setting have cursor leak , trying paper on bug rather addressing root cause.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -