Sunday, 18 June 2023

Resolving "User has no SELECT privilege on V$SESSION" Error in Oracle

 When working with Oracle databases, you might encounter the error User has no SELECT privilege on V$SESSION while trying to use the dbms_xplan.display_cursor function with a schema other than sysdba privilege. This error occurs because the user lacks the necessary privileges to access certain views. In this blog post, we'll guide you through the steps to grant these privileges and successfully run your queries.