Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Limiting Concurrent Sessions Not Working

Limiting Concurrent Sessions Not Working

From: Sam Bootsma <sbootsma_at_gbrownc.on.ca>
Date: Thu, 05 Jun 2003 03:51:15 -0700
Message-ID: <F001.005AA3E6.20030604101023@fatcity.com>

<span style='font-size:10.0pt;

font-family:Arial'>Oracle7 Server Release 7.3.4.5.0 (yes, I know, old); AIX 4.3.3 

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Hello All,

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>I am trying to limit concurrent sessions on my database.  The Oracle documentation says I can do it.  However, when I follow the steps (create profile with sessions per user set to one, then assign Oracle user to this profile) the user is not stopped from exceeding the number of concurrent sessions.  I tested this by connecting using Sql Plus.  I even tried bouncing the database, to see if that makes a difference, but to no avail. 

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Any ideas what is happening?  Am I missing something?  Is this a problem/bug with Oracle 7.3.4?  The output below shows the steps I followed to create the profile and user.  It also shows multiple connections to the database after bouncing the instance.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Thanks for any suggestions!

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Sam.

<span

style='font-size:10.0pt;font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> create profile sam limit sessions_per_user 1;

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Profile created.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> create user sam identified by sam;

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>User created.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> alter user sam profile sam;

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>User altered.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> grant create session to sam;

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>Grant succeeded.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL>

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> l

<span style='font-size:10.0pt;

font-family:Arial'>  1  select limit

<span style='font-size:10.0pt;

font-family:Arial'>  2  from dba_profiles

<span style='font-size:10.0pt;

font-family:Arial'>  3  where profile=''

<span style='font-size:10.0pt;

font-family:Arial'>  4* and resource_name = 'SESSIONS_PER_USER'

<span style='font-size:10.0pt;

font-family:Arial'>SQL> /

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>LIMIT

<span style='font-size:10.0pt;

font-family:Arial'>----------------------------------------

<span style='font-size:10.0pt;

font-family:Arial'>1

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL>

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL> select profile

<span style='font-size:10.0pt;

font-family:Arial'>  2  from dba_users

<span style='font-size:10.0pt;

font-family:Arial'>  3  where username = 'SAM';

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>PROFILE

<span style='font-size:10.0pt;

font-family:Arial'>------------------------------

<span style='font-size:10.0pt;

font-family:Arial'>SAM

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SQL>

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR> shutdown normal

<span style='font-size:10.0pt;

font-family:Arial'>Database closed.

<span style='font-size:10.0pt;

font-family:Arial'>Database dismounted.

<span style='font-size:10.0pt;

font-family:Arial'>ORACLE instance shut down.

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR> connect internal

<span style='font-size:10.0pt;

font-family:Arial'>Connected to an idle instance.

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR> startup

<span style='font-size:10.0pt;

font-family:Arial'>ORACLE instance started.

<span style='font-size:10.0pt;

font-family:Arial'>Total System Global Area      34122296 bytes

<span style='font-size:10.0pt;

font-family:Arial'>Fixed

Size                      

38992 bytes

<span style='font-size:10.0pt;

font-family:Arial'>Variable

Size                

31797736 bytes

<span style='font-size:10.0pt;

font-family:Arial'>Database
Buffers              
2252800 bytes

<span style='font-size:10.0pt;

font-family:Arial'>Redo

Buffers                    

32768 bytes

<span style='font-size:10.0pt;

font-family:Arial'>Database mounted.

<span style='font-size:10.0pt;

font-family:Arial'>Database opened.

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR> select osuser, username

<span style='font-size:10.0pt;

font-family:Arial'>     2> from v$session;  

<span style='font-size:10.0pt;

font-family:Arial'>OSUSER         

USERNAME                     


<span style='font-size:10.0pt;

font-family:Arial'>--------------- ------------------------------

<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                   
    

<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle         

SYS                          


<span style='font-size:10.0pt;

font-family:Arial'>12 rows selected.

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR> select osuser, username from v$session;

<span style='font-size:10.0pt;

font-family:Arial'>OSUSER         

USERNAME                     


<span style='font-size:10.0pt;

font-family:Arial'>--------------- ------------------------------

<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                
                       

<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                       


<span style='font-size:10.0pt;

font-family:Arial'>oracle                                     
  

<span style='font-size:10.0pt;

font-family:Arial'>oracle         

SYS                          


<span style='font-size:10.0pt;

font-family:Arial'>sam             SAM                          


<span style='font-size:10.0pt;

font-family:Arial'>sam             SAM                          


<span style='font-size:10.0pt;

font-family:Arial'>14 rows selected.

<span style='font-size:10.0pt;

font-family:Arial'>SVRMGR>

<span style='font-size:10.0pt;

font-family:Arial'> 

<span style='font-size:10.0pt;

 font-family:Arial'>Sam Bootsma

<span style='font-size:10.0pt;

  font-family:Arial'>George<span
 style='font-size:10.0pt;font-family:Arial'> <font size=2   face=Arial>Brown<font
 size=2 face=Arial> <font
  size=2 face=Arial>College

<span style='font-size:10.0pt;

font-family:Arial'>[EMAIL PROTECTED]

<span style='font-size:10.0pt;

font-family:Arial'>416-415-5000 x4933

<span style='font-size:

12.0pt'>  Received on Thu Jun 05 2003 - 05:51:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US