1、连接数据库
C:\Users\Administrator>sqlplus sys/sys@orcl as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 1月 13 10:23:21 2017
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
2、查看ORACLE游标数
SQL> show parameter open_cursors;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 300
3、查看当前使用游标数
SQL> select count(*) from v$open_cursor;
COUNT(*)
----------
130
4、修改Oracle数据库的最大游标数
SQL> alter system set open_cursors=2000 scope=both;
系统已更改。
再次查看游标数,发现已经改变
SQL> show parameter open_cursors;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 2000