今天我们来说说Oracle Cursor,首先查看cursor具体信息:
show parameter cursor;
查看每个用户所占的游标数:
SELECT A.USER_NAME, COUNT(*) FROM V$OPEN_CURSOR A GROUP BY A.USER_NAME;
show parameter open_cursors
根据自己的应用场景选择合适的游标数:
alter system set open_cursors=1000 scope=both;(QPS:1000~2000)