declare cursor c_test_tbl2 is select t2.id, t2.salary from test_tbl2 t2, test_tbl1 t1 where t2.id = t1.id and t2.salary <> t1.salary; c_row c_test_tbl2%rowtype;begin for c_row in c_test_tbl2 loop dbms_output.put_line(c_row.id
先用超级管理员(sys)登陆服务器: sqlplus "sys/***@orcl as sysdba" 连接到:Oracle 查看ORACLE最大游标数: SQL> show parameter open_cursors; 查看当前打开的游标数目: SQL> select count(*) from v$open_cursor; 设置数据库最大游标数量: SQL>alter system set open_cursors=3000 scope=both;
/************************************************************************ ********* Oracle最大游标数控制 ******* ****************************************************************/ select * from v$session where username is not null select username,count(usern