---
title: "查看oracle连接数"
author: "sylixj2009"
date: "2010-10-25T16:05:35Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2010-10-25T16:05:35Z"
id: 793323
url: "https://springcher.iteye.com/blog/793323"
---

--当前连接数
select count(*) from v$session unoin

--并发连接数
select count(*) 并发连接数 from v$session where status='ACTIVE'　

--查看不同用户的连接数
select username,count(username) from V$SESSION where username is not null group by username

--查询最大连接数
show parameter processes

--更改系统连接数
alter system set processes=1000 scope=spfile;

--查看数据库默认连接数
select value from v$parameter where name = 'processes'