查询数据库允许的最大连接数:
select value from v$parameter where name = ‘processes‘;
或者:show parameter processes;
查询数据库允许的最大游标数:
select value from v$parameter where name = ‘open_cursors‘
查看oracle版本
select banner from sys.v_$version;
按降序显示用户"SYSTEM"为每个会话打开的游标数
select o.sid, osuser, machine, count(*) num_curs from v$open_cursor o, v$session s where user_name = ‘SYSTEM‘ and o.sid=s.sid group by o.sid, osuser, machine order by num_curs desc;
查看当前的数据库文件一般都是放在哪里的: 输入:select name from v$datafile;