Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • shutdown linux Linux/Unix
  • arch_configUOCIOTTO.ora Oracle
  • Good links for x$ tables in oracle. Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • findobj.sql Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Oracle Internal Good Websites 1 Oracle
  • column level grant syntax Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • Rename Oracle Instance Name Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • Proc Compilation Oracle

How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)

Posted on 27-May-2009 By Admin No Comments on How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)

1. Set in INIT.ORA the parameter

resource_limit = true

and restart Database.

Since Oracle 9iR2 (9.2.0.1) you can perform this without restarting Database

by issuing as SYS:

alter system set resource_limit=true;

2. Connect to Database as SYSTEM or SYS and create the following Profile:

create profile single_user limit sessions_per_user 1;

The other parameters should be adjusted too, but here we discuss only

the session_per_user.

3. Create the user/schema where only one concurrent connection should be allowed

and grant other needed privileges.

create user test1 identified by test1 profile single_user;

grant connect, resource to test1;

4. Test it by trying to connecting with two users “test1”:

Session 1: connect test1/test1 -> Connected

Session 2: Connect test1/test1 ->

ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit

Oracle, SQL scripts

Post navigation

Previous Post: Default User Profile
Next Post: How to Make Trace Files Created by Oracle Readable by All Users ?

Related Posts

  • Building Our Own Namespaces with “Create Context” Oracle
  • When to rebuld B-tree index Oracle
  • Facts about SCN and Rollback Segment Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • configUOCIOTTO.ora Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • EXTPROC Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • login.sql Oracle
  • Absolute file number and relative file number Oracle
  • checking redhat linux version Linux/Unix
  • PLSQL Table Syntax 2 Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme