zoukankan      html  css  js  c++  java
  • oracle查询连接数、并发数、共享池大小

    1、查看当前数据库建立的会话情况:

    select sid,serial#,username,program,machine,status from v$session;

    2、查询数据库当前进程的连接数:

    select count(*) from v$process;

    3、查看数据库当前会话的连接数:

    select count(*) from v$session;

    4、查看数据库的并发连接数:

    select count(*) from v$session where status='ACTIVE';

    5、查询数据库允许的最大连接数

    select value from v$parameter where name = 'processes';

    6、查看当前有哪些用户正在使用数据:

    select osuser,a.username,cpu_time/executions/1000000||'s',sql_fulltext,machine from v$session a,v$sqlarea b where a.sql_address = b.address order by cpu_time/executions desc;

    7、查看共享池大小

    select * from v$sgastat where name = 'free memory' and pool = 'shared pool';

  • 相关阅读:
    noip退役赛
    noip模拟赛
    集合划分状压dp
    bzoj 3730 震波
    noip前打板子 qwq
    noip模拟赛
    HAOI2015 树上染色
    一个菜鸡出的模拟赛!
    ioinc
    centos=>gsutil,iptables
  • 原文地址:https://www.cnblogs.com/sunzhihua/p/8360435.html
Copyright © 2011-2022 走看看