Enable Disable Restricted Oracle Database Session

 SQL> shut immediate;

ORA-01507: database not mounted


SQL> startup mount restrict;

ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance

ORACLE instance started.


Total System Global Area 3154113880 bytes

Fixed Size                  9139544 bytes

Variable Size            2080374784 bytes

Database Buffers         1040187392 bytes

Redo Buffers               24412160 bytes

Database mounted.

SQL> drop database;


Database dropped.


Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.15.0.0.0



SQL> startup restrict 


ORACLE instance started.



ALTER SYSTEM ENABLE RESTRICTED SESSION;


Command will put the db in restricted session.  

all users with the CREATE SESSION system privilege can connect to an open database. 

Opening a database in restricted mode allows database access only to users with both the CREATE SESSION 

and RESTRICTED SESSION system privilege; 


Start an instance (and, optionally, mount and open the database) in restricted mode by using the 

STARTUP command with the RESTRICT option:


STARTUP RESTRICT;


           SQL> alter system enable restricted session;

       system altered

 

       SQL> alter system disable restricted session;

system altered


SQL> alter system set resource_manager_plan=system_plan;

...


SQL> shutdown immediate;


...


SQL> startup


...

Database open


           SQL> alter system quiesce restricted;


             SQL> alter system unquiesce;


in quiesce mode only member of the internal group can have active sessions and these member are SYS and SYSTEM


SQL> SELECT logins from v$instance;

LOGINS

----------

RESTRICTED


Comments

Popular posts from this blog

How to drop index and before dropping it how to get the DDL.

PRVG-11250 : The check "RPM Package Manager database" was not performed because

ORA-00257:archiver error, connect internal only until freed

Verifying Daemon “Avahi-Daemon” Not Configured And Running …FAILED (PRVG-1360)

Linux OL7/RHEL7: PRVE-0421 : No entry exists in /etc/fstab for mounting /dev/shm

SKIP DNS RESLOV.CONF CHECK DURING RAC CONFIGURATION

CPU Patch Analysis

How to write to a CSV file using Oracle SQL*Plus

How to troubleshoot Long Running Concurrent Request in EBS 12.2

How To Manage Space of The FRA in the Oracle DB