My Oracle Support Banner

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

Last updated on NOVEMBER 23, 2023

Applies to:

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


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 ============
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
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



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

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