Sometimes we need to work on a database without any other users being logged in. In this scenario, it is possible to restrict the database session. When the database is altered to restricted mode, only users with restricted session privileges can get access to the database. Technically it is in open mode.
If database is running, alter system command is used to enable and disable restricted session as follows. We can see, select logins from v$instance will verify this: