Home  >  Article  >  Database  >  How to query the number of connections in Oracle

How to query the number of connections in Oracle

WBOY
WBOYOriginal
2022-01-06 16:26:5924960browse

In Oracle, you can use the select statement to query the number of connections. This statement is used to return query results under specified conditions. It is a commonly used query statement in Oracle. The syntax is "select count(*) from v$process ".

How to query the number of connections in Oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to query the number of Oracle connections

Use select count(*) from v$process; to query the number of currently connected sessions.

Examples are as follows:

How to query the number of connections in Oracle

How to query the number of connections in Oracle

##select value from v$parameter where name = 'processes' -- The maximum number of connections allowed by the database


The example is as follows:

How to query the number of connections in Oracle

Recommended tutorial: "

Oracle Tutorial"

The above is the detailed content of How to query the number of connections in Oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn