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

(Doc ID 1328208.1)

Last updated on AUGUST 16, 2016

Applies to:

JDBC - Version: and later   [Release: 11.2 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 :
UPDATE GSADMIN.QUEUETABLEGS tab set tab.user_data.text_lob = ? where tab.msgid = ?

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


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 hundreds of Community platforms