zoukankan      html  css  js  c++  java
  • oracle查看经常使用的系统信息

    总结了查看oracle数据库的经常使用sql ,有助于分析优化出一个健壮的系统程序来。

    1.当前的数据库连接数:
    select count(*) from v$process

    2.数据库同意的最大连接数:
    select value from v$parameter where name = ‘processes’

    3.改动最大连接数:
    alter system set processes = 300 scope = spfile;

    4.重新启动数据库:
    shutdown immediate;
    startup;

    5.查看当前有哪些用户正在使用数据:
    SELECT osuser, a.username,cpu_time/executions/1000000||’s’, b.sql_text,machine from vsessiona,vsqlarea b where a.sql_address =b.address order by cpu_time/executions desc;

    6.当前的session连接数
    select count(*) from v$session

    7.并发连接数
    select count(*) from v$session where status=’ACTIVE’

    8.最大连接
    show parameter processes

  • 相关阅读:
    Java 运动模糊
    Efounds笔试
    Algorithms code
    Java 画图
    Java 笔记
    Java 对二值化图片识别连通域
    工厂模式
    数据库克隆
    SQL优化
    微信调起jssdk一闪而过
  • 原文地址:https://www.cnblogs.com/hrhguanli/p/4489735.html
Copyright © 2011-2022 走看看