- SQL> select SF_GET_PARA_VALUE(2,'MAX_SESSIONS');
- 行号 SF_GET_PARA_VALUE(2,'MAX_SESSIONS')
- ---------- -----------------------------------
- 1 65000
- 已用时间: 1.006(毫秒). 执行号:5994100.
复制代码
- SQL> select count(*) from v$sessions where state='ACTIVE';
- 行号 COUNT(*)
- ---------- --------------------
- 1 1
复制代码
- select expired_date from v$license;
复制代码
- select id_code();
- select * from v$version;
- select * from v$instance;
复制代码
- ./disql sysdba/xxx@localhost:5236
复制代码
- select distinct object_name TABLE_SCHEMA from all_objects where object_type = 'xxxx';
复制代码
- select distinct object_name TABLE_SCHEMA from all_objects where object_type = 'xxx' AND OWNER='SYSDBA';
复制代码
- select tablespace_name from dba_tablespaces;
复制代码
- select TABLE_NAME from dba_tables;
复制代码
查看会话数 - select 'ACTIVE_SESS:' as SESS,count(1) as COUNT from v$sessions where state='ACTIVE' union all
- select 'CURRENT_SESS:',count(1) from v$sessions union all
- select 'MAX_SESS:',para_value from v$dm_ini where para_name='MAX_SESSIONS';
复制代码 |