My Oracle Support Banner

JDBC Program Reports ORA-00942 when Attempting to Access a Database Table (Doc ID 3076735.1)

Last updated on MARCH 18, 2025

Applies to:

JDBC - Version 8.0.6.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to access a Database table the following error occurs.

ERROR
-----------------------

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a java program that accesses the table <TABLE_NAME>.
2. Add the JDBC driver in the Classpath.
3. Compile the java program.
4. Run the java program.


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.