When I query with
SELECT EQUIP_TYPE, DESCRIP
FROM EQUIP_TYPE
ORDER BY EQUIP_TYPE
I got results OK. But when I query with
SELECT EQUIP_TYPE, DESCRIP
FROM EQUIP_TYPE
ORDER BY EQUIP_TYPE
FETCH NEXT 10 ROWS ONLY
there was an SQLException:
java.sql.SQLException: ORA-00933: SQL command not properly ended
Query: SELECT EQUIP_TYPE, DESCRIP FROM EQUIP_TYPE ORDER BY EQUIP_TYPE FETCH NEXT 10 ROWS ONLY Parameters: []
Now EQUIP_TYPE type is known to be unique, there are totally 367 rows in the table.
My environment is Ubuntu 18.04, Java 1.8, ojdbc6-11.2.0.2.0.jar and I work in a Tomcat container with Datasource set up. The Oracle DB is in a remote host.