oracle查看常用的系統資訊,oracle系統資訊

來源:互聯網
上載者:User

oracle查看常用的系統資訊,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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.