My Oracle Support Banner

Error ORA-00942 when Enqueuing JMS Message (with LOB payload type) via JDBC driver (Doc ID 1328208.1)

Last updated on AUGUST 30, 2023

Applies to:

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


When enqueing a JMS message (with a LOB payload)  into database queues (AQ), the following message exception occurs :

java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.SQLStateMapping.newSQLException(
at oracle.jdbc.driver.DatabaseError.newSQLException(
at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4C8Oall.receive(
at oracle.jdbc.driver.T4CCallableStatement.doOall8(
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(

This exception happens when the following statement is being executed :

This problem does not happen when  the  JDBC connection used  (for sending the JMS message) is established under the schema (USER1), owner of the database queues.
The exception  happens when the JDBC connection is established under another schema (USER2) which does not own the database queues (AQ).




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.