Professional Documents
Culture Documents
Simple SQL Query Fails When Configuring The OIC Oracle Database Adapter But Runs
Successfully in SQLPlus (Doc ID 2663145.1)
In this Document
Goal
Solution
References
APPLIES TO:
GOAL
returns the database error ORA 00933: SQL command not properly ended error?
SOLUTION
When executing a SQL query using the Database Adapter, the best practice:
1. For short queries: Remove all formatting, in the command in the OIC trigger, and write the command as a single
continuous line, i.e.: SELECT FIELD_1, FIELD_, FROM TABLE_X GROUP BY FIELD_1
2. For longer queries: Stored Procedures are the best fit for cases where the query is a bit complex, involving multiple
clauses with multiple input/bind parameters and nested selects, or those can not be modeled via PureSQL.
REFERENCES