My Oracle Support Banner

ORA-00942 found while accessing sys.v$instance (Doc ID 2808578.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

The compilation of the package was failing because of the line which points to a SELECT statement against sys.v$instance.

=========== Failing Package_Body snip ============
.................
..........
.....
BEGIN
SELECT version INTO l_rdbms_version FROM sys.v$instance; <<<<<<<<<<<<<< sys.v$instance
..........
.......
..

The package is being executed as SYSTEM user, so while verifying the failing SELECT on sys.v$instance while connected as SYSTEM user shows,
it is failing with ORA-00942:

SQL> show user
USER is "SYSTEM"
SQL> SELECT version FROM sys.v$instance;
SELECT version FROM sys.v$instance
*
ERROR at line 1:
ORA-00942: table or view does not exist

 

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!


In this Document
Symptoms
Cause
Solution


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