Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to start CRS manually Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • The most important Tuning Notes Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Oracle Material from OTN Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Oracle Identifiers Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • FGA Part-I Oracle
  • S3 Basic info AWS
  • Shuffle an array PHP/MYSQL/Wordpress
  • Optimizer SORT Operations Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • How to stop OCSSD Daemon 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

  • To check whether standby is recovering properly or not?? Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • get_aix_vmstat.ksh Oracle
  • Goldengate Tutorial Oracle
  • First Entry in RAC Oracle
  • normal maintenance for exp-imp and renaming table 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Drop specific SQL plan baseline – spm Oracle
  • Giving Grant on v$DATABASE Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • move_arch_files.ksh Linux/Unix
  • Zip and unzip with tar Linux/Unix
  • get_vmstat.ksh for Solaris Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme