My Oracle Support Banner

Orcl:Query-Database Function Does Not Throw an Error if The Table or View Does Not Exist (Doc ID 1182625.1)

Last updated on JUNE 18, 2018

Applies to:

Oracle SOA Platform - Version: 11.1.1.3.0 to 11.1.1.3.0 - Release: 11gR1 to 11gR1
Information in this document applies to any platform.

Symptoms


orcl:query-database function does not throw an error if the table or view does not exist.

No exception is thrown by the following statement (the table xyz does not exist):
 
<xsl:variable name='v_result' select="oraext:query-database('Select col from
xyz',true(),true(),'jdbc:oracle:thin:scott/tiger@localhost:1521:oraXE')"/>

Expecting to see error: 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
  References

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