Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Usenet -> c.d.o.misc -> Re: Controlling the number of users in the database

Re: Controlling the number of users in the database

From: Jim Smith <>
Date: Tue, 23 Nov 2004 09:47:05 +0000
Message-ID: <>

In message <>, DanO <> writes
>I have been tasked with finding a way to control (limit) the number of
>users that log into the Oracle database while using our proprietary
>application product. For example, a client may buy our product and
>purchase a 100 user license. We need a way to prevent the 101st user
>from logging into the database.

Do you need to prevent them using the product, or logging on to the database? The two may or may not be equivalent?

>Does anyone know of a product or a method whereby I can record a user
>logging onto the database and add to a counter (and do the opposite
>for logoff)? I'm sure a home-written solution could be created using
>event triggers, etc. but I'm hoping not to re-invent the wheel if
>somebody knows of a system, method, or little know parameter that can

You need to consider that a single 'client session' (i.e. someone using your software on a PC) may result in multiple database connections. You can't then limit on sessions, you have to limit on distinct user names and the client can then get round that by people logging in under the same name.

It might be better not to look for a database solution, but to use something like FlexLM
<>[1] or other established license manager.

[1] I see they have been taken over by Macrovision and FlexLM is classified as a Legacy product so it might be better to look elsewhere. Try googling for "licence manager". There are lots.

Jim Smith
Because of their persistent net abuse, I ignore mail from
these domains (among others) .kr .cn .tw
For an explanation see <>
Received on Tue Nov 23 2004 - 03:47:05 CST

Original text of this message