My Oracle Support Banner

ORA-942 when select from any v$view within stored PL/SQL procedure (Doc ID 1062335.6)

Last updated on OCTOBER 26, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 7.3.0.0 to 9.0.1.0 [Release 7.3.0 to 9.0.1]
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

You are selecting from a system view, such as V$SESSION, from within a PL/SQL stored procedure and you receive an ORA-00942 error.

Changes

 NA

Cause

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

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


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