My Oracle Support Banner

"ALTER USER ... READ ONLY" Does Not Affect Existing Session (Doc ID 3076690.1)

Last updated on MARCH 16, 2025

Applies to:

Oracle Database - Enterprise Edition - Version 23.4 and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Gen 2 Exadata Cloud at Customer - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.

Goal

On 23ai and onwards, a PDB user can be configured to have read-only access to the local PDB using "ALTER USER ... READ ONLY" command.

Example:

 

However, if that user is already connected to a session, that existing session will continue to have read and write access.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.