Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the high water mark (for sessions) on Oracle 9i

How can I find the high water mark (the historical maximum number of concurrent users) in an oracle database (9i).

like image 578
BIBD Avatar asked Aug 11 '08 19:08

BIBD


People also ask

How do I find a high water mark on my table?

This is a term used with table segments stored in the database. If you envision a table, for example, as a 'flat' structure or as a series of blocks laid one after the other in a line from left to right, the high-water mark (HWM) would be the rightmost block that ever contained data, as illustrated in Figure 10-1.

What is high level watermark in Oracle?

High water mark is the maximum amount of database blocks used so far by a segment. This mark cannot be reset by delete operations.

How do I reset the high water mark in Oracle?

The High Water Mark is the maximum number of blocks which have ever contained data. Deleting records from a table frees up the space but does not move the HWM. In order to reset the High Water Mark we have to drop and recreate the table, or just truncate it.

How do you check what session is doing in Oracle?

Viewing SessionsIn SQL Developer, click Tools, then Monitor Sessions. A Sessions tab is displayed. Figure 8-1 shows part of the display. See the chapter about monitoring database operations in Oracle Database Administrator's Guide for more information.


2 Answers

This should do the trick:

SELECT sessions_highwater FROM v$license;
like image 76
ninesided Avatar answered Oct 08 '22 18:10

ninesided


select max_utilization from v$resource_limit where resource_name = 'sessions';

A good overview of Oracle system views can be found here.

like image 37
JosephStyons Avatar answered Oct 08 '22 20:10

JosephStyons