Oracle 最大串連數 Session Process

來源:互聯網
上載者:User

Oracle 最大串連數 Session Process

Oracle 最大串連數 Session Process

1. 查看processes和sessions參數
SQL> show parameter processes
processes                          integer    50

SQL> show parameter sessions
sessions                            integer    60

2. 修改processes和sessions值
SQL> alter system set processes=300 scope=spfile;
SQL> alter system set sessions=335 scope=spfile;

註:

<1>.修改processes和sessions值必須重啟oracle服務才會生效
<2>.Oracle的串連數(sessions)與其參數檔案中的進程數(process)有關,sessions=(1.1*process+5)

3.查詢
查詢資料庫當前進程的串連數:
SQL> select count(*) from v$process;

查看資料庫當前會話的串連數:
SQL> select count(*) from v$session;

查看資料庫的並發串連數:
SQL> select count(*) from v$session where status='ACTIVE';

查看當前資料庫建立的會話情況:
SQL> select sid,serial#,username,program,machine,status from v$session;

查詢資料庫允許的最大串連數:
SQL> select value from v$parameter where name = 'processes';
SQL> show parameter processes;

查看當前有哪些使用者正在使用資料:
SQL> 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;

備忘:UNIX 1個使用者session對應一個作業系統process,而Windows體現線上程。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.