Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good Site for Oracle Internals Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • CPU Core related projections AWS
  • useful dg links Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • sid_wise_sql.sql Oracle
  • How to see which patches are applied. Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Add new columns in dataframe Python/PySpark
  • Database logon trigger issue Oracle
  • Jai Shree Ram Oracle
  • Sequence Resetting Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • load SPM baseline from cursor cache 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

  • TRUNCATE table and disabling referential constraints. Oracle
  • Create type and Grant on it. Oracle
  • plan10g.sql good Oracle
  • cur_sql.sql Oracle
  • RAC 11g with vmware Oracle
  • All About Trace Fils 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
  • create PLAN_TABLE command. Oracle
  • Roles and Stored Procs II Oracle
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • set_env_dba Linux/Unix
  • configUOCIOTTO.ora Oracle
  • perf_today.sql Oracle
  • Recovering lost SYS password Oracle
  • plan10g.sql good Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme