When I write the SQL query in dynamic input tool for the Oracle database, I was getting the following error.

I was to able to use the above query in dynamic input tool while using SQL server connection, but not able to use the same query for Oracle connection. Any help on this, please ?