---
title: "查看Oracle进程数和连接数"
author: "shion"
date: "2012-07-13T18:55:53Z"
tags: ["Oracle"]
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2013-04-23T15:28:00Z"
id: 1591911
url: "https://shion.iteye.com/blog/1591911"
---

当前进程数

 

```
select count(*) from v$process
```

 

系统设置的最大进程数

 

```
select name,value from v$parameter where name='processes'
```

 

当前会话数

 

```
select count(*) from v$session
```

 

系统自身使用的会话数

 

```
select count(*) from x$ksuse where bitand(ksspaflg,1) !=0
```