从以下查询中,我发现每个数据库的最大游标数为 300:
select max(a.value) as highest_open_cur, p.value as max_open_cur
from v$sesstat a, v$statname b, v$parameter p
where a.statistic# = b.statistic#
and b.name = 'opened cursors current'
and p.name= 'open_cursors'
group by p.value;
我尝试使用以下方法将金额更新为 1000:
update v_$parameter
set value = 1000
where name = 'open_cursors';
但我看到了这个错误:
SQL Error: ORA-02030: can only select from fixed tables/views
02030. 00000 - "can only select from fixed tables/views"
*Cause: An attempt is being made to perform an operation other than
a retrieval from a fixed table/view.
*Action: You may only select rows from fixed tables/views.
更新 open_cursor 值的正确方法是什么?谢谢。